Image processing method and related device

The image processing equipment detects the distance and display parameters, calculates the color adjustment gain, and adjusts the color of the face in the remote video conference. This solves the reddish color problem caused by the high color gamut display and achieves more accurate face color. show.

CN118711486APending Publication Date: 2024-09-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310347924.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In remote video conferencing scenarios, when a person's face is close to the display screen, the color of the face displayed on the display screen is reddish due to the stronger red light energy of the high color gamut display screen. It is difficult to accurately adjust each person's skin color with existing technology. , resulting in inaccurate display.

Method used

The image processing equipment performs target detection on the image to be processed, determines the distance between the target object and the display screen and the display parameters of the display screen, calculates the corresponding color adjustment gain, and performs color adjustment on the target object in the image to ensure that the displayed The color is closer to the actual color.

Benefits of technology

It effectively reduces the color deviation caused by distance and display parameters, making the color of the human face on the display closer to the actual color, improving the accuracy of the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711486A
    Figure CN118711486A
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and a related device, and the method comprises the steps: carrying out the target detection of a to-be-processed first image through image processing equipment, and determining a first target object in the first image; and the image processing device determines a first distance between the first target object and the display screen according to the first image, and then determines a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen. The image processing device can also adjust the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image, and finally the second image is displayed through the display screen. Through the design, the display color of the first target object in the display screen is closer to the actual color of the first target object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an image processing method and related devices. Background Art

[0002] When users use electronic products, the distance of their faces from the display screen will affect the color of their faces. For example, the red light energy of a high color gamut display screen is stronger, so the closer the face is to the display screen, the redder the face. In a remote video conference scenario, if the first-end (local end) participant is too close to the display screen, the second-end (remote end) display screen will display the image of the first-end participant, causing the face of the first-end participant seen by the second-end participant to be reddish.

[0003] In the related art, the method to solve the above problem is usually to set a gain value for the entire image including multiple faces, and then use this gain value to adjust the color of each face. However, because each person's skin color is different, the color of each face after adjustment is not accurate. Summary of the invention

[0004] The present application provides an image processing method and a related device, which are used to make the color of a display object displayed on a display screen closer to the actual color of the display object.

[0005] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:

[0006] The image processing device first performs target detection on a first image to be processed to determine a first target object in the first image; then determines a first distance between the first target object and a display screen based on the first image; then determines a first color adjustment gain of the first target object based on the first distance and a first display parameter of the display screen; finally, adjusts the color value of the first target object in the first image based on the first color adjustment gain to obtain a second image, which can be displayed through the display screen.

[0007] Through the above method, since the distance between the target object and the display screen will affect the color of the target object displayed on the display screen, the image processing device can determine the first distance between the first target object and the display screen after performing target detection on the first image to be processed to obtain the first target object in the first image. In addition, the display parameters of the display screen will also affect the color of the target object displayed on the display screen. Therefore, the image processing device determines the first color adjustment gain of the first target object according to the first distance and the first display parameters of the display screen. Finally, the image processing device adjusts the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image, and the display screen is used to display the second image. Such a design makes the color of the first target object displayed on the display screen not affected by the display screen, and makes the color of the first target object displayed on the display screen closer to the actual color of the first target object.

[0008] In a possible design, the image processing device performs target detection on a first image to be processed and determines a first target object in the first image, including the following steps: the image processing device performs target detection on the first image and determines a first detection frame including the first target object in the first image;

[0009] An image processing device determines a first distance between a first target object and a display screen based on a first image, comprising the following steps: the image processing device determines the first distance between the first target object and the display screen based on a size of a first detection frame in the first image and orientation information between the display screen and a camera; wherein the camera is used to capture the first image.

[0010] Through the above method, the image processing device can determine the first distance between the first target object and the display screen according to the size of the first detection frame in the first image. In addition, since the orientation information between the display screen and the camera used to shoot the first image affects the first distance between the first target object and the display screen, the image processing device determines the first distance by combining the size of the first detection frame and the orientation information between the display screen and the camera, which has higher accuracy.

[0011] In a possible design, the first display parameter of the display screen includes a first display screen brightness; and the image processing device determines a first color adjustment gain of the first target object according to the first distance and the first display parameter of the display screen, including the following steps:

[0012] The image processing device determines the first color adjustment gain corresponding to the first distance and the first display screen brightness according to the corresponding relationship between the display distance and the display screen brightness and the display screen color adjustment gain; the display distance here is the distance between the display object and the display screen.

[0013] Through the above method, the brightness of the display screen affects the color of the display object displayed on the display screen, so the image processing device can determine the first color adjustment gain corresponding to the first distance and the first display screen brightness by using the distance between the display object and the display screen and the correspondence between the display screen brightness and the display screen color adjustment gain. The first color adjustment gain is applied to adjust the color value of the first target object so that the display color of the first target object on the display screen is closer to the actual color of the first target object.

[0014] In a possible design, if the display screen is a high color gamut display screen, the first color adjustment gain is a red adjustment gain.

[0015] Through the above method, since the red light energy of a high color gamut display screen is stronger, the closer the display object is to the display screen, the redder the presented color is. Therefore, when the display screen is a high color gamut display screen, the image processing device can determine that the first color adjustment gain is a red adjustment gain to reduce the red component displayed by the display object, so that the displayed color of the display object is closer to the color of the display object.

[0016] In a possible design, the first display parameter of the display screen includes a first display screen brightness and a first display content; the image processing device determines a first color adjustment gain of the first target object according to the first distance and the first display parameter of the display screen, including the following steps:

[0017] The image processing device determines the first color adjustment gain corresponding to the first distance, the first display brightness and the first display content according to the correspondence between the display distance, the display brightness and the display content and the display color adjustment gain; the display distance here is the distance between the display object and the display.

[0018] Through the above method, the brightness of the display screen and the display content of the display screen can both affect the color of the display object displayed on the display screen, so the image processing device can determine the first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content by using the distance between the display object and the display screen, and the correspondence between the display screen brightness and the display content and the display screen color adjustment gain. The first color adjustment gain is applied to adjust the color value of the first target object so that the display color of the first target object on the display screen is closer to the actual color of the first target object.

[0019] In a possible design, the first color adjustment gain includes a red adjustment gain and a blue adjustment gain.

[0020] Through the above method, whether it is a high color gamut display screen or a low color gamut display screen, the display screen brightness and display content can affect the color displayed by the display object in the display screen. Therefore, in this case, the image processing device determines that the first color adjustment gain includes not only the red adjustment gain but also the blue adjustment gain. The image processing device uses the red adjustment gain and the blue adjustment gain to jointly adjust the color value of the first target object, so that the display color of the first target object in the display screen is closer to the actual color of the first target object.

[0021] In a possible design, the display parameter of the display screen includes a first display screen brightness; and the image processing device determines a first color adjustment gain of the first target object according to the first distance and the first display parameter of the display screen, comprising the following steps:

[0022] The image processing device first determines a first display angle based on the first image; the first display angle is the angle between a line between the first target object and the display screen and a vertical line of the plane where the display screen is located; the image processing device then determines a first color adjustment gain corresponding to the first orientation information and the first display screen brightness based on the correspondence between the display orientation information, the display screen brightness and the display screen color adjustment gain; the display orientation information here includes a display distance and a display angle; the display distance is the distance between the display object and the display screen, and the display angle is the angle between a line between the display object and the display screen and a vertical line of the plane where the display screen is located; the first orientation information includes the first distance and the first display angle.

[0023] Through the above method, the angle between the line between the display object and the display screen and the vertical line of the plane where the display screen is located affects the display color of the display object on the display screen. Therefore, the image processing device first determines the first display angle according to the first image, and then determines the first color adjustment gain corresponding to the first orientation information and the first display screen brightness according to the corresponding relationship between the display orientation information, the display screen brightness and the display screen color adjustment gain. With this design, the image processing device integrates the display orientation information, and the determined first color adjustment gain is more accurate, thereby making the display color of the first target object on the display screen closer to the actual color of the first target object.

[0024] In a possible design, an image processing device adjusts a color value of a first target object in a first image according to a first color adjustment gain to obtain a second image, and the following steps include:

[0025] The image processing device first determines the edge area of ​​the first target object according to the first detection frame and the outline of the first target object; then adjusts the color value of the first target object in the first image according to the first color adjustment gain, and adjusts the color value of each pixel in the edge area according to the second color adjustment gain to obtain a second image; the second color adjustment gain here is less than the first color adjustment gain.

[0026] According to the above method, since the first target object and the edge area of ​​the first target object are affected differently by the display screen, the image processing device applies the first color adjustment gain to adjust the first target object; and applies the second color adjustment gain to adjust the edge area of ​​the first target object. Considering that the edge area is less affected by the display screen than the first target object, the image processing device determines that the second color adjustment gain is smaller than the first color adjustment gain.

[0027] In a possible design, an image processing device adjusts a color value of a first target object in a first image according to a first color adjustment gain to obtain a second image, including the following steps:

[0028] The image processing device uses a first color adjustment gain to adjust a first target image; the first target image here is an image containing a first target object in the first image; the image processing device fuses the adjusted first target image with a background image in the first image except the first target image to obtain a second image.

[0029] Through the above method, the display screen has an impact on the display color of the first target object, and the impact on the display color of the background image other than the first target image in the first image is irrelevant to the color adjustment of the first target object. Therefore, the image processing device uses the first color adjustment gain to adjust the first target image containing the first target object, and then fuses the adjusted first target image with the background image other than the first target image in the first image to obtain the second image. Such a design ensures that the display color of the first target image is close to the display color of the first target image, while not requiring the background image to be processed, thereby improving the processing speed.

[0030] In a second aspect, an embodiment of the present application provides an image processing device, including a processing unit and an adjustment unit:

[0031] A processing unit, configured to perform target detection on a first image to be processed, and determine a first target object in the first image; determine a first distance between the first target object and the display screen according to the first image; and determine a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen;

[0032] The adjustment unit is used to adjust the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image; wherein the display screen is used to display the second image.

[0033] In a third aspect, an embodiment of the present application provides an image processing device, the image processing device comprising a processor and a memory;

[0034] a memory for storing computer program instructions;

[0035] The processor is used to read the computer program instructions stored in the memory so that the image processing device can implement the method provided in any one of the above aspects.

[0036] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method provided in any aspect.

[0037] In a fifth aspect, an embodiment of the present application further provides a computer program product, which, when the computer program is run on a computer, enables the computer to execute the method provided in any of the above aspects.

[0038] In a sixth aspect, an embodiment of the present application further provides a chip, the chip comprising a processor and a memory; the processor is coupled to the memory, and the processor is used to read a computer program stored in the memory so that the chip executes the method provided in any aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of white light spectrum distribution of a high color gamut display screen provided in an embodiment of the present application;

[0040] Figure 2 A schematic diagram of white light spectrum distribution of a low color gamut display screen provided in an embodiment of the present application;

[0041] Figure 3 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;

[0042] Figure 4 A flowchart of an image processing method provided in an embodiment of the present application;

[0043] Figure 5a A schematic diagram of determining a first distance in the case of an external camera provided in an embodiment of the present application;

[0044] Figure 5b A flowchart of an image processing provided in an embodiment of the present application;

[0045] Figure 5cA flowchart of another image processing provided by an embodiment of the present application;

[0046] Figure 6 A schematic diagram of a first display angle provided in an embodiment of the present application;

[0047] Figure 7 A schematic diagram of adjusting pixel points in an edge area of ​​a first target object provided in an embodiment of the present application;

[0048] Figure 8a A schematic diagram of the relationship between a first target image and a background image provided in an embodiment of the present application;

[0049] Figure 8b A system architecture diagram of image processing provided in an embodiment of the present application;

[0050] Fig. 9 A complete flowchart of an image processing method provided in an embodiment of the present application;

[0051] Fig.10 A complete flowchart of another image processing method provided in an embodiment of the present application;

[0052] Fig.11 A complete flowchart of another image processing method provided in an embodiment of the present application;

[0053] Fig.12 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;

[0054] Fig.13 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The "multiple" involved in the embodiments of the present application refers to greater than or equal to two.

[0056] It should be noted that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally indicates that the previous and subsequent associated objects are in an "or" relationship. In the description of the embodiments of the present invention, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0057] Below, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0058] (1) Target detection: Find the targets or objects of interest in the image and determine the category and location of these targets or objects.

[0059] (2) White balance: The literal meaning is the balance of white. White balance is an indicator that describes the accuracy of white generated by mixing the three primary colors of red, green and blue in the display screen. It can solve a series of problems in color reproduction and tone processing.

[0060] (3) Brightness: The light intensity per unit projection area. Brightness refers to the physical quantity of the intensity of light (light reflection) on the surface of a light source (reflector). The unit of light intensity is candela (cd), and the unit of brightness is nit (nit). 1nit = 1cd / m 2 .

[0061] (4) Color gamut: It refers to the method of encoding a color, and also refers to the sum of colors that a technical system can produce. Specifically, the color gamut can also be the range of colors that can be expressed by a certain color representation mode, and also refers to the color range that can be expressed by specific devices, such as display screens, printers, and other printing and reproduction.

[0062] (5) Display screen: The display object is located in front of the display screen, and the display screen affects the display color of the display object in the display screen. The display screen can be used to display an image including the display object before image processing, and can also be used to display an image including the display object after image processing.

[0063] (6) Image processing equipment: equipment that can calculate and process images.

[0064] In the embodiment of the present application, the image processing device may be an electronic device or a server. The electronic device may be a device independent of the display screen, or a display screen equipped with a processor, or a camera equipped with a processor. The camera may be a built-in camera of the display screen or an external camera.

[0065] In some embodiments, the image processing device may be an electronic device. An electronic device generally supports a variety of applications, such as a camera program, an image management program, an image processing program, a word processing program, a telephone application, an email program, an instant messaging program, a network communication program, a media player program, a geographic location program, a time management program, etc. The electronic device may be a portable terminal, such as a mobile phone, a tablet computer, a wearable device with wireless communication function (such as a smart watch), etc. Exemplary embodiments of a portable terminal include but are not limited to a device equipped with Or a portable terminal with other operating systems. The portable terminal may also be other portable terminals, as long as it can process images and adjust the color values ​​of displayed objects in images. It should also be understood that in some other embodiments of the present application, the electronic device may not be a portable terminal, but a desktop computer that can process images and adjust the color values ​​of displayed objects in images.

[0066] In other embodiments, the image processing device may be a server. The server may be a Windows server or other server device that can provide simultaneous access to multiple devices, or may be a server cluster consisting of multiple regions, multiple computer rooms, and multiple servers. The server generally supports message storage and distribution programs, large-scale data storage programs, large-scale data processing programs, data redundancy backup programs, etc. The server may be deployed locally or in the cloud.

[0067] When users use electronic products with display screens, the distance of the face from the display screen will affect the color of the face. For example, the red light energy of a high color gamut display screen is stronger, so the closer the face is to the display screen, the more red light will shine on the face, and the redder the face will be. In one example, this phenomenon is more obvious when the face is 1.5 meters away from the display screen. In addition, in the scenario of a remote video conference, if the first-end (local end) participant is too close to the display screen, the second-end (remote end) display screen will display the image of the first-end participant, which will cause the face of the first-end participant seen by the second-end participant to be reddish.

[0068] Figure 1 A schematic diagram of the white light spectrum distribution of a high color gamut display screen provided in an embodiment of the present application, wherein region 11 is mainly blue light, region 12 is mainly green light and yellow light, and region 13 is mainly red light. Figure 2 A schematic diagram of the white light spectrum distribution of a low color gamut display screen provided in an embodiment of the present application, wherein area 21 is mainly blue light, area 22 is mainly green light and yellow light, and area 23 is mainly red light. Figure 1 and Figure 2 It can be seen that for the images captured by the camera, since the overall color of the picture is relatively uniform, the spectrum emitted by the display is relatively fixed. For high-color gamut displays, red light is usually emitted, causing the face of a person at close range to appear red; for low-color gamut displays, it is usually close to white light. Correcting red light in the case of a high-color gamut display is just a schematic, and the color distribution of the white spectrum of different types of screens may be different. Therefore, which color has stronger energy can be corrected. In the schematic of the high-color gamut display, the closer the person is to the display, the redder the face.

[0069] The closer to the high color gamut display, the redder the face is. This is essentially a problem of white balance with multiple light sources. For example, the indoor light is warm (white or yellow), and the color temperature of warm light is 3000K; the indoor light is red, and the color temperature of red light is 1500K. In the related art, the white balance gain can only set a global gain value, but it cannot be corrected for each light source, resulting in the failure of multi-color temperature white balance. In addition, in the related art, the colors of multiple faces can be counted, and then an average color temperature is calculated. However, since each person's skin color is different, it is impossible to adjust the color temperature for each face, resulting in inaccurate white balance correction based on a single face (the color of each face after adjustment is still greatly different from the actual color) or cannot be achieved.

[0070] Based on the above problems, an embodiment of the present application provides an image processing method, which is applied to an image processing device. The image processing device processes the first image to be processed to obtain a first color adjustment gain, and then applies the first color adjustment gain to adjust the color value of the first target object included in the first image to obtain a second image. In this process, the distance factor (the distance between the display object and the display screen) and the display parameter factor that affect the display color of the first target object on the display screen are taken into account, so that the display color of the first target object included in the second image on the display screen is closer to the color of the first target object, thereby reducing the impact on the display effect.

[0071] In some embodiments, the technical solution of the present application can be applied to at least the following four situations:

[0072] The first case: the camera shoots the display object to obtain a first image, and sends the first image to the electronic device. The electronic device processes the first image to obtain a second image. The electronic device sends the second image to the display screen for display. If it is a remote video conferencing scenario, the electronic device can also send the second image to a remote display screen for display.

[0073] The second situation: the camera shoots the display object to obtain a first image, and sends the first image to the display screen. The processor built into the display screen processes the first image to obtain a second image, and displays the second image. If it is a remote video conferencing scenario, the display screen can also send the second image to a remote display screen for display.

[0074] The third situation: the camera shoots the display object to obtain a first image, and uses the built-in processor to process the first image to obtain a second image, and sends the second image to the display screen for display. If it is a remote video conference scenario, the camera can also send the second image to the remote display screen for display.

[0075] The fourth situation: the camera shoots the display object to obtain a first image, and sends the first image to the server. The server processes the first image to obtain a second image, and sends the second image to the display screen and the remote display screen.

[0076] For example, in a remote video conference scenario, if a participant is in front of a display screen, the displayed image may be reddish; in addition, if the participant's image is displayed on a remote display screen, the displayed image may also be reddish. In this example, the displayed object may be a face, a part of a human body, or the entire human body.

[0077] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0078] The method provided in the embodiment of the present application is applicable to various image processing devices. Figure 3 A schematic diagram of the structure of an image processing device provided in this embodiment.

[0079] like Figure 3 As shown, the image processing device may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0080] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the image processing device. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.

[0081] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the image processing device, and can also be used to transmit data between the image processing device and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect 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 provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0082] The wireless communication function of the image processing device can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the image processing device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0083] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to image processing devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process 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 convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0084] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the image processing device. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, 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, modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0085] In some embodiments, the antenna 1 of the image processing device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the image processing device 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), wideband 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. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).

[0086] The display screen 194 is used to display 3D video and the generated naked-eye 3D cover. The 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the image processing device may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0087] The camera 193 is used to capture static images or videos. In some embodiments, the camera 193 may include at least one camera, such as a front camera and a rear camera.

[0088] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the image processing device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system and at least one application program (e.g., application, Applications, etc.), wherein the operating system can be The data storage area can store data (such as images, videos, etc.) generated during the use of the image processing device. In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0089] 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 image processing device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.

[0090] The image processing device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0091] Among them, the sensor module 180 may include an angle 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0092] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged in 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 touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event, and can provide visual output related to the touch operation through the display screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the image processing device, which is different from the position of the display screen 194.

[0093] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The image processing device can receive the button input and generate a key signal input related to the user settings and function control of the image processing device. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the image processing device by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.

[0094] It should be understood that Figure 3 The image processing device shown is only an example, and an image processing device in actual application may have more or fewer components than those shown in the figure, may combine two or more components, or may have a different component configuration. Figure 3The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits. For example, when the image processing device is a server, the image processing device may not include modules such as an audio module, a sensor module, and a SIM card interface. When the image processing device is an electronic device other than a mobile phone, the image processing device may not include modules such as a SIM card interface. When the image processing device is a device independent of a display screen, the image processing device may not include modules such as a display screen. When the image processing device is a camera configured with a processor, the image processing device may not include modules such as a camera.

[0095] The following describes the process of the image processing method provided by the embodiment of the present application. The method can be applied to Figure 3 The following is combined with Figure 4 The flowchart shown in the figure illustrates the image processing method of the image processing device:

[0096] S401: An image processing device performs target detection on a first image to be processed, and determines a first target object in the first image.

[0097] The manners in which the image processing device obtains the first image to be processed include but are not limited to the following four:

[0098] The first method: a display screen and a camera are configured in the image processing device, and the camera shoots the display object to obtain a first image to be processed.

[0099] The second method: the image processing device is equipped with a display screen but not a camera. A camera independent of the image processing device shoots the display object to obtain a first image to be processed, and sends the first image to be processed to the image processing device.

[0100] The third method: the image processing device is an electronic device, and the image processing device is not equipped with a display screen and a camera. A camera independent of the image processing device shoots the display object to obtain a first image to be processed, and sends the first image to the image processing device.

[0101] Fourth mode: the image processing device is a server, and the image processing device is not equipped with a display screen and a camera. A camera independent of the image processing device shoots the display object to obtain a first image to be processed, and sends the first image to the image processing device.

[0102] The display screen involved in the above four methods may be a large display device in a video conference, such as an electronic whiteboard, including touchable and non-touchable display screens.

[0103] After the image processing device obtains the first image to be processed, it performs target detection on the first image to be processed and determines a first target object in the first image. The first image may include multiple target objects, and the first target object is any one of the multiple target objects. In the scenario of a remote video conference, the first target object may be a face, a partial human body, or the entire human body.

[0104] In a possible implementation manner, the image processing device determines a first target object in a first image through the following step A1:

[0105] A1: The image processing device performs target detection on the first image, and determines a first detection frame including a first target object in the first image.

[0106] The target detection algorithm may include a regional convolutional neural network (R-CNN) algorithm and a Yolo algorithm. The image processing device applies the target detection algorithm to perform target detection on the first image to obtain at least one detection frame, each of which includes a target object. The image processing device determines a first detection frame including a first target object in the first image.

[0107] S402: The image processing device determines a first distance between a first target object and a display screen according to the first image.

[0108] Since the distance between the display object and the display screen affects the display color of the display object in the display screen, the image processing device can determine the first distance between the first target object and the display screen according to the first image. The first target object here is any target object, and the target object is a display object that can be used for display.

[0109] In a possible implementation manner, the image processing device may determine the first distance between the first target object and the display screen through the following step B1:

[0110] B1: The image processing device determines a first distance between the first target object and the display screen according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera.

[0111] The camera here is used to capture the first image. The first detection frame is a detection frame including the first target object. If the camera is built into the display screen, the position information of the display screen and the camera is the same, and the image processing device can directly determine the first distance between the first target object and the display screen according to the size of the first detection frame in the first image. Exemplarily, the image processing device can determine the first distance by methods such as monocular estimation or binocular depth estimation. In addition, the first distance between the first target object and the display screen can be determined by laser ranging or millimeter wave radar ranging without the need for target detection.

[0112] If the camera is external to the display screen, the positions of the display screen and the camera are different, and the orientation information between the two can be used to describe the positional relationship between the two. The image processing device can determine the distance s1 between the first target object and the display screen according to the size of the first detection frame in the first image, and then determine the distance s2 between the first target object and the camera according to the orientation information between the display screen and the camera, and determine the first distance between the first target object and the display screen. The orientation information between the display screen and the camera may include direction information and position information. The image processing device can determine the distance s2 between the first target object and the camera using the direction information and position information.

[0113] For example, Figure 5a This is a schematic diagram of determining a first distance in the case of an external camera provided in an embodiment of the present application. Figure 5a (a) is the positional relationship between the display screen, camera and display object. Figure 5a (b) in the figure is a simplified distance relationship between the display screen, camera and display object.

[0114] S403: The image processing device determines a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen.

[0115] Since the distance between the display object and the display screen affects the display color of the display object in the display screen, and the display parameters of the display screen also affect the display color of the display object in the display screen, the image processing device combines the first distance between the first target object and the display screen and the first display parameters of the display screen in the process of determining the first color adjustment gain of the first target object. With such a design, the first color adjustment gain of the first target object is determined more accurately.

[0116] According to different first display parameters, three embodiments are respectively applied to illustrate the process of an image processing device determining a first color adjustment gain of a first target object according to a first distance and a first display parameter of a display screen:

[0117] Embodiment 1: The first display parameter of the display screen includes the first display screen brightness.

[0118] Figure 5b This is a flowchart of an image processing provided in this embodiment. In this embodiment, the built-in or external camera of the image processing device collects images, and the image processing device performs target detection, depth estimation, display brightness acquisition, color value estimation, color correction and fusion operations. Next, the specific implementation process of Example 1 is described:

[0119] The display brightness can affect the display color of the display object in the display. In this embodiment, it is mainly for the case of a high color gamut display, that is, it is mainly for correcting red light. The image processing device can determine the first color adjustment gain of the first target object through the following step C1. The first color adjustment gain in this example can be a first red adjustment gain:

[0120] C1: The image processing device determines a first color adjustment gain corresponding to a first distance and a first display screen brightness according to a correspondence between the display distance and the display screen brightness and the display screen color adjustment gain.

[0121] The image processing device pre-stores the corresponding relationship between the display distance, the display brightness, and the display color adjustment gain, or the image processing device can obtain the corresponding relationship between the display distance, the display brightness, and the display color adjustment gain from the network side. The corresponding relationship can be expressed as R gain =f1(N,L), where R gain represents the color adjustment gain of the display screen. In this embodiment, it can specifically refer to the red adjustment gain; N refers to the display screen brightness, S refers to the display distance, and f1 represents the corresponding relationship. Specifically, the corresponding relationship may include the display distance L, the display brightness N, and the display screen color adjustment gain R gain For example, the combination of L1 and N1 can correspond to R gain1 , the combination of L2 and N2 can correspond to R gain2 , the combination of L3 and N3 can correspond to R gain3 wait.

[0122] The process of the image processing device determining the first color adjustment gain corresponding to the first distance and the first display screen brightness includes the following two situations:

[0123] The first case: the image processing device can directly determine the first color adjustment gain corresponding to the first distance and the first display screen brightness according to the corresponding relationship.

[0124] In this case, the combination of the first distance and the first display screen brightness is exactly the combination of the display distance and the display brightness in the corresponding relationship. Therefore, the image processing device can directly determine the first color adjustment gain according to the corresponding relationship.

[0125] The second situation: the image processing device cannot directly determine the first color adjustment gain corresponding to the first distance and the first display screen brightness according to the corresponding relationship.

[0126] In this case, the combination of the first distance and the first display screen brightness is not the combination of the display distance and the display screen brightness in the corresponding relationship. The reason for this situation may be that the data stored in the corresponding relationship is limited. Therefore, the image processing device can use a polynomial interpolation method to determine the first color adjustment gain corresponding to the first distance and the first display screen brightness. In the process of using the polynomial interpolation method, the parameters of each item can be obtained by linear fitting according to the corresponding relationship. In a specific example, the formula of the polynomial interpolation is R gain =a1*N 2 +a2*N+a3*L 2 +a4*L+a5, in this example, a1, a2, a3, a4, and a5 are parameters of the polynomial interpolation.

[0127] In this embodiment, the display screen is a high color gamut display screen and the correction of red is only an example. In actual application, which color affects the display of the display object, the corresponding color can be corrected.

[0128] Embodiment 2: The first display parameter of the display screen includes a first display screen brightness and a first display content.

[0129] Figure 5c This is a flowchart of image processing provided for this embodiment. Compared with the first embodiment, this embodiment adds an analysis of the situation where the display content affects the screen color when the screen is shared. In this embodiment, the image processing device collects images through a built-in or external camera, and the image processing device performs target detection, depth estimation, display brightness acquisition, screen content color analysis, color value estimation, color correction and fusion operations. Next, the specific implementation process of the second embodiment is described:

[0130] Among them, in addition to the display brightness of the display screen, when the display screen shares the display content, the display content of the display screen can also affect the display color of the display object in the display screen. Therefore, in addition to compensating for the red light influence of the high color gamut display screen, the image processing device can also count the color information of the display content of the display screen. This embodiment is applicable to display screens of various color gamuts. For example, a pure green display screen mainly emits green light, and the face of a person at a close distance will be green. In this embodiment, the image processing device can determine the first color adjustment gain of the first target object through the following step D1:

[0131] D1: The image processing device determines a first color adjustment gain corresponding to a first distance, a first display screen brightness and a first display content according to a correspondence between the display distance, the display screen brightness and the display content and the display screen color adjustment gain.

[0132] The image processing device pre-stores the corresponding relationship between the display distance, display brightness, display content and display color adjustment gain, or the image processing device can obtain the corresponding relationship between the display distance, display brightness, display content and display color adjustment gain from the network side. The corresponding relationship can be expressed as R gain , B gain =f2(N,L,X), where R gain Indicates the red adjustment gain of the display, B gain represents the blue adjustment gain of the display screen; N refers to the display screen brightness, S refers to the display distance, and f2 represents the corresponding relationship. Specifically, the corresponding relationship may include the display distance L, the display brightness N, the display content X and the display screen color adjustment gain R gain and B gain For example, the combination of L1, N1 and X1 can correspond to R gain1 and B gain1 , the combination of L2, N2 and X2 can correspond to R gain2 and B gain2 , the combination of L3, N3 and X3 can correspond to R gain3 and B gain3 wait.

[0133] The process of the image processing device determining the first color adjustment gain corresponding to the first distance, the first display screen brightness, and the first display content includes the following two situations:

[0134] The first case: the image processing device can directly determine the first color adjustment gain corresponding to the first distance, the first display screen brightness, and the first display content according to the corresponding relationship.

[0135] In this case, the combination of the first distance, the first display screen brightness and the first display content is exactly the combination of the display distance, the display brightness and the display content in the corresponding relationship. Therefore, the image processing device can directly determine the first color adjustment gain according to the corresponding relationship.

[0136] The second situation: the image processing device cannot directly determine the first color adjustment gain corresponding to the first distance, the first display screen brightness, and the first display content according to the corresponding relationship.

[0137] In this case, the combination of the first distance, the first display screen brightness and the first display content is not the combination of the display distance, the display screen brightness and the display content in the corresponding relationship. The reason for this situation may be that the data stored in the corresponding relationship is limited. Therefore, the image processing device can use a polynomial interpolation method to determine the first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content. In the process of using the polynomial interpolation method, the parameters of each item can be obtained by linear fitting based on the corresponding relationship. In a specific example, the formula of polynomial interpolation is R=a1*N 2 +a2*N+a3*L 2 +a4*L+a5*X 2 +a6*X+a7, in this example, a1, a2, a3, a4, and a5 are parameters of the polynomial interpolation.

[0138] In this embodiment, the display content X may include the intensity of the color components of the three colors RGB, where S R Indicates the intensity of the red component, S G Indicates the intensity of the green component, S B Indicates the intensity of the blue component. In a possible design, the color component intensity is the sum of the channel values ​​of each color on all channels, and the displayed content can be a combination of three color components.

[0139] In this embodiment, whether it is a high color gamut display screen or a low color gamut display screen, the display content can affect the display color of the display object in the display screen. Therefore, the first color adjustment gain in this embodiment includes not only the red adjustment gain, but also the blue adjustment gain. Since the color adjustment gain itself is the ratio of each color gain to the green gain, the green adjustment gain here is 1.

[0140] Embodiment three: The first display parameter of the display screen includes the brightness of the first display screen, and takes into account the angle between the line between the first target object and the display screen and the vertical line of the plane where the display screen is located. This embodiment can be applied in the director scene. When the director is close-up, the display object (target person) is relatively close to the display screen. In order to ensure the color stability of the target person during movement, it is also necessary to calculate the color adjustment gain according to the left and right positions of the target person in the image. For example, at the same position of one meter away from the display screen, the brightness directly in front of the display screen is different from the brightness at the edge of the display screen. Therefore, this embodiment takes into account the angle between the line between the display object and the display screen and the vertical line of the plane where the display screen is located.

[0141] In actual application, the positional relationship between the display object and the display screen also affects the display color of the display object in the display screen. In this embodiment, the image processing device can determine the first color adjustment gain of the first target object through the following steps E1-E2:

[0142] E1: The image processing device determines a first display angle according to the first image.

[0143] The first image includes a first target object, and the first display angle is the angle between a line connecting the first target object and the display screen and a vertical line of the plane where the display screen is located. The angle is used to ensure the accuracy of calculating the white balance when the display object moves left and right, so that the display color of the display object remains consistent.

[0144] For example, Figure 6 A schematic diagram of a display angle provided in an embodiment of the present application, wherein θ is the display angle.

[0145] E2: The image processing device determines a first color adjustment gain corresponding to the first orientation information and the first display screen brightness according to the corresponding relationship between the display orientation information, the display screen brightness and the display screen color adjustment gain.

[0146] Among them, the display orientation information includes: display distance and display angle; the display distance is the distance between the display object and the display screen, and the display angle is the angle between the line between the display object and the display screen and the vertical line of the plane where the display screen is located; the first orientation information includes the first distance and the first display angle.

[0147] The image processing device pre-stores the corresponding relationship between the display orientation information and the display brightness and the display color adjustment gain, or the image processing device can obtain the corresponding relationship between the display orientation information and the display brightness and the display color adjustment gain from the network side. The corresponding relationship can be expressed as R gain =f3(N,L,θ), where R gainrepresents the color adjustment gain of the display screen. In this embodiment, it can specifically refer to the red adjustment gain; N refers to the brightness of the display screen, S refers to the display distance, θ refers to the display angle, and f3 represents the corresponding relationship. Specifically, the corresponding relationship may include the display distance L, the display brightness N, and the display angle a and the display color adjustment gain R gain For example, the combination of L1, N1 and θ1 can correspond to R gain1 , L2 and θ2 can correspond to R gain2 , the combination of L3, N3 and θ3 can correspond to R gain3 wait.

[0148] The process of the image processing device determining the first color adjustment gain corresponding to the first position information and the brightness of the first display screen includes the following two situations:

[0149] The first case: the image processing device can directly determine the first color adjustment gain corresponding to the first position information and the brightness of the first display screen according to the corresponding relationship.

[0150] In this case, the combination of the first position information and the first display screen brightness is exactly the combination of the position information and the display brightness in the corresponding relationship. Therefore, the image processing device can directly determine the first color adjustment gain according to the corresponding relationship.

[0151] The second situation: the image processing device cannot directly determine the first color adjustment gain corresponding to the first position information and the first display screen brightness according to the corresponding relationship.

[0152] In this case, the combination of the first orientation information and the first display screen brightness is not the combination of the display orientation information and the display screen brightness in the corresponding relationship. The reason for this situation may be that the data stored in the corresponding relationship is limited. Therefore, the image processing device can use a polynomial interpolation method to determine the first color adjustment gain corresponding to the first orientation information and the first display screen brightness. In the process of using the polynomial interpolation method, the parameters of each item can be obtained by linear fitting based on the corresponding relationship. In a specific example, the formula of the polynomial interpolation is R=a1*N 2 +a2*N+a3*L 2 +a4*L+a5*θ 2 +a6*θ+a7, in this example, a1, a2, a3, a4 and a5 are parameters of polynomial interpolation.

[0153] S404: The image processing device adjusts the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image.

[0154] Since the first color adjustment gain is determined based on various factors that affect the display color of the display object in the display, after the image processing device determines the first color adjustment gain, the first color adjustment gain can be applied to adjust the color value of the first target object in the first image.

[0155] In a possible implementation, the image processing device may use the second image obtained in a target detection-based manner through the following steps F1-F2.

[0156] F1: The image processing device determines an edge region of the first target object according to the first detection frame and the contour of the first target object.

[0157] The first detection frame includes the first target object. Usually, the first detection frame is a rectangle, and the first target object may be, for example, a face. In this case, the first detection frame is a rectangular frame including the face. The display screen has a more obvious effect on the color of the face, and a relatively weak effect on the area around the edge of the face. Therefore, the image processing device may determine the edge area of ​​the first target object based on the first detection frame and the contour of the first target object. In this example, the edge area of ​​the first target object may be, for example, the area where the neck is located.

[0158] F2: The image processing device adjusts the color value of the first target object in the first image according to the first color adjustment gain, and adjusts the color value of each pixel in the edge area according to the second color adjustment gain to obtain a second image.

[0159] Since the first color adjustment gain is determined according to various factors that affect the display color of the display object in the display, after the image processing device determines the first color adjustment gain, the first color adjustment gain is applied to adjust the color value of the first target object. For the edge area of ​​the first target object, the second color adjustment gain can be applied to adjust the color value of each pixel in the edge area to obtain the second image.

[0160] In a possible implementation, the second color adjustment gain may be dynamically changed, for example, obtained by gradually decreasing the first color adjustment gain. For example, if the first color adjustment gain is G1, then the dynamically changed second color adjustment gain is G1-g, G1-2g, G1-g3, G1-4g, G1-5g...G1-Ng, where g is the set color adjustment gain step. The pixels in the edge area are divided into different sets of pixels according to their distance from the contour of the first target object. For example, the first set is closest to the contour of the first target object, and the Nth set is farthest from the contour of the first target object. Then, G1-g is applied to adjust the color values ​​of the pixels included in the first set, and G1-Ng is applied to adjust the color values ​​of the pixels included in the Nth set.

[0161] In another possible implementation, the second color adjustment gain may also be fixed and smaller than the first color adjustment gain. The second color adjustment gain is applied to adjust the edge region of the first target object, and the colors of the first target object and the edge region in the obtained second image are improved.

[0162] In this embodiment, taking the effect of red light on a human face caused by a high color gamut display as an example, since red light has a greater effect on skin color, it has little effect on other areas of the edge of the face. Therefore, when the image processing device is in edge transition, the edge area includes, for example, 20 pixels, from the face to the outside, and gradually reduces the value of the first color adjustment gain to 0, and applies the gradually reduced first color adjustment gain (that is, the second color adjustment gain) to adjust the edge area.

[0163] For example, Figure 7 A schematic diagram of adjusting pixel points in an edge area of ​​a first target object provided in an embodiment of the present application. Figure 7 The area where the first target object is located and the edge area are shown in FIG.

[0164] In another possible implementation manner, the image processing device may obtain the second image by applying a method based on object segmentation through the following steps G1-G2.

[0165] G1: The image processing device adjusts the first target image using the first color adjustment gain.

[0166] The image processing device may perform a cutout on the first image in advance to obtain a first target image and a background image other than the first target image. The first target image is an image containing the first target object in the first image. In a specific example, the first target object is a human face, and the first target image is the entire human body including the human face. In this embodiment, the effect of the display screen on other image parts other than the human body does not need to be paid attention to, so the image processing device uses the first color adjustment gain to adjust the first target image.

[0167] G2: The image processing device performs image fusion on the adjusted first target image and the background image other than the first target image in the first image to obtain a second image.

[0168] The first image includes not only the first target image but also a background image other than the first target image. The background image is, for example, an environment image. Figure 8aA schematic diagram of the relationship between a first target image and a background image provided in an embodiment of the present application, wherein 811 represents a first target image, 812 represents a background image of 811; 813 represents another first target image, and 814 represents a background image of 813. Therefore, after processing the first target image, the image processing device can fuse the adjusted first target image with the background image in the first image except the first target image to obtain a second image.

[0169] In this embodiment, since the display screen affects the display color only on the first target image and does not affect the background image, the image processing device does not need to process the background image.

[0170] In addition, the embodiments of the present application can be applied to panoramic scenes or directing or splicing scenes. In the case of panorama, the image processing device can correct the face of each person within 2 meters of the display screen respectively, and finally merge them with the original image. In the directing or splicing scene, the white balance of each rectangular frame is corrected respectively, and finally the splicing is displayed. The white balance of faces at close range can be corrected using the method in the embodiments of the present application, and faces at a distance remain unchanged. The distance can be set according to the screen effect of the actual test, for example, it can be 3 meters.

[0171] In summary, in the embodiments of the present application, no matter whether a person is far or close to the display screen, it can be ensured that the display color of the person's face on the display screen is closer to the actual color of the person's face.

[0172] In one possible design, Figure 8b This is a system architecture diagram of an image processing provided by an embodiment of the present application. Figure 8a , the image processing device takes an electronic device independent of the display screen as an example, and the image processing device may include an acquisition image analysis module, a display image analysis module, and a color temperature correction module. Among them, the camera sends the captured image to the acquisition image analysis module, and the acquisition image analysis module performs face depth estimation and target detection. The display image analysis module is used to obtain the display brightness of the display screen and perform color analysis on the displayed content. The color temperature correction module is used to estimate the color value and fuse the processed image with the background image to obtain a fused image.

[0173] Fig. 9 The complete flow diagram of an image processing method provided in an embodiment of the present application is shown in FIG. 1 , wherein the image processing device in this embodiment takes a display screen with processing function as an example to illustrate the image processing method. Fig. 9 , the method comprises the following steps:

[0174] S901: A camera shoots a display object to obtain a first image to be processed.

[0175] The camera is located in front of the camera and takes a picture of the display object to obtain at least one image to be processed. The camera determines one of the images as the first image to be processed.

[0176] S902: The camera sends a first image to the display screen.

[0177] The camera sends the first image to the display screen through a built-in communication module.

[0178] S903: The display screen performs target detection on the first image to determine a first detection frame including a first target object in the first image.

[0179] The implementation method of this step can refer to step A1, which will not be repeated here.

[0180] S904: The display screen determines a first distance between the first target object and the display screen according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera.

[0181] The implementation method of this step can refer to step B1, which will not be repeated here.

[0182] S905-1: The display screen determines a first color adjustment gain corresponding to a first distance and a first display screen brightness according to a correspondence between the display distance, the display screen brightness, and the display screen color adjustment gain.

[0183] The implementation method of this step can refer to step C1, which will not be repeated here.

[0184] S905-2: The display screen determines a first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content according to the corresponding relationship between the display distance, the display screen brightness and the display content and the display screen color adjustment gain.

[0185] The implementation method of this step can refer to step D1, which will not be repeated here.

[0186] S905-3-1: The display screen determines a first display angle according to the first image.

[0187] The implementation method of this step can refer to step E1, which will not be repeated here.

[0188] S905-3-2: The display screen determines a first color adjustment gain corresponding to the first orientation information and the first display screen brightness according to the correspondence between the display orientation information, the display screen brightness and the display screen color adjustment gain.

[0189] The implementation method of this step can refer to step E2, which will not be repeated here.

[0190] S906: The display screen adjusts the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image.

[0191] The implementation method of this step can refer to step S404, which will not be repeated here.

[0192] S907: The display screen sends the second image to the remote display screen.

[0193] Taking a video conference scenario as an example, the display screen sends a second image to a remote display screen through a built-in communication module.

[0194] S908: The remote display screen displays the second image.

[0195] The remote display screen may display the second image.

[0196] In the embodiment of the present application, after the camera captures the first image, the display screen processes the first image to obtain an adjusted second image. With such a design, the second image displayed on the remote display screen makes the display color of the first target object included in the second image on the remote display screen closer to the actual color of the first target object.

[0197] Fig.10 The complete flow chart of an image processing method provided in an embodiment of the present application is shown in FIG. 1 , wherein the image processing device in this embodiment is an electronic device independent of a display screen as an example to illustrate the image processing method. Fig.10 , the method comprises the following steps:

[0198] S1001: A camera photographs a display object to obtain a first image to be processed.

[0199] The implementation method of this step can refer to step S1001 and will not be repeated here.

[0200] S1002: The camera sends a first image to the electronic device.

[0201] The implementation method of this step can refer to step S1002 and will not be repeated here.

[0202] S1003: The electronic device performs target detection on the first image, and determines a first detection frame including a first target object in the first image.

[0203] The implementation method of this step can refer to step A1, which will not be repeated here.

[0204] S1004: The electronic device determines a first distance between the first target object and the display screen according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera.

[0205] The implementation method of this step can refer to step B1, which will not be repeated here.

[0206] S1005: The electronic device determines a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen.

[0207] The implementation method of this step can refer to steps C1, D1, E1 and E2, which will not be repeated here.

[0208] S1006: The electronic device adjusts the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image.

[0209] The implementation method of this step can refer to step S404, which will not be repeated here.

[0210] S1007: The electronic device sends a second image to the display screen.

[0211] The electronic device sends the second image to the display screen through a built-in communication module.

[0212] S1008: The electronic device sends a second image to a remote display screen.

[0213] The electronic device sends the second image to the display screen through a built-in communication module.

[0214] S1009: The display screen displays a second image.

[0215] The display screen displays the second image so that the display color of the first target object included in the second image on the remote display screen is closer to the actual color of the first target object.

[0216] S1010: The remote display screen displays a second image.

[0217] The implementation method of this step can refer to step S1008 and will not be repeated here.

[0218] In the embodiment of the present application, after the camera captures the first image, the electronic device processes the first image to obtain an adjusted second image. With such a design, the second image displayed on the display screen and the remote display screen makes the display color of the first target object included in the second image on the display screen and the remote display screen closer to the actual color of the first target object.

[0219] Fig.11 The complete flow diagram of an image processing method provided in an embodiment of the present application is shown in FIG. 1 , wherein the image processing device in this embodiment takes a server independent of a display screen as an example to illustrate the image processing method. Fig.11 , the method comprises the following steps:

[0220] S1101: A camera photographs a display object to obtain a first image to be processed.

[0221] The implementation method of this step can refer to step S1001 and will not be repeated here.

[0222] S1102: The camera sends a first image to the server.

[0223] The implementation method of this step can refer to step S1002 and will not be repeated here.

[0224] S1103: The server performs target detection on the first image, and determines a first detection frame including a first target object in the first image.

[0225] The implementation method of this step can refer to step A1, which will not be repeated here.

[0226] S1104: The server determines a first distance between the first target object and the display screen according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera.

[0227] The implementation method of this step can refer to step B1, which will not be repeated here.

[0228] S1105: The server determines a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen.

[0229] The implementation method of this step can refer to steps C1, D1, E1 and E2, which will not be repeated here.

[0230] S1106: The server adjusts the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image.

[0231] The implementation method of this step can refer to step S404, which will not be repeated here.

[0232] S1107: The server sends the second image to the display screen.

[0233] The server sends the second image to the display screen through a built-in communication module.

[0234] S1108: The server sends the second image to the remote display screen.

[0235] The server sends the second image to the display screen through a built-in communication module.

[0236] S1109: The display screen displays a second image.

[0237] The display screen displays the second image so that the display color of the first target object included in the second image on the remote display screen is closer to the actual color of the first target object.

[0238] S1110: The remote display screen displays the second image.

[0239] The implementation method of this step can refer to step S1008 and will not be repeated here.

[0240] In the embodiment of the present application, after the camera captures the first image, the server processes the first image to obtain an adjusted second image. With such a design, the second image displayed on the display screen and the remote display screen makes the display color of the first target object included in the second image on the display screen and the remote display screen closer to the actual color of the first target object.

[0241] Based on the same inventive concept of the method embodiment, Fig.12 The present invention provides a schematic diagram of the structure of an image processing device provided in an embodiment of the present invention. The image processing device is used to execute the image processing method in the method embodiment shown above. The relevant features can be found in the method embodiment above and will not be described in detail here. The image processing device can be applied to a display screen with processing functions, and can also be applied to an electronic device or server independent of the display screen. The image processing device includes a processing unit 1201 and an adjustment unit 1202.

[0242] The processing unit 1201 is used to perform target detection on the first image to be processed, and determine a first target object in the first image; determine a first distance between the first target object and the display screen according to the first image; and determine a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen;

[0243] The adjustment unit 1202 is used to adjust the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image; wherein the display screen is used to display the second image.

[0244] In a possible design, the processing unit 1201 is specifically configured to:

[0245] Performing target detection on the first image to determine a first detection frame including a first target object in the first image; determining a first distance between the first target object and the display screen based on the first image, including: determining the first distance between the first target object and the display screen based on the size of the first detection frame in the first image and the orientation information between the display screen and the camera; wherein the camera is used to capture the first image.

[0246] In one possible design, the first display parameter of the display screen includes a first display screen brightness; the processing unit 1201 is specifically used to: determine the first color adjustment gain corresponding to the first distance and the first display screen brightness according to the correspondence between the display distance and the display screen brightness and the display screen color adjustment gain; wherein the display distance is the distance between the display object and the display screen.

[0247] In a possible design, if the display screen is a high color gamut display screen, the first color adjustment gain is a red adjustment gain.

[0248] In one possible design, the first display parameter of the display screen includes a first display screen brightness and a first display content; the processing unit 1201 is specifically used to determine the first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content according to the correspondence between the display distance, the display screen brightness and the display content and the display screen color adjustment gain; wherein the display distance is the distance between the display object and the display screen.

[0249] In one possible design, the first color adjustment gain includes a red adjustment gain and a blue adjustment gain.

[0250] In a possible design, the display parameters of the display screen include a first display screen brightness; the processing unit 1201 is specifically used to: determine a first display angle according to the first image; the first display angle is the angle between a line between the first target object and the display screen and a vertical line of the plane where the display screen is located; determine a first color adjustment gain corresponding to the first orientation information and the first display screen brightness according to a correspondence between the display orientation information, the display screen brightness and the display screen color adjustment gain; wherein the display orientation information includes: a display distance and a display angle; the display distance is the distance between the display object and the display screen, and the display angle is the angle between a line between the display object and the display screen and a vertical line of the plane where the display screen is located; the first orientation information includes the first distance and the first display angle.

[0251] In one possible design, the adjustment unit 1202 is specifically used to: determine the edge area of ​​the first target object based on the first detection frame and the outline of the first target object; adjust the color value of the first target object in the first image according to the first color adjustment gain, and adjust the color value of each pixel in the edge area according to the second color adjustment gain to obtain a second image; wherein the second color adjustment gain is less than the first color adjustment gain.

[0252] In one possible design, the adjustment unit 1202 is specifically used to: use a first color adjustment gain to adjust the first target image; wherein the first target image is an image containing a first target object in the first image; and fuse the adjusted first target image with a background image in the first image excluding the first target object to obtain a second image.

[0253] It should be noted that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The functional modules in the embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0254] By the above method, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product by the above method. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the process or function according to the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid state drive (SSD).

[0255] In a simple embodiment, those skilled in the art can imagine that the computer device in the embodiment can be used Fig.13 The form shown.

[0256] like Fig.13 The device shown includes at least one processor 1301 , a memory 1302 , and optionally, a communication interface 1303 .

[0257] The memory 1302 may be a volatile memory, such as a random access memory; the memory may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 1302 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1302 may be a combination of the above memories.

[0258] The specific connection medium between the processor 1301 and the memory 1302 is not limited in the embodiment of the present application.

[0259] The processor 1301 may be a CPU, or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, artificial intelligence chips, chips on chips, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. Fig.13 An independent data transceiver module, such as a communication interface 1303, may also be provided in the device for transmitting and receiving data; when the processor 1301 communicates with other devices, data may be transmitted through the communication interface 1303.

[0260] In one possible application scenario, the image processing device uses Fig.13 The form shown, Fig.13 The processor 1301 in the image processing apparatus can call the computer-executable instructions stored in the memory 1302 so that the image processing apparatus can execute the image processing method in any of the above method embodiments.

[0261] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0262] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0263] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0264] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0265] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An image processing method, characterized in that: include: Performing target detection on the first image to be processed to determine a first target object in the first image; Determining a first distance between the first target object and the display screen according to the first image; determining a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen; The color value of the first target object in the first image is adjusted according to the first color adjustment gain to obtain a second image; wherein the display screen is used to display the second image.

2. The method according to claim 1, characterized in that The performing target detection on the first image to be processed to determine the first target object in the first image includes: Performing target detection on the first image to determine a first detection frame in the first image that includes the first target object; The determining, according to the first image, a first distance between the first target object and the display screen includes: A first distance between the first target object and the display screen is determined according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera; wherein the camera is used to capture the first image.

3. The method according to claim 1 or 2, characterized in that: The first display parameter of the display screen includes a first display screen brightness; The determining, according to the first distance and the first display parameter of the display screen, a first color adjustment gain of the first target object includes: Determine a first color adjustment gain corresponding to the first distance and the first display screen brightness according to a corresponding relationship between the display distance and the display screen brightness and the display screen color adjustment gain; The display distance is the distance between the display object and the display screen.

4. The method according to claim 3, characterized in that If the display screen is a high color gamut display screen, the first color adjustment gain is a red adjustment gain.

5. The method according to claim 1 or 2, characterized in that: The first display parameter of the display screen includes a first display screen brightness and a first display content; The determining, according to the first distance and the first display parameter of the display screen, a first color adjustment gain of the first target object includes: According to the correspondence between the display distance, the display screen brightness, the display content and the display screen color adjustment gain, the first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content is determined; wherein the display distance is the distance between the display object and the display screen.

6. The method according to claim 5, characterized in that The first color adjustment gain includes a red color adjustment gain and a blue color adjustment gain.

7. The method according to claim 1 or 2, characterized in that: The display parameters of the display screen include the brightness of the first display screen; The determining, according to the first distance and the first display parameter of the display screen, a first color adjustment gain of the first target object includes: Determine a first display angle according to the first image; the first display angle is the angle between a line connecting the first target object and the display screen and a vertical line of a plane where the display screen is located; Determine the first color adjustment gain corresponding to the first orientation information and the brightness of the first display screen according to the corresponding relationship between the display orientation information, the display screen brightness and the display screen color adjustment gain; wherein the display orientation information includes: a display distance and a display angle; the display distance is the distance between the display object and the display screen, and the display angle is the angle between the line connecting the display object and the display screen and the vertical line of the plane where the display screen is located; The first orientation information includes the first distance and the first display angle.

8. The method according to claim 2, characterized in that: The step of adjusting the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image includes: Determine an edge area of ​​the first target object according to the first detection frame and the outline of the first target object; The color value of the first target object in the first image is adjusted according to the first color adjustment gain, and the color value of each pixel in the edge area is adjusted according to the second color adjustment gain to obtain a second image; wherein the second color adjustment gain is less than the first color adjustment gain.

9. The method according to any one of claims 1 to 7, characterized in that: The step of adjusting the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image includes: Using the first color adjustment gain to adjust a first target image; wherein the first target image is an image containing the first target object in the first image; The adjusted first target image is fused with a background image in the first image excluding the first target object to obtain the second image.

10. An image processing device, characterized in that: Including processing unit and adjustment unit: The processing unit is configured to perform target detection on a first image to be processed, and determine a first target object in the first image; determine a first distance between the first target object and a display screen according to the first image; and determine a first color adjustment gain of the first target object according to the first distance and a first display parameter of the display screen; The adjustment unit is used to adjust the color value of the first target object in the first image according to the first color adjustment gain to obtain a second image; wherein the display screen is used to display the second image.

11. The device according to claim 10, characterized in that The processing unit is specifically used for: Performing target detection on the first image to determine a first detection frame in the first image that includes the first target object; The determining, according to the first image, a first distance between the first target object and the display screen includes: A first distance between the first target object and the display screen is determined according to the size of the first detection frame in the first image and the orientation information between the display screen and the camera; wherein the camera is used to capture the first image.

12. The device according to claim 10 or 11, characterized in that The first display parameter of the display screen includes a first display screen brightness; The processing unit is specifically used for: Determine a first color adjustment gain corresponding to the first distance and the first display screen brightness according to a corresponding relationship between the display distance and the display screen brightness and the display screen color adjustment gain; The display distance is the distance between the display object and the display screen.

13. The device according to claim 12, characterized in that If the display screen is a high color gamut display screen, the first color adjustment gain is a red adjustment gain.

14. The device according to claim 10 or 11, characterized in that The first display parameter of the display screen includes a first display screen brightness and a first display content; The processing unit is specifically used for: According to the correspondence between the display distance, the display screen brightness, the display content and the display screen color adjustment gain, the first color adjustment gain corresponding to the first distance, the first display screen brightness and the first display content is determined; wherein the display distance is the distance between the display object and the display screen.

15. The device according to claim 14, characterized in that The first color adjustment gain includes a red color adjustment gain and a blue color adjustment gain.

16. The device according to claim 10 or 11, characterized in that The display parameters of the display screen include the brightness of the first display screen; The processing unit is specifically used for: Determine a first display angle according to the first image; the first display angle is the angle between a line connecting the first target object and the display screen and a vertical line of a plane where the display screen is located; Determine the first color adjustment gain corresponding to the first orientation information and the brightness of the first display screen according to the corresponding relationship between the display orientation information, the display screen brightness and the display screen color adjustment gain; wherein the display orientation information includes: a display distance and a display angle; the display distance is the distance between the display object and the display screen, and the display angle is the angle between the line connecting the display object and the display screen and the vertical line of the plane where the display screen is located; The first orientation information includes the first distance and the first display angle.

17. The device according to claim 11, characterized in that The regulating unit is specifically used for: Determine an edge area of ​​the first target object according to the first detection frame and the outline of the first target object; The color value of the first target object in the first image is adjusted according to the first color adjustment gain, and the color value of each pixel in the edge area is adjusted according to the second color adjustment gain to obtain a second image; wherein the second color adjustment gain is less than the first color adjustment gain.

18. The device according to any one of claims 10 to 16, characterized in that: The regulating unit is specifically used for: Using the first color adjustment gain to adjust a first target image; wherein the first target image is an image containing the first target object in the first image; The adjusted first target image is fused with a background image in the first image excluding the first target object to obtain the second image.

19. An image processing device, characterized in that: including a processor and a memory; The memory is used to store computer program instructions; The processor is used to read the computer program instructions stored in the memory, so that the image processing device can implement the method according to any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer is enabled to execute the method according to any one of claims 1 to 9.

21. A chip, characterized in that: The chip includes a processor and a memory; the processor is coupled to the memory, and the processor is used to read a computer program stored in the memory, so that the chip executes the method according to any one of claims 1 to 9.