WO2022143921A1 - Image reconstruction method, and related apparatus and system - Google Patents

Image reconstruction method, and related apparatus and system Download PDF

Info

Publication number
WO2022143921A1
WO2022143921A1 PCT/CN2021/143179 CN2021143179W WO2022143921A1 WO 2022143921 A1 WO2022143921 A1 WO 2022143921A1 CN 2021143179 W CN2021143179 W CN 2021143179W WO 2022143921 A1 WO2022143921 A1 WO 2022143921A1
Authority
WO
WIPO (PCT)
Prior art keywords
definition
image
electronic device
category
feature
Prior art date
Application number
PCT/CN2021/143179
Other languages
French (fr)
Chinese (zh)
Inventor
吕飞帆
张运超
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022143921A1 publication Critical patent/WO2022143921A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Definitions

  • the present application relates to the field of computer vision, and in particular, to an image reconstruction method, related apparatus and system.
  • the CNN model needs to take into account many scenarios, but the CNN model is generally large, and there may be a risk of insufficient performance when running the CNN model on electronic devices such as mobile phones, making it difficult to quickly super-resolution reconstruction after taking pictures Produce high-quality pictures.
  • the present application provides an image reconstruction method, related device and system, which realizes identifying and cropping out specific target content from a photographed photo, and then performing super-resolution reconstruction processing on the cropped image to obtain a high-definition image.
  • the quality of the image captured to a specific target in the photo.
  • the present application provides an image reconstruction method, comprising: an electronic device receiving a first input; the electronic device, in response to the first input, acquiring a low-definition image captured by the camera; the electronic device detecting the low-definition image
  • the image includes the first specified target content, and the category of the first specified target content is the first category; the electronic device extracts the first image feature of the first specified target content in the low-definition image; the electronic device
  • An image feature and the first category are sent to the cloud server; wherein, the first image feature is used by the cloud server to match the shooting target category of the first category from the high-definition texture dictionary library of multiple different shooting target categories stored in the cloud server.
  • the first image feature is used by the cloud server to match a first high-definition texture feature whose similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library; the electronic The device receives the first high-definition texture feature sent by the cloud server; the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, and the resolution of the first specified target content in the high-definition image is greater than The resolution of the first specified target content in the low-definition image.
  • the electronic device can extract the image features of the specified target content from the captured low-definition image, and match the image features of the specified target content based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server. High-definition texture features similar to the image features of the specified target content are obtained.
  • the electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be carried out for a specific target, which simplifies the calculation amount on the electronic device in the super-resolution reconstruction process.
  • the electronic device extracts the first image feature of the first specified target content in the low-definition image, which specifically includes: the electronic device recognizes and crops out the first specified target content in the low-definition image.
  • a first low-definition cropped image is obtained in the first area where the target content is located, and the first low-definition cropped image includes the first designated target content; the electronic device extracts a first image feature of the first low-definition cropped image.
  • the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, which specifically includes: the electronic device fuses the first high-definition texture feature into the first low-definition image.
  • a first high-definition cropped image is obtained; the electronic device replaces the first high-definition cropped image with the first low-definition cropped image, and pastes it back to the first area in the low-definition image to obtain the high-definition image.
  • the method further includes: the electronic device saves the high-definition image.
  • the method before the electronic device receives the first input, the method further includes: the electronic device displays a shooting preview interface, and the shooting preview interface displays a preview image stream captured in real time by a shooting key and a camera,
  • the first input is an input for the shooting key.
  • a first control is also displayed on the shooting preview interface; before the electronic device receives the first input, the method further includes: the electronic device receives a second input for the first control; In response to the second input, the electronic device initiates a super-resolution reconstruction mode.
  • the method before the electronic device receives the first input, the method further includes: the electronic device displays a picture browsing interface, where the low-definition image and the second control are displayed on the picture browsing interface, the first An input is an input for the second control.
  • the preview image stream includes a first preview image; before the electronic device receives the first input, the method further includes: the electronic device detects that the first preview image includes a second specified image target content, the category of the second specified target content is a second category, and the second category is the same as or different from the first category; the electronic device extracts the second image feature in the first preview image; the electronic device extracts the second image feature from the first preview image; The second image feature and the second category are sent to the cloud server; wherein, the second image feature is used by the cloud server to match the shooting target category as the second shooting target category from the stored high-definition texture dictionary library of multiple different shooting target categories The second high-definition texture dictionary library of the category; the second image feature is used by the cloud server to match the second high-definition texture feature with the second image feature similarity greater than a preset value from the second high-definition texture dictionary library; The electronic device receives the second high-definition texture feature sent by the cloud server; the electronic device stores the second
  • the electronic device extracts the second image feature of the second specified target content in the first preview image, which specifically includes: the electronic device recognizes and crops out the second image feature in the low-definition image.
  • the second area where the target content is located is specified, and a second low-definition cropped image is obtained; the electronic device extracts a second image feature of the second low-definition cropped image.
  • the method further includes: the electronic device displays category information on the shooting preview interface, the category information The category used to represent the specified target content in the preview image stream is the second category.
  • the method further includes: acquiring, by the electronic device, a second preview image collected by a camera; the electronic device, the electronic device It is detected that the second preview image includes a third specified target content, the category of the third specified target content is a third category, and the third category is the same as or different from the second category; the electronic device identifies and cuts out the low Clear the third area where the third specified target content is located in the image, and obtain a third low-definition cropped image; the electronic device extracts a third image feature of the third low-definition cropped image; the electronic device determines whether the cache queue is in the A high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored; if a high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored in the cache queue, the electronic device uses the The high-definition texture feature
  • the method further includes: the electronic device combines the third image feature with the third image feature.
  • the third category is sent to the cloud server; wherein, the third image feature is used by the cloud server to match a third high-definition texture whose shooting target category is the third category from the stored high-definition texture dictionary library of multiple different shooting target categories dictionary library; the third image feature is used by the cloud server to match the third high-definition texture feature with the third image feature from the third high-definition texture dictionary library whose similarity is greater than a preset value; the electronic device receives the cloud server The third high-definition texture feature sent; the electronic device stores the third high-definition texture feature in the cache queue, and fuses the third high-definition texture feature into the third low-definition cropped image to obtain the third high-definition texture feature Crop the image.
  • the method further includes: the electronic device determines whether the cache queue is stored with the first image feature and the first category.
  • a high-definition texture feature whose similarity of image features is greater than a preset value; the electronic device sends the first image feature and the first category to the cloud server, which specifically includes: if the cache queue is not stored with the first image feature The high-definition texture feature whose similarity is greater than the preset value, the electronic device sends the first image feature and the first category to the cloud server.
  • the method further includes: the electronic device associates the cache queue with the first image feature.
  • a high-definition texture feature whose similarity of image features is greater than a preset value is fused into the low-definition image to obtain the high-definition image.
  • the present application provides an electronic device including one or more processors and one or more memories.
  • the one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform The image reconstruction method in any possible implementation manner of any one of the above aspects.
  • an embodiment of the present application provides a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to execute the image reconstruction method in any possible implementation manner of any one of the above aspects .
  • the embodiments of the present application provide a computer program product that, when the computer program product runs on a computer, enables the computer to execute the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
  • an embodiment of the present application provides an image reconstruction system, including an electronic device and a cloud server, where a plurality of high-definition texture dictionary libraries of different shooting target categories are stored on the cloud server; wherein, the electronic device is used for receiving a first input; the electronic device is further configured to acquire a low-definition image captured by the camera in response to the first input; the electronic device is further configured to detect that the low-definition image includes the first specified target content, and the first specified target content is included in the first input.
  • a category of the specified target content is the first category; the electronic device is further configured to extract the first image feature of the first specified target content in the low-definition image; the electronic device is also configured to extract the first image feature of the first specified target content and the first category are sent to the cloud server; the cloud server is used to match the first high-definition texture dictionary library whose shooting target category is the first category from the stored high-definition texture dictionary libraries of the plurality of different shooting target categories; The cloud server is further configured to match, from the first high-definition texture dictionary library, a first high-definition texture feature whose similarity with the first image feature is greater than a preset value; the cloud server is further configured to match the first high-definition texture feature with the first image feature.
  • the texture feature is sent to the electronic device; the electronic device is further configured to fuse the first high-definition texture feature into the low-definition image to obtain a high-definition image, wherein the resolution of the first specified target content in the high-definition image is greater than The resolution of the first specified target content in the low-definition image.
  • the cloud server is further configured to acquire a plurality of high-quality images and the shooting target category of each high-quality image; the cloud server is further configured to extract the shooting target category of the high-quality image.
  • the high-definition texture features are stored in the high-definition texture dictionary library corresponding to the shooting target category of the high-quality image.
  • the electronic device is further configured to send the identification category set of the target identification model on the electronic device to the cloud server; the cloud server is further configured to determine the relationship between the identification category set and the cloud server.
  • the category sets of the high-definition texture dictionary libraries of multiple different shooting target categories are different, send model update information to the electronic device; the electronic device is also used to update the target recognition model on the electronic device based on the model update information; wherein , after the update, the recognition category set of the target recognition model on the electronic device is the same as the category set of the high-definition texture dictionary libraries of the multiple different shooting target categories.
  • the electronic device is further configured to execute the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
  • an embodiment of the present application provides a chip system, including: one or more processors and one or more memories; the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, when When one or more processors execute the computer instructions, the image reconstruction system causes the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
  • the one or more processors may include one or more of an application processor, an image signal processor, a digital signal processor, a neural network processor, and a graphics processor.
  • FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application.
  • 2A is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the application.
  • FIG. 2B is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2C is a schematic diagram of a hardware structure of a cloud server according to an embodiment of the present application.
  • 3A-3E are schematic diagrams of a group of interfaces provided by an embodiment of the present application.
  • FIGS. 4A-4B are schematic diagrams of another set of interfaces provided by an embodiment of the present application.
  • 5A-5B are schematic diagrams of another set of interfaces provided by an embodiment of the present application.
  • 6A-6E are another set of interface schematic diagrams provided by the embodiments of the present application.
  • FIG. 7 is a schematic flowchart of an image reconstruction method provided by an embodiment of the present application.
  • FIG. 8A is a schematic diagram of a low-definition image provided by an embodiment of the present application.
  • 8B is a schematic diagram of a specified target content mask image provided by an embodiment of the present application.
  • 8C is a schematic diagram of a cropping frame in a low-definition image provided by an embodiment of the present application.
  • 8D is a schematic diagram of a first low-definition cropped image provided by an embodiment of the present application.
  • 8E is a schematic diagram of a first high-definition cropped image provided by an embodiment of the application.
  • 8F is a schematic diagram of a high-definition image provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application.
  • FIG. 10 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application.
  • FIG. 11 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an image reconstruction system provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • the embodiment of the present application provides an image reconstruction method.
  • the electronic device can extract the image features of the specified target content from the captured low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server , and match high-definition texture features similar to the image features of the specified target content.
  • the electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be carried out for a specific target, which simplifies the calculation amount on the electronic device in the super-resolution reconstruction process.
  • FIG. 1 shows a schematic structural diagram of a communication system 10 according to an embodiment of the application.
  • the communication system 10 may include a terminal 100 and a cloud server 200 .
  • the terminal 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant ( personal digital assistant, PDA), augmented reality (AR) ⁇ virtual reality (virtual reality, VR) devices, etc.
  • the specific type of the terminal 100 is not particularly limited in this embodiment of the present application.
  • the terminal 100 can be connected to the cloud server 200 through a 2G network, a 3G network, a 4G network, a 5G network, a wireless local area network (wireless local area network, WLAN), and the like.
  • the terminal 100 may send the image feature/image data and the category information of the specified target content in the image feature/image data to the cloud server 200 .
  • the cloud server 200 may send high-definition texture features and the like to the terminal 100 .
  • the cloud server 200 can establish connections with multiple terminals 100, and can independently process processing tasks requested by the multiple terminals 100. Wherein, the cloud server 200 can distinguish the terminals by the account (for example, a Huawei account) logged in by the user on the terminal.
  • the account for example, a Huawei account
  • FIG. 2A shows a schematic structural diagram of the electronic device 100 .
  • the electronic device 100 shown in FIG. 2A is merely an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 2A, two or more components may be combined, or Different component configurations are possible.
  • the various components shown in Figure 2A may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
  • FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.
  • FIG. 2C is a schematic structural diagram of a cloud server 200 provided by an embodiment of the present application.
  • the cloud server 200 includes one or more processors 201, a communication interface 202, and a memory 203.
  • the processor 201, the communication interface 202, and the memory 203 may be connected through a bus or other means.
  • the bus 204 is connected as an example. in:
  • the processor 201 may be constituted by one or more general-purpose processors, such as a CPU.
  • the processor 201 may be used to execute relevant program codes of the device control method.
  • Communication interface 202 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or using a wireless local area network interface) for communicating with other nodes. In this embodiment of the present application, the communication interface 202 may specifically be used to communicate with the electronic device 100 .
  • the memory 203 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as ROM, flash memory, HDD or solid-state drive SSD; memory 203A may also include a combination of the types of memories described above.
  • the memory 203 may be used to store a set of program codes, so that the processor 201 can call the program codes stored in the memory 203 to implement the implementation method on the server of the embodiments of the present application.
  • server shown in FIG. 2C is only an implementation manner of the embodiment of the present application. In practical applications, the server may further include more or less components, which is not limited here.
  • the user when the user uses the electronic device 100 to take a picture, the user can open the camera application to take a picture.
  • the electronic device 100 receives the user's photographing operation, the electronic device 100 obtains the low-definition image captured by the camera, identifies and extracts the image features of the specified target content in the low-definition image (for example, the Ferris wheel building), and based on the The high-definition texture dictionary library of the same category of the specified target content matches high-definition texture features similar to the image features of the specified target content.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
  • the electronic device 100 may display an interface 310 with a home screen, the interface 310 displays a page on which application icons are placed, and the page includes a plurality of application icons (eg, weather application icons, Stock application icon, calculator application icon, settings application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon 312, music application icon, video application icon, WeChat application icon, etc.) .
  • a page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages.
  • tray icons eg, a dialing application icon, an information application icon, a contact application icon, and a camera application icon 313 ), and the tray icons remain displayed when switching pages.
  • the above-mentioned page may also include multiple application icons and page indicators.
  • the page indicator may not be a part of the page, but exists alone.
  • the above-mentioned picture icon is also optional, which is not limited in this embodiment of the present application.
  • a status bar 311 is displayed in the upper part of the interface 310, and the status bar 311 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), battery status indicators, and time indicators , Wi-Fi signal indicator, and more.
  • the electronic device 100 may receive an input operation (eg, single click) of the user acting on the camera application icon 513, and in response to the input operation, the electronic device 100 may display a shooting preview interface 520 as shown in FIG. 5B .
  • an input operation eg, single click
  • the shooting preview interface 320 can display a control 321 for echoing the captured image, a shooting control 322, a camera switching control 323, a preview screen captured by the camera 324, a setting control 325, a zoom ratio control 326, one or Multiple capture mode controls (eg, "Night Mode” control 327A, "Portrait Mode” control 327B, “Normal Photo Mode” control 327C, "Video Mode” control 327D, "Pro Mode” control 327E, More Mode Controls 327F, "Large Aperture Mode” controls 327H, etc.).
  • the captured image echo control 321 may be used to display the captured image.
  • the shooting control 322 is used to trigger saving of the image captured by the camera.
  • the camera switching control 323 can be used to switch cameras for taking pictures.
  • the setting control 325 can be used to set the camera function.
  • the zoom ratio control 326 can be used to set the zoom ratio of the camera.
  • the shooting mode control can be used to trigger the opening of the image processing flow corresponding to the shooting mode. For example, a "night scene mode” control 327A can be used to trigger an increase in brightness and color richness, etc. in the captured image.
  • a "portrait mode” control 372B may be used to trigger blurring of the background of people in the captured image, among other things. As shown in FIG. 3B , the shooting mode currently selected by the user is the "normal shooting mode".
  • the electronic device 100 may receive a user's input operation (eg, click) on the photographing control 322 in the photographing preview interface 320 , and in response to the input, the electronic device 100 may acquire a low-definition image (eg, a preview image 324 ) captured by the camera.
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image.
  • the electronic device 100 can display category information 329 in the above-mentioned shooting interface 320, and the category information 329 can be used to indicate the category of the specified target content in the low-definition image, for example , the category information 329 may be the text of "Ferris wheel".
  • the electronic device 100 may display a processing progress prompt or countdown, It is used to prompt the user that the current electronic device 100 performs super-resolution reconstruction processing on the captured low-definition image by means of the high-definition texture dictionary library on the cloud server 200 .
  • the electronic device 100 may display a progress prompt window 341 on the shooting preview interface 320 for prompting the progress of super-resolution reconstruction of the shot low-definition image.
  • the progress prompt window 341 displays a text prompt "The photo is being optimized through the cloud, the progress is 10%".
  • a cancel control 342 may also be displayed in the progress prompt window 341, which may be used to trigger canceling the super-score reconstruction of the captured image.
  • the electronic device 100 may stop performing super-resolution reconstruction processing on the captured image. In this way, when the progress is slow or when the user temporarily does not want to over-score the captured image, the over-score reconstruction of the captured image can be canceled immediately.
  • the electronic device 100 may display a completion prompt, and save the high-definition image after super-resolution reconstruction locally.
  • the completion prompt may be used to prompt the user that the super-resolution reconstruction of the captured image has been completed.
  • the electronic device 100 displays a completion prompt 343 after completing the super-score reconstruction of the captured image by means of the high-definition texture dictionary library on the cloud server 200 .
  • the completion prompt 343 may be a text prompt "The photo over-scoring process has been completed, and can be viewed in the gallery".
  • the electronic device 100 may receive a user's input operation (eg, click) on the captured image echo control 321, and in response to the input operation, the electronic device 100 may display a photo browsing interface 550 as shown in FIG. 3E .
  • a user's input operation eg, click
  • the electronic device 100 may display a photo browsing interface 550 as shown in FIG. 3E .
  • the photo browsing interface 350 may include a high-definition image 351 after super-resolution reconstruction, image-related information 353 , a menu 354 , and a gallery control 355 .
  • the image-related information 353 may include the shooting time of the high-definition image 351, shooting weather, geographic location information, and the like.
  • the shooting time can be "December 3, 2019 8:00AM”
  • the shooting weather can be “cloudy”
  • the shooting location can be "Shanghai Disney"
  • the menu 354 may include a share button, a favorite button, an edit button, a delete button, and more buttons.
  • a share button may be used to trigger sharing of the high-definition image 351 .
  • the favorite button can be used to trigger to save the high-definition image 351 to the picture favorite folder.
  • the edit button can be used to trigger editing functions such as rotation, trimming, adding filters, and blurring of the high-definition image 351.
  • the delete button can be used to trigger deletion of the high-definition image 351 .
  • the More button can be used to trigger opening more functions related to this HD image 351 .
  • the gallery control 355 can be used to trigger the electronic device 100 to open the gallery application.
  • the user when the user uses the electronic device 100 to take a picture, the user can open the camera application to take a picture.
  • the shooting preview interface may include a super-resolution reconstruction control and a shooting control, and the super-resolution reconstruction control can be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image.
  • the electronic device 100 After receiving the user's input for the image reconstruction control, the electronic device 100 can enable the super-resolution reconstruction function. After the super-resolution reconstruction function is enabled, when the electronic device 100 receives the user's photographing operation, the electronic device 100 obtains a low-definition image captured by the camera.
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
  • the electronic device 100 may receive an input operation (such as a click) by the user acting on the camera application icon 313 in the interface 310 shown in FIG. 3A through the earphone, and in response to the input operation, the electronic device 100 may display as shown in FIG. 4A .
  • the shooting preview interface 420 shown.
  • the shooting preview interface 420 may include a captured image echo control 421 , a shooting control 422 , a camera conversion control 423 , a camera-captured preview screen 424 , a super-resolution reconstruction control 428 , a setting control, and a zoom ratio. controls, one or more capture mode controls (eg, "Night Mode” control 427A, "Portrait Mode” control 427B, “Normal Photo Mode” control 427C, "Video Mode” control 427D, "Pro Mode” control 427E, more mode control 427F, "large aperture mode” control 427H, etc.).
  • capture mode controls eg, "Night Mode” control 427A, "Portrait Mode” control 427B, “Normal Photo Mode” control 427C, "Video Mode” control 427D, "Pro Mode” control 427E, more mode control 427F, "large aperture mode” control 427H, etc.
  • the super-resolution reconstruction control 428 may be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image.
  • the captured image echo control 421 the shooting control 422 , the camera switching control 423 , the setting control, the zoom magnification control, and one or more shooting mode controls, reference may be made to the aforementioned embodiment shown in FIG. 3B , which is not repeated here. Repeat.
  • the electronic device 100 may receive an input operation (eg, a single click) of the user with respect to the super-score reconstruction control 428, and in response to the input operation, the electronic device 100 may turn on the image reconstruction function. After the image reconstruction function is enabled, the electronic device 100 may receive an input operation (eg, a single click) from the user on the shooting control 422 in the shooting preview interface 420, and in response to the input, the electronic device 100 may acquire a low-definition image captured by the camera (eg preview screen 424).
  • an input operation eg, a single click
  • the electronic device 100 may acquire a low-definition image captured by the camera (eg preview screen 424).
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image.
  • the electronic device 100 can save the high-definition image locally.
  • the above-mentioned super-score reconstruction control 428 may be referred to as a first control.
  • the input to the super-score reconstruction control 428 may be referred to as the second input.
  • the electronic device 100 can display category information 429 in the above-mentioned shooting interface 420, and the category information 429 can be used to indicate the category of the specified target content in the low-definition image, for example.
  • the category information 429 can be the text of "Ferris wheel”.
  • the user when the user uses the electronic device 100 to take pictures, the user can take pictures in different photographing modes in the electronic device 100 .
  • the user feels that the resolution of the preview image displayed in the shooting preview interface is low, the user can select the "super-resolution reconstruction mode" in the camera application to shoot.
  • the electronic device 100 receives a user's photographing operation, the electronic device 100 obtains a low-definition image captured by the camera.
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
  • the electronic device 100 may receive an input operation (such as a click) that the user acts on the camera application icon 313 in the interface 310 shown in FIG. 3A , and in response to the input operation, the electronic device 100 may display the image shown in FIG. Shooting preview interface 520 .
  • an input operation such as a click
  • the shooting preview interface 520 may include a captured image echo control 521 , a shooting control 522 , a camera conversion control 523 , a camera-captured preview screen 524 , a setting control, a zoom ratio control, one or more Capture mode controls (eg, "Night Mode” control 527A, "Portrait Mode” control 527B, “Normal Photo Mode” control 527C, "Super Reconstruction Mode” control 527G, "Video Mode” control 527D, "Pro Mode” control 527E , More Mode Controls 527F, etc.).
  • the “super-resolution reconstruction mode” control 527G can be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image.
  • the shooting control 522 For the text description of the captured image echo control 521 , the shooting control 522 , the camera switching control 523 , the setting control, the zoom magnification control, and one or more shooting mode controls, reference may be made to the aforementioned embodiment shown in FIG. 3B , which is not repeated here. Repeat. As shown in FIG. 5A , the shooting mode currently selected by the user is the "normal shooting mode".
  • the electronic device 100 may receive an input operation (eg, a single click) that the user acts on the “super-resolution reconstruction mode” control 527G, and in response to the input operation, as shown in FIG. 5B , the electronic device 100 may adjust the currently selected shooting mode to “ Hyperdivision Reconstruction Mode".
  • an input operation eg, a single click
  • the electronic device 100 may adjust the currently selected shooting mode to “ Hyperdivision Reconstruction Mode”.
  • the above-mentioned "super-resolution reconstruction mode" control 527G may be referred to as a first control.
  • the input to the "super-resolution reconstruction mode” control 527G may be referred to as the second input.
  • the electronic device 100 may receive an input operation (eg, click) by the user on the shooting control 522 in the shooting preview interface 520, and in response to the input, the electronic device 100 may acquire a low-definition image (eg, a preview image 524 ) captured by the camera.
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image.
  • the electronic device 100 can save the high-definition image locally.
  • the electronic device 100 can display category information 529 in the above-mentioned shooting interface 520, and the category information 529 can be used to indicate the category of the specified target content in the low-definition image, for example , the category information 529 can be the text of "Ferris wheel".
  • the electronic device 100 may store many pictures locally, and these pictures may be captured by the electronic device 100, or sent from other devices, or downloaded from the network. Among them, some of the pictures have low resolution due to the limitation of the capabilities of the shooting equipment.
  • the electronic device 100 may acquire the low-definition image in the gallery in response to the user's input.
  • the electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features.
  • the electronic device 100 can fuse the high-definition texture feature into a low-definition image, obtain a high-definition image, and store it in a gallery. In this way, the imaging quality of the specified target content can be improved.
  • the electronic device 100 may receive an input operation (eg, click) that the user acts on the gallery application icon 312 in the interface 310 , and in response to the input operation, the electronic device 100 may display as shown in FIG. 6B . 610 of the gallery application interface.
  • an input operation eg, click
  • the gallery application interface 610 can display thumbnail images including one or more pictures.
  • the electronic device 100 may mark the one or more pictures that include the specified target content and have not undergone super-score reconstruction processing.
  • the electronic device 100 may display a mark 612 on the thumbnail 611, where the mark 612 may be used to prompt the user that the picture corresponding to the thumbnail 611 is waiting for the super-score reconstruction process.
  • the electronic device 100 may mark the original picture that has undergone the super-resolution reconstruction process and the high-definition picture after the super-resolution reconstruction process in the one or more pictures.
  • the electronic device 100 may receive an input operation (eg, single click) of the user acting on the thumbnail 611, and in response to the input operation, the electronic device 100 may display a picture browsing interface 620 as shown in FIG. 6C.
  • an input operation eg, single click
  • the picture browsing interface 620 may display a picture 621 including the corresponding thumbnail 611 , a super-score reconstruction control 624 , picture-related information 622 , a menu 623 , and the like.
  • the picture-related information 622 may include one or more of the shooting time of the picture 621, shooting weather, geographic location information, and the like. For example, the shooting time can be "8:00AM on December 1, 2019", the shooting weather can be “cloudy”, the shooting location can be "Shanghai ⁇ The Bund", and so on.
  • the menu 623 may include a share button, a favorite button, an edit button, a delete button, and more buttons.
  • the super-resolution reconstruction control 624 can be used to trigger the electronic device 100 to perform super-resolution reconstruction processing on the picture 621 .
  • the specific process of performing the super-score reconstruction processing on the picture 621 may refer to the subsequent embodiments, which will not be repeated here.
  • the electronic device 100 may receive an input operation (eg, click) of the user for the super-score reconstruction control 624, and in response to the input operation, the electronic device 100 may identify and extract the image features of the specified target content in the picture 621, and based on the cloud
  • the high-definition texture dictionary library of the same category as the specified target content on the server matches high-definition texture features similar to the image features of the specified target content.
  • the electronic device 100 may fuse the high-definition texture feature into the picture 621 to obtain a high-definition picture 631 , and the resolution of the high-definition picture 631 is higher than that of the picture 621 .
  • the above-mentioned super-score reconstruction control 624 may be referred to as a second control.
  • the electronic device 100 may display a picture browsing interface 630 .
  • the picture browsing interface 630 may include a high-definition picture 631, picture-related information 632, a menu 633, an effect comparison control 635, a mark 634, a save control 636, and the like.
  • the picture-related information 632 may include one or more of the shooting time of the high-definition picture 631, shooting weather, geographic location information, and the like. For example, the shooting time can be "8:00AM on December 1, 2019", the shooting weather can be “cloudy”, the shooting location can be "Shanghai ⁇ The Bund", and so on.
  • the menu 633 may include one or more of a share button, a favorite button, an edit button, a delete button, a more button, and the like.
  • the effect comparison control 634 can be used to trigger the electronic device 100 to display the above-mentioned picture 621 at the position of the high-definition picture 631 .
  • the mark 634 may be used to prompt the user that the high-definition picture 631 is a high-definition image processed by super-resolution reconstruction.
  • the save control 636 can be used to trigger the electronic device 100 to save the high-definition picture 634 to the gallery.
  • the electronic device 100 may receive the user's input operation (eg, click) on the effect comparison control 635, and in response to the input operation, as shown in FIG. 6E, the electronic device 100 may display the above-mentioned picture browsing interface 620, which includes There is picture 621 above.
  • the electronic device 100 may receive the user's input operation (eg, click) on the effect comparison control 635 again, and in response to the input operation, the electronic device 100 may display the picture browsing interface 630 shown in FIG. 6D .
  • FIG. 7 exemplarily shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application.
  • the method may include the following steps:
  • the cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
  • the photographing target categories may include human faces, buildings, animal cats, animal dogs, animal birds, and the like.
  • the shooting object category may include multiple sub-categories. For example, for a face photographing target, sub-categories of skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subcategories of perspective, season, lighting environment, etc. can be included.
  • the cloud server 200 can use different feature extraction networks to extract high-definition texture features in high-quality images. For example, to extract facial features in high-quality images, factors such as age, skin color, facial features, and gender need to be taken into account.
  • the cloud server 200 can use a face recognition model as a feature extractor; if extracting plant features, it is necessary to consider the color, shape, texture and other characteristics of plants, and a plant classification network can be used as a feature extractor.
  • the cloud server 200 extracts the texture features of the shooting target in the high-quality image, and establishes a plurality of high-definition texture dictionary libraries of different shooting target categories.
  • the cloud server 200 can extract high-definition texture features of the shooting target category from a plurality of high-quality images under the shooting target category through the feature extractor corresponding to the shooting target category.
  • the cloud server 200 can perform clustering processing on the high-definition texture features under the shooting target category to obtain the most representative high-definition texture features.
  • the cloud server 200 may store the most representative high-definition texture features under the same shooting target category in the corresponding high-definition texture dictionary library under the shooting target category.
  • the cloud server 200 may perform the following operations for each high-quality face image: the cloud server 200 may extract a high-quality face image. Features at different scales. Then, the cloud server 200 can detect the landmark points of the face in the high-quality image of the face, and crop and resample the left eye, right eye, nose, mouth and other facial features at each scale, so that these The features of the facial features reach a fixed size. Then, the cloud server 200 may generate K clusters for each facial feature through the K-means algorithm, and obtain high-definition texture features of each facial feature. The cloud server 200 can extract and store the high-definition texture features of each facial feature into the high-definition texture dictionary library corresponding to the face category.
  • the multiple high-definition texture dictionary libraries of different shooting target categories established on the cloud server 200 can be as shown in Table 1 below:
  • the cloud server 200 may establish a high-definition texture dictionary library 1, a high-definition texture dictionary library 2, a high-definition texture dictionary library 3, a high-definition texture dictionary library 4, and so on.
  • the shooting target category of HD texture dictionary library 1 is human face
  • the shooting target category of HD texture dictionary library 2 is buildings
  • the shooting target category of HD texture dictionary library 3 is green plants
  • the shooting target category of HD texture dictionary library 4 is animals eagle.
  • Table 1 is only used to exemplify the present application, and should not be construed as a limitation.
  • the category of objects may include multiple sub-categories.
  • one or more sub-categories of skin color, age group, gender, race, etc. may be included.
  • subcategories of perspective, season, lighting environment, etc. can be included.
  • Table 2 the multiple high-definition texture dictionary libraries of different shooting target categories established on the cloud server 200 can be shown in Table 2 below:
  • the cloud server 200 can establish a high-definition texture dictionary library 1, a high-definition texture dictionary library 2, a high-definition texture dictionary library 3, a high-definition texture dictionary library 4, a high-definition texture dictionary library 5, and a high-definition texture dictionary library.
  • a high-definition texture dictionary library 2 a high-definition texture dictionary library 2, a high-definition texture dictionary library 3, a high-definition texture dictionary library 4, a high-definition texture dictionary library 5, and a high-definition texture dictionary library.
  • the shooting target category of the high-definition texture dictionary library 1 is a young male face with yellow skin.
  • the shooting target category of HD Texture Dictionary Library 2 is the face of a young woman with yellow skin.
  • the target category of HD Texture Dictionary Library 3 is a middle-aged male face with yellow skin.
  • the target category of HD Texture Dictionary Library 4 is a middle-aged female face with yellow skin.
  • the shooting target category of HD Texture Dictionary Library 5 is the face of an elderly male with yellow skin.
  • the shooting target category of HD Texture Dictionary Library 6 is the face of an elderly woman with yellow skin.
  • the shooting target category of HD Texture Dictionary Library 7 is the face of a young male with black skin.
  • the shooting target category of HD Texture Dictionary Library 8 is the face of a young woman with black skin.
  • the shooting target category of HD Texture Dictionary Library 9 is a middle-aged male face with black skin.
  • the target category of HD Texture Dictionary Library 10 is middle-aged female faces with dark skin.
  • the shooting target category of HD Texture Dictionary Library 11 is the face of an elderly male with black skin.
  • the shooting target category of HD Texture Dictionary Library 12 is the face of an elderly woman with black skin.
  • the shooting target category of HD Texture Dictionary Library 13 is the face of a young male with white skin.
  • the shooting target category of HD Texture Dictionary Library 14 is the face of a young woman with white skin.
  • the target category of HD Texture Dictionary Library 15 is a middle-aged male face with white skin.
  • the shooting target category of HD Texture Dictionary Library 16 is the face of a middle-aged woman with white skin.
  • the shooting target category of HD Texture Dictionary Library 17 is the face of an elderly male with white skin.
  • the shooting target category of HD Texture Dictionary Library 18 is the face of an elderly woman with white skin.
  • Table 2 is only used to exemplify the present application, and should not be construed as a limitation.
  • the electronic device 100 receives the first input.
  • the electronic device 100 acquires a low-definition image in response to the first input.
  • the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B .
  • the electronic device 100 may acquire a low-definition image captured by the camera.
  • the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C.
  • the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
  • the electronic device 100 determines whether the low-definition image includes the specified target content.
  • identification algorithm models corresponding to different shooting target categories are preset on the electronic device 100 .
  • the electronic device 100 can detect whether the specified target content is included in the low-definition image through the recognition algorithm models corresponding to these different shooting target categories.
  • the category of the specified target content may include any one of image contents such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
  • the type of the specified target content may include multiple sub-types.
  • subtypes such as skin color, age group, gender, race, etc. may be included.
  • subtypes of perspective, season, lighting environment, etc. can be included.
  • the set of shooting target categories that can be identified by the multiple recognition algorithm models preset on the electronic device 100 is the same as the set of categories of the high-definition texture dictionary stored on the cloud server 200.
  • the set of photographing target categories that can be identified by the multiple identification algorithm models on the electronic device 100 may include human faces, buildings, and the like.
  • the set of shooting target categories of the high-definition texture dictionary library stored on the cloud server 200 may also include human faces, buildings, and the like.
  • the cloud server 200 may send the target recognition to the electronic device 100 Model update information.
  • the electronic device 100 may update the target recognition algorithm model according to the update information.
  • the set of photographing target categories that can be identified is the same as the set of categories of the high-definition texture dictionary stored on the cloud server 200 .
  • a plurality of recognition algorithm models on the electronic device 100 can recognize the category of the shooting target.
  • the multiple high-definition texture dictionary libraries on the cloud server 200 also have multiple sub-categories under the category of each shooting target.
  • the set of photographing target categories that can be identified by the multiple identification algorithm models of the electronic device 100 may include human faces, buildings, and the like.
  • the categories of the multiple high-definition texture dictionary libraries stored on the cloud server 200 may include human faces, buildings, and the like.
  • the face category may further include a yellow-skinned human face, a dark-skinned human face, a white-skinned human face, and the like.
  • the cloud server 200 can first filter out the high-definition texture dictionary library corresponding to the face of the yellow-skinned race, the high-definition texture dictionary library corresponding to the face of the dark-skinned race, A high-definition texture dictionary library corresponding to a white-skinned human face. Then, the cloud server 200 can identify the race and skin color in the image features uploaded by the electronic device 100, and based on the race skin color, determine the same race as the image features from multiple high-definition texture dictionary libraries under the category of human faces. A library of HD texture dictionaries for skin tones.
  • the specified target content in the low-definition image may be referred to as the first specified target content.
  • the electronic device 100 may execute S706, and the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category and the first region where the specified target content is located.
  • the electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
  • the low-definition image may be as shown in FIG. 8A .
  • the electronic device 100 generates a binary mask image of the low-definition image after identifying the first area where the specified target content (eg, eagle) of the low-definition image is located.
  • the specified target content eg, eagle
  • the first area where the specified target content is located in the low-definition image may be displayed as white, and other locations may be displayed as black.
  • the electronic device 100 may determine the coordinates of the cropping frame in the low-definition image based on the binary mask image, where the position of the cropping frame includes the first region.
  • the position of the cropping frame in the low-definition image can be as shown in FIG. 8C .
  • the electronic device 100 may, based on the cropping frame, crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
  • the first low-definition cropped image may be as shown in FIG. 8D .
  • the electronic device 100 may extract the first image feature of the low-definition cropped image.
  • the first image feature may include a feature vector or a feature map of information such as contour information, color information, and texture information of the specified target content in the low-definition cropped image.
  • the electronic device 100 may send the first image feature and the first category of the first low-definition cropped image to the cloud server 200 .
  • the cloud server 200 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
  • the cloud server 200 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
  • the first high-definition texture feature may include a feature vector or a feature map of information such as high-definition outline information, high-definition color information, and high-definition texture information corresponding to the specified target content.
  • the cloud server 200 may match a first high-definition texture feature whose content similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library.
  • the cloud server 200 may send the first high-definition texture feature to the electronic device 100 .
  • the electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
  • the electronic device 100 replaces the first high-definition cropped image with the first low-definition cropped image, and pastes it back to the first area in the low-definition image to obtain a high-definition image.
  • the first high-definition cropped image may be as shown in FIG. 8E .
  • the resolution of the first high-definition cropped image is greater than the resolution of the first low-definition cropped image.
  • the high-definition image may be as shown in Figure 8F.
  • the first may refer to the region where the human face is located in the low-definition image.
  • the electronic device 100 can extract face key points from the low-definition image.
  • the electronic device 100 may acquire facial feature information and hair information, etc. in the low-definition image based on the key points of the face.
  • the electronic device 100 can generate a binary mask image of the low-definition image based on the facial features information, wherein, in the binary mask image of the low-definition image, the display color of the location where the facial features are located can be set to white, and the display color of other locations can be set to white. Set to black.
  • the electronic device 100 can determine the coordinates of the face frame in the low-definition image based on the binary mask image.
  • the electronic device 100 can enlarge the area of the face frame on the low-definition image.
  • the electronic device 100 may, based on the enlarged face frame, crop out the image in the face frame to obtain the first low-definition cropped image.
  • the electronic device 100 extracts feature information of each facial feature position from the low-definition image based on the facial feature information.
  • the electronic device 100 may send the feature information of each facial feature location and the face category to the cloud server 200 .
  • the cloud server 200 can match the high-definition texture dictionary library corresponding to the face category.
  • the cloud server 200 may match the high-definition texture features corresponding to the feature information of each facial feature based on the high-definition texture dictionary library corresponding to the face category.
  • the cloud server 200 may send the high-definition texture features of each facial feature to the electronic device 100 .
  • the electronic device 100 may fuse the corresponding high-definition texture features of each facial feature into the first low-definition cropped image to obtain the first high-definition cropped image.
  • the electronic device 100 may base the first high-definition cropped image on the binary mask image of facial feature information, and paste the first high-definition cropped image back to the face region in the low-definition image to obtain a high-definition image.
  • the electronic device 100 may save a high-definition image.
  • the electronic device 100 may also save the above-mentioned low-definition image while saving the high-definition image.
  • the electronic device 100 can also display the high-definition image while saving the high-definition image.
  • the electronic device 100 may perform super-resolution reconstruction on the low-definition image by using a general super-resolution processing strategy to obtain a high-definition image.
  • the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images.
  • the super-resolution network model includes the use of super-resolution reconstruction generative adversarial networks (super-resolution generative adversarial networks, SRGAN), enhanced super-resolution reconstruction generative adversarial networks (super-resolution generative adversarial networks, ESRGAN), broad Activation of wide activation for efficient and accurate image super-resolution (WDSR) networks, etc.
  • SRGAN super-resolution reconstruction generative adversarial networks
  • ESRGAN enhanced super-resolution reconstruction generative adversarial networks
  • WDSR image super-resolution
  • the electronic device 100 when the electronic device 100 can identify multiple specified target contents from the acquired low-definition image, the electronic device 100 can extract image features of the multiple specified target contents and the category of each specified target content respectively. .
  • the categories of the multiple specified target contents may all be the same, may be different, may be the same, or may be completely different.
  • the electronic device 100 may transmit the image feature of each specified target content and the category of each specified target content to the cloud server 200 .
  • the cloud server 200 can match the high-definition texture dictionary library corresponding to each category of the specified target content, and match the high-definition texture feature of each specified target content based on the corresponding high-definition texture dictionary library of each category of the specified target content.
  • the cloud server 200 can send the high-definition texture features of each specified target content to the electronic device 100, and the electronic device 100 can fuse the respective high-definition texture features of the multiple specified target contents into the respective high-definition texture features of the multiple specified target contents in the low-definition image. In the area, high-definition images are obtained. In this way, the electronic device 100 can synchronously perform super-resolution reconstruction processing on multiple designated targets in the low-definition image, thereby improving the super-resolution processing efficiency.
  • the electronic device 100 may identify and crop out the region where the specified target content is located from the low-definition image, to obtain the low-definition cropped image and the category of the specified target content.
  • the electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 .
  • the cloud server 200 may extract the first image feature from the low-definition cropped image.
  • a first high-definition texture feature whose type of the shooting target is the same as the category of the specified target content and whose content similarity with the first image feature is greater than a preset value is matched.
  • the cloud server 200 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
  • the cloud server 200 may send the first high-definition cropped image to the electronic device 100 .
  • the electronic device 100 may paste the first high-definition cropped image back to the first region in the low-definition image where the specified target content is located, to obtain a high-definition image.
  • the cloud server 200 may store multiple high-definition image libraries of different shooting target types, and the high-definition image library of each shooting target type includes multiple high-definition reference images under the shooting target type.
  • the electronic device 100 can identify and crop out the region where the specified target content is located from the low-definition image, and obtain the low-definition cropped image and the category of the specified target content.
  • the electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 .
  • the cloud server 200 can match a high-definition guide image with the same shooting target type as the specified target content category and with a content similarity greater than a preset value in the low-definition cropped image.
  • the cloud server 200 may send the high-definition guide image to the electronic device 100 .
  • the electronic device 100 may fuse the high-definition texture features in the high-definition guide image into the low-definition cropped image to obtain a high-definition cropped image.
  • the electronic device 100 can paste the high-definition cropped image back to the low-definition image where the specified target content is located to obtain a high-definition image.
  • the cloud server 200 may, based on the high-definition guide image, fuse high-definition texture features in the high-definition guide image into a low-definition cropped image to obtain a high-definition cropped image.
  • the cloud server 200 may send the high-definition cropped image to the electronic device 100 .
  • the electronic device 100 can paste the high-definition cropped image back to the low-definition image where the specified target content is located to obtain a high-definition image.
  • the electronic device 100 extracts the image features of the specified target content from the acquired low-definition image, and based on the high-definition texture dictionary of the same category as the specified target content on the cloud server library to match high-definition texture features similar to the image features of the specified target content.
  • the electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be performed specifically for a specific target, which simplifies the calculation amount on the electronic device 100 during the super-resolution reconstruction process.
  • FIG. 9 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 9, the method may include the following steps:
  • the cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
  • step S701 for specific content, reference may be made to step S701 in the foregoing embodiment shown in FIG. 7 .
  • the cloud server 200 can extract the texture features of the shooting target in the high-quality image, and establish a plurality of high-definition texture dictionary libraries of different shooting target categories.
  • step S702 for specific content, reference may be made to step S702 in the foregoing embodiment shown in FIG. 7 .
  • the electronic device 100 displays a shooting preview interface, where a shooting key and a first preview image are displayed on the shooting preview interface.
  • the shooting preview interface may be the shooting preview interface 320 shown in FIG. 3B, the shooting preview interface 420 shown in FIG. 4B, or the shooting preview interface 520 shown in FIG. 5B. .
  • the electronic device 100 determines whether the first preview image contains the specified target content.
  • the type of the specified target content may include any one of image content such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
  • the type of the specified target content may include multiple sub-types.
  • subtypes such as skin color, age group, gender, race, etc. may be included.
  • subtypes of perspective, season, lighting environment, etc. can be included.
  • the specified target content in the first preview image may be referred to as the second specified target content.
  • the electronic device 100 may determine that the category of the specified target content in the first preview image is the second category and the second region where the specified target content is located.
  • the electronic device 100 crops out the second region where the specified target content is located from the first preview image, and obtains a second low-definition cropped image.
  • the electronic device 100 may generate a binary mask image of the first preview image after identifying the second region where the specified target content of the first preview image is located.
  • the binary mask image of the first preview image can display the second area where the specified target content is located in the low-definition image as white, and display other locations as black.
  • the electronic device 100 may determine the coordinates of the cropping frame in the first preview image based on the binary mask image of the first preview image.
  • the position of the cropping frame in the first preview image includes the second area.
  • the electronic device 100 may, based on the cropping frame, crop out the second area where the specified target content is located from the first preview image to obtain a second low-definition cropped image.
  • the electronic device 100 extracts the second image feature of the second low-definition cropped image.
  • the electronic device 100 sends the second image feature and the second category to the cloud server 200 .
  • the cloud server 200 determines that the shooting target category is the second high-definition texture dictionary library of the second category.
  • the cloud server 200 matches a second high-definition texture feature similar to the second image feature from the second high-definition texture dictionary library.
  • the cloud server 200 may match a second high-definition texture feature whose content similarity with the second image feature is greater than a preset value from the second high-definition texture dictionary library.
  • the cloud server 200 sends the second high-definition texture feature to the electronic device 100 .
  • the electronic device 100 saves the second high-definition texture feature to the cache queue.
  • the cache queue may be a storage area in the running memory.
  • the electronic device 100 may save the second high-definition texture feature into a cache queue.
  • the electronic device 100 may also acquire a second preview image captured by the camera, and the electronic device 100 may determine whether the second preview image contains the specified target content, and if so, the electronic device 100 may determine the second preview image
  • the category of the specified target content in the image is the third category and the third area where the specified target content is located.
  • the electronic device 100 may crop out the third area where the specified target content is located from the second preview image to obtain a third low-definition cropped image.
  • the electronic device 100 may extract the third image feature of the third low-definition cropped image.
  • the electronic device 100 can determine whether the similarity between the third image feature and the second high-definition texture feature stored in the cache queue is greater than a preset value. In the third low-definition cropped image, a third high-definition cropped image is obtained.
  • the specified target content in the third preview image may be referred to as the third specified target content.
  • the electronic device 100 may send the third image feature and the third category to the cloud server 200 .
  • the cloud server 200 determines a third high-definition texture dictionary corresponding to the third category, and matches a third high-definition texture feature similar to the third image feature from the third high-definition texture dictionary.
  • the cloud server 200 may send the third high-definition texture feature to the electronic device 100 .
  • the electronic device 100 may fuse the third high-definition texture feature into the third low-definition cropped image to obtain a third high-definition cropped image.
  • the electronic device 100 may paste the third high-definition cropped image back to the third area in the second preview image to obtain a high-definition preview image.
  • the electronic device 100 may display a high-definition preview image on the shooting preview interface.
  • the resolution of the preview image during the shooting preview process of the electronic device 100 can be improved.
  • the electronic device 100 receives the first input, and acquires a low-definition image.
  • the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B .
  • the electronic device 100 may acquire a low-definition image captured by the camera.
  • the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C.
  • the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
  • the electronic device 100 determines whether the low-definition image contains the specified target content.
  • the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category and the first region where the specified target content is located.
  • the type of the specified target content may include any one of image content such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
  • the type of the specified target content may include multiple sub-types.
  • subtypes such as skin color, age group, gender, race, etc. may be included.
  • subtypes of perspective, season, lighting environment, etc. can be included.
  • the electronic device 100 crops out the first region where the specified target content is located from the low-definition image, and obtains a first low-definition cropped image.
  • step S707 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 may extract the first image feature of the first low-definition cropped image.
  • step S708 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 may determine whether the similarity between the first image feature and the high-definition texture feature in the cache queue is greater than a preset value.
  • the electronic device 100 may fuse the high-definition texture feature in the cache queue into the first low-definition cropped image to obtain the first low-definition cropped image. HD cropped images.
  • the electronic device 100 can determine whether the similarity between the first image feature and the second high-definition texture feature is greater than a preset value.
  • the second high-definition texture feature is fused into the first cropped image to obtain the first high-definition cropped image.
  • the second high-definition texture feature and the third high-definition texture feature are stored in the cache queue, and the electronic device 100 may calculate the similarity between the second high-definition texture feature and the second high-definition texture feature respectively for the first image feature. If the similarity between the first image feature and the second high-definition texture feature is greater than the preset value, and the similarity with the third high-definition texture feature is less than or equal to the preset value, the electronic device 100 may fuse the second high-definition texture feature into the first cropping image, get the first high-definition cropped image.
  • the electronic device 100 may fuse the third high-definition texture feature into the first cropping image, get the first high-definition cropped image.
  • the electronic device 100 may compare the first image feature and the second high-definition texture feature and the similarity between the first image feature and the third high-definition texture feature. When the similarity between the first image feature and the second high-definition texture feature is greater than the similarity between the first image feature and the third high-resolution texture feature, the electronic device 100 may fuse the second high-definition texture feature into the first cropped image to obtain the first image feature. One HD cropped image.
  • the electronic device 100 may fuse the third high-definition texture feature into the first cropped image to obtain First HD cropped image.
  • steps S920 to S924 are performed. in:
  • the electronic device 100 may send the first image feature and the first category to the cloud server 200 .
  • the first category, the second category and the third category may be the same or different.
  • the electronic device 100 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
  • step S710 shown in FIG. 7 , which will not be repeated here.
  • the cloud server 200 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
  • the cloud server 200 may match a first high-definition texture feature whose content similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library.
  • the cloud server 200 may send the first high-definition texture feature to the electronic device 100 .
  • the electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
  • the electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
  • step S714 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 can save the high-definition image.
  • step S715 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 may also save the above-mentioned low-definition image while saving the high-definition image.
  • the electronic device 100 can also display the high-definition image while saving the high-definition image.
  • the electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking a picture, to retrieve the high-definition texture dictionary of the same category as the specified target content from the cloud server library to match high-definition texture features similar to the image features of the specified target content.
  • the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image.
  • high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
  • FIG. 10 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 10, the method may include the following steps:
  • the cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
  • step S701 for specific content, reference may be made to step S701 in the foregoing embodiment shown in FIG. 7 .
  • the cloud server 200 may extract the texture features of the shooting target in the high-quality image, and establish a plurality of high-definition texture dictionary libraries of different shooting target categories.
  • step S702 for specific content, reference may be made to step S702 in the foregoing embodiment shown in FIG. 7 .
  • the cloud server 200 may send a dictionary library resource package to the electronic device 100, where the dictionary library resource package includes multiple high-definition texture dictionary libraries.
  • the electronic device receives the first input.
  • the electronic device 100 acquires a low-definition image in response to the first input.
  • the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B .
  • the electronic device 100 may acquire a low-definition image captured by the camera.
  • the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C.
  • the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
  • the electronic device 100 determines whether the low-definition image contains the specified target content.
  • step S1007 is executed, and the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category.
  • the electronic device 100 may determine whether the dictionary library resource package includes the first high-definition texture dictionary library of the first category.
  • the electronic device 100 may determine whether to download the first high-definition texture dictionary library according to the user's operation. If downloading is required, S1010 is executed, and the electronic device 100 sends the first category to the cloud server 200 .
  • the cloud server 200 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
  • the cloud server 200 may send the first high-definition texture dictionary library to the electronic device 100 .
  • the electronic device 100 can perform super-resolution reconstruction on the low-definition image by using a general super-resolution processing strategy to obtain a high-definition image .
  • the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images.
  • the super-resolution network model includes the use of super-resolution reconstruction generative adversarial network (SRGAN), enhanced super-resolution reconstruction generative adversarial network (ESRGAN), wide activation of efficient and accurate image super-resolution reconstruction (WDSR) network, and many more.
  • SRGAN super-resolution reconstruction generative adversarial network
  • ESRGAN enhanced super-resolution reconstruction generative adversarial network
  • WDSR wide activation of efficient and accurate image super-resolution reconstruction
  • the electronic device 100 may skip step S1009 and directly execute the above-mentioned step S1010.
  • the electronic device 100 may directly execute S1013.
  • the electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
  • step S707 for specific content, reference may be made to step S707 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may extract the first image feature of the first low-definition cropped image.
  • step S708 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
  • the electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
  • step S713 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
  • step S714 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 saves a high-definition image.
  • step S715 in the foregoing embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may identify and crop out the region where the specified target content is located from the low-definition image, to obtain the low-definition cropped image and the category of the specified target content.
  • the electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 .
  • the cloud server 200 may extract the first image feature from the low-definition cropped image.
  • a first high-definition texture feature whose type of the shooting target is the same as the category of the specified target content and whose content similarity with the first image feature is greater than a preset value is matched.
  • the cloud server 200 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
  • the cloud server 200 may send the first high-definition cropped image to the electronic device 100.
  • the electronic device 100 may paste the first high-definition cropped image back to the first region in the low-definition image where the specified target content is located, to obtain a high-definition image.
  • the electronic device 100 can download the offline dictionary library resource package from the cloud server 200 in advance.
  • the electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking the picture, from the high-definition texture dictionary library of the same category as the specified target content in the offline dictionary library resource package, and match the image of the specified target content.
  • Features similar HD texture features When taking a photo, the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image.
  • high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
  • FIG. 11 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 11, the method may include the following steps:
  • the electronic device 100 may store a plurality of high-definition texture dictionary libraries of different shooting target categories.
  • the electronic device 100 receives the first input.
  • the electronic device 100 acquires a low-definition image in response to the first input.
  • the electronic device 100 determines whether the low-definition image contains the specified target content.
  • the electronic device 100 determines, from a plurality of high-definition texture dictionary libraries of different shooting target categories, that the shooting target category is the first high-definition texture dictionary library of the first category.
  • the electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
  • step S707 for specific content, reference may be made to step S707 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may extract the first image feature of the first low-definition cropped image.
  • step S708 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 matches a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
  • step S711 of the aforementioned embodiment shown in FIG. 7 that the cloud server 200 matches the first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library, which will not be repeated here.
  • the electronic device 100 may fuse the first high-definition texture feature into the first cropped image to obtain a first high-definition cropped image.
  • step S713 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
  • step S714 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
  • the electronic device 100 may perform step S1112, and the electronic device 100 processes the low-definition image through a general super-resolution processing strategy to obtain a high-definition image.
  • the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images.
  • the super-resolution network model includes the use of super-resolution reconstruction generative adversarial network (SRGAN), enhanced super-resolution reconstruction generative adversarial network (ESRGAN), wide activation of efficient and accurate image super-resolution reconstruction (WDSR) network, and many more.
  • SRGAN super-resolution reconstruction generative adversarial network
  • ESRGAN enhanced super-resolution reconstruction generative adversarial network
  • WDSR wide activation of efficient and accurate image super-resolution reconstruction
  • the electronic device 100 saves a high-definition image.
  • step S715 in the foregoing embodiment shown in FIG. 7 , and details are not repeated here.
  • the electronic device 100 may store a plurality of high-definition texture dictionary libraries of different shooting target categories.
  • the electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking pictures to match the high-definition texture dictionary library of the same category as the specified target content from the high-definition texture dictionary libraries of multiple different shooting target categories.
  • High-definition texture features similar to the image features of the specified target content.
  • the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image.
  • high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
  • FIG. 12 shows a schematic structural diagram of an image reconstruction system 1200 provided in an embodiment of the present application.
  • the image reconstruction system 1200 may include the electronic device 100 and the cloud server 200 .
  • the electronic device 100 may include a camera 1211, an image signal processor (ISP) 1212, a digital signal processor (DSP) 1213, a target recognition module 1214, a feature extraction module 1215, a feature fusion module 1216, and image stitching Module 1217.
  • the target recognition module 1214, the feature extraction module 1215, the feature fusion module 1216 and the image stitching module 1217 may be a neural network computing processor (NPU) or a graphics processing unit (GPU).
  • the target recognition module 1214 , the feature extraction module 1215 , the feature fusion module 1216 and the image stitching module 1217 may also be software processing modules in the application processor 1215 .
  • the cloud server 200 may include a plurality of high-definition texture dictionary libraries of different shooting target types, a dictionary library matching module 1221, and a feature matching module 1222.
  • the camera 1211 can be used to capture optical signals when starting the camera application or function, convert the optical signals into electrical signals, and send them to the image signal processor 1212 .
  • the image signal processor 912 can be used to convert the electrical signal sent by the camera 1211 into a digital image signal and send the digital image signal to the digital signal processor 1213 .
  • the digital signal processor 1213 can be used to process the digital image signal into a preview image stream of a specified image format, and the specified image format can be Raw format, YUV format, RGB format, and so on.
  • the target identification module 1214 can be configured to obtain the captured low-definition image from the book signal processor 1213 based on the shooting instruction triggered by the user operation, and identify the specified target content of the first category.
  • the target identification module 1214 can also identify the first region where the specified target content is located in the low-definition image, and generate a binary mask image.
  • the target identification module 1214 can identify and crop out the first region in the low-definition image to obtain the first low-definition cropped image.
  • the feature extraction module 1215 may extract first image features from the first low-definition cropped image.
  • the electronic device 100 may send the first category identified by the target identification module 1214 to the cloud server 200 .
  • the electronic device 100 may send the first image feature (or the first low-definition cropped image) to the cloud server 200 . in:
  • the dictionary library matching module 1221 can select the first high-definition texture dictionary library of the first category from a plurality of high-definition texture dictionary libraries of different shooting target categories and send it to the feature matching module 1222.
  • the feature matching module 1222 may be configured to match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library. Optionally, after identifying the first high-definition texture features with similar first image features, the feature matching module 1222 may fuse the first high-definition texture features into the first low-definition cropped image to obtain the first high-definition cropped image.
  • the cloud server 200 may send the first high-definition texture feature (or the first high-definition cropped image) to the electronic device 100 . in:
  • the feature fusion module 1216 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain the first high-definition cropped image.
  • the image stitching module 1217 can use the binary mask image to obtain the first area in the low-definition image where the specified target content is located, and paste the first high-definition cropped image back to the first area in the low-definition image to obtain a high-definition image.

Abstract

Disclosed is an image reconstruction method. An electronic device can extract image features of specified target content from a photographed low-definition image, and can match, on the basis of a high-definition texture dictionary library on a cloud server that is of the same category as the specified target content, high-definition texture features similar to the image features of the specified target content. The electronic device can fuse the high-definition texture features with the low-definition image to obtain a high-definition image. In this way, super-resolution reconstruction can be performed on a specific target in a targeted manner, and the computational burden on an electronic device during a super-resolution reconstruction process is simplified.

Description

一种图像重建方法、相关装置及系统An image reconstruction method, related device and system
本申请要求于2020年12月31日提交中国专利局、申请号为202011639566.0、申请名称为“一种图像重建方法、相关装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 31, 2020 with the application number 202011639566.0 and titled "An Image Reconstruction Method, Related Apparatus and System", the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及计算机视觉领域,尤其涉及一种图像重建的方法、相关装置及系统。The present application relates to the field of computer vision, and in particular, to an image reconstruction method, related apparatus and system.
背景技术Background technique
智能手机发展至今,拍照已然成为其最为重要的特性之一。无论是基础成像器件还是成像算法,均产生了极大的发展和变化,一次又一次地推动了手机拍照的变革,提升用户拍照体验。然而,在这一次又一次的变革背后,器件的成本也越来越高,成像质量也越来越趋近瓶颈。远距离景物的拍摄是手机摄影的重要组成部分,远摄质量的好坏严重影响用户对手机拍照水平的评价。Since the development of smartphones, taking pictures has become one of its most important features. Both the basic imaging device and the imaging algorithm have undergone great development and changes, which have promoted the transformation of mobile phone photography again and again, and improved the user's photography experience. However, behind the changes again and again, the cost of the device is getting higher and higher, and the imaging quality is getting closer and closer to the bottleneck. The shooting of long-distance scenes is an important part of mobile phone photography, and the quality of the telephoto seriously affects the user's evaluation of the level of mobile phone photography.
为了获得更高质量的远摄质量,现阶段手机等电子设备上多采用光学变焦和数字变焦相结合的手段,来提升远摄成像质量。对于数字变焦阶段,电子设备上通常采用基于深度学习的图像重建方法。例如,采用大量不同拍摄场景的低清图像样本和高清图像样本来训练一个大型卷积神经网路(convolutional neural networks,CNN),该CNN模型可以用来对任意类别的输入图像进行超分重建处理。为了保证超分重建的效果,该CNN模型需要兼顾众多场景,但该CNN模型一般都较大,手机等电子设备上运行该CNN模型时可能存在性能不足的风险,难以在拍照后快速超分重建出高质量图片。In order to obtain higher quality telephoto quality, at this stage, electronic devices such as mobile phones mostly use a combination of optical zoom and digital zoom to improve the quality of telephoto imaging. For the digital zoom stage, deep learning-based image reconstruction methods are usually used on electronic devices. For example, a large convolutional neural network (CNN) is trained with a large number of low-definition image samples and high-definition image samples of different shooting scenes. The CNN model can be used to super-reconstruct the input image of any category. . In order to ensure the effect of super-resolution reconstruction, the CNN model needs to take into account many scenarios, but the CNN model is generally large, and there may be a risk of insufficient performance when running the CNN model on electronic devices such as mobile phones, making it difficult to quickly super-resolution reconstruction after taking pictures Produce high-quality pictures.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种图像重建的方法、相关装置及系统,实现了从拍摄到的照片中识别并裁剪出特定的目标内容,然后将裁剪后的图像进行超分重建处理,得到高清图像,提升拍摄到照片中特定目标的成像质量。The present application provides an image reconstruction method, related device and system, which realizes identifying and cropping out specific target content from a photographed photo, and then performing super-resolution reconstruction processing on the cropped image to obtain a high-definition image. The quality of the image captured to a specific target in the photo.
第一方面,本申请提供了一种图像重建方法,包括:电子设备接收第一输入;该电子设备响应于该第一输入,获取该摄像头采集的低清图像;该电子设备检测出该低清图像中包括第一指定目标内容,该第一指定目标内容的类别为第一类别;该电子设备提取出该低清图像中该第一指定目标内容的第一图像特征;该电子设备将该第一图像特征和该第一类别发送给云服务器;其中,该第一图像特征用于该云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第一类别的第一高清纹理字典库;该第一图像特征用于该云服务器从该第一高清纹理字典库中匹配出与该第一图像特征的相似度大于预设值的第一高清纹理特征;该电子设备接收该云服务器发送的该第一高清纹理特征;该电子设备将该第一高清纹理特征融合至该低清图像中,得到高清图像,该高清图像中该第一指定目标内容的分辨率大于该低清图像中该第一指定目标内容的分辨率。In a first aspect, the present application provides an image reconstruction method, comprising: an electronic device receiving a first input; the electronic device, in response to the first input, acquiring a low-definition image captured by the camera; the electronic device detecting the low-definition image The image includes the first specified target content, and the category of the first specified target content is the first category; the electronic device extracts the first image feature of the first specified target content in the low-definition image; the electronic device An image feature and the first category are sent to the cloud server; wherein, the first image feature is used by the cloud server to match the shooting target category of the first category from the high-definition texture dictionary library of multiple different shooting target categories stored in the cloud server. a first high-definition texture dictionary library; the first image feature is used by the cloud server to match a first high-definition texture feature whose similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library; the electronic The device receives the first high-definition texture feature sent by the cloud server; the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, and the resolution of the first specified target content in the high-definition image is greater than The resolution of the first specified target content in the low-definition image.
通过本申请提供的一种图像重建方法,电子设备可以从拍摄到的低清图像中提取出指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹 配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以针对性的针对特定目标进行超分重建,简化了超分重建过程中电子设备上的运算量。With the image reconstruction method provided by the present application, the electronic device can extract the image features of the specified target content from the captured low-definition image, and match the image features of the specified target content based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server. High-definition texture features similar to the image features of the specified target content are obtained. The electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be carried out for a specific target, which simplifies the calculation amount on the electronic device in the super-resolution reconstruction process.
在一种可能的实现方式中,该电子设备提取出该低清图像中该第一指定目标内容的第一图像特征,具体包括:该电子设备识别并裁剪出该低清图像中该第一指定目标内容所在的第一区域,得到第一低清裁剪图像,该第一低清裁剪图像包括该第一指定目标内容;该电子设备提取出该第一低清裁剪图像的第一图像特征。In a possible implementation manner, the electronic device extracts the first image feature of the first specified target content in the low-definition image, which specifically includes: the electronic device recognizes and crops out the first specified target content in the low-definition image. A first low-definition cropped image is obtained in the first area where the target content is located, and the first low-definition cropped image includes the first designated target content; the electronic device extracts a first image feature of the first low-definition cropped image.
在一种可能的实现方式中,该电子设备将该第一高清纹理特融合至该低清图像中,得到高清图像,具体包括:该电子设备将该第一高清纹理特征融合至该第一低清裁剪图像中,得到第一高清裁剪图像;该电子设备将该第一高清裁剪图像替换该第一低清裁剪图像,回贴至该低清图像中的该第一区域,得到该高清图像。In a possible implementation manner, the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, which specifically includes: the electronic device fuses the first high-definition texture feature into the first low-definition image. In the clear cropped image, a first high-definition cropped image is obtained; the electronic device replaces the first high-definition cropped image with the first low-definition cropped image, and pastes it back to the first area in the low-definition image to obtain the high-definition image.
在一种可能的实现方式中,在该电子设备将该第一高清纹理特征融合至该低清图像中,得到高清图像之后,该方法还包括:该电子设备保存该高清图像。In a possible implementation manner, after the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, the method further includes: the electronic device saves the high-definition image.
在一种可能的实现方式中,在该电子设备接收第一输入之前,该方法还包括:该电子设备显示拍摄预览界面,该拍摄预览界面上显示有拍摄键和摄像头实时采集的预览图像流,该第一输入为针对该拍摄键的输入。In a possible implementation manner, before the electronic device receives the first input, the method further includes: the electronic device displays a shooting preview interface, and the shooting preview interface displays a preview image stream captured in real time by a shooting key and a camera, The first input is an input for the shooting key.
在一种可能的实现方式中,该拍摄预览界面上还显示有第一控件;在该电子设备接收第一输入之前,该方法还包括:该电子设备接收针对该第一控件的第二输入;响应于该第二输入,该电子设备开启超分重建模式。In a possible implementation manner, a first control is also displayed on the shooting preview interface; before the electronic device receives the first input, the method further includes: the electronic device receives a second input for the first control; In response to the second input, the electronic device initiates a super-resolution reconstruction mode.
在一种可能的实现方式中,在该电子设备接收第一输入之前,该方法还包括:该电子设备显示图片浏览界面,该图片浏览界面上显示有该低清图像和第二控件,该第一输入为针对该第二控件的输入。In a possible implementation manner, before the electronic device receives the first input, the method further includes: the electronic device displays a picture browsing interface, where the low-definition image and the second control are displayed on the picture browsing interface, the first An input is an input for the second control.
在一种可能的实现方式中,该预览图像流中包括第一预览图像;在该电子设备接收第一输入之前,该方法还包括:该电子设备检测出该第一预览图像中包括第二指定目标内容,该第二指定目标内容的类别为第二类别,该第二类别与该第一类别相同或不同;该电子设备提取出该第一预览图像中的第二图像特征;该电子设备将该第二图像特征和该第二类别发送给云服务器;其中,该第二图像特征用于该云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第二类别的第二高清纹理字典库;该第二图像特征用于该云服务器从该第二高清纹理字典库中匹配出与该第二图像特征的相似度大于预设值的第二高清纹理特征;该电子设备接收该云服务器发送的该第二高清纹理特征;该电子设备存储该第二高清纹理特征至缓存队列中。In a possible implementation manner, the preview image stream includes a first preview image; before the electronic device receives the first input, the method further includes: the electronic device detects that the first preview image includes a second specified image target content, the category of the second specified target content is a second category, and the second category is the same as or different from the first category; the electronic device extracts the second image feature in the first preview image; the electronic device extracts the second image feature from the first preview image; The second image feature and the second category are sent to the cloud server; wherein, the second image feature is used by the cloud server to match the shooting target category as the second shooting target category from the stored high-definition texture dictionary library of multiple different shooting target categories The second high-definition texture dictionary library of the category; the second image feature is used by the cloud server to match the second high-definition texture feature with the second image feature similarity greater than a preset value from the second high-definition texture dictionary library; The electronic device receives the second high-definition texture feature sent by the cloud server; the electronic device stores the second high-definition texture feature in a cache queue.
在一种可能的实现方式中,该电子设备提取出该第一预览图像中该第二指定目标内容的第二图像特征,具体包括:该电子设备识别并裁剪出该低清图像中该第二指定目标内容所在的第二区域,得到第二低清裁剪图像;该电子设备提取出该第二低清裁剪图像的第二图像特征。In a possible implementation manner, the electronic device extracts the second image feature of the second specified target content in the first preview image, which specifically includes: the electronic device recognizes and crops out the second image feature in the low-definition image. The second area where the target content is located is specified, and a second low-definition cropped image is obtained; the electronic device extracts a second image feature of the second low-definition cropped image.
在一种可能的实现方式中,在该电子设备检测出该第一预览图像中包括第二指定目标内容之后,该方法还包括:该电子设备在该拍摄预览界面上显示类别信息,该类别信息用于表示该预览图像流中该指定目标内容的类别为该第二类别。In a possible implementation manner, after the electronic device detects that the first preview image includes the second specified target content, the method further includes: the electronic device displays category information on the shooting preview interface, the category information The category used to represent the specified target content in the preview image stream is the second category.
在一种可能的实现方式中,该电子设备存储该第二高清纹理特征至缓存队列中之后,该方法还包括;该电子设备获取到摄像头采集到的第二预览图像;该电子设备该电子设备检测 出该第二预览图像中包括第三指定目标内容,该第三指定目标内容的类别为第三类别,该第三类别与该第二类别相同或不同;该电子设备识别并裁剪出该低清图像中该第三指定目标内容所在的第三区域,得到第三低清裁剪图像;该电子设备提取出该第三低清裁剪图像的第三图像特征;该电子设备判断该缓存队列中是否存储有与该第三图像特征的相似度大于预设值的高清纹理特征;若该缓存队列中存储有与该第三图像特征的相似度大于预设值的高清纹理特征,该电子设备利用该缓存队列中与该第三图像特征的相似度大于预设值的高清纹理特征融合至该第三低清裁剪图像中,得到第三高清裁剪图像;该电子设备将该第三高清裁剪图像替换该第三低清裁剪图像,回贴至该第二预览图像中的第三区域,得到高清预览图像;该电子设备在该拍摄预览界面上显示该高清预览图像。In a possible implementation manner, after the electronic device stores the second high-definition texture feature in a cache queue, the method further includes: acquiring, by the electronic device, a second preview image collected by a camera; the electronic device, the electronic device It is detected that the second preview image includes a third specified target content, the category of the third specified target content is a third category, and the third category is the same as or different from the second category; the electronic device identifies and cuts out the low Clear the third area where the third specified target content is located in the image, and obtain a third low-definition cropped image; the electronic device extracts a third image feature of the third low-definition cropped image; the electronic device determines whether the cache queue is in the A high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored; if a high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored in the cache queue, the electronic device uses the The high-definition texture feature whose similarity with the third image feature is greater than the preset value in the cache queue is fused into the third low-definition cropped image to obtain a third high-definition cropped image; the electronic device replaces the third high-definition cropped image with the third high-definition cropped image. The third low-definition cropped image is pasted back to the third area in the second preview image to obtain a high-definition preview image; the electronic device displays the high-definition preview image on the shooting preview interface.
在一种可能的实现方式中,若该缓存队列中未存储有与该第三图像特征的相似度大于预设值的高清纹理特征,该方法还包括:该电子设备将该第三图像特征和该第三类别发送给云服务器;其中,该第三图像特征用于该云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第三类别的第三高清纹理字典库;该第三图像特征用于该云服务器从该第三高清纹理字典库中匹配出与该第三图像特征的相似度大于预设值的第三高清纹理特征;该电子设备接收云服务器发送的该第三高清纹理特征;该电子设备将该第三高清纹理特征存储至该缓存队列中,并将该第三高清纹理特征融合至该第三低清裁剪图像中,得到该第三高清裁剪图像。In a possible implementation manner, if no high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored in the cache queue, the method further includes: the electronic device combines the third image feature with the third image feature. The third category is sent to the cloud server; wherein, the third image feature is used by the cloud server to match a third high-definition texture whose shooting target category is the third category from the stored high-definition texture dictionary library of multiple different shooting target categories dictionary library; the third image feature is used by the cloud server to match the third high-definition texture feature with the third image feature from the third high-definition texture dictionary library whose similarity is greater than a preset value; the electronic device receives the cloud server The third high-definition texture feature sent; the electronic device stores the third high-definition texture feature in the cache queue, and fuses the third high-definition texture feature into the third low-definition cropped image to obtain the third high-definition texture feature Crop the image.
在一种可能的实现方式中,在该电子设备将该第一图像特征和该第一类别发送给云服务器之前,该方法还包括:该电子设备判断该缓存队列中是否存储有与该第一图像特征的相似度大于预设值的高清纹理特征;该电子设备将该第一图像特征和该第一类别发送给云服务器,具体包括:若该缓存队列中未存储有与该第一图像特征的相似度大于预设值的高清纹理特征,该电子设备将该第一图像特征和该第一类别发送给该云服务器。In a possible implementation manner, before the electronic device sends the first image feature and the first category to the cloud server, the method further includes: the electronic device determines whether the cache queue is stored with the first image feature and the first category. A high-definition texture feature whose similarity of image features is greater than a preset value; the electronic device sends the first image feature and the first category to the cloud server, which specifically includes: if the cache queue is not stored with the first image feature The high-definition texture feature whose similarity is greater than the preset value, the electronic device sends the first image feature and the first category to the cloud server.
在一种可能的实现方式中,若该缓存队列中存储有与该第一图像特征的相似度大于预设值的高清纹理特征,该方法还包括:该电子设备将该缓存队列中与该第一图像特征的相似度大于预设值的高清纹理特征融合至该低清图像中,得到该高清图像。In a possible implementation manner, if a high-definition texture feature whose similarity with the first image feature is greater than a preset value is stored in the cache queue, the method further includes: the electronic device associates the cache queue with the first image feature. A high-definition texture feature whose similarity of image features is greater than a preset value is fused into the low-definition image to obtain the high-definition image.
第二方面,本申请提供了一种电子设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述任一方面任一项可能的实现方式中的图像重建方法。In a second aspect, the present application provides an electronic device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform The image reconstruction method in any possible implementation manner of any one of the above aspects.
第三方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述任一方面任一项可能的实现方式中的图像重建方法。In a third aspect, an embodiment of the present application provides a computer storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to execute the image reconstruction method in any possible implementation manner of any one of the above aspects .
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述任一方面任一项可能的实现方式中的图像重建方法。In a fourth aspect, the embodiments of the present application provide a computer program product that, when the computer program product runs on a computer, enables the computer to execute the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
第五方面,本申请实施例提供了一种图像重建系统,包括电子设备和云服务器,该云服务器上存储有多个不同拍摄目标类别的高清纹理字典库;其中,该电子设备,用于接收第一输入;该电子设备,还用于响应于该第一输入,获取该摄像头采集的低清图像;该电子设备, 还用于检测出该低清图像中包括第一指定目标内容,该第一指定目标内容的类别为第一类别;该电子设备,还用于提取出该低清图像中该第一指定目标内容的第一图像特征;该电子设备,还用于将该第一图像特征和该第一类别发送给该云服务器;该云服务器,用于从存储的该多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第一类别的第一高清纹理字典库;该云服务器,还用于从该第一高清纹理字典库中匹配出与该第一图像特征的相似度大于预设值的第一高清纹理特征;该云服务器,还用于将该第一高清纹理特征发送给该电子设备;该电子设备,还用于将该第一高清纹理特征融合至该低清图像中,得到高清图像,其中,该高清图像中该第一指定目标内容的分辨率大于该低清图像中该第一指定目标内容的分辨率。In a fifth aspect, an embodiment of the present application provides an image reconstruction system, including an electronic device and a cloud server, where a plurality of high-definition texture dictionary libraries of different shooting target categories are stored on the cloud server; wherein, the electronic device is used for receiving a first input; the electronic device is further configured to acquire a low-definition image captured by the camera in response to the first input; the electronic device is further configured to detect that the low-definition image includes the first specified target content, and the first specified target content is included in the first input. A category of the specified target content is the first category; the electronic device is further configured to extract the first image feature of the first specified target content in the low-definition image; the electronic device is also configured to extract the first image feature of the first specified target content and the first category are sent to the cloud server; the cloud server is used to match the first high-definition texture dictionary library whose shooting target category is the first category from the stored high-definition texture dictionary libraries of the plurality of different shooting target categories; The cloud server is further configured to match, from the first high-definition texture dictionary library, a first high-definition texture feature whose similarity with the first image feature is greater than a preset value; the cloud server is further configured to match the first high-definition texture feature with the first image feature. The texture feature is sent to the electronic device; the electronic device is further configured to fuse the first high-definition texture feature into the low-definition image to obtain a high-definition image, wherein the resolution of the first specified target content in the high-definition image is greater than The resolution of the first specified target content in the low-definition image.
在一种可能的实现方式中,该云服务器,还用于获取多个高质量图像以及每个高质量图像的拍摄目标类别;该云服务器还用于提取出该高质量图像中拍摄目标类别的高清纹理特征,存入该高质量图像的拍摄目标类别对应的高清纹理字典库中。In a possible implementation manner, the cloud server is further configured to acquire a plurality of high-quality images and the shooting target category of each high-quality image; the cloud server is further configured to extract the shooting target category of the high-quality image. The high-definition texture features are stored in the high-definition texture dictionary library corresponding to the shooting target category of the high-quality image.
在一种可能的实现方式中,该电子设备,还用于将该电子设备上目标识别模型的识别类别集合发送给该云服务器;该云服务器,还用于在确定出该识别类别集合与该多个不同拍摄目标类别的高清纹理字典库的类别集合不同时,发送模型更新信息给该电子设备;该电子设备,还用于基于该模型更新信息,更新该电子设备上的目标识别模型;其中,在更新后,该电子设备上的目标识别模型的识别类别集合与该多个不同拍摄目标类别的高清纹理字典库的类别集合相同。In a possible implementation manner, the electronic device is further configured to send the identification category set of the target identification model on the electronic device to the cloud server; the cloud server is further configured to determine the relationship between the identification category set and the cloud server. When the category sets of the high-definition texture dictionary libraries of multiple different shooting target categories are different, send model update information to the electronic device; the electronic device is also used to update the target recognition model on the electronic device based on the model update information; wherein , after the update, the recognition category set of the target recognition model on the electronic device is the same as the category set of the high-definition texture dictionary libraries of the multiple different shooting target categories.
其中,电子设备还用于执行上述任一方面任一项可能的实现方式中的图像重建方法。Wherein, the electronic device is further configured to execute the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
第六方面,本申请实施例提供了一种芯片系统,包括:一个或多个处理器和一个或多个存储器;一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得图像重建系统执行上述任一方面任一项可能的实现方式中的图像重建方法。In a sixth aspect, an embodiment of the present application provides a chip system, including: one or more processors and one or more memories; the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, when When one or more processors execute the computer instructions, the image reconstruction system causes the image reconstruction method in any possible implementation manner of any one of the foregoing aspects.
其中,一个或多个处理器可以包括应用处理器、图像信号处理器、数字信号处理器、神经网络处理器、图形处理器中的一个或多个。The one or more processors may include one or more of an application processor, an image signal processor, a digital signal processor, a neural network processor, and a graphics processor.
附图说明Description of drawings
图1为本申请实施例提供的一种通信系统的结构示意图;FIG. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
图2A为本申请实施例提供的一种电子设备的硬件结构示意图;2A is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the application;
图2B为本申请实施例提供的一种电子设备的软件结构示意图;FIG. 2B is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application;
图2C为本申请实施例提供的一种云服务器的硬件结构示意图;FIG. 2C is a schematic diagram of a hardware structure of a cloud server according to an embodiment of the present application;
图3A-图3E为本申请实施例提供的一组界面示意图;3A-3E are schematic diagrams of a group of interfaces provided by an embodiment of the present application;
图4A-图4B为本申请实施例提供的另一组界面示意图;4A-4B are schematic diagrams of another set of interfaces provided by an embodiment of the present application;
图5A-图5B为本申请实施例提供的另一组界面示意图;5A-5B are schematic diagrams of another set of interfaces provided by an embodiment of the present application;
图6A-图6E为本申请实施例提供的另一组界面示意图;6A-6E are another set of interface schematic diagrams provided by the embodiments of the present application;
图7为本申请实施例提供的一种图像重建方法的流程示意图;7 is a schematic flowchart of an image reconstruction method provided by an embodiment of the present application;
图8A为本申请实施例提供的一种低清图像的示意图;8A is a schematic diagram of a low-definition image provided by an embodiment of the present application;
图8B为本申请实施例提供的一种指定目标内容掩码(mask)图像的示意图;8B is a schematic diagram of a specified target content mask image provided by an embodiment of the present application;
图8C为本申请实施例提供的一种低清图像中裁剪框的示意图;8C is a schematic diagram of a cropping frame in a low-definition image provided by an embodiment of the present application;
图8D为本申请实施例提供的一种第一低清裁剪图像的示意图;8D is a schematic diagram of a first low-definition cropped image provided by an embodiment of the present application;
图8E为本申请实施例提供的一种第一高清裁剪图像的示意图;8E is a schematic diagram of a first high-definition cropped image provided by an embodiment of the application;
图8F为本申请实施例提供的一种高清图像的示意图;8F is a schematic diagram of a high-definition image provided by an embodiment of the present application;
图9为本申请另一实施例提供的一种图像重建方法的流程示意图;9 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application;
图10为本申请另一实施例提供的一种图像重建方法的流程示意图;10 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application;
图11为本申请另一实施例提供的一种图像重建方法的流程示意图;11 is a schematic flowchart of an image reconstruction method provided by another embodiment of the present application;
图12为本申请实施例提供的一种图像重建系统的结构示意图。FIG. 12 is a schematic structural diagram of an image reconstruction system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise specified, “/” means or, for example, A/B can mean A or B; “and/or” in the text is only a description of an associated object The association relationship indicates that there can be three kinds of relationships, for example, A and/or B can indicate that A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more.
本申请实施例中提供了一种图像重建方法,电子设备可以从拍摄到的低清图像中提取出指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以针对性的针对特定目标进行超分重建,简化了超分重建过程中电子设备上的运算量。The embodiment of the present application provides an image reconstruction method. The electronic device can extract the image features of the specified target content from the captured low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server , and match high-definition texture features similar to the image features of the specified target content. The electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be carried out for a specific target, which simplifies the calculation amount on the electronic device in the super-resolution reconstruction process.
下面介绍本申请实施例涉及的一种通信系统10。The following introduces a communication system 10 involved in the embodiments of the present application.
请参照图1,图1示出了申请实施例涉及的一种通信系统10的架构示意图。该通信系统10可以包括终端100和云服务器200。其中,终端100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等。本申请实施例对该终端100的具体类型不作特殊限制。Please refer to FIG. 1. FIG. 1 shows a schematic structural diagram of a communication system 10 according to an embodiment of the application. The communication system 10 may include a terminal 100 and a cloud server 200 . The terminal 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant ( personal digital assistant, PDA), augmented reality (AR) \ virtual reality (virtual reality, VR) devices, etc. The specific type of the terminal 100 is not particularly limited in this embodiment of the present application.
终端100可以通过2G网络、3G网络、4G网络、5G网络、无线局域网(wireless local area network,WLAN)等连接上云服务器200。其中,终端100可以向云服务器200发送图像特征/图像数据、以及该图像特征/图像数据中指定目标内容的类别信息。云服务器200可以向终端100发送高清纹理特征等等。The terminal 100 can be connected to the cloud server 200 through a 2G network, a 3G network, a 4G network, a 5G network, a wireless local area network (wireless local area network, WLAN), and the like. The terminal 100 may send the image feature/image data and the category information of the specified target content in the image feature/image data to the cloud server 200 . The cloud server 200 may send high-definition texture features and the like to the terminal 100 .
云服务器200可以与多个终端100建立连接,可以独立处理多个终端100请求的处理任务。其中,云服务器200可以通过终端上用户登录的账户(例如,华为账户)对终端进行区分。The cloud server 200 can establish connections with multiple terminals 100, and can independently process processing tasks requested by the multiple terminals 100. Wherein, the cloud server 200 can distinguish the terminals by the account (for example, a Huawei account) logged in by the user on the terminal.
图2A示出了电子设备100的结构示意图。FIG. 2A shows a schematic structural diagram of the electronic device 100 .
下面以电子设备100为例对实施例进行具体说明。应该理解的是,图2A所示电子设备100仅是一个范例,并且电子设备100可以具有比图2A中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图2A中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The embodiment will be described in detail below by taking the electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG. 2A is merely an example, and the electronic device 100 may have more or fewer components than those shown in FIG. 2A, two or more components may be combined, or Different component configurations are possible. The various components shown in Figure 2A may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有 源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100 使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light to the outside through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。 SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
图2B是本发明实施例的电子设备100的软件结构框图。FIG. 2B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图2B所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Fig. 2B, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2B所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2B, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 is exemplarily described in conjunction with the capturing and photographing scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer. The application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 193 captures still images or video.
下面介绍本申请实施例涉及的云服务器200的结构示意图。The following introduces a schematic structural diagram of the cloud server 200 involved in the embodiments of the present application.
图2C是本申请实施例提供的一种云服务器200的结构示意图。FIG. 2C is a schematic structural diagram of a cloud server 200 provided by an embodiment of the present application.
如图2C所示,该云服务器200包括一个或多个处理器201、通信接口202、存储器203,处理器201、通信接口202、存储器203可通过总线或者其它方式连接,本申请实施例以通过总线204连接为例。其中:As shown in FIG. 2C, the cloud server 200 includes one or more processors 201, a communication interface 202, and a memory 203. The processor 201, the communication interface 202, and the memory 203 may be connected through a bus or other means. The bus 204 is connected as an example. in:
处理器201可以由一个或者多个通用处理器构成,例如CPU。处理器201可用于运行设备控制方法的相关的程序代码。The processor 201 may be constituted by one or more general-purpose processors, such as a CPU. The processor 201 may be used to execute relevant program codes of the device control method.
通信接口202可以为有线接口(例如以太网接口)或无线接口(例如蜂窝网络接口或使用无线局域网接口),用于与其他节点进行通信。本申请实施例中,通信接口202具体可用于与电子设备100进行通信。 Communication interface 202 may be a wired interface (eg, an Ethernet interface) or a wireless interface (eg, a cellular network interface or using a wireless local area network interface) for communicating with other nodes. In this embodiment of the present application, the communication interface 202 may specifically be used to communicate with the electronic device 100 .
存储器203可以包括易失性存储器(volatile memory),例如RAM;存储器也可以包括非易失性存储器(non-vlatile memory),例如ROM、快闪存储器(flash memory)、HDD或固态硬盘SSD;存储器203A还可以包括上述种类的存储器的组合。存储器203可用于存储一组程序代码,以便于处理器201调用存储器203中存储的程序代码以实现本申请实施例的在服务器的实现方法。The memory 203 may include volatile memory, such as RAM; the memory may also include non-volatile memory, such as ROM, flash memory, HDD or solid-state drive SSD; memory 203A may also include a combination of the types of memories described above. The memory 203 may be used to store a set of program codes, so that the processor 201 can call the program codes stored in the memory 203 to implement the implementation method on the server of the embodiments of the present application.
需要说明的,图2C所示的服务器仅仅是本申请实施例的一种实现方式,实际应用中,服务器还可以包括更多或更少的部件,这里不作限制。It should be noted that the server shown in FIG. 2C is only an implementation manner of the embodiment of the present application. In practical applications, the server may further include more or less components, which is not limited here.
下面结合应用场景,介绍本申请实施例提供的一种图像重建方法。The following describes an image reconstruction method provided by an embodiment of the present application in combination with an application scenario.
在一些应用场景中,用户在使用电子设备100拍照时,可以打开相机应用进行拍照。当电子设备100接收用户的拍照操作,电子设备100获取到摄像头拍摄到的低清图像,识别并提取出低清图像中指定目标内容的图像特征(例如摩天轮建筑),并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以提高指定目标内容的成像质量。In some application scenarios, when the user uses the electronic device 100 to take a picture, the user can open the camera application to take a picture. When the electronic device 100 receives the user's photographing operation, the electronic device 100 obtains the low-definition image captured by the camera, identifies and extracts the image features of the specified target content in the low-definition image (for example, the Ferris wheel building), and based on the The high-definition texture dictionary library of the same category of the specified target content matches high-definition texture features similar to the image features of the specified target content. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
示例性的,如图3A所示,电子设备100可以显示有主屏幕的界面310,该界面310中显示了一个放置有应用图标的页面,该页面包括多个应用图标(例如,天气应用图标、股票应用图标、计算器应用图标、设置应用图标、邮件应用图标、支付宝应用图标、脸书应用图标、浏览器应用图标、图库应用图标312、音乐应用图标、视频应用图标、微信应用图标等等)。多个应用图标下方还显示包括有页面指示符,以表明当前显示的页面与其他页面的位置关系。页面指示符的下方有多个托盘图标(例如拨号应用图标、信息应用图标、联系人应用图标、相机应用图标313),托盘图标在页面切换时保持显示。在一些实施例中,上述页面也可以包括多个应用图标和页面指示符,页面指示符可以不是页面的一部分,单独存在,上述图片图标也是可选的,本申请实施例对此不作限制。在该界面310的上方部分区域显示有状态栏311,该状态栏311可以包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符,电池状态指示符,时间指示符,Wi-Fi信号指示符等等。Exemplarily, as shown in FIG. 3A , the electronic device 100 may display an interface 310 with a home screen, the interface 310 displays a page on which application icons are placed, and the page includes a plurality of application icons (eg, weather application icons, Stock application icon, calculator application icon, settings application icon, mail application icon, Alipay application icon, Facebook application icon, browser application icon, gallery application icon 312, music application icon, video application icon, WeChat application icon, etc.) . A page indicator is also displayed below the multiple application icons to indicate the positional relationship between the currently displayed page and other pages. Below the page indicator are a plurality of tray icons (eg, a dialing application icon, an information application icon, a contact application icon, and a camera application icon 313 ), and the tray icons remain displayed when switching pages. In some embodiments, the above-mentioned page may also include multiple application icons and page indicators. The page indicator may not be a part of the page, but exists alone. The above-mentioned picture icon is also optional, which is not limited in this embodiment of the present application. A status bar 311 is displayed in the upper part of the interface 310, and the status bar 311 may include: one or more signal strength indicators of mobile communication signals (also called cellular signals), battery status indicators, and time indicators , Wi-Fi signal indicator, and more.
电子设备100可以接收用户作用于相机应用图标513的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图5B所示的拍摄预览界面520。The electronic device 100 may receive an input operation (eg, single click) of the user acting on the camera application icon 513, and in response to the input operation, the electronic device 100 may display a shooting preview interface 520 as shown in FIG. 5B .
如图3B所示,该拍摄预览界面320可以显示包括有已拍摄图像回显控件321、拍摄控件322、摄像头转换控件323、摄像头捕捉的预览画面324、设置控件325、变焦倍率控件326、一个或多个拍摄模式控件(例如,“夜景模式”控件327A、“人像模式”控件327B、“普通拍照模式”控件327C、“录像模式”控件327D、“专业模式”控件327E、更多模式控件327F、“大光圈模式”控件327H,等等)。其中,该已拍摄图像回显控件321可用于显示已拍摄的图像。该拍摄控件322用于触发保存摄像头拍摄到的图像。该摄像头转换控件323可用于切换拍照的摄像头。该设置控件325可用于设置拍照功能。该变焦倍率控件326可用于设置摄像头的变焦倍数。该拍摄模式控件可用于触发开启该拍摄模式对应的图像处理流程。例如,“夜景模式”控件327A可用于触发增加拍摄图像中的亮度和色彩丰富度等。“人像模式”控件372B可用于触发对拍摄图像中人物背景的虚化,等等。如图3B所示,当前用户选择的拍摄模式为“普通拍照模式”。As shown in FIG. 3B , the shooting preview interface 320 can display a control 321 for echoing the captured image, a shooting control 322, a camera switching control 323, a preview screen captured by the camera 324, a setting control 325, a zoom ratio control 326, one or Multiple capture mode controls (eg, "Night Mode" control 327A, "Portrait Mode" control 327B, "Normal Photo Mode" control 327C, "Video Mode" control 327D, "Pro Mode" control 327E, More Mode Controls 327F, "Large Aperture Mode" controls 327H, etc.). The captured image echo control 321 may be used to display the captured image. The shooting control 322 is used to trigger saving of the image captured by the camera. The camera switching control 323 can be used to switch cameras for taking pictures. The setting control 325 can be used to set the camera function. The zoom ratio control 326 can be used to set the zoom ratio of the camera. The shooting mode control can be used to trigger the opening of the image processing flow corresponding to the shooting mode. For example, a "night scene mode" control 327A can be used to trigger an increase in brightness and color richness, etc. in the captured image. A "portrait mode" control 372B may be used to trigger blurring of the background of people in the captured image, among other things. As shown in FIG. 3B , the shooting mode currently selected by the user is the "normal shooting mode".
电子设备100可以接收到用户针对该拍摄预览界面320中拍摄控件322的输入操作(例如单击),响应于该输入,电子设备100可以获取摄像头采集到的低清图像(例如预览画面324)。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。The electronic device 100 may receive a user's input operation (eg, click) on the photographing control 322 in the photographing preview interface 320 , and in response to the input, the electronic device 100 may acquire a low-definition image (eg, a preview image 324 ) captured by the camera. The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image.
可选的,当电子设备100识别出低清图像中指定目标内容的类别后,可以在上述拍摄界面320中显示类别信息329,类别信息329可用于指示低清图像中指定目标内容的类别,例如,该类别信息329可以是“摩天轮”的文字。Optionally, after the electronic device 100 recognizes the category of the specified target content in the low-definition image, it can display category information 329 in the above-mentioned shooting interface 320, and the category information 329 can be used to indicate the category of the specified target content in the low-definition image, for example , the category information 329 may be the text of "Ferris wheel".
其中,具体针对低清图像的超分重建过程可以参考本申请的后续实施例,在此不再赘述。Specifically, for the super-resolution reconstruction process of the low-definition image, reference may be made to the subsequent embodiments of the present application, and details are not described herein again.
在一种可能的实现方式中,在电子设备100借助云服务器200上的高清纹理字典库对拍摄到的低清图像进行超分重建处理的过程中,电子设备100可以显示处理进度提示或倒计时,用于提示用户当前电子设备100借助云服务器200上的高清纹理字典库对拍摄到的低清图像进行超分重建处理的进度。In a possible implementation manner, when the electronic device 100 uses the high-definition texture dictionary library on the cloud server 200 to perform super-resolution reconstruction processing on the captured low-definition image, the electronic device 100 may display a processing progress prompt or countdown, It is used to prompt the user that the current electronic device 100 performs super-resolution reconstruction processing on the captured low-definition image by means of the high-definition texture dictionary library on the cloud server 200 .
示例性的,如图3C所示,电子设备100可以在拍摄预览界面320上显示进度提示窗口341,用于提示对拍摄的低清图像进行超分重建的进度。例如,该进度提示窗口341中显示有文字提示“正在通过云端优化拍摄的照片,进度10%”。该进度提示窗口341中还可以显示有取消控件342,可用于触发取消对拍摄图像的超分重建。例如,当电子设备100接收用户的 针对该取消控件342的输入操作(例如单击),电子设备100可以停止对拍摄图像进行超分重建处理。这样,可以在进度较缓慢时或者用户临时不想对拍摄图像超分时,即时取消对拍摄图像的超分重建。Exemplarily, as shown in FIG. 3C , the electronic device 100 may display a progress prompt window 341 on the shooting preview interface 320 for prompting the progress of super-resolution reconstruction of the shot low-definition image. For example, the progress prompt window 341 displays a text prompt "The photo is being optimized through the cloud, the progress is 10%". A cancel control 342 may also be displayed in the progress prompt window 341, which may be used to trigger canceling the super-score reconstruction of the captured image. For example, when the electronic device 100 receives a user's input operation (eg, a single click) for the cancel control 342, the electronic device 100 may stop performing super-resolution reconstruction processing on the captured image. In this way, when the progress is slow or when the user temporarily does not want to over-score the captured image, the over-score reconstruction of the captured image can be canceled immediately.
在一种可能的实现方式中,在电子设备100借助云服务器200的处理能力对拍摄图像完成增强后,电子设备100可以显示完成提示,并保存超分重建后的高清图像至本地。该完成提示可用于提示用户当前已对拍摄图像完成超分重建。In a possible implementation manner, after the electronic device 100 completes the enhancement of the captured image by using the processing capability of the cloud server 200, the electronic device 100 may display a completion prompt, and save the high-definition image after super-resolution reconstruction locally. The completion prompt may be used to prompt the user that the super-resolution reconstruction of the captured image has been completed.
示例性的,如图3D所示,电子设备100在借助云服务器200上的高清纹理字典库对拍摄图像完成超分重建后,显示完成提示343。例如,完成提示343可以是文字提示“已完成照片超分处理,可到图库中查看”。Exemplarily, as shown in FIG. 3D , the electronic device 100 displays a completion prompt 343 after completing the super-score reconstruction of the captured image by means of the high-definition texture dictionary library on the cloud server 200 . For example, the completion prompt 343 may be a text prompt "The photo over-scoring process has been completed, and can be viewed in the gallery".
电子设备100可以接收用户针对已拍摄图像回显控件321的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图3E所示的照片浏览界面550。The electronic device 100 may receive a user's input operation (eg, click) on the captured image echo control 321, and in response to the input operation, the electronic device 100 may display a photo browsing interface 550 as shown in FIG. 3E .
如图3E所示,该照片浏览界面350中可以包括超分重建后的高清图像351、图像相关信息353、菜单354、图库控件355。其中,该图像相关信息353可以包括有该高清图像351的拍摄时间、拍摄天气、地理位置信息等等。例如,拍摄时间可以为“2019年12月3日8:00AM”,拍摄天气可以为“多云”,拍摄地点可以为“上海·迪士尼”等等。该菜单354可以包括分享按钮、收藏按钮、编辑按钮、删除按钮、更多按钮。分享按钮可用于触发对该高清图像351的分享。该收藏按钮可用于触发收藏该高清图像351到图片收藏文件夹。编辑按钮可用于触发对高清图像351的旋转、修剪、增加滤镜、虚化等编辑功能。删除按钮可用于触发删除该高清图像351。更多按钮可用于触发打开更多与该高清图像351相关的功能。该图库控件355可用于触发电子设备100打开图库应用。As shown in FIG. 3E , the photo browsing interface 350 may include a high-definition image 351 after super-resolution reconstruction, image-related information 353 , a menu 354 , and a gallery control 355 . Wherein, the image-related information 353 may include the shooting time of the high-definition image 351, shooting weather, geographic location information, and the like. For example, the shooting time can be "December 3, 2019 8:00AM", the shooting weather can be "cloudy", the shooting location can be "Shanghai Disney", and so on. The menu 354 may include a share button, a favorite button, an edit button, a delete button, and more buttons. A share button may be used to trigger sharing of the high-definition image 351 . The favorite button can be used to trigger to save the high-definition image 351 to the picture favorite folder. The edit button can be used to trigger editing functions such as rotation, trimming, adding filters, and blurring of the high-definition image 351. The delete button can be used to trigger deletion of the high-definition image 351 . The More button can be used to trigger opening more functions related to this HD image 351 . The gallery control 355 can be used to trigger the electronic device 100 to open the gallery application.
在一些实施例中,用户在使用电子设备100拍照时,可以打开相机应用进行拍照。当电子设备100显示拍摄预览界面时,拍摄预览界面上可以包括有超分重建控件和拍摄控件,该超分重建控件可用于触发电子设备100对拍摄到的低清图像进行超分重建。电子设备100在接收到用户针对该图像重建控件的输入后,可以开启超分重建功能。在开启超分重建功能后,当电子设备100接收用户的拍照操作,电子设备100获取到摄像头拍摄到的低清图像。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以提高指定目标内容的成像质量。In some embodiments, when the user uses the electronic device 100 to take a picture, the user can open the camera application to take a picture. When the electronic device 100 displays the shooting preview interface, the shooting preview interface may include a super-resolution reconstruction control and a shooting control, and the super-resolution reconstruction control can be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image. After receiving the user's input for the image reconstruction control, the electronic device 100 can enable the super-resolution reconstruction function. After the super-resolution reconstruction function is enabled, when the electronic device 100 receives the user's photographing operation, the electronic device 100 obtains a low-definition image captured by the camera. The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
示例性的,电子设备100可以耳机收到了用户作用于上述图3A所示界面310中相机应用图标313的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图4A所示的拍摄预览界面420。Exemplarily, the electronic device 100 may receive an input operation (such as a click) by the user acting on the camera application icon 313 in the interface 310 shown in FIG. 3A through the earphone, and in response to the input operation, the electronic device 100 may display as shown in FIG. 4A . The shooting preview interface 420 shown.
如图4A所示,该拍摄预览界面420可以显示包括有已拍摄图像回显控件421、拍摄控件422、摄像头转换控件423、摄像头捕捉的预览画面424、超分重建控件428、设置控件、变焦倍率控件、一个或多个拍摄模式控件(例如,“夜景模式”控件427A、“人像模式”控件427B、“普通拍照模式”控件427C、“录像模式”控件427D、“专业模式”控件427E、更多模式控件427F、“大光圈模式”控件427H,等等)。其中,该超分重建控件428可用于触发电子设备100对拍摄到的低清图像进行超分重建。针对已拍摄图像回显控件421、拍摄控件422、摄像头转换控件423、设置控件、变焦倍率控件以及一个或多个拍摄模式控件的文字说明,可以参考前述图3B所示实施例,在此不再赘述。As shown in FIG. 4A , the shooting preview interface 420 may include a captured image echo control 421 , a shooting control 422 , a camera conversion control 423 , a camera-captured preview screen 424 , a super-resolution reconstruction control 428 , a setting control, and a zoom ratio. controls, one or more capture mode controls (eg, "Night Mode" control 427A, "Portrait Mode" control 427B, "Normal Photo Mode" control 427C, "Video Mode" control 427D, "Pro Mode" control 427E, more mode control 427F, "large aperture mode" control 427H, etc.). The super-resolution reconstruction control 428 may be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image. For the text description of the captured image echo control 421 , the shooting control 422 , the camera switching control 423 , the setting control, the zoom magnification control, and one or more shooting mode controls, reference may be made to the aforementioned embodiment shown in FIG. 3B , which is not repeated here. Repeat.
电子设备100可以接收用户针对该超分重建控件428的输入操作(例如单击),响应于该输入操作,电子设备100可以开启图像重建功能。在开启图像重建功能后,电子设备100可以接收到用户针对该拍摄预览界面420中拍摄控件422的输入操作(例如单击),响应于该输入,电子设备100可以获取摄像头采集到的低清图像(例如预览画面424)。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。电子设备100可以将高清图像保存至本地。The electronic device 100 may receive an input operation (eg, a single click) of the user with respect to the super-score reconstruction control 428, and in response to the input operation, the electronic device 100 may turn on the image reconstruction function. After the image reconstruction function is enabled, the electronic device 100 may receive an input operation (eg, a single click) from the user on the shooting control 422 in the shooting preview interface 420, and in response to the input, the electronic device 100 may acquire a low-definition image captured by the camera (eg preview screen 424). The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. The electronic device 100 can save the high-definition image locally.
在本申请实施例中,上述超分重建控件428可以被称为第一控件。超分重建控件428的输入,可以被称为第二输入。In this embodiment of the present application, the above-mentioned super-score reconstruction control 428 may be referred to as a first control. The input to the super-score reconstruction control 428 may be referred to as the second input.
可选的,当电子设备100识别出低清图像中指定目标内容的类别后,可以在上述拍摄界面420中显示类别信息429,类别信息429可用于指示低清图像中指定目标内容的类别,例如,该类别信息429可以是“摩天轮”的文字。Optionally, after the electronic device 100 recognizes the category of the specified target content in the low-definition image, it can display category information 429 in the above-mentioned shooting interface 420, and the category information 429 can be used to indicate the category of the specified target content in the low-definition image, for example. , the category information 429 can be the text of "Ferris wheel".
在一些实施例中,用户在使用电子设备100拍照时,可以电子设备100中不同拍照模式进行拍照。当用户觉得拍摄预览界面中显示的预览图像的分辨率较低时,用户可以选择相机应用中的“超分重建模式”进行拍摄。在“超分重建模式”下,当电子设备100接收用户的拍照操作,电子设备100获取到摄像头拍摄到的低清图像。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以提高指定目标内容的成像质量。In some embodiments, when the user uses the electronic device 100 to take pictures, the user can take pictures in different photographing modes in the electronic device 100 . When the user feels that the resolution of the preview image displayed in the shooting preview interface is low, the user can select the "super-resolution reconstruction mode" in the camera application to shoot. In the "super-resolution reconstruction mode", when the electronic device 100 receives a user's photographing operation, the electronic device 100 obtains a low-definition image captured by the camera. The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. In this way, the imaging quality of the specified target content can be improved.
示例性的,电子设备100可以接收用户作用于上述图3A所示界面310中相机应用图标313的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图5A所示的拍摄预览界面520。Exemplarily, the electronic device 100 may receive an input operation (such as a click) that the user acts on the camera application icon 313 in the interface 310 shown in FIG. 3A , and in response to the input operation, the electronic device 100 may display the image shown in FIG. Shooting preview interface 520 .
如图5A所示,该拍摄预览界面520可以显示包括有已拍摄图像回显控件521、拍摄控件522、摄像头转换控件523、摄像头捕捉的预览画面524、设置控件、变焦倍率控件、一个或多个拍摄模式控件(例如,“夜景模式”控件527A、“人像模式”控件527B、“普通拍照模式”控件527C、“超分重建模式”控件527G、“录像模式”控件527D、“专业模式”控件527E、更多模式控件527F、等等)。其中,“超分重建模式”控件527G可用于触发电子设备100对拍摄到的低清图像进行超分重建。针对已拍摄图像回显控件521、拍摄控件522、摄像头转换控件523、设置控件、变焦倍率控件以及一个或多个拍摄模式控件的文字说明,可以参考前述图3B所示实施例,在此不再赘述。如图5A所示,当前用户选择的拍摄模式为“普通拍照模式”。As shown in FIG. 5A , the shooting preview interface 520 may include a captured image echo control 521 , a shooting control 522 , a camera conversion control 523 , a camera-captured preview screen 524 , a setting control, a zoom ratio control, one or more Capture mode controls (eg, "Night Mode" control 527A, "Portrait Mode" control 527B, "Normal Photo Mode" control 527C, "Super Reconstruction Mode" control 527G, "Video Mode" control 527D, "Pro Mode" control 527E , More Mode Controls 527F, etc.). The “super-resolution reconstruction mode” control 527G can be used to trigger the electronic device 100 to perform super-resolution reconstruction on the captured low-definition image. For the text description of the captured image echo control 521 , the shooting control 522 , the camera switching control 523 , the setting control, the zoom magnification control, and one or more shooting mode controls, reference may be made to the aforementioned embodiment shown in FIG. 3B , which is not repeated here. Repeat. As shown in FIG. 5A , the shooting mode currently selected by the user is the "normal shooting mode".
电子设备100可以接收用户作用于“超分重建模式”控件527G的输入操作(例如单击),响应于该输入操作,如图5B所示,电子设备100可以将当前选中的拍摄模式调整为“超分重建模式”。The electronic device 100 may receive an input operation (eg, a single click) that the user acts on the “super-resolution reconstruction mode” control 527G, and in response to the input operation, as shown in FIG. 5B , the electronic device 100 may adjust the currently selected shooting mode to “ Hyperdivision Reconstruction Mode".
在本申请实施例中,上述“超分重建模式”控件527G可以被称为第一控件。针对“超分重建模式”控件527G的输入,可以被称为第二输入。In this embodiment of the present application, the above-mentioned "super-resolution reconstruction mode" control 527G may be referred to as a first control. The input to the "super-resolution reconstruction mode" control 527G may be referred to as the second input.
在电子设备100的拍摄模式调整为“超分重建模式”后,电子设备100可以接收到用户 针对该拍摄预览界面520中拍摄控件522的输入操作(例如单击),响应于该输入,电子设备100可以获取摄像头采集到的低清图像(例如预览画面524)。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像。电子设备100可以将高清图像保存至本地。After the shooting mode of the electronic device 100 is adjusted to the "super-resolution reconstruction mode", the electronic device 100 may receive an input operation (eg, click) by the user on the shooting control 522 in the shooting preview interface 520, and in response to the input, the electronic device 100 may acquire a low-definition image (eg, a preview image 524 ) captured by the camera. The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image to obtain a high-definition image. The electronic device 100 can save the high-definition image locally.
可选的,当电子设备100识别出低清图像中指定目标内容的类别后,可以在上述拍摄界面520中显示类别信息529,类别信息529可用于指示低清图像中指定目标内容的类别,例如,该类别信息529可以是“摩天轮”的文字。Optionally, after the electronic device 100 identifies the category of the specified target content in the low-definition image, it can display category information 529 in the above-mentioned shooting interface 520, and the category information 529 can be used to indicate the category of the specified target content in the low-definition image, for example , the category information 529 can be the text of "Ferris wheel".
在一些应用场景中,电子设备100本地可以保存有很多图片,这些图片可能是电子设备100拍摄的,或者其他设备发送过来的,或者是从网络上下载的。其中,部分图片由于拍摄设备本身能力的限制,分辨率不高。电子设备100可以响应于用户的输入,获取到图库中的低清图像。电子设备100可以识别并提取出低清图像中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到低清图像中,得到高清图像,并存储到图库中。这样,可以提高指定目标内容的成像质量。In some application scenarios, the electronic device 100 may store many pictures locally, and these pictures may be captured by the electronic device 100, or sent from other devices, or downloaded from the network. Among them, some of the pictures have low resolution due to the limitation of the capabilities of the shooting equipment. The electronic device 100 may acquire the low-definition image in the gallery in response to the user's input. The electronic device 100 can identify and extract the image features of the specified target content in the low-definition image, and based on the high-definition texture dictionary library of the same category as the specified target content on the cloud server, match the high-definition image features similar to the specified target content. texture features. The electronic device 100 can fuse the high-definition texture feature into a low-definition image, obtain a high-definition image, and store it in a gallery. In this way, the imaging quality of the specified target content can be improved.
示例性的,如图6A所示,电子设备100可以接收用户作用于界面310中图库应用图标312的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图6B所示的图库应用界面610。Exemplarily, as shown in FIG. 6A , the electronic device 100 may receive an input operation (eg, click) that the user acts on the gallery application icon 312 in the interface 310 , and in response to the input operation, the electronic device 100 may display as shown in FIG. 6B . 610 of the gallery application interface.
如图6B所示,该图库应用界面610可以显示包括有一张或多张图片的缩略图。其中,电子设备100可以标记出该一张或多张图片中包括有指定目标内容且未进行超分重建处理的图片。例如,电子设备100可以在缩略图611上显示标记612,该标记612可用于提示用户该缩略图611对应的图片等待超分重建处理。可选的,电子设备100可以标记出该一张或多张图片中已进行超分重建处理的原始图片,和超分重建处理后的高清图片。As shown in FIG. 6B, the gallery application interface 610 can display thumbnail images including one or more pictures. The electronic device 100 may mark the one or more pictures that include the specified target content and have not undergone super-score reconstruction processing. For example, the electronic device 100 may display a mark 612 on the thumbnail 611, where the mark 612 may be used to prompt the user that the picture corresponding to the thumbnail 611 is waiting for the super-score reconstruction process. Optionally, the electronic device 100 may mark the original picture that has undergone the super-resolution reconstruction process and the high-definition picture after the super-resolution reconstruction process in the one or more pictures.
电子设备100可以接收用户作用于缩略图611的输入操作(例如单击),响应于该输入操作,电子设备100可以显示如图6C所示的图片浏览界面620。The electronic device 100 may receive an input operation (eg, single click) of the user acting on the thumbnail 611, and in response to the input operation, the electronic device 100 may display a picture browsing interface 620 as shown in FIG. 6C.
如图6C所示,图片浏览界面620可以显示包括有该缩略图611对应的图片621,超分重建控件624,图片相关信息622、菜单623,等等。该图片相关信息622可以包括有该图片621的拍摄时间、拍摄天气、地理位置信息等等中的一项或多项。例如,拍摄时间可以为“2019年12月1日8:00AM”,拍摄天气可以为“多云”,拍摄地点可以为“上海·外滩”等等。该菜单623可以包括分享按钮、收藏按钮、编辑按钮、删除按钮、更多按钮。该超分重建控件624可用于触发电子设备100对该图片621进行超分重建处理。其中,具体针对该图片621进行超分重建处理的过程可以参考后续实施例,在此不再赘述。As shown in FIG. 6C , the picture browsing interface 620 may display a picture 621 including the corresponding thumbnail 611 , a super-score reconstruction control 624 , picture-related information 622 , a menu 623 , and the like. The picture-related information 622 may include one or more of the shooting time of the picture 621, shooting weather, geographic location information, and the like. For example, the shooting time can be "8:00AM on December 1, 2019", the shooting weather can be "cloudy", the shooting location can be "Shanghai·The Bund", and so on. The menu 623 may include a share button, a favorite button, an edit button, a delete button, and more buttons. The super-resolution reconstruction control 624 can be used to trigger the electronic device 100 to perform super-resolution reconstruction processing on the picture 621 . The specific process of performing the super-score reconstruction processing on the picture 621 may refer to the subsequent embodiments, which will not be repeated here.
电子设备100可以接收用户针对该超分重建控件624的输入操作(例如单击),响应于该述输入操作,电子设备100可以识别并提取出图片621中指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备100可以将该高清纹理特征融合到图片621中,得到高清图片631,该高清图片631的分辨率高于该图片621。The electronic device 100 may receive an input operation (eg, click) of the user for the super-score reconstruction control 624, and in response to the input operation, the electronic device 100 may identify and extract the image features of the specified target content in the picture 621, and based on the cloud The high-definition texture dictionary library of the same category as the specified target content on the server matches high-definition texture features similar to the image features of the specified target content. The electronic device 100 may fuse the high-definition texture feature into the picture 621 to obtain a high-definition picture 631 , and the resolution of the high-definition picture 631 is higher than that of the picture 621 .
在本申请实施例中,上述超分重建控件624可以被称为第二控件。In this embodiment of the present application, the above-mentioned super-score reconstruction control 624 may be referred to as a second control.
如图6D所示,电子设备100在得到该高清图片631后,可以显示图片浏览界面630。其中,该图片浏览界面630中可以包括有高清图片631,图片相关信息632、菜单633、效果对比控件635、标记634,保存控件636等等。该图片相关信息632可以包括有该高清图片631的拍摄时间、拍摄天气、地理位置信息等等中的一项或多项。例如,拍摄时间可以为“2019年12月1日8:00AM”,拍摄天气可以为“多云”,拍摄地点可以为“上海·外滩”等等。该菜单633可以包括分享按钮、收藏按钮、编辑按钮、删除按钮、更多按钮等按钮中的一个或多个。该效果对比控件634可用于触发电子设备100对该高清图片631的位置上显示上述图片621。该标记634可用于提示用户该高清图片631为超分重建处理后的高清图像。该保存控件636可用于触发电子设备100保存该高清图片634至图库中。As shown in FIG. 6D , after obtaining the high-definition picture 631 , the electronic device 100 may display a picture browsing interface 630 . The picture browsing interface 630 may include a high-definition picture 631, picture-related information 632, a menu 633, an effect comparison control 635, a mark 634, a save control 636, and the like. The picture-related information 632 may include one or more of the shooting time of the high-definition picture 631, shooting weather, geographic location information, and the like. For example, the shooting time can be "8:00AM on December 1, 2019", the shooting weather can be "cloudy", the shooting location can be "Shanghai·The Bund", and so on. The menu 633 may include one or more of a share button, a favorite button, an edit button, a delete button, a more button, and the like. The effect comparison control 634 can be used to trigger the electronic device 100 to display the above-mentioned picture 621 at the position of the high-definition picture 631 . The mark 634 may be used to prompt the user that the high-definition picture 631 is a high-definition image processed by super-resolution reconstruction. The save control 636 can be used to trigger the electronic device 100 to save the high-definition picture 634 to the gallery.
电子设备100可以接收用户针对效果对比控件635的输入操作(例如单击),响应于该输入操作,如图6E所示,电子设备100可以显示上述图片浏览界面620,该图片浏览界面620中包括有上述图片621。电子设备100可以再次接收用户针对效果对比控件635的输入操作(例如单击),响应于该输入操作,电子设备100可以显示上述图6D所示的图片浏览界面630。The electronic device 100 may receive the user's input operation (eg, click) on the effect comparison control 635, and in response to the input operation, as shown in FIG. 6E, the electronic device 100 may display the above-mentioned picture browsing interface 620, which includes There is picture 621 above. The electronic device 100 may receive the user's input operation (eg, click) on the effect comparison control 635 again, and in response to the input operation, the electronic device 100 may display the picture browsing interface 630 shown in FIG. 6D .
下面介绍本申请实施例提供的一种图像重建方法。The following describes an image reconstruction method provided by an embodiment of the present application.
图7示例性的示出了本申请实施例提供的一种图像重建方法的流程示意图。FIG. 7 exemplarily shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application.
如图7所示,该方法可以包括如下步骤:As shown in Figure 7, the method may include the following steps:
S701、云服务器200获取多个高质量图像以及每个高质量图像的拍摄目标类别。S701. The cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
其中,拍摄目标类别可以包括人脸、建筑、动物猫、动物狗、动物鸟等等。The photographing target categories may include human faces, buildings, animal cats, animal dogs, animal birds, and the like.
可能的,为了细分拍摄目标的类型,该拍摄目标类别可以包括多个子类别。例如,对于人脸拍摄目标,可以包括肤色、年龄段、性别、种族等的子类别。对于知名建筑拍摄目标,可以包括视角、季节、光照环境等的子类别。Possibly, in order to subdivide the types of shooting objects, the shooting object category may include multiple sub-categories. For example, for a face photographing target, sub-categories of skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subcategories of perspective, season, lighting environment, etc. can be included.
对于不同的拍摄目标,云服务器200可以采用不同的特征提取网络提取高质量图像中的高清纹理特征。例如,若提取高质量图像中的人脸特征,需要兼顾年龄段、肤色、五官形状、性别等因素。云服务器200可以使用人脸识别模型作为特征提取器;若提取植物特征,则需要考虑植物的颜色、形状、纹理等特征,可以用植物分类网络作为特征提取器。For different shooting targets, the cloud server 200 can use different feature extraction networks to extract high-definition texture features in high-quality images. For example, to extract facial features in high-quality images, factors such as age, skin color, facial features, and gender need to be taken into account. The cloud server 200 can use a face recognition model as a feature extractor; if extracting plant features, it is necessary to consider the color, shape, texture and other characteristics of plants, and a plant classification network can be used as a feature extractor.
S702、云服务器200提取出高质量图像中拍摄目标的纹理特征,建立多个不同拍摄目标类别的高清纹理字典库。S702. The cloud server 200 extracts the texture features of the shooting target in the high-quality image, and establishes a plurality of high-definition texture dictionary libraries of different shooting target categories.
针对每一种拍摄目标类别,云服务器200都可以通过该拍摄目标类别对应的特征提取器,从该拍摄目标类别下的多张高质量图像中提取出该拍摄目标类别的高清纹理特征。云服务器200可以对该拍摄目标类别下的高清纹理特征,进行聚类处理,获取最具代表性的高清纹理特征。云服务器200可以将相同拍摄目标类别下最具有代表性的高清纹理特征存储在该拍摄目标类别下对应的高清纹理字典库中。For each shooting target category, the cloud server 200 can extract high-definition texture features of the shooting target category from a plurality of high-quality images under the shooting target category through the feature extractor corresponding to the shooting target category. The cloud server 200 can perform clustering processing on the high-definition texture features under the shooting target category to obtain the most representative high-definition texture features. The cloud server 200 may store the most representative high-definition texture features under the same shooting target category in the corresponding high-definition texture dictionary library under the shooting target category.
示例性的,例如,对于拍摄目标类型为人脸的多张人脸高质量图像,云服务器200可以针对每一张人脸高质量图像都进行如下操作:云服务器200可以提取出人脸高质量图像在不同尺度大小上的特征。然后,云服务器200可以检测人脸高质量图像中的人脸关键(landmark)点,并在每一种尺度大小上对左眼、右眼、鼻子、嘴巴等五官进行裁剪和重新采样,使得这些五官的特征达到固定大小。然后,云服务器200可以通过K-means算法为每个五官生成K个簇,得到每个五官的高清纹理特征。云服务器200可以将每个五官的高清纹理特征提取存 储至人脸类别对应的高清纹理字典库中。Exemplarily, for example, for multiple high-quality face images whose target type is a human face, the cloud server 200 may perform the following operations for each high-quality face image: the cloud server 200 may extract a high-quality face image. Features at different scales. Then, the cloud server 200 can detect the landmark points of the face in the high-quality image of the face, and crop and resample the left eye, right eye, nose, mouth and other facial features at each scale, so that these The features of the facial features reach a fixed size. Then, the cloud server 200 may generate K clusters for each facial feature through the K-means algorithm, and obtain high-definition texture features of each facial feature. The cloud server 200 can extract and store the high-definition texture features of each facial feature into the high-definition texture dictionary library corresponding to the face category.
其中,云服务器200上建立的多个不同拍摄目标类别的高清纹理字典库,可以如下表1所示:Among them, the multiple high-definition texture dictionary libraries of different shooting target categories established on the cloud server 200 can be as shown in Table 1 below:
表1Table 1
拍摄目标类别Shooting target category 高清纹理字典库HD Texture Dictionary Library
人脸human face 高清纹理字典库1HD Texture Dictionary Library 1
建筑architecture 高清纹理字典库2HD Texture Dictionary Library 2
绿植green plants 高清纹理字典库3HD Texture Dictionary Library 3
动物老鹰animal eagle 高清纹理字典库4HD Texture Dictionary Library 4
由上述表1可以看出,云服务器200可以上可以建立有高清纹理字典库1、高清纹理字典库2、高清纹理字典库3、高清纹理字典库4等等。其中,高清纹理字典库1的拍摄目标类别为人脸,高清纹理字典库2的拍摄目标类别为建筑,高清纹理字典库3的拍摄目标类别为绿植,高清纹理字典库4的拍摄目标类别为动物老鹰。上述表1仅用于示例性的解释本申请,不应构成限定。As can be seen from the above Table 1, the cloud server 200 may establish a high-definition texture dictionary library 1, a high-definition texture dictionary library 2, a high-definition texture dictionary library 3, a high-definition texture dictionary library 4, and so on. Among them, the shooting target category of HD texture dictionary library 1 is human face, the shooting target category of HD texture dictionary library 2 is buildings, the shooting target category of HD texture dictionary library 3 is green plants, and the shooting target category of HD texture dictionary library 4 is animals eagle. The above-mentioned Table 1 is only used to exemplify the present application, and should not be construed as a limitation.
在一些实施例中,为了细分拍摄目标的类型,该拍摄目标类别可以包括多个子类别。例如,对于人脸拍摄目标,可以包括肤色、年龄段、性别、种族等中的一种或多种子类别。对于知名建筑拍摄目标,可以包括视角、季节、光照环境等的子类别。其中,云服务器200上建立的多个不同拍摄目标类别的高清纹理字典库,可以如下表2所示:In some embodiments, in order to subdivide the types of objects, the category of objects may include multiple sub-categories. For example, for a face photographing target, one or more sub-categories of skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subcategories of perspective, season, lighting environment, etc. can be included. Among them, the multiple high-definition texture dictionary libraries of different shooting target categories established on the cloud server 200 can be shown in Table 2 below:
表2Table 2
Figure PCTCN2021143179-appb-000001
Figure PCTCN2021143179-appb-000001
Figure PCTCN2021143179-appb-000002
Figure PCTCN2021143179-appb-000002
由上述表1可以看出,云服务器200可以上可以建立有高清纹理字典库1、高清纹理字典库2、高清纹理字典库3、高清纹理字典库4、高清纹理字典库5、高清纹理字典库6、高清纹理字典库7、高清纹理字典库8、高清纹理字典库9、高清纹理字典库10、高清纹理字典库11、高清纹理字典库12、高清纹理字典库13、高清纹理字典库14、高清纹理字典库15、高清纹理字典库16、高清纹理字典库17、高清纹理字典库18等等。其中,高清纹理字典库1的拍摄目标类别为黄色皮肤的青年男性人脸。高清纹理字典库2的拍摄目标类别为黄色皮肤的青年女性人脸。高清纹理字典库3的拍摄目标类别为黄色皮肤的中年男性人脸。高清纹理字典库4的拍摄目标类别为黄色皮肤的中年女性人脸。高清纹理字典库5的拍摄目标类别为黄色皮肤的老年男性人脸。高清纹理字典库6的拍摄目标类别为黄色皮肤的老年女性人脸。高清纹理字典库7的拍摄目标类别为黑色皮肤的青年男性人脸。高清纹理字典库8的拍摄目标类别为黑色皮肤的青年女性人脸。高清纹理字典库9的拍摄目标类别为黑色皮肤的中年男性人脸。高清纹理字典库10的拍摄目标类别为黑色皮肤的中年女性人脸。高清纹理字典库11的拍摄目标类别为黑色皮肤的老年男性人脸。高清纹理字典库12的拍摄目标类别为黑色皮肤的老年女性人脸。高清纹理字典库13的拍摄目标类别为白色皮肤的青年男性人脸。高清纹理字典库14的拍摄目标类别为白色皮肤的青年女性人脸。高清纹理字典库15的拍摄目标类别为白色皮肤的中年男性人脸。高清纹理字典库16的拍摄目标类别为白色皮肤的中年女性人脸。高清纹理字典库17的拍摄目标类别为白色皮肤的老年男性人脸。高清纹理字典库18的拍摄目标类别为白色皮肤的老年女性人脸。上述表2仅用于示例性的解释本申请,不应构成限定。As can be seen from the above Table 1, the cloud server 200 can establish a high-definition texture dictionary library 1, a high-definition texture dictionary library 2, a high-definition texture dictionary library 3, a high-definition texture dictionary library 4, a high-definition texture dictionary library 5, and a high-definition texture dictionary library. 6. HD texture dictionary library 7, HD texture dictionary library 8, HD texture dictionary library 9, HD texture dictionary library 10, HD texture dictionary library 11, HD texture dictionary library 12, HD texture dictionary library 13, HD texture dictionary library 14, HD texture dictionary library 15, HD texture dictionary library 16, HD texture dictionary library 17, HD texture dictionary library 18, etc. Among them, the shooting target category of the high-definition texture dictionary library 1 is a young male face with yellow skin. The shooting target category of HD Texture Dictionary Library 2 is the face of a young woman with yellow skin. The target category of HD Texture Dictionary Library 3 is a middle-aged male face with yellow skin. The target category of HD Texture Dictionary Library 4 is a middle-aged female face with yellow skin. The shooting target category of HD Texture Dictionary Library 5 is the face of an elderly male with yellow skin. The shooting target category of HD Texture Dictionary Library 6 is the face of an elderly woman with yellow skin. The shooting target category of HD Texture Dictionary Library 7 is the face of a young male with black skin. The shooting target category of HD Texture Dictionary Library 8 is the face of a young woman with black skin. The shooting target category of HD Texture Dictionary Library 9 is a middle-aged male face with black skin. The target category of HD Texture Dictionary Library 10 is middle-aged female faces with dark skin. The shooting target category of HD Texture Dictionary Library 11 is the face of an elderly male with black skin. The shooting target category of HD Texture Dictionary Library 12 is the face of an elderly woman with black skin. The shooting target category of HD Texture Dictionary Library 13 is the face of a young male with white skin. The shooting target category of HD Texture Dictionary Library 14 is the face of a young woman with white skin. The target category of HD Texture Dictionary Library 15 is a middle-aged male face with white skin. The shooting target category of HD Texture Dictionary Library 16 is the face of a middle-aged woman with white skin. The shooting target category of HD Texture Dictionary Library 17 is the face of an elderly male with white skin. The shooting target category of HD Texture Dictionary Library 18 is the face of an elderly woman with white skin. The above-mentioned Table 2 is only used to exemplify the present application, and should not be construed as a limitation.
S703、电子设备100接收第一输入。S703. The electronic device 100 receives the first input.
S704、电子设备100响应于第一输入,获取低清图像。S704, the electronic device 100 acquires a low-definition image in response to the first input.
示例性的,第一输入可以是针对上述图3B所示拍摄预览界面320中拍摄控件322的输入,也可以是针对上述图4B所示拍摄预览界面420中拍摄控件422的输入,也可以是针对上述图5B所示拍摄预览界面520中拍摄控件522的输入。响应于该第一输入,电子设备100可以获取摄像头拍摄到的低清图像。Exemplarily, the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B . The input of the shooting control 522 in the shooting preview interface 520 shown in FIG. 5B above. In response to the first input, the electronic device 100 may acquire a low-definition image captured by the camera.
在一种可能的实现方式中,该第一输入还可以是针对上述图6C所示图片浏览界面620中超分重建控件624的输入。响应于该第一输入,电子设备100可以将上述图6C所示图片浏览界面620中显示的图片621确定为低清图像。In a possible implementation manner, the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C. In response to the first input, the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
S705、电子设备100判断低清图像中是否包括有指定目标内容。S705, the electronic device 100 determines whether the low-definition image includes the specified target content.
具体的,电子设备100上预置有针对不同拍摄目标类别对应的识别算法模型。电子设备100可以分别通过这些不同拍摄目标类别对应的识别算法模型,可以检测低清图像中是否包括有指定目标内容。其中,指定目标内容的类别可以包括人脸、建筑、绿植、动物猫、动物狗、动物鸟等图像内容中的任一种。Specifically, identification algorithm models corresponding to different shooting target categories are preset on the electronic device 100 . The electronic device 100 can detect whether the specified target content is included in the low-definition image through the recognition algorithm models corresponding to these different shooting target categories. Wherein, the category of the specified target content may include any one of image contents such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
在一种可能的实现方式中,为了细分拍摄目标的类型,该指定目标内容的类型可以包括多个子类型。例如,对于人脸拍摄目标,可以包括肤色、年龄段、性别、种族等的子类型。对于知名建筑拍摄目标,可以包括视角、季节、光照环境等的子类型。In a possible implementation manner, in order to subdivide the type of the shooting target, the type of the specified target content may include multiple sub-types. For example, for a face photographing target, subtypes such as skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subtypes of perspective, season, lighting environment, etc. can be included.
在一种可能的实现方式中,电子设备100上预置的多个识别算法模型可以识别出的拍摄 目标类别集合与云服务器200上存储的高清纹理字典库的类别集合相同。例如,电子设备100上的多个识别算法模型可以识别出的拍摄目标类别集合可以包括人脸、建筑等等。云服务器200上存储的高清纹理字典库的拍摄目标类别集合也可以包括人脸、建筑等等。In a possible implementation manner, the set of shooting target categories that can be identified by the multiple recognition algorithm models preset on the electronic device 100 is the same as the set of categories of the high-definition texture dictionary stored on the cloud server 200. For example, the set of photographing target categories that can be identified by the multiple identification algorithm models on the electronic device 100 may include human faces, buildings, and the like. The set of shooting target categories of the high-definition texture dictionary library stored on the cloud server 200 may also include human faces, buildings, and the like.
在一种可能的实现方式中,当云服务器200检测到高清纹理字典库的类别集合与电子设备100中的目标识别模型的识别类别集合有区别时,云服务器200可以向电子设备100发送目标识别模型更新信息。电子设备100可以根据更新信息,对目标识别算法模型进行更新。更新后的目标识别算法模型,可以识别出的拍摄目标类别集合与云服务器200上存储的高清纹理字典库的类别集合相同。In a possible implementation manner, when the cloud server 200 detects that the category set of the high-definition texture dictionary library is different from the identification category set of the target recognition model in the electronic device 100, the cloud server 200 may send the target recognition to the electronic device 100 Model update information. The electronic device 100 may update the target recognition algorithm model according to the update information. In the updated target recognition algorithm model, the set of photographing target categories that can be identified is the same as the set of categories of the high-definition texture dictionary stored on the cloud server 200 .
在一种可能的实现方式中,电子设备100上的多个识别算法模型可以识别出拍摄目标的类别。而云服务器200上的多个高清纹理字典库在每个拍摄目标的类别下还有多个子类别。例如,电子设备100的多个识别算法模型可以识别出的拍摄目标类别集合可以包括人脸、建筑等等。云服务器200上存储的多个高清纹理字典库的类别可以包括人脸、建筑等等。人脸类别下还可以包括黄皮肤人种人脸、黑皮肤人种人脸、白皮肤人种人脸等等。电子设备100将人脸类别和图像特征发送给云服务器200后,云服务器200可以先筛选出黄皮肤人种人脸对应的高清纹理字典库、黑皮肤人种人脸对应的高清纹理字典库、白色皮肤人种人脸对应的高清纹理字典库。然后,云服务器200可以识别出电子设备100上传的图像特征中的人种肤色,并基于人种肤色,从人脸大类下的多个高清纹理字典库中确定出与图像特征中相同人种肤色的高清纹理字典库。In a possible implementation manner, a plurality of recognition algorithm models on the electronic device 100 can recognize the category of the shooting target. The multiple high-definition texture dictionary libraries on the cloud server 200 also have multiple sub-categories under the category of each shooting target. For example, the set of photographing target categories that can be identified by the multiple identification algorithm models of the electronic device 100 may include human faces, buildings, and the like. The categories of the multiple high-definition texture dictionary libraries stored on the cloud server 200 may include human faces, buildings, and the like. The face category may further include a yellow-skinned human face, a dark-skinned human face, a white-skinned human face, and the like. After the electronic device 100 sends the face category and image features to the cloud server 200, the cloud server 200 can first filter out the high-definition texture dictionary library corresponding to the face of the yellow-skinned race, the high-definition texture dictionary library corresponding to the face of the dark-skinned race, A high-definition texture dictionary library corresponding to a white-skinned human face. Then, the cloud server 200 can identify the race and skin color in the image features uploaded by the electronic device 100, and based on the race skin color, determine the same race as the image features from multiple high-definition texture dictionary libraries under the category of human faces. A library of HD texture dictionaries for skin tones.
在本申请实施例中,低清图像中的指定目标内容可以被称为第一指定目标内容。In this embodiment of the present application, the specified target content in the low-definition image may be referred to as the first specified target content.
若低清图像中包括有指定目标内容,则电子设备100可以执行S706、电子设备100确定出低清图像中指定目标内容的类别为第一类别以及指定目标内容所在的第一区域。If the low-definition image includes the specified target content, the electronic device 100 may execute S706, and the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category and the first region where the specified target content is located.
S707、电子设备100可以从低清图像中裁剪出指定目标内容所在的第一区域,得到第一低清裁剪图像。S707. The electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
示例性的,该低清图像可以如图8A所示。电子设备100在识别出低清图像的指定目标内容(例如老鹰)所在的第一区域后,生成该低清图像的二值掩码(mask)图像。Exemplarily, the low-definition image may be as shown in FIG. 8A . The electronic device 100 generates a binary mask image of the low-definition image after identifying the first area where the specified target content (eg, eagle) of the low-definition image is located.
其中,如图8B所示,该二值mask图像中可以将该指定目标内容在低清图像中所在的第一区域显示为白色,将其他位置显示为黑色。电子设备100可以基于该二值mask图像,确定出低清图像中裁剪框的坐标,该裁剪框所在的位置包括该第一区域。该裁剪框在低清图像中的位置可以如图8C所示。Wherein, as shown in FIG. 8B , in the binary mask image, the first area where the specified target content is located in the low-definition image may be displayed as white, and other locations may be displayed as black. The electronic device 100 may determine the coordinates of the cropping frame in the low-definition image based on the binary mask image, where the position of the cropping frame includes the first region. The position of the cropping frame in the low-definition image can be as shown in FIG. 8C .
电子设备100可以基于该裁剪框,从低清图像中裁剪出指定目标内容所在的第一区域,得到第一低清裁剪图像。其中,该第一低清裁剪图像可以如图8D所示。The electronic device 100 may, based on the cropping frame, crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image. The first low-definition cropped image may be as shown in FIG. 8D .
S708、电子设备100可以提取出低清裁剪图像的第一图像特征。S708. The electronic device 100 may extract the first image feature of the low-definition cropped image.
其中,第一图像特征可以包括该低清裁剪图像中指定目标内容的轮廓信息、颜色信息与纹理信息等信息的特征向量或特征图。The first image feature may include a feature vector or a feature map of information such as contour information, color information, and texture information of the specified target content in the low-definition cropped image.
S709、电子设备100可以发送第一低清裁剪图像的第一图像特征以及第一类别至云服务器200。S709 , the electronic device 100 may send the first image feature and the first category of the first low-definition cropped image to the cloud server 200 .
S710、云服务器200可以确定出拍摄目标类别为第一类别的第一高清纹理字典库。S710. The cloud server 200 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
S711、云服务器200可以从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征。S711. The cloud server 200 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
其中,第一高清纹理特征可以包括指定目标内容对应高清轮廓信息、高清颜色信息、高清纹理信息等信息的特征向量或特征图。The first high-definition texture feature may include a feature vector or a feature map of information such as high-definition outline information, high-definition color information, and high-definition texture information corresponding to the specified target content.
具体的,云服务器200可以从第一高清纹理字典库中匹配出与第一图像特征的内容相似度大于预设值的第一高清纹理特征。Specifically, the cloud server 200 may match a first high-definition texture feature whose content similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library.
S712、云服务器200可以将第一高清纹理特征发送给电子设备100。S712 , the cloud server 200 may send the first high-definition texture feature to the electronic device 100 .
S713、电子设备100可以将第一高清纹理特征融合至第一低清裁剪图像中,得到第一高清裁剪图像。S713. The electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
S714、电子设备100将第一高清裁剪图像替换第一低清裁剪图像,回贴到低清图像中的第一区域,得到高清图像。S714. The electronic device 100 replaces the first high-definition cropped image with the first low-definition cropped image, and pastes it back to the first area in the low-definition image to obtain a high-definition image.
示例性的,该第一高清裁剪图像可以如图8E所示。其中,该第一高清裁剪图像的分辨率大于第一低清裁剪图像中的分辨率。该高清图像可以如图8F所示。Exemplarily, the first high-definition cropped image may be as shown in FIG. 8E . Wherein, the resolution of the first high-definition cropped image is greater than the resolution of the first low-definition cropped image. The high-definition image may be as shown in Figure 8F.
又例如,当低清图像中包括的指定目标类容为人脸时,第一可以指低清图像中人脸所在的区域。电子设备100可以从低清图像中提取出人脸关键点。电子设备100可以基于人脸关键点获取到低清图像中的五官信息以及头发信息等。电子设备100可以基于五官信息,生成该低清图像的二值mask图像,其中,该低清图像的二值mask图像中可以将五官所在的位置的显示颜色设置为白色,将其他位置的显示颜色设置为黑色。因此,电子设备100可以基于该二值mask图像,确定出低清图像中人脸框的坐标。电子设备100可以在低清图像上扩大人脸框的区域。电子设备100可以基于扩大的人脸框,裁剪出人脸框中的图像得到第一低清裁剪图像。电子设备100基于五官信息从低清图像中提取每个五官位置的特征信息。然后,电子设备100可以将每个五官位置的特征信息以及人脸类别发送给云服务器200。云服务器200可以匹配出人脸类别对应的高清纹理字典库。云服务器200可以基于人脸类别对应的高清纹理字典库,匹配出每个五官的特征信息各自对应的高清纹理特征。云服务器200可以每个五官的高清纹理特征发送给电子设备100。电子设备100可以将每个五官各自对应的高清纹理特征融合至第一低清裁剪图像中,得到第一高清裁剪图像。然后,电子设备100可以将第一高清裁剪图像基于五官信息的二值mask图像,将第一高清裁剪图像回贴至低清图像中的人脸区域,得到高清图像。For another example, when the specified target category included in the low-definition image is a human face, the first may refer to the region where the human face is located in the low-definition image. The electronic device 100 can extract face key points from the low-definition image. The electronic device 100 may acquire facial feature information and hair information, etc. in the low-definition image based on the key points of the face. The electronic device 100 can generate a binary mask image of the low-definition image based on the facial features information, wherein, in the binary mask image of the low-definition image, the display color of the location where the facial features are located can be set to white, and the display color of other locations can be set to white. Set to black. Therefore, the electronic device 100 can determine the coordinates of the face frame in the low-definition image based on the binary mask image. The electronic device 100 can enlarge the area of the face frame on the low-definition image. The electronic device 100 may, based on the enlarged face frame, crop out the image in the face frame to obtain the first low-definition cropped image. The electronic device 100 extracts feature information of each facial feature position from the low-definition image based on the facial feature information. Then, the electronic device 100 may send the feature information of each facial feature location and the face category to the cloud server 200 . The cloud server 200 can match the high-definition texture dictionary library corresponding to the face category. The cloud server 200 may match the high-definition texture features corresponding to the feature information of each facial feature based on the high-definition texture dictionary library corresponding to the face category. The cloud server 200 may send the high-definition texture features of each facial feature to the electronic device 100 . The electronic device 100 may fuse the corresponding high-definition texture features of each facial feature into the first low-definition cropped image to obtain the first high-definition cropped image. Then, the electronic device 100 may base the first high-definition cropped image on the binary mask image of facial feature information, and paste the first high-definition cropped image back to the face region in the low-definition image to obtain a high-definition image.
S715、电子设备100可以保存高清图像。S715. The electronic device 100 may save a high-definition image.
在一种可能的实现方式中,电子设备100在保存高清图像的同时还可以保存上述低清图像。In a possible implementation manner, the electronic device 100 may also save the above-mentioned low-definition image while saving the high-definition image.
在一种可能的实现方式中,电子设备100在保存高清图像的同时还可以显示该高清图像。In a possible implementation manner, the electronic device 100 can also display the high-definition image while saving the high-definition image.
在一种可能的实现方式中,若低清图像中不包括指定目标内容,则电子设备100可以利用通用超分处理策略对低清图像进行超分重建,得到高清图像。其中,通用超分处理策略包括将低清图像输入到超分网络模型中进行超分重建,得到高清图像。其中,该超分网络模型包括利用超分辨率重建生成式对抗网络(super-resolution generative adversarial networks,SRGAN)、增强型超分辨率重建生成式对抗网络(super-resolution generative adversarial networks,ESRGAN)、宽泛激活的高效准确图像超分辨率重建(wide activation for efficient and accurate image super-resolution,WDSR)网络,等等。In a possible implementation manner, if the low-definition image does not include the specified target content, the electronic device 100 may perform super-resolution reconstruction on the low-definition image by using a general super-resolution processing strategy to obtain a high-definition image. Among them, the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images. Among them, the super-resolution network model includes the use of super-resolution reconstruction generative adversarial networks (super-resolution generative adversarial networks, SRGAN), enhanced super-resolution reconstruction generative adversarial networks (super-resolution generative adversarial networks, ESRGAN), broad Activation of wide activation for efficient and accurate image super-resolution (WDSR) networks, etc.
在一些实施例中,电子设备100从获取到的低清图像中可以识别到多个指定目标内容时,电子设备100可以分别提取出这多个指定目标内容的图像特征以及各指定目标内容的类别。其中,这多个指定目标内容的类别可以全相同,也可以有不同有相同,也可以全不同。电子设备100可以将每个指定目标内容的图像特征以及每个指定目标内容的类别发送给云服务器200。云服务器200可以匹配出每个指定目标内容的类别各自对应的高清纹理字典库,并基于每个指定目标内容的类别各自对应的高清纹理字典库,匹配出每个指定目标内容的高清纹理特征。云服务器200可以将每个指定目标内容的高清纹理特征发送给电子设备100,电子设备100可以将这多个指定目标内容各自的高清纹理特征融合至低清图像中这多个指定目标内容各自的区域内,得到高清图像。这样,电子设备100可以对低清图像中的多个指定目标同步进行超分重建处理,提高了超分处理效率。In some embodiments, when the electronic device 100 can identify multiple specified target contents from the acquired low-definition image, the electronic device 100 can extract image features of the multiple specified target contents and the category of each specified target content respectively. . The categories of the multiple specified target contents may all be the same, may be different, may be the same, or may be completely different. The electronic device 100 may transmit the image feature of each specified target content and the category of each specified target content to the cloud server 200 . The cloud server 200 can match the high-definition texture dictionary library corresponding to each category of the specified target content, and match the high-definition texture feature of each specified target content based on the corresponding high-definition texture dictionary library of each category of the specified target content. The cloud server 200 can send the high-definition texture features of each specified target content to the electronic device 100, and the electronic device 100 can fuse the respective high-definition texture features of the multiple specified target contents into the respective high-definition texture features of the multiple specified target contents in the low-definition image. In the area, high-definition images are obtained. In this way, the electronic device 100 can synchronously perform super-resolution reconstruction processing on multiple designated targets in the low-definition image, thereby improving the super-resolution processing efficiency.
在一些实施例中,电子设备100在获取到低清图像后,可以从低清图像中识别并裁剪出指定目标内容所在的区域,得到低清裁剪图像以及指定目标内容的类别。电子设备100可以将该低清裁剪图像和指定目标内容的类别发送给云服务器200。云服务器200可以从低清裁剪图像中提取出第一图像特征。匹配出拍摄目标类型与指定目标内容的类别相同且与第一图像特征的内容相似度大于预设值的第一高清纹理特征。云服务器200可以将该第一高清纹理特征融合到第一低清裁剪图像中,得到第一高清裁剪图像。云服务器200可以将第一高清裁剪图像发送给电子设备100。电子设备100可以将该第一高清裁剪图像回贴至低清图像中指定目标内容所在的第一区域,得到高清图像。In some embodiments, after acquiring the low-definition image, the electronic device 100 may identify and crop out the region where the specified target content is located from the low-definition image, to obtain the low-definition cropped image and the category of the specified target content. The electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 . The cloud server 200 may extract the first image feature from the low-definition cropped image. A first high-definition texture feature whose type of the shooting target is the same as the category of the specified target content and whose content similarity with the first image feature is greater than a preset value is matched. The cloud server 200 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image. The cloud server 200 may send the first high-definition cropped image to the electronic device 100 . The electronic device 100 may paste the first high-definition cropped image back to the first region in the low-definition image where the specified target content is located, to obtain a high-definition image.
在一些实施例中,云服务器200上可以存储有多个不同拍摄目标类型的高清图像库,每一种拍摄目标类型的高清图像库中包括有该拍摄目标类型下的多张高清参考图像。电子设备100在获取到低清图像后,可以从低清图像中识别并裁剪出指定目标内容所在的区域,得到低清裁剪图像以及指定目标内容的类别。电子设备100可以将该低清裁剪图像和指定目标内容的类别发送给云服务器200。云服务器200可以基于低清裁剪图像和指定目标内容的类别,匹配出拍摄目标类型与指定目标内容的类别相同且与低清裁剪图像中内容相似度大于预设值的高清引导图像。云服务器200可以将该高清引导图像发送给电子设备100。电子设备100可以将该高清引导图像中的高清纹理特征,融合至低清裁剪图像中得到高清裁剪图像。电子设备100可以将该高清裁剪图像回贴至低清图像中指定目标内容所在的区域,得到高清图像。In some embodiments, the cloud server 200 may store multiple high-definition image libraries of different shooting target types, and the high-definition image library of each shooting target type includes multiple high-definition reference images under the shooting target type. After acquiring the low-definition image, the electronic device 100 can identify and crop out the region where the specified target content is located from the low-definition image, and obtain the low-definition cropped image and the category of the specified target content. The electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 . Based on the low-definition cropped image and the category of the specified target content, the cloud server 200 can match a high-definition guide image with the same shooting target type as the specified target content category and with a content similarity greater than a preset value in the low-definition cropped image. The cloud server 200 may send the high-definition guide image to the electronic device 100 . The electronic device 100 may fuse the high-definition texture features in the high-definition guide image into the low-definition cropped image to obtain a high-definition cropped image. The electronic device 100 can paste the high-definition cropped image back to the low-definition image where the specified target content is located to obtain a high-definition image.
可选的,云服务器200可以基于该高清引导图像,将该高清引导图像中的高清纹理特征,融合至低清裁剪图像中得到高清裁剪图像。云服务器200可以将该高清裁剪图像发送给电子设备100。电子设备100可以将该高清裁剪图像回贴至低清图像中指定目标内容所在的区域,得到高清图像。Optionally, the cloud server 200 may, based on the high-definition guide image, fuse high-definition texture features in the high-definition guide image into a low-definition cropped image to obtain a high-definition cropped image. The cloud server 200 may send the high-definition cropped image to the electronic device 100 . The electronic device 100 can paste the high-definition cropped image back to the low-definition image where the specified target content is located to obtain a high-definition image.
通过本申请实施例中提供的一种图像重建方法,电子设备100从获取到的低清图像中提取出指定目标内容的图像特征,并基于云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。电子设备可以将该高清纹理特征融合到低清图像中,得到高清图像。这样,可以针对性的针对特定目标进行超分重建,简化了超分重建过程中电子设备100上的运算量。With the image reconstruction method provided in the embodiment of the present application, the electronic device 100 extracts the image features of the specified target content from the acquired low-definition image, and based on the high-definition texture dictionary of the same category as the specified target content on the cloud server library to match high-definition texture features similar to the image features of the specified target content. The electronic device can fuse the high-definition texture features into a low-definition image to obtain a high-definition image. In this way, the super-resolution reconstruction can be performed specifically for a specific target, which simplifies the calculation amount on the electronic device 100 during the super-resolution reconstruction process.
下面介绍本申请另一实施例提供的一种图像重建方法。The following introduces an image reconstruction method provided by another embodiment of the present application.
图9示出了本申请实施例提供的一种图像重建方法的流程示意图。如图9所示,该方法,可以包括如下步骤:FIG. 9 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 9, the method may include the following steps:
S901、云服务器200获取多个高质量图像以及每个高质量图像的拍摄目标类别。S901. The cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
具体内容,可以参考前述图7所示实施例中的步骤S701。For specific content, reference may be made to step S701 in the foregoing embodiment shown in FIG. 7 .
S902、云服务器200可以提取出高质量图像中拍摄目标的纹理特征,建立多个不同拍摄目标类别的高清纹理字典库。S902. The cloud server 200 can extract the texture features of the shooting target in the high-quality image, and establish a plurality of high-definition texture dictionary libraries of different shooting target categories.
具体内容,可以参考前述图7所示实施例中的步骤S702。For specific content, reference may be made to step S702 in the foregoing embodiment shown in FIG. 7 .
S903、电子设备100显示拍摄预览界面,拍摄预览界面上显示有拍摄键和第一预览图像。S903 , the electronic device 100 displays a shooting preview interface, where a shooting key and a first preview image are displayed on the shooting preview interface.
示例性的,该拍摄预览界面可以是上述图3B所示的拍摄预览界面320,也可以是针对上述图4B所示的拍摄预览界面420,也可以是针对上述图5B所示的拍摄预览界面520。Exemplarily, the shooting preview interface may be the shooting preview interface 320 shown in FIG. 3B, the shooting preview interface 420 shown in FIG. 4B, or the shooting preview interface 520 shown in FIG. 5B. .
S904、电子设备100判断第一预览图像中是否包含指定目标内容。S904, the electronic device 100 determines whether the first preview image contains the specified target content.
其中,指定目标内容的类型可以包括人脸、建筑、绿植、动物猫、动物狗、动物鸟等图像内容中的任一种。Wherein, the type of the specified target content may include any one of image content such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
在一种可能的实现方式中,为了细分拍摄目标的类型,该指定目标内容的类型可以包括多个子类型。例如,对于人脸拍摄目标,可以包括肤色、年龄段、性别、种族等的子类型。对于知名建筑拍摄目标,可以包括视角、季节、光照环境等的子类型。In a possible implementation manner, in order to subdivide the type of the shooting target, the type of the specified target content may include multiple sub-types. For example, for a face photographing target, subtypes such as skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subtypes of perspective, season, lighting environment, etc. can be included.
在本申请实施例中,第一预览图像中的指定目标内容可以被称为第二指定目标内容。In this embodiment of the present application, the specified target content in the first preview image may be referred to as the second specified target content.
若第一预览图像中包含指定目标内容,则执行S905、电子设备100可以确定出第一预览图像中指定目标内容的类别为第二类别以及指定目标内容所在的第二区域。If the first preview image contains the specified target content, then execute S905, and the electronic device 100 may determine that the category of the specified target content in the first preview image is the second category and the second region where the specified target content is located.
S906、电子设备100从第一预览图像中裁剪出指定目标内容所在的第二区域,得到第二低清裁剪图像。S906 , the electronic device 100 crops out the second region where the specified target content is located from the first preview image, and obtains a second low-definition cropped image.
其中,电子设备100可以在识别出第一预览图像的指定目标内容所在的第二区域后,生成该第一预览图像的二值mask图像。该第一预览图像的二值mask图像可以将该指定目标内容在低清图像中所在的第二区域显示为白色,将其他位置显示为黑色。电子设备100可以基于该第一预览图像的二值mask图像,确定出第一预览图像中裁剪框的坐标。该裁剪框在第一预览图像中的位置包括该第二区域。电子设备100可以基于该裁剪框,从第一预览图像中裁剪出指定目标内容所在的第二区域,得到第二低清裁剪图像。The electronic device 100 may generate a binary mask image of the first preview image after identifying the second region where the specified target content of the first preview image is located. The binary mask image of the first preview image can display the second area where the specified target content is located in the low-definition image as white, and display other locations as black. The electronic device 100 may determine the coordinates of the cropping frame in the first preview image based on the binary mask image of the first preview image. The position of the cropping frame in the first preview image includes the second area. The electronic device 100 may, based on the cropping frame, crop out the second area where the specified target content is located from the first preview image to obtain a second low-definition cropped image.
S907、电子设备100提取出第二低清裁剪图像的第二图像特征。S907 , the electronic device 100 extracts the second image feature of the second low-definition cropped image.
S908、电子设备100将第二图像特征以及第二类别发送给云服务器200。S908 , the electronic device 100 sends the second image feature and the second category to the cloud server 200 .
S909、云服务器200确定出拍摄目标类别为第二类别的第二高清纹理字典库。S909 , the cloud server 200 determines that the shooting target category is the second high-definition texture dictionary library of the second category.
S910、云服务器200从第二高清纹理字典库中匹配出与第二图像特征相似的第二高清纹理特征。S910. The cloud server 200 matches a second high-definition texture feature similar to the second image feature from the second high-definition texture dictionary library.
具体的,云服务器200可以从第二高清纹理字典库中匹配出与第二图像特征的内容相似度大于预设值的第二高清纹理特征。Specifically, the cloud server 200 may match a second high-definition texture feature whose content similarity with the second image feature is greater than a preset value from the second high-definition texture dictionary library.
S911、云服务器200将第二高清纹理特征发送给电子设备100。S911 , the cloud server 200 sends the second high-definition texture feature to the electronic device 100 .
S912、电子设备100保存第二高清纹理特征至缓存队列。S912, the electronic device 100 saves the second high-definition texture feature to the cache queue.
其中,该缓存队列可以是运行内存中的存储区域。电子设备100在获取到第二高清纹理特征后,可以将该第二高清纹理特征保存至缓存队列中。Wherein, the cache queue may be a storage area in the running memory. After acquiring the second high-definition texture feature, the electronic device 100 may save the second high-definition texture feature into a cache queue.
在一些实施例中,电子设备100还可以获取摄像头捕捉到的第二预览图像,电子设备100可以判断第二预览图像中是否包含指定目标内容,若包括,则电子设备100可以确定出第二预览图像中指定目标内容的类别为第三类别以及指定目标内容所在的第三区域。电子设备100可以从第二预览图像中裁剪出指定目标内容所在的第三区域,得到第三低清裁剪图像。电子设备100可以提取出第三低清裁剪图像的第三图像特征。电子设备100可以判断第三图像特征与缓存队列中存储的第二高清纹理特征的相似度是否大于预设值,若大于,则电子设备100可以将缓存队列中存储的第二高清纹理特征融合至第三低清裁剪图像中,得到第三高清裁剪图像。In some embodiments, the electronic device 100 may also acquire a second preview image captured by the camera, and the electronic device 100 may determine whether the second preview image contains the specified target content, and if so, the electronic device 100 may determine the second preview image The category of the specified target content in the image is the third category and the third area where the specified target content is located. The electronic device 100 may crop out the third area where the specified target content is located from the second preview image to obtain a third low-definition cropped image. The electronic device 100 may extract the third image feature of the third low-definition cropped image. The electronic device 100 can determine whether the similarity between the third image feature and the second high-definition texture feature stored in the cache queue is greater than a preset value. In the third low-definition cropped image, a third high-definition cropped image is obtained.
在本申请实施例中,第三预览图像中的指定目标内容可以被称为第三指定目标内容。In this embodiment of the present application, the specified target content in the third preview image may be referred to as the third specified target content.
当第三图像特征与缓存队列中存储的第二高清纹理特征的相似度小于预设值时,电子设备100可以将第三图像特征以及第三类别发送给云服务器200。云服务器200确定出第三类别对应的第三高清纹理字典库,并从第三高清纹理字典库中匹配出与第三图像特征相似的第三高清纹理特征。云服务器200可以将第三高清纹理特征发送给电子设备100。电子设备100在获取到第三高清纹理特征后,可以将第三高清纹理特征融合至第三低清裁剪图像中,得到第三高清裁剪图像。When the similarity between the third image feature and the second high-definition texture feature stored in the cache queue is less than the preset value, the electronic device 100 may send the third image feature and the third category to the cloud server 200 . The cloud server 200 determines a third high-definition texture dictionary corresponding to the third category, and matches a third high-definition texture feature similar to the third image feature from the third high-definition texture dictionary. The cloud server 200 may send the third high-definition texture feature to the electronic device 100 . After acquiring the third high-definition texture feature, the electronic device 100 may fuse the third high-definition texture feature into the third low-definition cropped image to obtain a third high-definition cropped image.
在得到第三高清裁剪图像后,电子设备100可以将第三高清裁剪图像回贴至第二预览图像中的第三区域,得到高清预览图像。电子设备100可以在拍摄预览界面上显示高清预览图像。After obtaining the third high-definition cropped image, the electronic device 100 may paste the third high-definition cropped image back to the third area in the second preview image to obtain a high-definition preview image. The electronic device 100 may display a high-definition preview image on the shooting preview interface.
这样,可以提升电子设备100在拍摄预览过程中预览画面的分辨率。In this way, the resolution of the preview image during the shooting preview process of the electronic device 100 can be improved.
S913、电子设备100接收第一输入,获取低清图像。S913, the electronic device 100 receives the first input, and acquires a low-definition image.
示例性的,第一输入可以是针对上述图3B所示拍摄预览界面320中拍摄控件322的输入,也可以是针对上述图4B所示拍摄预览界面420中拍摄控件422的输入,也可以是针对上述图5B所示拍摄预览界面520中拍摄控件522的输入。响应于该第一输入,电子设备100可以获取摄像头拍摄到的低清图像。Exemplarily, the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B . The input of the shooting control 522 in the shooting preview interface 520 shown in FIG. 5B above. In response to the first input, the electronic device 100 may acquire a low-definition image captured by the camera.
在一种可能的实现方式中,该第一输入还可以是针对上述图6C所示图片浏览界面620中超分重建控件624的输入。响应于该第一输入,电子设备100可以将上述图6C所示图片浏览界面620中显示的图片621确定为低清图像。In a possible implementation manner, the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C. In response to the first input, the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
S914、电子设备100判断低清图像中是否包含有指定目标内容。S914 , the electronic device 100 determines whether the low-definition image contains the specified target content.
若包含,则执行S915、电子设备100确定出低清图像中指定目标内容的类别为第一类别以及指定目标内容所在的第一区域。If yes, execute S915, the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category and the first region where the specified target content is located.
其中,指定目标内容的类型可以包括人脸、建筑、绿植、动物猫、动物狗、动物鸟等图像内容中的任一种。Wherein, the type of the specified target content may include any one of image content such as human faces, buildings, green plants, animal cats, animal dogs, and animal birds.
在一种可能的实现方式中,为了细分拍摄目标的类型,该指定目标内容的类型可以包括多个子类型。例如,对于人脸拍摄目标,可以包括肤色、年龄段、性别、种族等的子类型。对于知名建筑拍摄目标,可以包括视角、季节、光照环境等的子类型。In a possible implementation manner, in order to subdivide the type of the shooting target, the type of the specified target content may include multiple sub-types. For example, for a face photographing target, subtypes such as skin color, age group, gender, race, etc. may be included. For well-known architectural targets, subtypes of perspective, season, lighting environment, etc. can be included.
S916、电子设备100从低清图像中裁剪出指定目标内容所在的第一区域,得到第一低清裁剪图像。S916 , the electronic device 100 crops out the first region where the specified target content is located from the low-definition image, and obtains a first low-definition cropped image.
具体内容,可以参考前述图7所示实施例中步骤S707,在此不再赘述。For specific content, reference may be made to step S707 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
S917、电子设备100可以提取出第一低清裁剪图像的第一图像特征。S917. The electronic device 100 may extract the first image feature of the first low-definition cropped image.
具体内容,可以参考前述图7所示实施例中的步骤S708,在此不再赘述。For specific content, reference may be made to step S708 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
S918、电子设备100可以判断第一图像特征与缓存队列中的高清纹理特征的相似度是否大于预设值。S918. The electronic device 100 may determine whether the similarity between the first image feature and the high-definition texture feature in the cache queue is greater than a preset value.
若第一图像特征与缓存队列中的高清纹理特征的相似度大于预设值,则执行S919、电子设备100可以将缓存队列中的高清纹理特征融合至第一低清裁剪图像中,得到第一高清裁剪图像。If the similarity between the first image feature and the high-definition texture feature in the cache queue is greater than the preset value, then perform S919, and the electronic device 100 may fuse the high-definition texture feature in the cache queue into the first low-definition cropped image to obtain the first low-definition cropped image. HD cropped images.
例如,缓存队列中存储有第二高清纹理特征,电子设备100可以判断第一图像特征与第二高清纹理特征的相似度是否大于预设值,若大于,则电子设备100可以将缓存队列中的第二高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。For example, if the second high-definition texture feature is stored in the cache queue, the electronic device 100 can determine whether the similarity between the first image feature and the second high-definition texture feature is greater than a preset value. The second high-definition texture feature is fused into the first cropped image to obtain the first high-definition cropped image.
又例如,缓存队列中存储有第二高清纹理特征和第三高清纹理特征,电子设备100可计算第一图像特征分别第二高清纹理特征和第二高清纹理特征的相似度。若第一图像特征与第二高清纹理特征的相似度大于预设值,与第三高清纹理特征的相似度小于等于预设值,则电子设备100可以将第二高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。For another example, the second high-definition texture feature and the third high-definition texture feature are stored in the cache queue, and the electronic device 100 may calculate the similarity between the second high-definition texture feature and the second high-definition texture feature respectively for the first image feature. If the similarity between the first image feature and the second high-definition texture feature is greater than the preset value, and the similarity with the third high-definition texture feature is less than or equal to the preset value, the electronic device 100 may fuse the second high-definition texture feature into the first cropping image, get the first high-definition cropped image.
若第一图像特征与第二高清纹理特征的相似度小于等于预设值,与第三高清纹理特征的相似度大于预设值,则电子设备100可以将第三高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。If the similarity between the first image feature and the second high-definition texture feature is less than or equal to the preset value, and the similarity with the third high-definition texture feature is greater than the preset value, the electronic device 100 may fuse the third high-definition texture feature into the first cropping image, get the first high-definition cropped image.
若第一图像特征与第二高清纹理特征的相似度大于预设值,且与第三高清纹理特征的相似度大于预设值,则电子设备100可以比较第一图像特征与第二高清纹理特征的相似度、以及第一图像特征与第三高清纹理特征的相似度。当第一图像特征与第二高清纹理特征的相似度大于第一图像特征与第三高纹理特征的相似度,则电子设备100可以将第二高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。当第一图像特征与第二高清纹理特征的相似度小于等于第一图像特征与第三高纹理特征的相似度,则电子设备100可以将第三高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。If the similarity between the first image feature and the second high-definition texture feature is greater than the preset value, and the similarity with the third high-definition texture feature is greater than the preset value, the electronic device 100 may compare the first image feature and the second high-definition texture feature and the similarity between the first image feature and the third high-definition texture feature. When the similarity between the first image feature and the second high-definition texture feature is greater than the similarity between the first image feature and the third high-resolution texture feature, the electronic device 100 may fuse the second high-definition texture feature into the first cropped image to obtain the first image feature. One HD cropped image. When the similarity between the first image feature and the second high-definition texture feature is less than or equal to the similarity between the first image feature and the third high-resolution texture feature, the electronic device 100 may fuse the third high-definition texture feature into the first cropped image to obtain First HD cropped image.
若第一图像特征与第二高清纹理特征的相似度大于预设值,则执行步骤S920至步骤S924。其中:If the similarity between the first image feature and the second high-definition texture feature is greater than the preset value, steps S920 to S924 are performed. in:
S920、电子设备100可以将第一图像特征以及第一类别发送至云服务器200。S920 , the electronic device 100 may send the first image feature and the first category to the cloud server 200 .
其中,第一类别与上述第二类别和上述第三类别可以相同,也可以不同。The first category, the second category and the third category may be the same or different.
S921、电子设备100可以确定出拍摄目标类别为第一类别的第一高清纹理字典库。S921. The electronic device 100 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
具体内容,可以参考前述图7所示步骤S710,在此不再赘述。For specific content, reference may be made to the aforementioned step S710 shown in FIG. 7 , which will not be repeated here.
S922、云服务器200可以从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征。S922. The cloud server 200 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
具体的,云服务器200可以从第一高清纹理字典库中匹配出与第一图像特征的内容相似度大于预设值的第一高清纹理特征。Specifically, the cloud server 200 may match a first high-definition texture feature whose content similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library.
S923、云服务器200可以将第一高清纹理特征发送给电子设备100。S923 , the cloud server 200 may send the first high-definition texture feature to the electronic device 100 .
S924、电子设备100可以将第一高清纹理特征融合至第一低清裁剪图像中得到第一高清裁剪图像。S924. The electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
S925、电子设备100可以将第一高清裁剪图像替换第一低清裁剪图像,回贴到第低清图 像中的第一区域,得到高清图像。S925. The electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
具体内容,可以参考前述图7所示实施例中的步骤S714,在此不再赘述。For specific content, reference may be made to step S714 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
S926、电子设备100可以保存高清图像。S926, the electronic device 100 can save the high-definition image.
具体内容可以参考前述图7所示实施例中的步骤S715,在此不再赘述。For specific content, reference may be made to step S715 in the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
在一种可能的实现方式中,电子设备100在保存高清图像的同时还可以保存上述低清图像。In a possible implementation manner, the electronic device 100 may also save the above-mentioned low-definition image while saving the high-definition image.
在一种可能的实现方式中,电子设备100在保存高清图像的同时还可以显示该高清图像。In a possible implementation manner, the electronic device 100 can also display the high-definition image while saving the high-definition image.
通过本申请实施例中提供的一种图像重建方法,电子设备100可以利用拍照前摄像头捕捉到的预览画面中指定目标内容的图像特征,从云服务器上与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。在拍照时,电子设备可以将该高清纹理特征融合到拍摄到的低清图像中,得到高清图像。这样,可以利用预览图像中指定目标内容,先行获取到高清纹理特征,融合到拍照的低清图像中,提高了电子设备100拍摄照片的分辨率,并缩短了超分重建过程中的时间。With the image reconstruction method provided in the embodiment of the present application, the electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking a picture, to retrieve the high-definition texture dictionary of the same category as the specified target content from the cloud server library to match high-definition texture features similar to the image features of the specified target content. When taking a photo, the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image. In this way, high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
下面介绍本申请另一实施例提供的一种图像重建方法。The following introduces an image reconstruction method provided by another embodiment of the present application.
图10示出了本申请实施例提供的一种图像重建方法的流程示意图。如图10所示,该方法,可以包括如下步骤:FIG. 10 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 10, the method may include the following steps:
S1001、云服务器200获取多个高质量图像以及每个高质量图像的拍摄目标类别。S1001. The cloud server 200 acquires multiple high-quality images and a shooting target category of each high-quality image.
具体内容,可以参考前述图7所示实施例中的步骤S701。For specific content, reference may be made to step S701 in the foregoing embodiment shown in FIG. 7 .
S1002、云服务器200可以提取出高质量图像中拍摄目标的纹理特征,建立多个不同拍摄目标类别的高清纹理字典库。S1002. The cloud server 200 may extract the texture features of the shooting target in the high-quality image, and establish a plurality of high-definition texture dictionary libraries of different shooting target categories.
具体内容,可以参考前述图7所示实施例中的步骤S702。For specific content, reference may be made to step S702 in the foregoing embodiment shown in FIG. 7 .
S1003、云服务器200可以将字典库资源包发送给电子设备100,其中,该字典库资源包包括多个高清纹理字典库。S1003. The cloud server 200 may send a dictionary library resource package to the electronic device 100, where the dictionary library resource package includes multiple high-definition texture dictionary libraries.
S1004、电子设备接收第一输入。S1004, the electronic device receives the first input.
S1005、电子设备100响应于第一输入,获取低清图像。S1005, the electronic device 100 acquires a low-definition image in response to the first input.
示例性的,第一输入可以是针对上述图3B所示拍摄预览界面320中拍摄控件322的输入,也可以是针对上述图4B所示拍摄预览界面420中拍摄控件422的输入,也可以是针对上述图5B所示拍摄预览界面520中拍摄控件522的输入。响应于该第一输入,电子设备100可以获取摄像头拍摄到的低清图像。Exemplarily, the first input may be the input for the shooting control 322 in the shooting preview interface 320 shown in FIG. 3B , the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B , or the input for the shooting control 422 in the shooting preview interface 420 shown in FIG. 4B . The input of the shooting control 522 in the shooting preview interface 520 shown in FIG. 5B above. In response to the first input, the electronic device 100 may acquire a low-definition image captured by the camera.
在一种可能的实现方式中,该第一输入还可以是针对上述图6C所示图片浏览界面620中超分重建控件624的输入。响应于该第一输入,电子设备100可以将上述图6C所示图片浏览界面620中显示的图片621确定为低清图像。In a possible implementation manner, the first input may also be an input for the super-score reconstruction control 624 in the picture browsing interface 620 shown in FIG. 6C. In response to the first input, the electronic device 100 may determine the picture 621 displayed in the picture browsing interface 620 shown in FIG. 6C as a low-definition image.
S1006、电子设备100判断低清图像中是否包含有指定目标内容。S1006, the electronic device 100 determines whether the low-definition image contains the specified target content.
若低清图像中包含有指定目标内容,则执行S1007、电子设备100确定出低清图像中指定目标内容的类别为第一类别。If the low-definition image contains the specified target content, step S1007 is executed, and the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category.
S1008、电子设备100可以判断字典库资源包中是否包括有第一类别的第一高清纹理字典库。S1008. The electronic device 100 may determine whether the dictionary library resource package includes the first high-definition texture dictionary library of the first category.
若字典库资源包中不包括有第一类别的第一高清纹理字典库,则执行S1009、电子设备100可以根据用户的操作,判断是否要下载第一高清纹理字典库。若需要下载,则执行S1010、 电子设备100发送第一类别给云服务器200。If the dictionary library resource package does not include the first high-definition texture dictionary library of the first category, S1009 is performed, and the electronic device 100 may determine whether to download the first high-definition texture dictionary library according to the user's operation. If downloading is required, S1010 is executed, and the electronic device 100 sends the first category to the cloud server 200 .
S1011、云服务器200在接收到第一类别后,可以确定出拍摄目标类别为第一类别的第一高清纹理字典库。S1011. After receiving the first category, the cloud server 200 may determine that the shooting target category is the first high-definition texture dictionary library of the first category.
S1012云服务器200可以将第一高清纹理字典库发送给电子设备100。S1012 The cloud server 200 may send the first high-definition texture dictionary library to the electronic device 100 .
在一种可能的实现方式中,若电子设备100根据用户的操作确定不下载第一高清纹理字典库,则电子设备100可以利用通用超分处理策略对低清图像进行超分重建,得到高清图像。其中,通用超分处理策略包括将低清图像输入到超分网络模型中进行超分重建,得到高清图像。其中,该超分网络模型包括利用超分辨率重建生成式对抗网络(SRGAN)、增强型超分辨率重建生成式对抗网络(ESRGAN)、宽泛激活的高效准确图像超分辨率重建(WDSR)网络,等等。In a possible implementation manner, if the electronic device 100 determines not to download the first high-definition texture dictionary library according to the user's operation, the electronic device 100 can perform super-resolution reconstruction on the low-definition image by using a general super-resolution processing strategy to obtain a high-definition image . Among them, the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images. Among them, the super-resolution network model includes the use of super-resolution reconstruction generative adversarial network (SRGAN), enhanced super-resolution reconstruction generative adversarial network (ESRGAN), wide activation of efficient and accurate image super-resolution reconstruction (WDSR) network, and many more.
在一种可能的实现方式中,若字典库资源包中不包括有第一类别的第一高清纹理字典库,电子设备100可以跳过步骤S1009,直接执行上述步骤S1010。In a possible implementation manner, if the dictionary library resource package does not include the first high-definition texture dictionary library of the first category, the electronic device 100 may skip step S1009 and directly execute the above-mentioned step S1010.
若字典库资源包中包括有第一类别的第一高清纹理字典库,则电子设备100可以直接执行S1013。If the dictionary library resource package includes the first high-definition texture dictionary library of the first category, the electronic device 100 may directly execute S1013.
S1013、电子设备100在获取到第一高清纹理字典库后,可以从低清图像中裁剪出指定目标内容所在的第一区域,得到第一低清裁剪图像。S1013 , after acquiring the first high-definition texture dictionary library, the electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S707,在此不再赘述。For specific content, reference may be made to step S707 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1014、电子设备100可以提取出第一低清裁剪图像的第一图像特征。S1014. The electronic device 100 may extract the first image feature of the first low-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S708,在此不再赘述。For specific content, reference may be made to step S708 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1015、电子设备100可以从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征。S1015. The electronic device 100 may match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
具体内容,可以参考前述图7所示实施例的步骤S711中云服务器200的处理过程,在此不再赘述。For specific content, reference may be made to the processing process of the cloud server 200 in step S711 of the foregoing embodiment shown in FIG. 7 , which will not be repeated here.
S1016、电子设备100可以将第一高清纹理特征融合至第一低清裁剪图像中,得到第一高清裁剪图像。S1016. The electronic device 100 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S713,在此不再赘述。For specific content, reference may be made to step S713 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1017、电子设备100可以将第一高清裁剪图像替换第一低清裁剪图像,回贴至低清图像中的第一区域,得到高清图像。S1017. The electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
具体内容,可以参考前述图7所示实施例的步骤S714,在此不再赘述。For specific content, reference may be made to step S714 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
S1018、电子设备100保存高清图像。S1018, the electronic device 100 saves a high-definition image.
具体内容,可以参考前述图7所示实施例的步骤S715,在此不再赘述。For specific content, reference may be made to step S715 in the foregoing embodiment shown in FIG. 7 , and details are not repeated here.
在一些实施例中,电子设备100在获取到低清图像后,可以从低清图像中识别并裁剪出指定目标内容所在的区域,得到低清裁剪图像以及指定目标内容的类别。电子设备100可以将该低清裁剪图像和指定目标内容的类别发送给云服务器200。云服务器200可以从低清裁剪图像中提取出第一图像特征。匹配出拍摄目标类型与指定目标内容的类别相同且与第一图像特征的内容相似度大于预设值的第一高清纹理特征。云服务器200可以将该第一高清纹理特征融合到第一低清裁剪图像中,得到第一高清裁剪图像。云服务器200可以将第一高清裁 剪图像发送给电子设备100。电子设备100可以将该第一高清裁剪图像回贴至低清图像中指定目标内容所在的第一区域,得到高清图像。In some embodiments, after acquiring the low-definition image, the electronic device 100 may identify and crop out the region where the specified target content is located from the low-definition image, to obtain the low-definition cropped image and the category of the specified target content. The electronic device 100 may transmit the low-definition cropped image and the category of the designated target content to the cloud server 200 . The cloud server 200 may extract the first image feature from the low-definition cropped image. A first high-definition texture feature whose type of the shooting target is the same as the category of the specified target content and whose content similarity with the first image feature is greater than a preset value is matched. The cloud server 200 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image. The cloud server 200 may send the first high-definition cropped image to the electronic device 100. The electronic device 100 may paste the first high-definition cropped image back to the first region in the low-definition image where the specified target content is located, to obtain a high-definition image.
通过本申请实施例提供的一种图像重建方法,电子设备100可以从云服务器200中预先下载离线字典库资源包。电子设备100可以利用拍照前摄像头捕捉到的预览画面中指定目标内容的图像特征,从离线字典库资源包中与该指定目标内容同一类别的高清纹理字典库,匹配出与该指定目标内容的图像特征相似的高清纹理特征。在拍照时,电子设备可以将该高清纹理特征融合到拍摄到的低清图像中,得到高清图像。这样,可以利用预览图像中指定目标内容,先行获取到高清纹理特征,融合到拍照的低清图像中,提高了电子设备100拍摄照片的分辨率,并缩短了超分重建过程中的时间。With the image reconstruction method provided by the embodiment of the present application, the electronic device 100 can download the offline dictionary library resource package from the cloud server 200 in advance. The electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking the picture, from the high-definition texture dictionary library of the same category as the specified target content in the offline dictionary library resource package, and match the image of the specified target content. Features similar HD texture features. When taking a photo, the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image. In this way, high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
下面介绍本申请另一实施例提供的一种图像重建方法。The following introduces an image reconstruction method provided by another embodiment of the present application.
图11示出了本申请实施例提供的一种图像重建方法的流程示意图。如图11所示,该方法,可以包括如下步骤:FIG. 11 shows a schematic flowchart of an image reconstruction method provided by an embodiment of the present application. As shown in Figure 11, the method may include the following steps:
S1101、电子设备100上可以存储有多个不同拍摄目标类别的高清纹理字典库。S1101. The electronic device 100 may store a plurality of high-definition texture dictionary libraries of different shooting target categories.
S1102、电子设备100接收第一输入。S1102. The electronic device 100 receives the first input.
S1103、电子设备100响应于第一输入,获取低清图像。S1103. The electronic device 100 acquires a low-definition image in response to the first input.
S1104、电子设备100判断低清图像中是否包含指定目标内容。S1104. The electronic device 100 determines whether the low-definition image contains the specified target content.
若低清图像中包含有指定目标内容,则执行S1105、电子设备100确定出低清图像中指定目标内容的类别为第一类别。If the low-definition image contains the specified target content, execute S1105, and the electronic device 100 determines that the category of the specified target content in the low-definition image is the first category.
S1106、电子设备100从多个不同拍摄目标类别的高清纹理字典库中确定出拍摄目标类别为第一类别的第一高清纹理字典库。S1106. The electronic device 100 determines, from a plurality of high-definition texture dictionary libraries of different shooting target categories, that the shooting target category is the first high-definition texture dictionary library of the first category.
S1107、电子设备100可以从低清图像中裁剪出指定目标内容所在的第一区域,得到第一低清裁剪图像。S1107. The electronic device 100 may crop out the first region where the specified target content is located from the low-definition image, to obtain a first low-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S707,在此不再赘述。For specific content, reference may be made to step S707 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1108、电子设备100可以提取出第一低清裁剪图像的第一图像特征。S1108. The electronic device 100 may extract the first image feature of the first low-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S708,在此不再赘述。For specific content, reference may be made to step S708 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1109、电子设备100从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征。S1109. The electronic device 100 matches a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library.
具体内容,可以参考前述图7所示实施例的步骤S711中云服务器200从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征的过程,在此不再赘述。For details, refer to the process in step S711 of the aforementioned embodiment shown in FIG. 7 that the cloud server 200 matches the first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library, which will not be repeated here.
S1110、电子设备100可以将第一高清纹理特征融合至第一裁剪图像中,得到第一高清裁剪图像。S1110. The electronic device 100 may fuse the first high-definition texture feature into the first cropped image to obtain a first high-definition cropped image.
具体内容,可以参考前述图7所示实施例的步骤S713,在此不再赘述。For specific content, reference may be made to step S713 in the aforementioned embodiment shown in FIG. 7 , and details are not repeated here.
S1111、电子设备100可以将第一高清裁剪图像替换第一低清裁剪图像,回贴至低清图像中的第一区域,得到高清图像。S1111. The electronic device 100 may replace the first high-definition cropped image with the first low-definition cropped image, and paste it back to the first area in the low-definition image to obtain a high-definition image.
具体内容,可以参考前述图7所示实施例的步骤S714,在此不再赘述。For specific content, reference may be made to step S714 in the aforementioned embodiment shown in FIG. 7 , which will not be repeated here.
当低清图像中不包含有指定目标内容时,电子设备100可以执行步骤S1112、电子设备100通过通用超分处理策略对低清图像进行处理,得到高清图像。When the low-definition image does not contain the specified target content, the electronic device 100 may perform step S1112, and the electronic device 100 processes the low-definition image through a general super-resolution processing strategy to obtain a high-definition image.
其中,通用超分处理策略包括将低清图像输入到超分网络模型中进行超分重建,得到高 清图像。其中,该超分网络模型包括利用超分辨率重建生成式对抗网络(SRGAN)、增强型超分辨率重建生成式对抗网络(ESRGAN)、宽泛激活的高效准确图像超分辨率重建(WDSR)网络,等等。Among them, the general super-resolution processing strategy includes inputting low-definition images into the super-resolution network model for super-resolution reconstruction to obtain high-definition images. Among them, the super-resolution network model includes the use of super-resolution reconstruction generative adversarial network (SRGAN), enhanced super-resolution reconstruction generative adversarial network (ESRGAN), wide activation of efficient and accurate image super-resolution reconstruction (WDSR) network, and many more.
S1013、电子设备100保存高清图像。S1013, the electronic device 100 saves a high-definition image.
具体内容,可以参考前述图7所示实施例的步骤S715,在此不再赘述。For specific content, reference may be made to step S715 in the foregoing embodiment shown in FIG. 7 , and details are not repeated here.
通过本申请实施例提供的一种图像重建方法,电子设备100上可以存储有多个不同拍摄目标类别的高清纹理字典库。电子设备100可以利用拍照前摄像头捕捉到的预览画面中指定目标内容的图像特征,从多个不同拍摄目标类别的高清纹理字典库中与该指定目标内容同一类别的高清纹理字典库中,匹配出与该指定目标内容的图像特征相似的高清纹理特征。在拍照时,电子设备可以将该高清纹理特征融合到拍摄到的低清图像中,得到高清图像。这样,可以利用预览图像中指定目标内容,先行获取到高清纹理特征,融合到拍照的低清图像中,提高了电子设备100拍摄照片的分辨率,并缩短了超分重建过程中的时间。With the image reconstruction method provided by the embodiment of the present application, the electronic device 100 may store a plurality of high-definition texture dictionary libraries of different shooting target categories. The electronic device 100 can use the image features of the specified target content in the preview screen captured by the camera before taking pictures to match the high-definition texture dictionary library of the same category as the specified target content from the high-definition texture dictionary libraries of multiple different shooting target categories. High-definition texture features similar to the image features of the specified target content. When taking a picture, the electronic device can fuse the high-definition texture feature into the captured low-definition image to obtain a high-definition image. In this way, high-definition texture features can be obtained in advance by using the specified target content in the preview image and merged into the low-definition image taken, which improves the resolution of the photo taken by the electronic device 100 and shortens the time in the super-resolution reconstruction process.
下面介绍本申请实施例涉及的一种图像重建系统1200。The following describes an image reconstruction system 1200 involved in the embodiments of the present application.
图12示出了本申请实施例中提供的一种图像重建系统1200的架构示意图。其中,该图像重建系统1200可以包括电子设备100和云服务器200。FIG. 12 shows a schematic structural diagram of an image reconstruction system 1200 provided in an embodiment of the present application. The image reconstruction system 1200 may include the electronic device 100 and the cloud server 200 .
如图12所示,该电子设备100可以包括摄像头1211、图像信号处理器(ISP)1212、数字信号处理器(DSP)1213、目标识别模块1214、特征提取模块1215、特征融合模块1216和图像拼接模块1217。其中,在一些实施例中,该目标识别模块1214、特征提取模块1215、特征融合模块1216和图像拼接模块1217可以是神经网络计算处理器(NPU)或者图形处理器(GPU)。在另一些实施例中,该目标识别模块1214、特征提取模块1215、特征融合模块1216和图像拼接模块1217还可以是应用处理器1215中的软件处理模块。As shown in FIG. 12, the electronic device 100 may include a camera 1211, an image signal processor (ISP) 1212, a digital signal processor (DSP) 1213, a target recognition module 1214, a feature extraction module 1215, a feature fusion module 1216, and image stitching Module 1217. Wherein, in some embodiments, the target recognition module 1214, the feature extraction module 1215, the feature fusion module 1216 and the image stitching module 1217 may be a neural network computing processor (NPU) or a graphics processing unit (GPU). In other embodiments, the target recognition module 1214 , the feature extraction module 1215 , the feature fusion module 1216 and the image stitching module 1217 may also be software processing modules in the application processor 1215 .
云服务器200上可以包括有多个不同拍摄目标类型的高清纹理字典库、字典库匹配模块1221、特征匹配模块1222。The cloud server 200 may include a plurality of high-definition texture dictionary libraries of different shooting target types, a dictionary library matching module 1221, and a feature matching module 1222.
其中,该摄像头1211可用于在启动相机应用或功能时,捕获光信号,将光信号转换为电信号,发送给图像信号处理器1212。Wherein, the camera 1211 can be used to capture optical signals when starting the camera application or function, convert the optical signals into electrical signals, and send them to the image signal processor 1212 .
该图像信号处理器912可用于将摄像头1211发送的电信号转换成数字图像信号并将数字图像信号发送给数字信号处理器1213。The image signal processor 912 can be used to convert the electrical signal sent by the camera 1211 into a digital image signal and send the digital image signal to the digital signal processor 1213 .
该数字信号处理器1213可用于将数字图像信号处理成指定图像格式的预览图像流,该指定图像格式可以为Raw格式、YUV格式或RGB格式等等。The digital signal processor 1213 can be used to process the digital image signal into a preview image stream of a specified image format, and the specified image format can be Raw format, YUV format, RGB format, and so on.
该目标识别模块1214可用于基于用户操作触发生成的拍摄指令从书中信号处理器1213中获取到拍摄的低清图像,并识别出第一类别的指定目标内容。该目标识别模块1214还可以识别出该指定目标内容在低清图像中所在的第一区域,生成二值mask图像。该目标识别模块1214可以识别并裁剪出低清图像中的第一区域得到第一低清裁剪图像。The target identification module 1214 can be configured to obtain the captured low-definition image from the book signal processor 1213 based on the shooting instruction triggered by the user operation, and identify the specified target content of the first category. The target identification module 1214 can also identify the first region where the specified target content is located in the low-definition image, and generate a binary mask image. The target identification module 1214 can identify and crop out the first region in the low-definition image to obtain the first low-definition cropped image.
特征提取模块1215可以从第一低清裁剪图像中提取出第一图像特征。The feature extraction module 1215 may extract first image features from the first low-definition cropped image.
电子设备100可以将目标识别模块1214识别出的第一类别发送给云服务器200。电子设备100可以将第一图像特征(或第一低清裁剪图像)发送给云服务器200。其中:The electronic device 100 may send the first category identified by the target identification module 1214 to the cloud server 200 . The electronic device 100 may send the first image feature (or the first low-definition cropped image) to the cloud server 200 . in:
字典库匹配模块1221可以从多个不同拍摄目标类别的高清纹理字典库中选取出第一类 别的第一高清纹理字典库给到特征匹配模块1222。The dictionary library matching module 1221 can select the first high-definition texture dictionary library of the first category from a plurality of high-definition texture dictionary libraries of different shooting target categories and send it to the feature matching module 1222.
特征匹配模块1222可用于从第一高清纹理字典库中匹配出与第一图像特征相似的第一高清纹理特征。可选的,特征匹配模块1222在识别出第一图像特征相似的第一高清纹理特征之后,可以将第一高清纹理特征融合至第一低清裁剪图像中得到第一高清裁剪图像。The feature matching module 1222 may be configured to match a first high-definition texture feature similar to the first image feature from the first high-definition texture dictionary library. Optionally, after identifying the first high-definition texture features with similar first image features, the feature matching module 1222 may fuse the first high-definition texture features into the first low-definition cropped image to obtain the first high-definition cropped image.
云服务器200可以将第一高清纹理特征(或第一高清裁剪图像)发送给电子设备100。其中:The cloud server 200 may send the first high-definition texture feature (or the first high-definition cropped image) to the electronic device 100 . in:
特征融合模块1216可以将第一高清纹理特征融合至第一低清裁剪图像中,得到第一高清裁剪图像。The feature fusion module 1216 may fuse the first high-definition texture feature into the first low-definition cropped image to obtain the first high-definition cropped image.
图像拼接模块1217可以利用二值mask图像得到低清图像中指定目标内容所在的第一区域,将第一高清裁剪图像,回贴至低清图像中的第一区域,得到高清图像。The image stitching module 1217 can use the binary mask image to obtain the first area in the low-definition image where the specified target content is located, and paste the first high-definition cropped image back to the first area in the low-definition image to obtain a high-definition image.
具体内容未详述的部分,可以参考前述实施例,在此不再赘述。For parts that are not described in detail, reference may be made to the foregoing embodiments, which will not be repeated here.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims (19)

  1. 一种图像重建方法,其特征在于,包括:An image reconstruction method, comprising:
    电子设备接收第一输入;the electronic device receives the first input;
    所述电子设备响应于所述第一输入,获取所述摄像头采集的低清图像;The electronic device, in response to the first input, acquires a low-definition image captured by the camera;
    所述电子设备检测出所述低清图像中包括第一指定目标内容,所述第一指定目标内容的类别为第一类别;The electronic device detects that the low-definition image includes first specified target content, and the category of the first specified target content is the first category;
    所述电子设备提取出所述低清图像中所述第一指定目标内容的第一图像特征;The electronic device extracts the first image feature of the first specified target content in the low-definition image;
    所述电子设备将所述第一图像特征和所述第一类别发送给云服务器;其中,所述第一图像特征用于所述云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第一类别的第一高清纹理字典库;所述第一图像特征用于所述云服务器从所述第一高清纹理字典库中匹配出与所述第一图像特征的相似度大于预设值的第一高清纹理特征;The electronic device sends the first image feature and the first category to the cloud server; wherein, the first image feature is used by the cloud server to store a plurality of high-definition texture dictionary libraries of different shooting target categories The first high-definition texture dictionary library whose shooting target category is the first category is matched in the middle; the first image feature is used by the cloud server to match the first high-definition texture dictionary library with the first image feature from the first high-definition texture dictionary library. the first high-definition texture feature whose similarity is greater than the preset value;
    所述电子设备接收所述云服务器发送的所述第一高清纹理特征;The electronic device receives the first high-definition texture feature sent by the cloud server;
    所述电子设备将所述第一高清纹理特征融合至所述低清图像中,得到高清图像,所述高清图像中所述第一指定目标内容的分辨率大于所述低清图像中所述第一指定目标内容的分辨率。The electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, and the resolution of the first specified target content in the high-definition image is greater than the resolution of the first specified target content in the low-definition image. - Specifies the resolution of the target content.
  2. 根据权利要求1所述的方法,其特征在于,所述电子设备提取出所述低清图像中所述第一指定目标内容的第一图像特征,具体包括:The method according to claim 1, wherein the electronic device extracts the first image feature of the first specified target content in the low-definition image, which specifically includes:
    所述电子设备识别并裁剪出所述低清图像中所述第一指定目标内容所在的第一区域,得到第一低清裁剪图像,所述第一低清裁剪图像包括所述第一指定目标内容;The electronic device identifies and crops out the first area in the low-definition image where the first specified target content is located, and obtains a first low-definition cropped image, where the first low-definition cropped image includes the first specified target content;
    所述电子设备提取出所述第一低清裁剪图像的第一图像特征。The electronic device extracts a first image feature of the first low-definition cropped image.
  3. 根据权利要求2所述的方法,其特征在于,所述电子设备将所述第一高清纹理特融合至所述低清图像中,得到高清图像,具体包括:The method according to claim 2, wherein the electronic device fuses the first high-definition texture into the low-definition image to obtain a high-definition image, specifically comprising:
    所述电子设备将所述第一高清纹理特征融合至所述第一低清裁剪图像中,得到第一高清裁剪图像;The electronic device fuses the first high-definition texture feature into the first low-definition cropped image to obtain a first high-definition cropped image;
    所述电子设备将所述第一高清裁剪图像替换所述第一低清裁剪图像,回贴至所述低清图像中的所述第一区域,得到所述高清图像。The electronic device replaces the first low-definition cropped image with the first high-definition cropped image, and pastes it back to the first area in the low-definition image to obtain the high-definition image.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在所述电子设备将所述第一高清纹理特征融合至所述低清图像中,得到高清图像之后,所述方法还包括:The method according to any one of claims 1-3, wherein after the electronic device fuses the first high-definition texture feature into the low-definition image to obtain a high-definition image, the method further comprises: :
    所述电子设备保存所述高清图像。The electronic device saves the high-definition image.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述电子设备接收第一输入之前,所述方法还包括:The method according to any one of claims 1-4, wherein before the electronic device receives the first input, the method further comprises:
    所述电子设备显示拍摄预览界面,所述拍摄预览界面上显示有拍摄键和摄像头实时采集的预览图像流,所述第一输入为针对所述拍摄键的输入。The electronic device displays a shooting preview interface, where a shooting key and a preview image stream captured in real time by a camera are displayed on the shooting preview interface, and the first input is an input for the shooting key.
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述拍摄预览界面上还显示有第一控件;在所述电子设备接收第一输入之前,所述方法还包括:The method according to any one of claims 1-5, wherein a first control is further displayed on the shooting preview interface; before the electronic device receives the first input, the method further comprises:
    所述电子设备接收针对所述第一控件的第二输入;the electronic device receives a second input for the first control;
    响应于所述第二输入,所述电子设备开启超分重建模式。In response to the second input, the electronic device initiates a super-resolution reconstruction mode.
  7. 根据权利要求1-4所述的方法,其特征在于,在所述电子设备接收第一输入之前,所述方法还包括:The method according to claims 1-4, wherein before the electronic device receives the first input, the method further comprises:
    所述电子设备显示图片浏览界面,所述图片浏览界面上显示有所述低清图像和第二控件,所述第一输入为针对所述第二控件的输入。The electronic device displays a picture browsing interface, the low-definition image and a second control are displayed on the picture browsing interface, and the first input is an input for the second control.
  8. 根据权利要求5所述的方法,其特征在于,所述预览图像流中包括第一预览图像;在所述电子设备接收第一输入之前,所述方法还包括:The method according to claim 5, wherein the preview image stream includes a first preview image; before the electronic device receives the first input, the method further comprises:
    所述电子设备检测出所述第一预览图像中包括第二指定目标内容,所述第二指定目标内容的类别为第二类别,所述第二类别与所述第一类别相同或不同;The electronic device detects that the first preview image includes a second specified target content, and the category of the second specified target content is a second category, and the second category is the same as or different from the first category;
    所述电子设备提取出所述第一预览图像中的第二图像特征;The electronic device extracts the second image feature in the first preview image;
    所述电子设备将所述第二图像特征和所述第二类别发送给云服务器;其中,所述第二图像特征用于所述云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第二类别的第二高清纹理字典库;所述第二图像特征用于所述云服务器从所述第二高清纹理字典库中匹配出与所述第二图像特征的相似度大于预设值的第二高清纹理特征;The electronic device sends the second image feature and the second category to the cloud server; wherein, the second image feature is used by the cloud server from a plurality of high-definition texture dictionary libraries of different shooting target categories stored in the cloud server The second high-definition texture dictionary library whose shooting target category is the second category is matched from the second image feature; the second image feature is used by the cloud server to match the second high-definition texture dictionary library with the second image feature from the second high-definition texture dictionary library. The second high-definition texture feature whose similarity is greater than the preset value;
    所述电子设备接收所述云服务器发送的所述第二高清纹理特征;receiving, by the electronic device, the second high-definition texture feature sent by the cloud server;
    所述电子设备存储所述第二高清纹理特征至缓存队列中。The electronic device stores the second high-definition texture feature in a cache queue.
  9. 根据权利要求8所述的方法,其特征在于,所述电子设备提取出所述第一预览图像中所述第二指定目标内容的第二图像特征,具体包括:The method according to claim 8, wherein the electronic device extracts the second image feature of the second specified target content in the first preview image, which specifically includes:
    所述电子设备识别并裁剪出所述低清图像中所述第二指定目标内容所在的第二区域,得到第二低清裁剪图像;The electronic device identifies and crops out the second area in the low-definition image where the second specified target content is located, to obtain a second low-definition cropped image;
    所述电子设备提取出所述第二低清裁剪图像的第二图像特征。The electronic device extracts a second image feature of the second low-definition cropped image.
  10. 根据权利要求8所述的方法,其特征在于,在所述电子设备检测出所述第一预览图像中包括第二指定目标内容之后,所述方法还包括:The method according to claim 8, wherein after the electronic device detects that the first preview image includes the second specified target content, the method further comprises:
    所述电子设备在所述拍摄预览界面上显示类别信息,所述类别信息用于表示所述预览图像流中所述指定目标内容的类别为所述第二类别。The electronic device displays category information on the shooting preview interface, where the category information is used to indicate that the category of the specified target content in the preview image stream is the second category.
  11. 根据权利要求8所述的方法,其特征在于,所述电子设备存储所述第二高清纹理特征至缓存队列中之后,所述方法还包括;The method according to claim 8, wherein after the electronic device stores the second high-definition texture feature in a cache queue, the method further comprises:
    所述电子设备获取到摄像头采集到的第二预览图像;The electronic device obtains the second preview image collected by the camera;
    所述电子设备所述电子设备检测出所述第二预览图像中包括第三指定目标内容,所述第三指定目标内容的类别为第三类别,所述第三类别与所述第二类别相同或不同;The electronic device detects that the second preview image includes a third specified target content, and the category of the third specified target content is a third category, and the third category is the same as the second category or different;
    所述电子设备识别并裁剪出所述低清图像中所述第三指定目标内容所在的第三区域,得到第三低清裁剪图像;The electronic device identifies and crops out a third area in the low-definition image where the third specified target content is located, to obtain a third low-definition cropped image;
    所述电子设备提取出所述第三低清裁剪图像的第三图像特征;extracting, by the electronic device, a third image feature of the third low-definition cropped image;
    所述电子设备判断所述缓存队列中是否存储有与所述第三图像特征的相似度大于预设值的高清纹理特征;The electronic device determines whether there is a high-definition texture feature whose similarity with the third image feature is greater than a preset value stored in the cache queue;
    若所述缓存队列中存储有与所述第三图像特征的相似度大于预设值的高清纹理特征,所 述电子设备利用所述缓存队列中与所述第三图像特征的相似度大于预设值的高清纹理特征融合至所述第三低清裁剪图像中,得到第三高清裁剪图像;If a high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored in the cache queue, the electronic device uses the cache queue with a similarity with the third image feature greater than a preset value. The high-definition texture feature of the value is fused into the third low-definition cropped image to obtain a third high-definition cropped image;
    所述电子设备将所述第三高清裁剪图像替换所述第三低清裁剪图像,回贴至所述第二预览图像中的第三区域,得到高清预览图像;The electronic device replaces the third high-definition cropped image with the third low-definition cropped image, and pastes it back to the third area in the second preview image to obtain a high-definition preview image;
    所述电子设备在所述拍摄预览界面上显示所述高清预览图像。The electronic device displays the high-definition preview image on the shooting preview interface.
  12. 根据权利要求11所述的方法,其特征在于,若所述缓存队列中未存储有与所述第三图像特征的相似度大于预设值的高清纹理特征,所述方法还包括:The method according to claim 11, wherein, if no high-definition texture feature whose similarity with the third image feature is greater than a preset value is stored in the cache queue, the method further comprises:
    所述电子设备将所述第三图像特征和所述第三类别发送给云服务器;其中,所述第三图像特征用于所述云服务器从存储的多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第三类别的第三高清纹理字典库;所述第三图像特征用于所述云服务器从所述第三高清纹理字典库中匹配出与所述第三图像特征的相似度大于预设值的第三高清纹理特征;The electronic device sends the third image feature and the third category to the cloud server; wherein, the third image feature is used by the cloud server from a plurality of high-definition texture dictionary libraries of different shooting target categories stored in the cloud server The third high-definition texture dictionary library whose shooting target category is the third category is matched from the third image feature; the third image feature is used by the cloud server to match the third image feature from the third high-definition texture dictionary library. The third high-definition texture feature whose similarity is greater than the preset value;
    所述电子设备接收云服务器发送的所述第三高清纹理特征;The electronic device receives the third high-definition texture feature sent by the cloud server;
    所述电子设备将所述第三高清纹理特征存储至所述缓存队列中,并将所述第三高清纹理特征融合至所述第三低清裁剪图像中,得到所述第三高清裁剪图像。The electronic device stores the third high-definition texture feature in the cache queue, and fuses the third high-definition texture feature into the third low-definition cropped image to obtain the third high-definition cropped image.
  13. 根据权利要求8-12中任一项所述的方法,其特征在于,在所述电子设备将所述第一图像特征和所述第一类别发送给云服务器之前,所述方法还包括:The method according to any one of claims 8-12, wherein before the electronic device sends the first image feature and the first category to a cloud server, the method further comprises:
    所述电子设备判断所述缓存队列中是否存储有与所述第一图像特征的相似度大于预设值的高清纹理特征;The electronic device determines whether a high-definition texture feature with a similarity with the first image feature greater than a preset value is stored in the cache queue;
    所述电子设备将所述第一图像特征和所述第一类别发送给云服务器,具体包括:The electronic device sends the first image feature and the first category to the cloud server, specifically including:
    若所述缓存队列中未存储有与所述第一图像特征的相似度大于预设值的高清纹理特征,所述电子设备将所述第一图像特征和所述第一类别发送给所述云服务器。If no high-definition texture feature whose similarity with the first image feature is greater than a preset value is stored in the cache queue, the electronic device sends the first image feature and the first category to the cloud server.
  14. 根据权利要求13所述的方法,其特征在于,若所述缓存队列中存储有与所述第一图像特征的相似度大于预设值的高清纹理特征,所述方法还包括:The method according to claim 13, wherein if the cache queue stores high-definition texture features whose similarity with the first image feature is greater than a preset value, the method further comprises:
    所述电子设备将所述缓存队列中与所述第一图像特征的相似度大于预设值的高清纹理特征融合至所述低清图像中,得到所述高清图像。The electronic device fuses a high-definition texture feature in the cache queue with a similarity degree of the first image feature greater than a preset value into the low-definition image to obtain the high-definition image.
  15. 一种电子设备,其特征在于,包括:一个或多个处理器、一个或多个存储器和显示屏;所述一个或多个存储器与一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行上述权利要求1-14中的任一项所述的图像重建方法。An electronic device, comprising: one or more processors, one or more memories, and a display screen; the one or more memories are coupled with one or more processors, and the one or more memories for storing computer program code, the computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform any one of the preceding claims 1-14. Image reconstruction method.
  16. 一种可读存储介质,用于存储有计算机指令,当计算机指令在电子设备上运行时,使得所述电子设备执行上述权利要求1-14中的任一项所述的图像重建方法。A readable storage medium for storing computer instructions, when the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the image reconstruction method according to any one of the above claims 1-14.
  17. 一种图像重建系统,其特征在于,包括电子设备和云服务器,所述云服务器上存储有多个不同拍摄目标类别的高清纹理字典库;其中,An image reconstruction system, characterized in that it includes an electronic device and a cloud server, and the cloud server stores a plurality of high-definition texture dictionary libraries of different shooting target categories; wherein,
    所述电子设备,用于接收第一输入;the electronic device for receiving a first input;
    所述电子设备,还用于响应于所述第一输入,获取所述摄像头采集的低清图像;The electronic device is further configured to acquire a low-definition image captured by the camera in response to the first input;
    所述电子设备,还用于检测出所述低清图像中包括第一指定目标内容,所述第一指定目标内容的类别为第一类别;The electronic device is further configured to detect that the low-definition image includes a first specified target content, and the category of the first specified target content is the first category;
    所述电子设备,还用于提取出所述低清图像中所述第一指定目标内容的第一图像特征;The electronic device is further configured to extract the first image feature of the first specified target content in the low-definition image;
    所述电子设备,还用于将所述第一图像特征和所述第一类别发送给所述云服务器;The electronic device is further configured to send the first image feature and the first category to the cloud server;
    所述云服务器,用于从存储的所述多个不同拍摄目标类别的高清纹理字典库中匹配出拍摄目标类别为第一类别的第一高清纹理字典库;The cloud server is configured to match a first high-definition texture dictionary library whose shooting target category is the first category from the stored high-definition texture dictionary libraries of different shooting target categories;
    所述云服务器,还用于从所述第一高清纹理字典库中匹配出与所述第一图像特征的相似度大于预设值的第一高清纹理特征;The cloud server is further configured to match a first high-definition texture feature whose similarity with the first image feature is greater than a preset value from the first high-definition texture dictionary library;
    所述云服务器,还用于将所述第一高清纹理特征发送给所述电子设备;The cloud server is further configured to send the first high-definition texture feature to the electronic device;
    所述电子设备,还用于将所述第一高清纹理特征融合至所述低清图像中,得到高清图像,其中,所述高清图像中所述第一指定目标内容的分辨率大于所述低清图像中所述第一指定目标内容的分辨率。The electronic device is further configured to fuse the first high-definition texture feature into the low-definition image to obtain a high-definition image, wherein the resolution of the first specified target content in the high-definition image is greater than the resolution of the low-definition image. Clear the resolution of the first specified target content in the image.
  18. 根据权利要求17所述的系统,其特征在于,所述云服务器,还用于获取多个高质量图像以及每个高质量图像的拍摄目标类别;The system according to claim 17, wherein the cloud server is further configured to acquire a plurality of high-quality images and a shooting target category of each high-quality image;
    所述云服务器还用于提取出所述高质量图像中拍摄目标类别的高清纹理特征,存入所述高质量图像的拍摄目标类别对应的高清纹理字典库中。The cloud server is further configured to extract the high-definition texture features of the shooting target category in the high-quality image, and store them in the high-definition texture dictionary library corresponding to the shooting target category of the high-quality image.
  19. 根据权利要求17或18所述的系统,其特征在于,所述电子设备,还用于将所述电子设备上目标识别模型的识别类别集合发送给所述云服务器;The system according to claim 17 or 18, wherein the electronic device is further configured to send the set of recognition categories of the target recognition model on the electronic device to the cloud server;
    所述云服务器,还用于在确定出所述识别类别集合与所述多个不同拍摄目标类别的高清纹理字典库的类别集合不同时,发送模型更新信息给所述电子设备;The cloud server is further configured to send model update information to the electronic device when it is determined that the identification category set is different from the category set of the multiple high-definition texture dictionary libraries of different shooting target categories;
    所述电子设备,还用于基于所述模型更新信息,更新所述电子设备上的目标识别模型;其中,在更新后,所述电子设备上的目标识别模型的识别类别集合与所述多个不同拍摄目标类别的高清纹理字典库的类别集合相同。The electronic device is further configured to update the target recognition model on the electronic device based on the model update information; wherein, after the update, the recognition category set of the target recognition model on the electronic device is the same as that of the plurality of target recognition models. The category set of the HD texture dictionary library is the same for different shooting target categories.
PCT/CN2021/143179 2020-12-31 2021-12-30 Image reconstruction method, and related apparatus and system WO2022143921A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011639566.0A CN114697543B (en) 2020-12-31 2020-12-31 Image reconstruction method, related device and system
CN202011639566.0 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022143921A1 true WO2022143921A1 (en) 2022-07-07

Family

ID=82136358

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143179 WO2022143921A1 (en) 2020-12-31 2021-12-30 Image reconstruction method, and related apparatus and system

Country Status (2)

Country Link
CN (1) CN114697543B (en)
WO (1) WO2022143921A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117593611A (en) * 2024-01-19 2024-02-23 荣耀终端有限公司 Model training method, image reconstruction method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116452466B (en) * 2023-06-14 2023-10-20 荣耀终端有限公司 Image processing method, device, equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930518A (en) * 2012-06-13 2013-02-13 上海汇纳网络信息科技有限公司 Improved sparse representation based image super-resolution method
CN107481188A (en) * 2017-06-23 2017-12-15 珠海经济特区远宏科技有限公司 A kind of image super-resolution reconstructing method
US10467729B1 (en) * 2017-10-12 2019-11-05 Amazon Technologies, Inc. Neural network-based image processing
CN110796600A (en) * 2019-10-29 2020-02-14 Oppo广东移动通信有限公司 Image super-resolution reconstruction method, image super-resolution reconstruction device and electronic equipment
CN111445564A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Face texture image generation method and device, computer equipment and storage medium
CN112258392A (en) * 2020-10-21 2021-01-22 广州云从凯风科技有限公司 Super-resolution image training method, device, medium and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507158A (en) * 2016-06-14 2017-12-22 中兴通讯股份有限公司 A kind of image processing method and device
JP6900704B2 (en) * 2017-02-28 2021-07-07 株式会社島津製作所 Cell observation system
CN111127317B (en) * 2019-12-02 2023-07-25 深圳供电局有限公司 Image super-resolution reconstruction method, device, storage medium and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930518A (en) * 2012-06-13 2013-02-13 上海汇纳网络信息科技有限公司 Improved sparse representation based image super-resolution method
CN107481188A (en) * 2017-06-23 2017-12-15 珠海经济特区远宏科技有限公司 A kind of image super-resolution reconstructing method
US10467729B1 (en) * 2017-10-12 2019-11-05 Amazon Technologies, Inc. Neural network-based image processing
CN110796600A (en) * 2019-10-29 2020-02-14 Oppo广东移动通信有限公司 Image super-resolution reconstruction method, image super-resolution reconstruction device and electronic equipment
CN111445564A (en) * 2020-03-26 2020-07-24 腾讯科技(深圳)有限公司 Face texture image generation method and device, computer equipment and storage medium
CN112258392A (en) * 2020-10-21 2021-01-22 广州云从凯风科技有限公司 Super-resolution image training method, device, medium and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117593611A (en) * 2024-01-19 2024-02-23 荣耀终端有限公司 Model training method, image reconstruction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114697543B (en) 2023-05-19
CN114697543A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
CN113794800B (en) Voice control method and electronic equipment
JP7238115B2 (en) Photography scenarios and methods for displaying images on electronic devices
WO2020073959A1 (en) Image capturing method, and electronic device
WO2021104485A1 (en) Photographing method and electronic device
CN114915726A (en) Shooting method and electronic equipment
WO2021129198A1 (en) Method for photography in long-focal-length scenario, and terminal
WO2021143269A1 (en) Photographic method in long focal length scenario, and mobile terminal
WO2021013132A1 (en) Input method and electronic device
WO2020029306A1 (en) Image capture method and electronic device
WO2021169394A1 (en) Depth-based human body image beautification method and electronic device
WO2021258814A1 (en) Video synthesis method and apparatus, electronic device, and storage medium
CN112580400B (en) Image optimization method and electronic equipment
WO2022143921A1 (en) Image reconstruction method, and related apparatus and system
CN113542580B (en) Method and device for removing light spots of glasses and electronic equipment
CN112840635A (en) Intelligent photographing method, system and related device
CN115734071A (en) Image processing method and device
CN113170037A (en) Method for shooting long exposure image and electronic equipment
CN113949803A (en) Photographing method and electronic equipment
CN112150499A (en) Image processing method and related device
CN112584037B (en) Method for saving image and electronic equipment
WO2021115483A1 (en) Image processing method and related apparatus
CN115484380A (en) Shooting method, graphical user interface and electronic equipment
CN112532508B (en) Video communication method and video communication device
CN114283195B (en) Method for generating dynamic image, electronic device and readable storage medium
CN113497888B (en) Photo preview method, electronic device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21914651

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21914651

Country of ref document: EP

Kind code of ref document: A1