WO2022017261A1 - Procédé de synthèse d'image et dispositif électronique - Google Patents

Procédé de synthèse d'image et dispositif électronique Download PDF

Info

Publication number
WO2022017261A1
WO2022017261A1 PCT/CN2021/106666 CN2021106666W WO2022017261A1 WO 2022017261 A1 WO2022017261 A1 WO 2022017261A1 CN 2021106666 W CN2021106666 W CN 2021106666W WO 2022017261 A1 WO2022017261 A1 WO 2022017261A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
shooting angle
information
background image
Prior art date
Application number
PCT/CN2021/106666
Other languages
English (en)
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 WO2022017261A1 publication Critical patent/WO2022017261A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay

Definitions

  • the present application relates to the technical field of intelligent terminals, and in particular, to an image synthesis method and an electronic device.
  • Cutout and background change is a process of separating a specified person image from a first image specified by a user, and synthesizing the separated person image into a second image to obtain a target image.
  • the second image in the synthesized target image is used as the background image of the separated person image, thereby realizing the background replacement of the person image.
  • the prior art mainly focuses on how to better separate the person image from the first image, and when synthesizing the separated person image into the second image, the user often scales the person image, and then the electronic device
  • the target image is obtained by directly synthesizing the person image and the second image.
  • the target image synthesized in this way often has problems such as mismatch between the character image and the background image, resulting in serious visual distortion of the target image and affecting user experience.
  • the present application provides an image synthesis method and electronic device, which can improve the problem of serious visual distortion of a target image and improve user experience.
  • an embodiment of the present application provides an image synthesis method, which is applied to an electronic device, including:
  • 3D perspective transformation is performed on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the shooting angle of the first image, and the target background image is obtained;
  • the foreground image separated from the first image is combined with the target background image to obtain the target image.
  • the method performs 3D perspective transformation on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the shooting angle of the first image, and the target background image is obtained, thereby Compared with the second image, the shooting angle of the target background image is the same or closer to the shooting angle of the first image, that is, the shooting angle of the foreground image and the target background image is the same or closer.
  • the target image obtained by the method of the embodiment of the present application is more visually reasonable and coordinated, thereby improving the problem of serious visual distortion of the target image in the prior art, and improving the user experience. experience.
  • acquiring the second image includes:
  • the background images to be selected that match the preset classification information of the first image; the displayed background images to be selected are sorted from small to large according to the shooting angle difference between the background images to be selected and the first image; the background images to be selected The shooting angle difference value with the first image is calculated according to the shooting angle information of the background image to be selected and the shooting angle information of the first image;
  • the background image to be selected indicated by the selection operation is used as the second image.
  • the background images to be selected displayed to the user are sorted according to the shooting angle difference between the background image to be selected and the first image from small to large, so that the shooting angles of the background images to be selected preferentially browsed by the user are closer to each other.
  • the shooting angle of the first image so that the fusion of the person image and the background image in the target image obtained after image synthesis according to the background image to be selected by the user is relatively more reasonable, natural and coordinated.
  • acquiring a background image to be selected that matches the preset classification information of the first image includes:
  • the background image to be selected is sorted by the server according to the difference value of the shooting angle between the background image to be selected and the first image, the background image to be selected and the first image are sorted by the server.
  • the difference value of the shooting angle between the images is calculated by the server according to the shooting angle information of the background image to be selected and the shooting angle information of the first image.
  • image synthesis is performed on the foreground image separated from the first image and the target background image to obtain the target image, including:
  • Display the target background image receive the user's position designation operation on the target background image, and obtain the position information of the user's designated position on the target background image;
  • the target foreground image is synthesized to the position indicated by the position information in the target background image to obtain the target image.
  • the size of the foreground image can be made closer to the size of the image obtained by real shooting, so that the target image is visually more reasonable and coordinated.
  • the method before synthesizing the target foreground image to the position indicated by the position information on the target background image, before obtaining the target image, the method further includes:
  • the colors of the target foreground image and the target eyepiece image can be made closer, and the synthesized target image has high fusion at the boundary of the two images, so that the target Images are more visually plausible and coordinated.
  • the shooting angle information includes: a shooting attitude angle
  • the shooting attitude angle includes: a pitch angle, an azimuth angle, and a roll angle.
  • an electronic device including:
  • a display screen ; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs including instructions that, when executed by the device, cause The device performs the following steps:
  • 3D perspective transformation is performed on the second image, so that the shooting angle information of the second image reaches or is close to the shooting angle information of the first image, and the target background image is obtained;
  • the foreground image separated from the first image is synthesized into the target background image to obtain the target image.
  • the step of acquiring the second image includes:
  • the displayed background images to be selected are sorted according to the difference value of the shooting angle between the background images to be selected and the first image;
  • the shooting angle difference value between the images is calculated according to the shooting angle information of the background image to be selected and the shooting angle information of the first image;
  • the background image to be selected indicated by the selection operation is used as the second image.
  • the step of obtaining a background image to be selected that matches the preset classification information of the first image includes:
  • the background image to be selected is sorted by the server according to the difference value of the shooting angle between the background image to be selected and the first image, the background image to be selected and the first image are sorted by the server.
  • the difference value of the shooting angle between the images is calculated by the server according to the shooting angle information of the background image to be selected and the shooting angle information of the first image.
  • the steps of performing image synthesis between the foreground image separated from the first image and the target background image to obtain the target image include:
  • Display the target background image receive the user's position designation operation on the target background image, and obtain the position information of the user's designated position on the target background image;
  • the target foreground image is synthesized to the position indicated by the position information in the target background image to obtain the target image.
  • the method when the instruction is executed by the device, before the step of synthesizing the target foreground image to the position indicated by the position information on the target background image, the method further includes:
  • embodiments of the present application provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, causes the computer to execute the method of any one of the first aspect.
  • the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
  • the program in the fourth aspect may be stored in whole or in part on a storage medium packaged with the processor, or may be stored in part or in part in a memory not packaged with the processor.
  • 1 is a schematic structural diagram of an electronic device of the application
  • FIG. 2 is a schematic diagram of the software structure of the electronic device of the application.
  • FIG. 3 is a GUI schematic diagram of the image synthesis method of the application.
  • FIG. 5 is a schematic diagram of a method for establishing a mobile phone coordinate system and a first coordinate system of the present application
  • 6A is a schematic block diagram of some steps of the image synthesis method of the present application.
  • 6B is a schematic block diagram of some steps of the image synthesis method of the present application.
  • FIG. 7 is a flowchart of another embodiment of the image synthesis method of the present application.
  • FIG. 8 is a structural diagram of an embodiment of an image synthesizing apparatus of the present application.
  • the user after the person image is separated from the first image, the user generally automatically scales the person image to an appropriate size, and then directly combines it into the second image to obtain the target image.
  • the above-mentioned person image may also be referred to as a foreground image
  • the second image may also be referred to as a background image.
  • the present application proposes an image synthesis method and electronic device, which can improve the problem of serious visual distortion of a target image obtained by synthesizing a foreground image (such as the above-mentioned person image) and a background image, and improve the quality of the target image obtained by image synthesis.
  • a foreground image such as the above-mentioned person image
  • a background image such as the above-mentioned background image
  • the image synthesis method of the present application can be applied to electronic devices, such as mobile terminals (mobile phones), tablet computers (PADs), personal computers (PCs), smart screens, in-vehicle devices and other devices.
  • electronic devices such as mobile terminals (mobile phones), tablet computers (PADs), personal computers (PCs), smart screens, in-vehicle devices and other devices.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • 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 charge 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 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, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. 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
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • 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 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-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 a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • 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 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 processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • 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 can be the USB interface 130, or can 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.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • 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.
  • the instruction for viewing the short message is executed.
  • 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 shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking 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 light emitting diodes.
  • 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 device”.
  • 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. 2 is a block diagram of a software structure of an electronic device 100 according to an 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 can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • 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 window managers, content providers, view systems, telephony managers, resource managers, notification managers, 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.
  • FIG. 3 is an example diagram of a graphical user interface (graphical user interface, GUI) of the image synthesis method according to the embodiment of the present application.
  • GUI graphical user interface
  • the electronic device is a mobile phone as an example to illustrate the image synthesis method provided by the embodiment of the present application.
  • the user selects an image as the first image whose background needs to be changed.
  • the user clicks on the background change control.
  • the mobile phone detects the user's operation and displays the recommended image to the user.
  • the way of displaying the background image is not limited.
  • the background image is displayed to the user through paging.
  • the background image of the displayed first page is shown, the first page A total of 9 background images are displayed; the background images shown here are obtained based on the first image, and are sorted from small to large according to the difference in shooting angle between the background image and the first image.
  • the user selects a background image from the displayed background images (in FIG.
  • the user selects the background image 1 by clicking as an example) as the second image; correspondingly, the mobile phone detects the user's selection operation and displays the user's selection to the user.
  • the background image as shown in part 33 in FIG. 3, presents the second image 320 to the user.
  • the user designates a position in the displayed second image 320 as the position where the character image separated from the first image is synthesized into the second image, and clicks the OK control.
  • the mobile phone receives the user's position designation operation, and the first image is combined.
  • the person images separated in the image 310 are synthesized to the position designated by the user in the second image 320 to obtain the target image.
  • the rationality and fusion of the target image obtained by using the image synthesis method of the present application are relatively higher.
  • FIG. 4 is a flowchart of an embodiment of an image synthesis method of the present application. As shown in FIG. 4 , the method may include:
  • Step 401 Preset a material library of background images on the server side.
  • the images in the material library may be images captured by an electronic device such as a mobile phone, which are authorized by the user to which the electronic device belongs and uploaded to the server, or may be images shot or collected by the material library provider.
  • the source of the image in the material library is not limited in this embodiment of the present application.
  • Each image in the material library can be set with: angle label and category label.
  • the angle tag is used to record the shooting angle information of the image, such as the shooting attitude angle
  • the classification tag is used to record the classification information of the image.
  • the material library can classify and store the images in the material library according to the classification tags of the images.
  • the shooting attitude angle is used to describe the angle at which the electronic device rotates around the xyz axis of the first coordinate system.
  • the method for establishing the first coordinate system is: take the origin of the mobile phone coordinate system as the origin of the first coordinate
  • the positive direction of the axis is the due west direction of the geography
  • the positive direction of the y-axis is the vertical upward direction
  • the positive direction of the z-axis is the due north direction of the geography.
  • the shooting attitude angle may include three angle parameters, namely: pitch angle ⁇ , azimuth angle ⁇ and roll angle ⁇ .
  • three types of angle parameters will be described respectively.
  • a method for establishing the coordinate system of a vertical screen mobile phone is shown, wherein, taking the physical center of the mobile phone as the origin, the right, top, and front three directions of the mobile phone are the positive directions of the x, y, and z axes, respectively.
  • the mobile phone coordinate system coincides with the first coordinate system.
  • Pitch angle ⁇ When the plane where the xz axis of the mobile phone coordinate system is located is parallel to the plane where the xz axis of the first coordinate system is located (that is, the ground or the horizontal plane), the elevation angle is 0 degrees.
  • the pitch angle is from 0 to -90 degrees change; if the top is getting closer and closer to the user and the bottom is getting farther and farther away from the user (at this time, it can be understood that the rear camera of the mobile phone is gradually shooting towards the sky), the pitch angle changes from 0 to 90 degrees.
  • Azimuth ⁇ The mobile phone rotates around the y-axis of the first coordinate system, the front of the mobile phone is 0 degrees to the true north, rotate clockwise, the azimuth changes from 0 to 360 degrees, 0 degrees true north, 90 degrees east, positive 180 degrees south, 270 degrees west.
  • Roll angle ⁇ When the plane where the yz axis of the mobile phone coordinate system is located coincides with the plane where the yz axis of the first coordinate system is located (that is, it is perpendicular to the horizontal plane), the roll angle of the mobile phone is 0 degrees, and the mobile phone surrounds the first coordinate system. If the z-axis is rotated, the roll angle changes from 0 to 90 degrees if it is rotated clockwise; if it is rotated counterclockwise, the roll angle changes from 0 to -90 degrees.
  • the vertical screen mobile phone is used as an example in Fig. 5, and it can also be extended to any electronic device, such as a horizontal screen mobile phone, etc.
  • a horizontal screen mobile phone it is only necessary to change the vertical screen mobile phone in the figure to a horizontal screen.
  • screen phones the definition of shooting attitude angle remains unchanged.
  • Classification tags of images may include, but are not limited to, tags of the following categories: scene information, and/or light information, and/or season information, and/or weather information, and the like.
  • the scene information is used to record the shooting scene of the image
  • the parameter values may include: indoor and outdoor; the light information is used to record the brightness and darkness of the image, and the parameter values may include: bright and dark; the season information is used to record the shooting season of the image,
  • the parameter values may include: spring, summer, autumn, and winter; the weather information is used to record the weather conditions when the image is taken, and the parameter values may include: sunny, rainy, snowy, and the like.
  • images can be classified and stored according to the above-mentioned classification tags of the images, so that the images in the material library are stored in a more orderly manner.
  • the user uses an electronic device to shoot an image, and after the user authorizes the electronic device, the classification information of the image and the image (with the classification label of the image in the material library) (corresponding to the recorded information), and shooting angle information (corresponding to the information recorded by the angle label of the image in the material library) are uploaded to the server where the material library is located, and the server classifies the images according to the classification information of the uploaded images and saves them to the material library. under the corresponding category.
  • Step 402 The electronic device acquires the user's background replacement operation for the first image.
  • This step may correspond to part 31 in FIG. 3 , and will not be repeated here.
  • Step 403 The electronic device acquires the shooting angle information and classification information of the first image, and uploads the acquired information to the server.
  • the shooting angle information may be the shooting attitude angle; the classification information may include: parameter values corresponding to each classification label in the material library.
  • the classification label of the image in the material library includes scene information, and the classification information of the image in this step may include: the parameter value of the scene information.
  • the shooting angle information and the classification information of the first image may be correspondingly determined by the electronic device when shooting the first image, and stored as parameters of the first image.
  • the electronic device can obtain the motion data of the electronic device based on sensors such as acceleration sensor and magnetic sensor set in itself, and use the Euler kinematic equation to calculate the Euler angle based on the electronic device coordinate system and the first coordinate system of the electronic device.
  • the Euler angle calculated by the motion data when the electronic device captures the first image includes three components, namely the pitch angle ⁇ , the azimuth angle ⁇ and the roll angle ⁇ corresponding to the shooting attitude angle of the first image.
  • the classification information of the first image may be determined by the electronic device, for example:
  • the scene information may be manually set by the user, or may be determined by inputting the first image into a preset scene recognition model.
  • a scene recognition model can be preset in the electronic device, the scene recognition model can be obtained by training a convolutional neural network, and the training principle can be: collecting a certain number of images in indoor and outdoor scenes as training. sample, and set a scene label marked indoor or outdoor for each training sample, input the training sample into the convolutional neural network for training, and obtain a scene recognition model, which is a binary classification that can recognize indoor and outdoor images. device;
  • the light information may be determined by the electronic device based on the brightness of the image.
  • the season information may be determined by the electronic device based on the time when the first image was captured and the geographic location of the electronic device. For example, when the electronic device captured the first image in January and in Beijing, the season information of the first image is: winter; The electronic device captures the first image in January in Sydney, and the season information of the first image is summer.
  • the weather information can be obtained by the electronic device from a weather forecast related App installed on the electronic device when the first image is taken, and then the weather information of the first image is determined as sunny, rainy, or snowy.
  • Step 404 The server finds the background image to be selected according to the classification information of the first image.
  • the material set is classified and stored according to the classification label.
  • the classification information of the first image corresponds to the classification label of the image in the material library. According to the classification information of the first image, several pieces corresponding to the classification information of the first image can be found from the material library. Image, the image found from the material library is the background image to be selected.
  • the classification information of the first image is: indoor, bright, you can find it from the material library Several images under the classification branch of scene information-indoor, light information-bright are used as background images to be selected.
  • Searching for the background image to be selected according to the classification information of the first image can filter out the images in the material library that do not match the classification information of the first image, so as to prevent the background image to be displayed to the user from being too complicated and unreasonable.
  • An image is an image taken indoors and in winter, and the person in the first image is wearing thick clothes, and the information recorded in the classification tag is (indoor, summer) or (outdoor, summer) images do not need to be selected as backgrounds
  • the image is displayed to the user as a recommended background image in the subsequent steps. Otherwise, it is obviously unreasonable to recommend an image of a summer garden to the user as a background image.
  • the information recorded in the classification label can be The image for (outdoor, winter) is found from the material library, and then recommended to the user as the candidate background image.
  • Step 405 The server calculates the difference value of the shooting angle between each background image to be selected and the first image according to the shooting angle information of the first image and the shooting angle information of the background image to be selected.
  • calculating a shooting angle difference value between a background image to be selected and the first image may include:
  • Step 406 The server sorts the background images to be selected according to the angle difference values corresponding to each background image to be selected, and sends the background images to be selected to the electronic device in the sorted order.
  • the server finds the background image to be selected according to the classification information of the first picture, calculates the shooting angle difference value according to the shooting angle information of each background image to be selected and the shooting angle information of the first picture, and calculates the shooting angle difference value based on the shooting angle difference value.
  • the background images to be selected can be sorted in descending order of the difference value of the shooting angle.
  • the shooting angle of the background image to be selected first browsed by the user can be closer to that of the first image. According to the shooting angle, the fusion of the person image and the background image in the target image obtained after image synthesis according to the background image to be selected by the user is relatively more reasonable, natural and coordinated.
  • Step 407 The electronic device receives the background image to be selected sent by the server, and displays the background image to be selected to the user.
  • this step may correspond to part 32 in FIG. 3 , and details are not described here.
  • Step 408 The electronic device receives the user's selection operation for a displayed background image, and uses the background image selected by the user as the second image.
  • this step may correspond to part 32 in FIG. 3 , and details are not described here.
  • Step 409 The electronic device acquires shooting angle information of the second image.
  • the shooting angle information of the second image may be acquired by the electronic device from the server after the second image is determined, or carried when the server sends the background image to be selected to the electronic device for display.
  • Step 410 The electronic device performs three-dimensional (3D, three dimensional) perspective transformation on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the first image the shooting angle to get the target background image.
  • 3D, three dimensional three-dimensional
  • the 3D perspective transformation of the second image can be realized by using the 3D Kens Burns Effect (3D Kens Burns Effect) algorithm.
  • 3D Kens Burns Effect 3D Kens Burns Effect
  • a virtual camera is set for the second image according to the shooting attitude angle of the second image. position, and perform 3D scene geometry estimation on the image in the second image to obtain an estimated distance between each pixel in the second image and the virtual camera; rotate the shooting direction of the virtual camera to the shooting attitude angle of the first image , and then adjust the second image according to the rotation of the virtual camera.
  • the estimated value of the distance between the pixel and the virtual camera can also be regarded as the estimated value of the actual distance between the real object corresponding to the pixel and the electronic device that captures the second image.
  • the pitch angle ⁇ is rotated first, then the roll angle ⁇ is rotated, and finally the azimuth angle ⁇ is rotated.
  • the rotation of the shooting attitude angle of the virtual camera under this algorithm has a certain angle limit.
  • the processing The shooting attitude angle of the target background image can be made the same as the shooting attitude angle of the first image.
  • the angle difference between the shooting attitude angle of the second image and the shooting attitude angle of the first image exceeds the angle limit, it may not be possible to make the target
  • the shooting attitude angle of the background image is the same as the shooting attitude angle of the first image, but through this process, the shooting attitude angle of the target background image can be made closer to the shooting attitude angle of the first image.
  • the shooting angle of the second image can reach or be close to the shooting angle of the first image, thereby reducing the shooting angle difference between the person image and the second image, so that the difference between the person image and the second image is reduced.
  • the shooting angles should be as close to or even consistent as possible, so that the target image obtained after image synthesis is more reasonable, natural and coordinated.
  • Step 411 The electronic device displays the target background image to the user, obtains the position information of the person image in the target background image specified by the user, and determines the first estimated distance value corresponding to the position information.
  • the implementation of this step can correspond to part 33 in FIG. 3; or, the electronic device can also separate the person image from the first image, place the person image on the target background image, and drag the person image by the user, thereby specifying the person image in the The position in the target background image.
  • the location information may be information of a point or information of an area.
  • the estimated value of the distance between the pixel and the virtual camera can generally be obtained when performing 3D perspective transformation on the second image in step 410. If the distance between each pixel in the second image and the virtual camera is not determined during the processing in step 410 The estimated value can be calculated by, for example, the 3D Kens Burns Effect algorithm shown in step 410. According to the distance estimation value between the pixel at the location information and the virtual camera, the first distance estimation value corresponding to the location information can be obtained. Wherein, if the location information indicates a point, the estimated distance between the pixel corresponding to the point and the virtual camera may be determined as the first estimated distance corresponding to the location information.
  • the estimated distance between one pixel or multiple pixels and the virtual camera, to determine the first estimated distance corresponding to the location information if the estimated distance corresponding to the location information is determined according to the estimated distance between multiple pixels included in the area and the virtual camera.
  • the first distance estimation value corresponding to the position information can be determined by calculating the mean value of the distance estimation values corresponding to a plurality of pixels.
  • Step 412 The electronic device separates the person image from the first image, and scales the person image according to the first estimated distance value corresponding to the position information to obtain the target person image.
  • the step of separating the person image from the first image by the electronic device may be performed between steps 402 and 412 of scaling the person image according to the first estimated distance value corresponding to the position information, and steps 403 to 411
  • the order of execution between them is not limited.
  • the person image may be automatically separated by the electronic device, or the user may select the person image to be separated from the first image. If selected by the user, the first image can be displayed to the user, and the user can perform an area selection operation.
  • the electronic device can determine the person image to be separated based on the user's area selection operation, and then separate the person image from the first image. .
  • this step according to the principle that the distance between the human eyes is basically the same, it can be pre-determined that at different shooting distances between the person being photographed and the camera, the average distance between the human eyes in the captured images with the same resolution
  • the number of pixels occupied for example, if the distance between the human and the camera is 10m, the number of pixels occupied by the average distance between the human eyes in the captured image is x1, and the distance between the human and the camera is 20m.
  • the number of pixels is x2, and so on.
  • the electronic device may obtain the number of pixels occupied by the distance between the human eyes of the separated person image, determine the second estimated distance value corresponding to the person image according to the number of pixels occupied by the distance between the human eyes, and determine the first distance corresponding to the position information according to the number of pixels occupied by the distance between the human eyes.
  • the estimated value and the second estimated distance corresponding to the person image are scaled to the person image, that is, the target person image can be obtained.
  • the second estimated distance value is also the estimated value of the distance between the person corresponding to the person image and the electronic device that photographed the first image when the first image is photographed.
  • the 3D Kens Burns Effect algorithm can be used to calculate the estimated distance of each pixel in the first image relative to the virtual camera, so that the estimated distance corresponding to the pixels included in the person image can be obtained.
  • the second distance estimation value corresponding to the person image can be determined according to the distance estimation value corresponding to the pixels included in the person image, for example, taking the average value of the distance estimation values of all the pixels included in the person image, or taking a certain preset position such as the eye The distance estimate of the pixel, etc.
  • the target person image can be obtained by scaling the person image according to the first estimated distance value corresponding to the position information and the second estimated distance value corresponding to the person image.
  • the image of the person is scaled according to the first estimated distance value corresponding to the position information, so that the size of the image of the person is closer to the size of the person photographed when the person actually stands at the same position in the actual scene corresponding to the second image, thereby It makes the synthesized target image more reasonable, natural and coordinated visually.
  • Step 413 The electronic device adjusts the color parameters of the target person image and/or the target background image, and synthesizes the adjusted target person image and the target background image to obtain the target image.
  • Color parameters may include color temperature, and/or contrast, among others.
  • the color parameters of the target person image and the target background image can be made closer, thereby making the synthesized target image more natural and reasonable.
  • the color temperature of the target background image can be calculated, and the color temperature of the target person image can be adjusted accordingly, so that the color temperature of the target person image is closer to the color temperature of the target background image.
  • the color temperature calculation method of the image will not be repeated in this embodiment of the present application.
  • the color temperature estimation method in the automatic white balance algorithm may be used to calculate the color temperature of the target background image.
  • the target image obtained after synthesis can be visually more harmonious, reasonable and natural in color.
  • Step 414 The electronic device presents the target image to the user.
  • This step may correspond to part 34 in FIG. 3 , and will not be repeated here.
  • the image of the person edited by the user is directly synthesized into the background image selected by the user according to the size of the image. , it is easy to cause problems such as poor overall coordination of the synthesized image, image distortion, scene logic errors, and light and shadow differences, resulting in distorted and unnatural synthesized images.
  • the image synthesis method of the embodiment of the present application solves the above-mentioned problems existing in the process of cutout and background replacement, reduces the difference in shooting angle between the first image and the second image, and can also reduce the difference in scene logic and color. And/or the difference in the depth of the field of view and the scene, the target image obtained after image synthesis is visually more reasonable, natural, and coordinated, and the user experience is improved.
  • the method of the embodiment of the present application can also be extended from the person image to the image of any object. , such as animal images, object images, etc., the image that is separated from the first image and needs to be synthesized with the second image is called the foreground image hereinafter.
  • the method in this embodiment of the present application can be extended to a method for synthesizing images in the video, so as to replace the background image of the image in the video.
  • each frame of image in the video can be used as the first image in the embodiment of the present application. .
  • FIG. 7 is a flowchart of an embodiment of an image synthesis method of the present application, which can be applied to an electronic device. As shown in FIG. 7 , the method may include:
  • Step 701 receive the background replacement operation of the user for the first image, and obtain the shooting angle information of the first image;
  • Step 702 Acquire a second image and shooting angle information of the second image
  • Step 703 Perform 3D perspective transformation on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the shooting angle of the first image, and the target background image is obtained;
  • Step 704 Perform image synthesis on the foreground image separated from the first image and the target background image to obtain a target image.
  • the foreground image may be the person image in the embodiment shown in FIG. 4 , or may be an image of other existing objects, such as animal images, object images, and the like.
  • the electronic device may display the first image to the user, and the user may perform a region selection operation.
  • the electronic device may use the region indicated by the user's region selection operation as the region of the foreground image, and then separate the foreground image from the first image.
  • acquiring the second image in step 702 may include:
  • the background images to be selected that match the preset classification information of the first image; the displayed background images to be selected are sorted from small to large according to the shooting angle difference between the background images to be selected and the first image; the background images to be selected The shooting angle difference value with the first image is calculated according to the shooting angle information of the background image to be selected and the shooting angle information of the first image;
  • the background image to be selected indicated by the selection operation is used as the second image.
  • the electronic device can also obtain the second image locally from the electronic device, for example, the user selects an image in the album of the electronic device as the second image, and accordingly, the electronic device can obtain the first image selected by the user according to the user's operation. Second image.
  • acquiring a background image to be selected that matches the preset classification information of the first image may include:
  • the background image to be selected is sorted by the server according to the difference value of the shooting angle between the background image to be selected and the first image, the background image to be selected and the first image are sorted by the server.
  • the difference value of the shooting angle between the images is calculated by the server according to the shooting angle information of the background image to be selected and the shooting angle information of the first image.
  • step 704 may include:
  • Display the target background image receive the user's position designation operation on the target background image, and obtain the position information of the user's designated position on the target background image;
  • the target foreground image is synthesized to the position indicated by the position information in the target background image to obtain the target image.
  • the target foreground image before synthesizing the target foreground image to the position indicated by the position information on the target background image, before obtaining the target image, it may further include:
  • the shooting angle information may include: a shooting attitude angle, and the shooting attitude angle includes: a pitch angle, an azimuth angle, and a roll angle.
  • FIG. 8 is a structural diagram of an embodiment of an image synthesis apparatus of the present application, which can be applied to electronic equipment. As shown in FIG. 8 , the apparatus 80 may include:
  • the obtaining unit 81 is configured to receive the user's background replacement operation for the first image, obtain the shooting angle information of the first image; obtain the second image and the shooting angle information of the second image;
  • the transformation unit 82 is configured to perform 3D perspective transformation on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the shooting angle of the first image, and the target is obtained. background image;
  • the synthesis unit 83 is configured to perform image synthesis between the foreground image separated from the first image and the target background image to obtain the target image.
  • the acquiring unit may be specifically configured to: acquire preset classification information of the first image; acquire and display a background image to be selected that matches the preset classification information of the first image; the background image to be displayed is displayed according to the background image to be selected.
  • the shooting angle difference value between the image and the first image is sorted from small to large; the shooting angle difference value between the background image to be selected and the first image is based on the shooting angle information of the background image to be selected and the shooting angle information of the first image Obtained by calculation; after receiving the user's selection operation on the background image to be selected, the background image to be selected indicated by the selection operation is used as the second image.
  • the acquiring unit may be specifically configured to: send the shooting angle information of the first image and the preset classification information to the server; receive the background image to be selected that matches the preset classification information of the first image sent by the server, and the to-be-selected background image is sent to the server.
  • the background images are sorted by the server according to the shooting angle difference value between the background image to be selected and the first image, and the shooting angle difference value between the background image to be selected and the first image is sorted by the server according to the shooting angle information of the background image to be selected, and The shooting angle information of the first image is calculated.
  • the synthesizing unit can be specifically used to: display the target background image, receive the user's position specifying operation on the target background image, and obtain the position information of the user's specified position on the target background image; determine the first distance corresponding to the position information. estimated value; zoom the foreground image according to the first distance estimated value to obtain the target foreground image; synthesize the target foreground image to the position indicated by the position information in the target background image to obtain the target image.
  • the synthesizing unit may also be used to: adjust the color parameters of the target foreground image and/or the target background image.
  • the shooting angle information may include: a shooting attitude angle, and the shooting attitude angle includes: a pitch angle, an azimuth angle, and a roll angle.
  • the apparatus provided by the embodiment shown in FIG. 8 can be used to implement the technical solutions of the method embodiments shown in FIG. 4 to FIG. 7 of the present application.
  • the implementation principle and technical effect reference may be made to the related descriptions in the method embodiments.
  • each unit of the apparatus shown in FIG. 8 above is only a division of logical functions, and in actual implementation, it may be fully or partially integrated into a physical entity, or may be physically separated.
  • these units can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in hardware.
  • the synthesis unit may be a separately established processing element, or may be integrated in a certain chip of an electronic device.
  • the implementation of other units is similar.
  • all or part of these units can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned units may be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above units may be one or more integrated circuits configured to implement the above method, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these units can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • Embodiments of the present application further provide an electronic device, which may include: a display screen; one or more processors; a memory; multiple application programs; and one or more computer programs.
  • the above-mentioned one or more computer programs are stored in the above-mentioned memory, and the above-mentioned one or more computer programs include instructions that, when the above-mentioned instructions are executed by the above-mentioned equipment, cause the above-mentioned equipment to perform the following steps:
  • 3D perspective transformation is performed on the second image according to the shooting angle information of the first image and the shooting angle information of the second image, so that the shooting angle of the second image reaches or is close to the shooting angle of the first image, and the target background image is obtained;
  • the foreground image separated from the first image is combined with the target background image to obtain the target image.
  • the foreground image may be the person image in the embodiment shown in FIG. 4 , or may be an image of other existing objects, such as animal images, object images, and the like.
  • the electronic device may display the first image to the user, and the user may perform a region selection operation.
  • the electronic device may use the region indicated by the user's region selection operation as the region of the foreground image, and then separate the foreground image from the first image.
  • the step of acquiring the second image may include:
  • the displayed background images to be selected are sorted according to the difference value of the shooting angle between the background images to be selected and the first image;
  • the shooting angle difference value between the images is calculated according to the shooting angle information of the background image to be selected and the shooting angle information of the first image;
  • the background image to be selected indicated by the selection operation is used as the second image.
  • the electronic device can also obtain the second image locally from the electronic device, for example, the user selects an image in the album of the electronic device as the second image, and accordingly, the electronic device can obtain the first image selected by the user according to the user's operation. Second image.
  • the step of acquiring a background image to be selected that matches the preset classification information of the first image may include:
  • the background images to be selected that match the preset classification information of the first image sent by the server are received, the background images to be selected are sorted by the server according to the difference in shooting angle between the background images to be selected and the first image, and the background images to be selected are sorted from small to large.
  • the difference value of the shooting angle between the image and the first image is calculated by the server according to the shooting angle information of the background image to be selected and the shooting angle information of the first image.
  • the step of performing image synthesis between the foreground image separated from the first image and the target background image to obtain the target image may include:
  • Display the target background image receive the user's position designation operation on the target background image, and obtain the position information of the user's designated position on the target background image;
  • the target foreground image is synthesized to the position indicated by the position information in the target background image to obtain the target image.
  • the step of synthesizing the target foreground image to the position indicated by the position information on the target background image may further include:
  • the shooting angle information may include: a shooting attitude angle, and the shooting attitude angle includes: a pitch angle, an azimuth angle, and a roll angle.
  • the present application also provides an electronic device, the device includes a storage medium and a central processing unit, the storage medium may be a non-volatile storage medium, and a computer-executable program is stored in the storage medium, and the central processing unit is connected to the central processing unit.
  • the non-volatile storage medium is connected, and the computer-executable program is executed to implement the method provided by the embodiments shown in FIG. 4 to FIG. 7 of the present application.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, the computer causes the computer to execute the programs provided by the embodiments shown in FIG. 4 to FIG. 7 of the present application. method.
  • An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program that, when running on a computer, enables the computer to execute the methods provided by the embodiments shown in FIGS. 4 to 7 of the present application.
  • “at least one” refers to one or more, and “multiple” refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects means that there can be three kinds of relationships, for example, A and/or B, which can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. where A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c may be single, or Can be multiple.
  • any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (Read-Only Memory; hereinafter referred to as: ROM), Random Access Memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk and other various A medium on which program code can be stored.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk or optical disk and other various A medium on which program code can be stored.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

La présente invention concerne un procédé de synthèse d'image et un dispositif électronique. Le procédé comprend : la réception, par un dispositif électronique, d'une opération d'un utilisateur pour remplacer un arrière-plan dans une première image, et l'acquisition d'informations d'angle photographique de la première image ; l'acquisition d'une seconde image et d'informations d'angle photographique de la seconde image ; la réalisation d'une transformation d'angle de visualisation 3D sur la seconde image selon les informations d'angle photographique de la première image et les informations d'angle photographique de la seconde image de sorte qu'un angle photographique de la seconde image atteint un angle photographique de la première image ou s'en approche de façon à obtenir une image d'arrière-plan cible ; et la réalisation d'une synthèse d'image sur une image d'avant-plan distincte de la première image, et sur l'image d'arrière-plan cible, de façon à obtenir une image cible. Au moyen du procédé, le problème selon lequel une image cible obtenue après une synthèse d'image a une distorsion visuelle grave peut être réduit, ce qui améliore la convivialité d'utilisation.
PCT/CN2021/106666 2020-07-24 2021-07-16 Procédé de synthèse d'image et dispositif électronique WO2022017261A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010720955.X 2020-07-24
CN202010720955.XA CN113973173B (zh) 2020-07-24 2020-07-24 图像合成方法和电子设备

Publications (1)

Publication Number Publication Date
WO2022017261A1 true WO2022017261A1 (fr) 2022-01-27

Family

ID=79585773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/106666 WO2022017261A1 (fr) 2020-07-24 2021-07-16 Procédé de synthèse d'image et dispositif électronique

Country Status (2)

Country Link
CN (1) CN113973173B (fr)
WO (1) WO2022017261A1 (fr)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780012A (zh) * 2022-06-21 2022-07-22 荣耀终端有限公司 电子设备的锁屏壁纸的显示方法和相关装置
CN116051351A (zh) * 2022-08-22 2023-05-02 荣耀终端有限公司 一种特效处理方法和电子设备
CN116049464A (zh) * 2022-08-05 2023-05-02 荣耀终端有限公司 一种图像整理方法及电子设备
CN116309918A (zh) * 2023-03-31 2023-06-23 深圳市欧度利方科技有限公司 一种基于平板电脑的场景合成方法和系统
CN116664684A (zh) * 2022-12-13 2023-08-29 荣耀终端有限公司 定位方法、电子设备及计算机可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422736B (zh) * 2022-03-28 2022-08-16 荣耀终端有限公司 一种视频处理方法、电子设备及计算机存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100239174A1 (en) * 2009-03-18 2010-09-23 Samsung Electronics Co., Ltd. Method for creating panorama
CN101859433A (zh) * 2009-04-10 2010-10-13 日电(中国)有限公司 图像拼接设备和方法
CN106162137A (zh) * 2016-06-30 2016-11-23 北京大学 虚拟视点合成方法及装置
CN110047061A (zh) * 2019-04-26 2019-07-23 杭州智趣智能信息技术有限公司 一种多角度多背景的图像融合方法、装置和介质

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582254B (zh) * 2008-05-13 2011-06-15 华为终端有限公司 一种图像呈现方法及装置
JP5307051B2 (ja) * 2010-02-10 2013-10-02 株式会社日立製作所 立体映像調整装置及び調整方法
CN102158725B (zh) * 2011-05-06 2013-04-10 深圳超多维光电子有限公司 一种生成立体图像的方法和系统
US9460123B1 (en) * 2012-12-12 2016-10-04 Amazon Technologies, Inc. Systems and methods for generating an arrangement of images based on image analysis
WO2017089146A1 (fr) * 2015-11-24 2017-06-01 Koninklijke Philips N.V. Gestion de multiples sources d'images hdr
JP7238115B2 (ja) * 2018-10-15 2023-03-13 華為技術有限公司 写真撮影シナリオおよび電子デバイスで画像を表示するための方法
CN110035141B (zh) * 2019-02-22 2021-07-09 华为技术有限公司 一种拍摄方法及设备
CN110445978B (zh) * 2019-06-24 2020-12-15 华为技术有限公司 一种拍摄方法及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100239174A1 (en) * 2009-03-18 2010-09-23 Samsung Electronics Co., Ltd. Method for creating panorama
CN101859433A (zh) * 2009-04-10 2010-10-13 日电(中国)有限公司 图像拼接设备和方法
CN106162137A (zh) * 2016-06-30 2016-11-23 北京大学 虚拟视点合成方法及装置
CN110047061A (zh) * 2019-04-26 2019-07-23 杭州智趣智能信息技术有限公司 一种多角度多背景的图像融合方法、装置和介质

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114780012A (zh) * 2022-06-21 2022-07-22 荣耀终端有限公司 电子设备的锁屏壁纸的显示方法和相关装置
CN114780012B (zh) * 2022-06-21 2023-06-20 荣耀终端有限公司 电子设备的锁屏壁纸的显示方法和相关装置
CN116049464A (zh) * 2022-08-05 2023-05-02 荣耀终端有限公司 一种图像整理方法及电子设备
CN116049464B (zh) * 2022-08-05 2023-10-20 荣耀终端有限公司 一种图像整理方法及电子设备
CN116051351A (zh) * 2022-08-22 2023-05-02 荣耀终端有限公司 一种特效处理方法和电子设备
CN116051351B (zh) * 2022-08-22 2023-10-13 荣耀终端有限公司 一种特效处理方法和电子设备
CN116664684A (zh) * 2022-12-13 2023-08-29 荣耀终端有限公司 定位方法、电子设备及计算机可读存储介质
CN116664684B (zh) * 2022-12-13 2024-04-05 荣耀终端有限公司 定位方法、电子设备及计算机可读存储介质
CN116309918A (zh) * 2023-03-31 2023-06-23 深圳市欧度利方科技有限公司 一种基于平板电脑的场景合成方法和系统
CN116309918B (zh) * 2023-03-31 2023-12-22 深圳市欧度利方科技有限公司 一种基于平板电脑的场景合成方法和系统

Also Published As

Publication number Publication date
CN113973173B (zh) 2023-04-21
CN113973173A (zh) 2022-01-25

Similar Documents

Publication Publication Date Title
CN109814766B (zh) 一种应用显示方法及电子设备
WO2020259452A1 (fr) Procédé d'affichage plein écran pour terminal mobile et appareil
WO2021136050A1 (fr) Procédé de photographie d'image et appareil associé
WO2022017261A1 (fr) Procédé de synthèse d'image et dispositif électronique
WO2020077511A1 (fr) Procédé permettant d'afficher une image dans une scène photographique et dispositif électronique
CN112532892B (zh) 图像处理方法及电子装置
WO2020102978A1 (fr) Procédé de traitement d'image et dispositif électronique
WO2021258814A1 (fr) Procédé et appareil de synthèse vidéo, dispositif électronique, et support de stockage
WO2022007862A1 (fr) Procédé de traitement d'image, système, dispositif électronique et support de stockage lisible par ordinateur
WO2022100685A1 (fr) Procédé de traitement de commande de dessin et dispositif associé
CN113810603B (zh) 点光源图像检测方法和电子设备
CN110138999B (zh) 一种用于移动终端的证件扫描方法及装置
CN113542580B (zh) 去除眼镜光斑的方法、装置及电子设备
WO2022001258A1 (fr) Procédé et appareil d'affichage à écrans multiples, dispositif terminal et support de stockage
WO2023284715A1 (fr) Procédé de reconstruction d'objet et dispositif associé
WO2022007707A1 (fr) Procédé de commande de dispositif domestique, dispositif terminal et support de stockage lisible par ordinateur
CN113170037A (zh) 一种拍摄长曝光图像的方法和电子设备
CN112087649B (zh) 一种设备搜寻方法以及电子设备
WO2021057626A1 (fr) Procédé de traitement d'image, appareil, dispositif et support de stockage informatique
CN112150499A (zh) 图像处理方法及相关装置
CN112700377A (zh) 图像泛光处理方法及装置、存储介质
WO2022156473A1 (fr) Procédé de lecture de vidéo et dispositif électronique
CN114979457B (zh) 一种图像处理方法及相关装置
CN114756184A (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2023000746A1 (fr) Procédé de traitement vidéo à réalité augmentée et dispositif électronique

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: 21846182

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: 21846182

Country of ref document: EP

Kind code of ref document: A1