In recent years, flexible UV photodetectors (PDs) with complex environmental adaptability and great wearability have attracted the attention of researchers worldwide. Wide bandgap inorganic semiconductor materials with excellent optoelectronic properties and mechanical stability are key functional materials for UV PD devices. However, the high temperature processing and inherent brittleness limit the further application of high-quality inorganic semiconductors in the field of flexible optoelectronics. In this work, we develop a specific flip-chip bonding fabrication technique that utilizes high-temperature treated inorganic semiconductor materials for high-performance flexible UV detection devices. Leveraging this technique, a 7 × 7 pixel flexible UV photodetector array (UV-FPDA) device based on a vertical architecture Mg-doped ZnO/NiO (Mg:ZnO/NiO) heterojunction transistor is built. The UV-FPDAs exhibit a high responsivity of 75.8 A/W and an outstanding detectivity of 8.5 × 1012 Jones. Besides, the UV-FPDAs also demonstrate excellent bending stability. Furthermore, the photoresponse characteristics of each pixel are trained and learned by an artificial neural network to achieve clear imaging of UV light information. Our results provide a new pathway for the application of inorganic semiconductors in the field of high-performance flexible UV photodetection.