Image exposure control method, device, system, electronic equipment and medium

By performing face and human body recognition on video images, combined with correlation judgment and tone mapping strategies, the problem of repeated jumps in exposure control caused by unstable face recognition in video recording is solved, and the stability of the video effect is improved.

CN117714842BActive Publication Date: 2024-09-13HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310841807.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2024-09-13
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

In video display processes such as video recording, the face display effect is crucial. However, due to unstable face recognition, the exposure control jumps repeatedly, affecting the stability of the video effect.

Method used

By performing face and human body recognition on the video image, recording the duration of the relevant area, and performing exposure control based on correlation judgment, using a tone mapping strategy to process the face area to ensure that repeated exposure control is avoided when the face temporarily turns around or appears briefly. jump.

Benefits of technology

It improves the stability of exposure control of character movement scenes, ensures the stability and accuracy of video effects, and avoids the problem of repeated jumps in exposure control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714842B
    Figure CN117714842B
Patent Text Reader

Abstract

The embodiment of the present application provides an image exposure control method, device, system, electronic device and medium, the method comprising: obtaining a recognition result of a first image, the first image is obtained according to an image taken by a camera module, and the recognition result is obtained according to face and body recognition of the first image; if the recognition result includes a recognized face area, the face area in the recognition result is recorded with a first duration, if the recognition result includes a recognized body area, the body area in the recognition result is recorded with a second duration that is less than the first duration; obtaining first information for indicating an exposure control strategy used for image exposure control and performing image exposure control accordingly, if the current record has associated face areas and body areas, the first information is used to indicate that image exposure control is performed according to the exposure control strategy set for a corresponding scene with people. The embodiment of the present application can solve the problem of repeated jumps in exposure control and improve the stability of video effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an image exposure control method, device, system, electronic equipment and medium. Background Art

[0002] In the video display process such as video recording, the face display effect is very important. To ensure the face display effect, in a related technology, relying on the execution of face recognition, the video image can be distinguished into an image of a scene with people and an image of a scene without people according to whether there is a face in the real-time video image, and based on the difference between the scene with people and the scene without people, the video image is subjected to corresponding different exposure control.

[0003] Since the video display process is a continuous image display process, and the human face is usually not always in the image acquisition area (for example, the user may turn his back, leave the camera lens, lower his head, etc.), the implementation method of image exposure control that relies on the presence or absence of a face in the image is prone to repeated jumps in exposure control, resulting in unstable video effects. Summary of the invention

[0004] The embodiments of the present application provide an image exposure control method, device, system, electronic device and medium, which can solve the problem of repeated jumps in exposure control and improve the stability of video effects.

[0005] In a first aspect, an embodiment of the present application provides an image exposure control method, comprising: obtaining a recognition result of a first image, wherein the first image is obtained based on an image taken by a camera module, and the recognition result is obtained based on face recognition and body recognition performed on the first image; when the recognition result includes a recognized face area, recording the face area in the recognition result and the duration of the recording is a first duration, and when the recognition result includes a recognized body area, recording the body area in the recognition result and the duration of the recording is a second duration, and the first duration is greater than the second duration; obtaining first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and when there are currently associated face areas and body areas recorded, the first information is used to indicate image exposure control according to a set exposure control strategy corresponding to a scene with people; performing image exposure control according to the first information.

[0006] The embodiments of the present application can recognize faces and bodies in video images and record them regularly, and perform exposure control based on the associated combination of the recorded faces and bodies. This can solve the problem of repeated jumps in exposure control when face recognition is unstable, such as when a person temporarily turns around or appears on camera for a short time, and can improve the exposure control stability in scenes where people are in motion.

[0007] Optionally, the first information includes a first face area, wherein the first face area and a human body area associated with the first face area are currently recorded; image exposure control is performed according to the first information, including: performing tone mapping processing on the first face area in the first image or the first face area in the next frame image of the first image according to a set tone mapping strategy for the corresponding face area.

[0008] When the current record is about a face area associated with a human body area, exposure control is performed according to a scene with people, regardless of whether there is a face in the current frame image, and tone mapping is performed on the image according to the face area. In this way, even if there are unstable face recognition situations such as a person turning around temporarily or appearing briefly, there will be no problem of repeated jumps in exposure control during this period, making the exposure control stable.

[0009] Optionally, the first face region is the face region recorded last among the currently recorded face regions with the same number; wherein the face features of the face regions with the same number meet the set face feature consistency requirements.

[0010] The face region used for association judgment can be limited to the face region recorded most recently for the same user, that is, the most recent face region of the user, which helps to achieve more accurate exposure control for the face region.

[0011] Optionally, when the recognition result includes a recognized face region and no associated face region and body region are currently recorded, the first information is used to instruct to perform image exposure control according to an exposure control strategy corresponding to a scene with people.

[0012] In addition to the correlation judgment result, the exposure control strategy to be used can also be determined based on the face recognition result of the current frame image. As long as the face area can be recognized in the current frame image, the exposure control is performed according to the scene with people, regardless of whether the human body area associated with the face area is currently recorded. This can achieve an exposure control effect that meets actual needs.

[0013] Optionally, the first information includes a second face area, wherein the recognition result includes the second face area, and no human body area associated with the second face area is currently recorded; image exposure control is performed according to the first information, including: performing tone mapping processing on the second face area in the first image or the second face area in the next frame image of the first image according to the set tone mapping strategy for the corresponding face area.

[0014] Accurate exposure control can be achieved by controlling the exposure of images taken in scenes with people in them according to scenes with people and performing tone mapping on the images according to the face area in the current frame image.

[0015] Optionally, when the recognition result does not include a face region and no associated face region and body region are currently recorded, the first information is used to instruct to perform image exposure control according to a set exposure control strategy corresponding to an unmanned scene.

[0016] When no face area is recognized in the current frame image and no associated face area and body area are currently recorded, exposure control is performed according to the unmanned scene. This can achieve accurate exposure control while improving the stability of exposure control, and can have an exposure control effect that meets actual needs.

[0017] Optionally, the image exposure control method also includes: in the case where a face area is currently recorded, obtaining a target face area, the target face area being the face area recorded latest among the face areas with the same number currently recorded; in the case where there are more than one human body areas corresponding to the target face area currently recorded, obtaining the minimum human body area among the more than one human body areas, wherein each human body area corresponding to the target face area is the human body area recorded latest among the human body areas with the same number currently recorded, and any human body area corresponding to the target face area contains the target face area; determining that the target face area is associated with the minimum human body area among more than one human body areas; wherein the facial features in the face areas with the same number meet the set facial feature consistency requirements, and the human body features in the human body areas with the same number meet the set human body feature consistency requirements.

[0018] If there are multiple human body areas corresponding to the target face area, based on the one-to-one correlation characteristics between the face area and the body area, the smallest human body area among the multiple human body areas is associated with the target face area, so as to achieve accurate judgment of the correlation between the face area and the body area of ​​the same user, and thus achieve accurate exposure control.

[0019] Optionally, performing image exposure control according to the first information includes: controlling the exposure of the camera module using a time domain smooth switching method according to the exposure control strategy on which the last image exposure control was based, the exposure control strategy indicated by the first information and the last control result of the exposure of the camera module.

[0020] By using the current and previous exposure control strategies and the current exposure of the camera module, smooth switching control of the exposure of the camera module can be achieved, which helps to further improve the stability of exposure control.

[0021] In a second aspect, an embodiment of the present application provides an image exposure control device, comprising: a first acquisition module, used to acquire a recognition result of a first image, wherein the first image is obtained based on an image taken by a camera module, and the recognition result is obtained based on face recognition and body recognition performed on the first image; a recording module, used to record the face area in the recognition result for a first duration when the recognition result includes a recognized face area, and to record the body area in the recognition result for a second duration when the recognition result includes a recognized body area, and the first duration is greater than the second duration; a second acquisition module, used to acquire first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and when the currently recorded image has associated face areas and body areas, the first information is used to indicate image exposure control according to a set exposure control strategy corresponding to a scene with people; a control module, used to perform image exposure control according to the first information.

[0022] In a third aspect, an embodiment of the present application provides an image exposure control system, comprising: a target processor, for inputting an image captured by a camera module, and outputting a first image to an image processor, wherein the first image is obtained according to the image captured by the camera module; an image processor, for inputting the first image output by the target processor, and outputting the first image; inputting a tone mapping processing instruction output by a tone mapping control module, performing tone mapping processing on the first image or the next frame image of the input first image according to the tone mapping processing instruction, and outputting an image obtained by the tone mapping processing; an exposure control module, for inputting first information, the first information being used to indicate an exposure control strategy used for image exposure control; when the first information indicates that the exposure control strategy used is the exposure control strategy set corresponding to a scene with people, outputting a first control instruction to the tone mapping control module, wherein the first control instruction is used to instruct to perform tone mapping processing on a face area included in the first information in the first image or the next frame image of the first image; the tone mapping control module, for inputting the first control instruction, and outputting the tone mapping processing instruction obtained according to the first control instruction to the image processor.

[0023] In an embodiment of the present application, a first image is output so that an external module can generate and feedback first information indicating an exposure control strategy used for image exposure control. When the first information indicates that exposure control is to be performed according to a scene with people, tone mapping processing is performed on the face area in the first image or its next frame image based on the face area in the first information, thereby achieving targeted exposure control of the face area.

[0024] Optionally, the first information is obtained according to the following steps: obtaining a recognition result of the first image, the recognition result being obtained according to face recognition and body recognition of the first image; when the recognition result includes a recognized face area, recording the face area in the recognition result and the duration of the recording is a first duration, and when the recognition result includes a recognized body area, recording the body area in the recognition result and the duration of the recording is a second duration, the first duration being greater than the second duration; obtaining the first information, wherein, when the currently recorded image has associated face areas and body areas, the first information is used to indicate that image exposure control is performed according to an exposure control strategy corresponding to a scene with people.

[0025] The face and body recognition of video images can be carried out and recorded regularly, and exposure control can be performed based on the associated combination of the recorded faces and bodies. This can solve the problem of repeated jumps in exposure control when face recognition is unstable, such as when a person turns around temporarily or appears on camera for a short time, and can improve the exposure control stability in scenes where people are in motion.

[0026] Optionally, the exposure control module is used to output a second control instruction to the camera module according to the first information, and the second control instruction is used to control the exposure of the image taken by the camera module.

[0027] In addition to tone mapping the image according to the face area in the first information, the exposure of the image taken by the camera module can also be controlled according to the first information, so as to perform exposure control for manned / unmanned scenes from the source of image acquisition, so that images that meet the current scene can be obtained, thereby improving the image display effect.

[0028] Optionally, the target processor is used to fuse the two images captured by the input camera module to obtain a first image, and the exposure amounts of the two images are different; the image processor is used to output the statistical information of the two images to the exposure control module; the exposure control module is used to input the statistical information of the two images; and output a third control instruction to the camera module according to the statistical information of the two images, and the third control instruction is used to control the exposure amount of the image captured by the camera module.

[0029] In addition to controlling the exposure of the image taken by the camera module according to the first information, the exposure of the image taken by the camera module can also be controlled according to the statistical information of the two images, so as to perform exposure control based on the exposure status of the current frame image from the source of image acquisition. In this way, an image with a better exposure can be obtained, thereby improving the image display effect.

[0030] Optionally, the target processor is used to take an image as the first image when an image captured by the camera module is input; the image processor is used to output statistical information of the first image to the exposure control module; the exposure control module is used to input the statistical information of the first image; and the fourth control instruction is output to the camera module according to the statistical information of the first image, and the fourth control instruction is used to control the exposure amount of the image captured by the camera module.

[0031] In addition to controlling the exposure of the image taken by the camera module according to the first information, the exposure of the image taken by the camera module can also be controlled according to the statistical information of the image, so as to perform exposure control based on the exposure status of the current frame image from the source of acquiring the image. In this way, an image with a better exposure can be obtained, thereby improving the image display effect.

[0032] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising one or more memories for storing computer program instructions, and one or more processors, wherein when the computer program instructions are executed by the one or more processors, the electronic device is triggered to execute a method as described in any one of the first aspects.

[0033] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes any method in the first aspect.

[0034] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes any method in the first aspect.

[0035] The technical effects of the aforementioned aspects can be referenced to each other and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.

[0037] Figure 1 A schematic diagram of an electronic device provided by an embodiment of the present application;

[0038] Figure 2 A schematic flow chart of an image exposure control method provided by an embodiment of the present application;

[0039] Figure 3 A schematic diagram of an image recognition result provided for an embodiment of the present application;

[0040] Figure 4A schematic diagram of another image recognition result provided by an embodiment of the present application;

[0041] Figures 5 to 9 A schematic diagram of recording recognition results in different scenarios provided by some embodiments of the present application;

[0042] Fig.10 A schematic flow chart of an image exposure control method provided by an embodiment of the present application;

[0043] Fig.11 A schematic diagram of an image exposure control system provided by one embodiment of the present application;

[0044] Fig.12 A timing diagram of image exposure control provided by one embodiment of the present application;

[0045] Fig.13 A timing diagram of another image exposure control provided by an embodiment of the present application;

[0046] Fig.14 A schematic flow chart of an image exposure control method provided by an embodiment of the present application;

[0047] Fig.15 A schematic diagram of an image exposure control system provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0049] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0050] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0051] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple.

[0052] It should be understood that, although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.

[0053] The image exposure control method provided in any embodiment of the present application can be applied to Figure 1 In the electronic device 100 shown. Figure 1 A schematic structural diagram of an electronic device 100 is shown.

[0054] The electronic device 100 may include a processor 110, an internal memory 121, an audio module 170, a speaker 170A, a receiver 170B, a camera 193, a display screen 194, etc. In some embodiments, the electronic device 100 may further include an external memory.

[0055] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0056] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0057] 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 video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. 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.

[0058] In some embodiments, the processor 110 may be a system on chip (SOC), which may include a central processing unit (CPU) and may further include other types of processors. In some embodiments, the processor 110 may be a PWM control chip.

[0059] The processor 110 may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the technical solution program, etc. In addition, the processor 110 may have the function of operating one or more software programs, which may be stored in a storage medium.

[0060] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0061] In some embodiments, the memory of the electronic device 100 may be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or may be any computer-readable medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer.

[0062] In some embodiments, the processor 110 and the memory may be combined into a processing device, or may be independent components, and the processor 110 may be used to execute program codes stored in the memory. In specific implementation, the memory may also be integrated into the processor 110, or may be independent of the processor 110.

[0063] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0064] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. 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. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0065] When the electronic device 100 performs image exposure control in scenarios such as video calls and online live broadcasts, it can output sound signals of video calls, online live broadcasts, etc. through the audio module 170 (not limited to the speaker 170A, the receiver 170B, etc.), and can display the video image after image exposure control through the display screen 194.

[0066] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0067] The display screen 194 is used to display images, videos, etc. 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 electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0068] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0069] The ISP is used to process the data fed back by the camera 193. The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. When the camera 193 captures a video image, it can capture one or multiple images with different exposures as the current frame video image.

[0070] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0071] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, and the application processor.

[0072] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.

[0073] In the video display process such as video recording, the face display effect is very important. To ensure the face display effect, in a related technology, relying on the execution of face recognition, the video image can be distinguished into images of scenes with people (or scenes with faces) and images of scenes without people (or scenes without faces) according to whether there are faces in the real-time displayed video image, and based on the difference between scenes with people and scenes without people, the video image is subjected to corresponding different exposure controls.

[0074] Since the video display process is a continuous image display process, and the human face is usually not always in the image acquisition area (for example, the user may turn his back, leave the camera lens, lower his head, etc.), the implementation method of image exposure control that relies on the presence or absence of a face in the image is prone to cause exposure control jumps, resulting in unstable video effects.

[0075] For example, during video recording, if the user faces the camera, the image captured by the camera contains the user's face, and the image can be used as an image in a scene with people, so that image exposure control can be performed for scenes with people. If the user then turns his back / leaves the camera (i.e., leaves the camera lens), the image captured by the camera does not contain the user's face, and the image can be used as an image in a scene with no people, so that image exposure control can be performed for scenes with no people. It can be seen that when the user turns his back / leaves the camera, the face in the image disappears briefly, and an effect jump occurs at this time. If the user turns his back / leaves the camera and then turns back / returns to the camera again, the image captured by the camera is an image in a scene with people, so that image exposure control can be performed for scenes with people. It can be seen that when the user turns his back / returns to the camera, the face in the image appears again, and another effect jump occurs at this time. Since video recording is a continuous process, repeated jumps in exposure control in the same scene will cause unstable video effects.

[0076] Because in the implementation method of image exposure control that relies on the presence or absence of a face in the image, the user's temporary turning away, leaving the camera, etc. will cause the face to appear unstable, which can easily cause repeated jumps in exposure control and affect the stability of the video effect. Therefore, in order to solve the problem of repeated jumps in exposure control and improve the stability of the video effect, the embodiment of the present application can recognize and periodically memorize (or record) the face and body of the video image, and perform exposure control based on the associated combination of the currently memorized face and body. This can solve the problem of repeated jumps in exposure control when face recognition is unstable, such as when a person temporarily turns around or briefly appears in the camera, and can improve the exposure control stability of scenes with moving people.

[0077] In one embodiment of the present application, please refer to Figure 2 The image exposure control method may include the following steps 201 to 206. The method may be applicable to image exposure control in scenes such as photo preview, video preview, video recording, online live broadcast, video call, etc.

[0078] Step 201, obtaining a video stream image.

[0079] In one embodiment, the video stream image may be an image obtained in real time during video recording. In other embodiments, the video stream image may also be an image obtained in real time during online live broadcast or video call.

[0080] In one embodiment, the video stream image may be a preview stream image obtained in a preview process before image shooting. In another embodiment, the video stream image may be a preview stream image obtained in a preview process before video recording.

[0081] In one embodiment, the acquired image may be an image in a high dynamic range scene.

[0082] In one embodiment, the video stream image may be an image captured by a camera. In another embodiment, the video stream image may be an image obtained by processing the image captured by a camera.

[0083] Step 202, perform face recognition and body recognition on the video stream image, and record the recognized face area for a first duration when a face area is recognized, and record the recognized body area for a second duration when a body area is recognized, and the first duration is greater than the second duration.

[0084] In one embodiment, the face area may be an area of ​​the user's face or head.

[0085] Considering the image display range (such as Figure 3 The entire body of the person is not shown in the image shown), the flexible changes in human posture and body occlusion (such as Figure 4 In one embodiment, the human body region may be a region including at least the user's waist or chest. For example, if the user's head and neck are exposed but the area below the neck is blocked, it can be considered that the user's human body region is not recognized.

[0086] Please refer to Figure 3 ,right Figure 3 When the image shown is used for face and body recognition, one face region and two body regions can be recognized, that is, the face region and body region of a woman (for example, denoted as person A) can be recognized, and the body region of a man (for example, denoted as person B) can be recognized. The face region of person A is shown in the dotted box denoted by reference numeral 301, the body region of person A is shown in the dotted box denoted by reference numeral 302, and the body region of person B is shown in the dotted box denoted by reference numeral 303.

[0087] Please refer to Figure 4 ,right Figure 4 When the image shown is used for face and body recognition, one face region and two body regions can be recognized, that is, a face region and a body region of a child can be recognized, and an body region of an adult can be recognized. The face region of the child is shown in the dotted line box shown in the reference numeral 401, the body region of the child is shown in the dotted line box shown in the reference numeral 402, and the body region of the adult is shown in the dotted line box shown in the reference numeral 403.

[0088] The shape of the face / body region can be Figure 3-4 The square shape shown may also be other shapes, such as an ellipse, etc., which is not limited in the embodiments of the present application.

[0089] In one embodiment, face recognition and body recognition can be performed by matching feature points. In other embodiments, other feasible methods (such as neural network models for implementing face / body recognition, etc.) can also be used for face recognition and body recognition, which is not limited in the embodiments of the present application.

[0090] In one embodiment, the area thresholds of the face area and the body area can be limited. Taking the face as an example, if the area of ​​the face of any user in the image is smaller than the preset corresponding area threshold, the area of ​​the face of the user is not considered as the recognized face area, and the face of the user can be considered to have disappeared or not exist in the image (i.e., the face area with too small an area is ignored). Because the adult lowered his head, the face area of ​​the adult was not recognized.

[0091] The recognized face area and body area are recorded separately for different lengths of time. The recorded face area and body area are destroyed upon expiration. The recorded face area and body area that have not been destroyed upon expiration can be used as the basis for determining whether to perform exposure control according to the scene with people.

[0092] The recording time of the face area is longer than that of the body area. For example, the recording time of the face area is 2s, and that of the body area is 1s. That is, the recognized face area will expire and be destroyed after 2s of recording, and the recognized body area will expire and be destroyed after 1s of recording. Since the recording time of the body area is shorter than that of the face area, the recorded body area will expire before the face area recorded in the same period. Therefore, compared with the user turning his back, the exposure control will switch to the unmanned scene faster after the user leaves the camera.

[0093] By setting different recording times for the face area and the body area, based on the subsequent correlation judgment of the face and body areas, it is possible to distinguish between the situation of turning away (as well as the situation where only the face disappears but the body does not disappear, such as lowering the head) and the situation of being out of frame, thereby producing corresponding exposure control effects that meet actual needs. In this way, the exposure effect can be flexibly controlled according to different situations.

[0094] In one embodiment, the recognized face region and body region can be recorded in a queue. The recognized face region stays in the face region memory queue for a first time, and exits the queue after reaching the first time. The recognized body region stays in the body region memory queue for a second time, and exits the queue after reaching the second time. In this way, the subsequent judgment on whether there are currently associated face regions and body regions recorded can be specifically to judge whether there are associated face regions and body regions in the face region memory queue and the body region memory queue.

[0095] Taking the above scene of person A and person B as an example, assuming that the current frame image is the i-th frame image, the expiration destruction time of the face area, i.e., the first time, is 4 frames (i.e., the time used to obtain 4 frames of images in sequence), and the expiration destruction time of the body area, i.e., the second time, is 2 frames. Below, the recording and destruction of the face area and the body area in this scene are explained in different scenarios.

[0096] Scene 1: Person A ( Figure 3 The lady shown) is always facing the camera lens, and person B ( Figure 3 The man shown) always has his back turned.

[0097] At a certain moment in scene 1, the face region memory queue and the body region memory queue can be as follows Figure 5 shown.

[0098] Figure 5 The face regions indicated by reference numerals 501 to 504 may be face regions of person A in the i-th frame image to the i-3-th frame image, respectively. Figure 5 The (a,b) in can be expressed as Figure 3 The coordinate values ​​of two diagonal vertices of the face area shown in the middle number 301. The coordinate values ​​of two diagonal vertices of the square area can accurately indicate the location of the face area.

[0099] Since person B always turns his back, the face area of ​​person B is not recognized from the i-th frame image to the i-3-th frame image. Figure 5 The face region memory queue shown does not contain the face region of person B.

[0100] Figure 5 The human body regions indicated by the reference numbers 505 to 506 may be the human body regions of person A in the i-th frame image to the i-1-th frame image, respectively. The human body regions of person A in the i-2-th frame image to the i-3-th frame image have been out of the queue, that is, have expired and destroyed.

[0101] Figure 5 The human body regions indicated by reference numerals 507 to 508 may be the person B in the i-th frame image to the i-1-th frame image ( Figure 3 The human body region of person B in the i-2nd frame image to the i-3rd frame image has been out of the queue, that is, it has expired and destroyed.

[0102] Scene 2: Person A is turning his back towards the camera lens, while Person B always turns his back.

[0103] Taking the case where person A is facing the camera lens and person B has his back turned in the i-1th frame image, and person A has his back turned and person B has his back turned in the i-th frame image as an example, after completing face and body recognition for the i-th frame image, the face region memory queue and the body region memory queue can be as follows: Figure 6 shown.

[0104] In the i-1th frame image, person A is facing the camera lens and person B has his back turned, so the face region and body region of person A and the body region of person B can be recognized.

[0105] In the i-th frame image, person A has his back turned and person B has his back turned, so the body region of person A and the body region of person B can be identified.

[0106] Figure 6 In the face region memory queue shown, from top to bottom are the face regions of person A in the i-1th frame image to the i-3th frame image. No face region is recognized in the i-th frame image, so the corresponding position is displayed as empty.

[0107] Figure 6 In the human body region memory queue shown, the left column is the human body region of person A, and the right column is the human body region of person B. From top to bottom in the left column are the human body regions of person A in the i-th frame image to the i-1-th frame image, and from top to bottom in the right column are the human body regions of person B in the i-th frame image to the i-1-th frame image. The human body regions of person A and person B in the i-2-th frame image to the i-3-th frame image have all been removed from the queue.

[0108] Scene 3: Person A is facing the camera lens and then turns his back for a long time, while person B always turns his back.

[0109] Taking the case where person A is facing the camera lens and person B has his back turned in the i-4th frame image, and person A has his back turned and person B has his back turned in the i-3rd to i-th frames as an example, after completing face and body recognition for the i-th frame image, the face region memory queue and the body region memory queue can be as follows: Figure 7 shown.

[0110] In the i-4th frame image, person A is facing the camera lens and person B has his back turned, so the face region and body region of person A and the body region of person B can be identified.

[0111] In the i-3th frame to the i-th frame image, person A has his back turned and person B has his back turned, so the human body region of person A and the human body region of person B can be identified.

[0112] Figure 7 There is no face queue in the face region memory queue shown. No face region is recognized in the i-th frame image to the i-3-th frame image, so the corresponding positions are displayed as empty. The face region of person A recognized in the i-4-th frame image has been removed from the queue.

[0113] Figure 7In the human body region memory queue shown, the left column is the human body region of person A, and the right column is the human body region of person B. From top to bottom in the left column are the human body regions of person A in the i-th frame image to the i-1-th frame image, and from top to bottom in the right column are the human body regions of person B in the i-th frame image to the i-1-th frame image. The human body regions of person A and person B in the i-2-th frame image to the i-3-th frame image have all been removed from the queue.

[0114] Scene 4: Person A is walking towards the camera and then leaves the frame, while Person B always has his back turned.

[0115] The out-of-frame of character A may be caused by the movement of character A or the movement of the camera lens.

[0116] Taking the case where person A is facing the camera lens and person B has his back turned in the i-1th frame image, and person A is out of the camera lens and person B has his back turned in the i-th frame image as an example, after completing face and body recognition for the i-th frame image, the face region memory queue and the body region memory queue can be as follows: Figure 8 shown.

[0117] In the i-1th frame image, person A is facing the camera lens and person B has his back turned, so the face region and body region of person A and the body region of person B can be recognized.

[0118] In the i-th frame image, person A is out of frame and person B has his back turned, so the body area of ​​person B can be identified.

[0119] Figure 8 In the face region memory queue shown, from top to bottom are the face regions of person A in the i-1th frame image to the i-3th frame image. No face region is recognized in the i-th frame image, so the corresponding position is displayed as empty.

[0120] Figure 8 In the human body region memory queue shown, the left column is the human body region of person A, and the right column is the human body region of person B. The left column is the human body region of person A in the i-1th frame image, and the right column is the human body region of person B in the i-th frame image to the i-1th frame image from top to bottom. The human body region of person A is not recognized in the i-th frame image, so the corresponding position is displayed as empty. The human body regions of person A and person B in the i-2th frame image to the i-3th frame image have all been removed from the queue.

[0121] Scene 5: Person A is looking down at the camera lens with his head below the lens blocked, while Person B has his back turned.

[0122] For example, in the i-1th frame image, person A is facing the camera lens and person B has his back turned, and in the i-th frame image, person A lowers his head and person B has his back turned. After completing face and body recognition for the i-th frame image, the face region memory queue and the body region memory queue can be as follows: Fig. 9 shown.

[0123] In the i-1th frame image, person A is facing the camera lens with the lower part of his head blocked and person B has his back turned, so the face area of ​​person A and the body area of ​​person B can be recognized.

[0124] In the i-th frame image, when person A is obscured below the head and lowers his head, and person B turns his back, the body area of ​​person B can be recognized.

[0125] Fig. 9 In the face region memory queue shown, from top to bottom are the face regions of person A in the i-1th frame image to the i-3th frame image. No face region is recognized in the i-th frame image, so the corresponding position is displayed as empty.

[0126] Fig. 9 In the human body region memory queue shown, there is a column of human body regions of person B. The column of human body regions is the human body regions of person B in the i-th frame image to the i-1-th frame image from top to bottom. The human body regions of person B in the i-2-th frame image to the i-3-th frame image have all been removed from the queue.

[0127] Since the lower part of the head of person A is blocked, the human body region of person A is recognized in the i-th frame image to the i-1-th frame image, so the corresponding positions in the human body region memory queue are displayed as empty.

[0128] In one embodiment, there may be one or more users within the image acquisition range of the camera.

[0129] In a multi-user situation, one or more face regions may be identified from the video stream image. Therefore, in one embodiment, the identified face regions may be numbered for distinction.

[0130] In a multi-user situation, there may be a situation where one or more human body regions are identified from the video stream image. Therefore, in one embodiment, the identified human body regions may be numbered for distinction.

[0131] In one embodiment, if the facial regions of the same user are recognized in adjacent frame images, the recognized facial regions of the user may be assigned the same number.

[0132] Step 203, determining whether a face region is recognized when performing face recognition on the video stream image, if so, executing step 205, otherwise executing step 204.

[0133] After face recognition is performed on the video stream image of the current frame, if the face area is recognized, exposure control is performed according to the scene with people; if the face area is not recognized, the correlation between the currently recorded face area and the body area is further judged to decide whether to perform exposure control according to the scene with people.

[0134] In one embodiment, it can be determined whether there is a face region at the position corresponding to the current frame image in the face region memory queue. If there is, it means that the face region is recognized from the current frame image. If not, it means that the face region is not recognized from the current frame image.

[0135] Step 204, determine whether there are currently associated face regions and body regions recorded, if so, execute step 205, otherwise execute step 206.

[0136] In one embodiment, if there are multiple face regions of the same user currently recorded, it is possible to determine whether one of the multiple face regions is associated with a human body region, rather than determining whether each face region of the same user currently recorded is associated with a human body region. This can significantly reduce the amount of data processing without affecting the exposure control effect.

[0137] In one embodiment, the determined face region may be the face region of the same user recorded most recently, that is, the most recent face region of the user, which helps to achieve more accurate exposure control for the face region.

[0138] Please refer to Figure 5 In combination with the description of the above-mentioned scenario 1, the facial regions of person A recognized in the i-th frame to the i-3-th frame images are respectively the facial regions indicated by labels 501 to 504, and a judgment is made as to whether the facial region indicated by label 501 is associated with a human body region, while a judgment is not made as to whether the facial regions indicated by labels 502 to 504 are associated with a human body region.

[0139] Usually, the face region and body region of the same user are associated.

[0140] In one embodiment, the face region and body region of the same user currently being recorded may be assigned the same number.

[0141] In one embodiment, the association between the face and body regions can be determined based on the principle of region inclusion. Thus, the body region associated with the face region includes the associated face region. For example, the face region may include the region where the user's head is located, and the body region may include at least the region above the user's waist.

[0142] Please refer to Figure 3 , the human body region shown in label 302 and the face region shown in label 301 have an inclusion relationship within a certain diffusion area (the human body region contains the face region), and there is a position association between the two, then it can be determined that the human body region shown in label 302 and the face region shown in label 301 are associated.

[0143] In the above scenario 1, please refer to Figure 5 , there are associated face areas and body areas in the queue, that is, the current record has associated face areas and body areas, and exposure control is performed according to the scene with people.

[0144] In scene 1, person A is always facing the camera lens, and person B is always turned away, that is, there is no instability in the face, so the exposure control is always performed according to the scene with people, so there is no repeated jump in the exposure control.

[0145] In the above scenario 2, please refer to Figure 6 , there are associated face areas and body areas in the queue, that is, the current record has associated face areas and body areas, and exposure control is performed according to the scene with people.

[0146] In scene 2, person A is turning his back towards the camera lens, and person B is always turning his back, resulting in unstable faces. However, in the early stage of this situation, exposure control is still performed according to the scene with people, so there is no repeated jump in exposure control.

[0147] In addition, if person A turns around in a short period of time (within the face area destruction time limit), the exposure control is also performed according to the scene with people. That is, the back-turning and back-turning actions of the person in a short period of time will not cause two jumps in the exposure control.

[0148] In the above scenario 3, please refer to Figure 7 , there are no associated face areas and human body areas in the queue, that is, no associated face areas and human body areas are currently recorded, and exposure control is performed according to the unmanned scene.

[0149] In scene 3, person A is facing the camera lens and then turns his back for a long time, and person B keeps turning his back, resulting in unstable faces. In the early stage of this situation, exposure control is still performed according to the scene with people, and there is no repeated jump in exposure control. In the later stage of this situation, exposure control is switched to the scene with no people, so that an exposure control effect that meets actual needs can be achieved.

[0150] In the above scenario 4, please refer to Figure 8 , there are associated face areas and body areas in the queue, that is, the current record has associated face areas and body areas, and exposure control is performed according to the scene with people.

[0151] In scene 4, person A is facing the camera lens and then leaves the frame, and person B keeps turning his back, resulting in unstable faces. However, in the early stage of this situation, exposure control is still performed according to the scene with people, so there is no repeated jump in exposure control.

[0152] In addition, if character A returns to the camera within a short period of time (within the face area destruction time limit), the exposure control is also performed according to the scene with people. That is, the character's off-camera and back-camera actions within a short period of time will not cause two jumps in exposure control.

[0153] In the above scenario 5, please refer to Fig. 9 , there are no associated face areas and human body areas in the queue, that is, no associated face areas and human body areas are currently recorded, and exposure control is performed according to the unmanned scene.

[0154] In one embodiment, for the special scene in which the human body region of person A shown in scene 5 is never recognized, exposure control in a scene with or without people can be performed accordingly based on the face recognition result of the current frame image.

[0155] In another embodiment, if the user's face region is recognized based on the current frame image but the user's body region is not recognized, the user's body region can be added to the body region memory queue. By adding the user's body region, the user's face region can be made into the face region currently recorded with the associated body region, so that exposure control can be performed according to the scene with people based on the face region. This can deal with the problem of repeated jumps in exposure control in special scenes and meet the actual exposure control requirements.

[0156] Considering that there may be multiple human body regions that include the same face, in order to accurately determine the association between the face region and the human body region (one face region can be associated with at most one human body region), in another embodiment, the association between the face and human body regions can be determined based on the principle of minimum region inclusion. In this way, accurate judgment of the association between the face and human body can be achieved, and an exposure control effect that meets actual needs can be achieved.

[0157] Please refer to Figure 4 , the human body region shown by label 402 and the face region shown by label 401 have an inclusion relationship within a certain diffusion area, the human body region shown by label 403 and the face region shown by label 401 have an inclusion relationship within a certain diffusion area, but the human body region shown by label 403 is larger than the human body region shown by label 402, then it can be determined that the human body region shown by label 402 and the face region shown by label 401 are associated, while the human body region shown by label 403 and the face region shown by label 401 are not associated.

[0158] In another embodiment, the human body region associated with the face region is connected to the associated face region. For example, the face region may include the region where the user's head is located, and the human body region does not include the region where the user's head is located, but at least includes the region above the user's waist and below the head.

[0159] Step 205: performing image exposure control according to the set exposure control strategy corresponding to the scene with people.

[0160] If there is a face in the current frame image, the exposure control is performed according to the scene with people. If there is no face in the current frame image, if the current record has associated face area and body area, the exposure control is also performed according to the scene with people.

[0161] For example, in the absence of other people, the user's face and body are present in the previous frame image. Because the user temporarily turns his back, the user's body is present in the current frame image, but the user's face is not present. At this time, although there is no face in the current frame image, the current record has the associated face area and body area, so the current frame image can still be considered as an image in a scene with people, and the exposure control is performed according to the scene with people.

[0162] For example, when there is no other person involved, the user's face and body are present in the previous frame, but the user temporarily leaves the frame, so the user's face and body are no longer present in the current frame. At this time, although there is no face in the current frame, the current record has the associated face area and body area, so the current frame can still be considered as an image in a scene with people, and the exposure control is performed according to the scene with people.

[0163] Step 206 , performing image exposure control according to the exposure control strategy set corresponding to the unmanned scene.

[0164] If there is no face in the current frame image, and no associated face area and body area are currently recorded, exposure control is performed according to the unmanned scene.

[0165] For example, in the absence of other people, the user's face and body are present in the first frame. Since the user turns his back and does not turn around for a long time, the user's body is present in the 2nd to Nth frames but not the user's face, and the face area in the first frame has expired and destroyed when the Nth frame is acquired (assuming that the destruction time limit of the face area is less than N frames). Since there is no face in the Nth frame, and no associated face area and body area are recorded in the Nth frame, the Nth frame is considered to be an image in an unmanned scene, and exposure control is performed according to the unmanned scene.

[0166] For another example, in the absence of other people, the user's face and body are present in the first frame. Since the user leaves the camera and does not return to the camera for a long time, the user's face and body are not present in the 2nd to Mth frames, and the face area and body area in the first frame have expired and been destroyed when the Nth frame is acquired (assuming that the destruction time limit of the body area is less than M frames). Since there is no face in the Mth frame, and no associated face area and body area are recorded in the Mth frame, the Mth frame is considered to be an image in an unmanned scene, and exposure control is performed according to the unmanned scene.

[0167] visible, Figure 2 The judgment of the scene with people and the scene without people in the illustrated embodiment depends not only on whether there is a human face in the current frame image, but also on the existence and association of the human face and the human body in the previous frame or the previous multiple frames. Based on this, for the case where the face becomes unstable when the user temporarily turns his back or leaves the camera, taking the back turn as an example, when the user temporarily turns his back, the exposure control can continue to be performed according to the scene with people. When the user temporarily turns his back and turns back within a short period of time, the exposure control can also be performed according to the scene with people. Based on this, although the user performs the action of turning his back first and then turning back, the exposure control can always be performed according to the scene with people during this period, and there is no repeated jump in the exposure control, so the stability of the video effect is good. Figure 2 The illustrated embodiment can be applied to exposure control in scenes with moving figures, and can improve the exposure control stability in scenes with moving figures.

[0168] Referring to the above step 205 and the above step 206, image exposure control may be performed based on the difference between a scene with people and a scene without people.

[0169] In one embodiment of the present application, image exposure control may include adjusting camera parameters. In a feasible implementation, exposure control may include adjusting exposure time, gain, dynamic range compression degree, etc.

[0170] In one embodiment of the present application, the image exposure control may include performing exposure control on the acquired video stream image. In another embodiment of the present application, the image exposure control may include performing exposure control on the next frame image of the acquired video stream image.

[0171] In a feasible implementation, compared with exposure control according to an unmanned scene, the brightness of the image obtained by performing exposure control according to a manned scene is higher.

[0172] In another feasible implementation, compared with exposure control according to an unmanned scene, the dynamic range of the image obtained by performing exposure control according to a manned scene is smaller.

[0173] In addition to image exposure control based on the difference between scenes with people and scenes without people, image exposure control can also be performed based on the face area in the current frame image and the face area currently recorded and associated with the human body area (i.e., two types of face areas). In one embodiment, there may be no repeated face areas in the two types of face areas. For example, for the face area in the current frame image, it is not necessary to determine whether the face area is associated with the human body area.

[0174] In the case where the image exposure control is performed according to the above two types of face regions, regardless of whether the face region is recognized in the current frame image, it is determined whether the associated face region and body region are currently recorded, rather than Figure 2The embodiment described in the figure only determines whether there are currently associated face regions and human body regions recorded when no face region is recognized in the current frame image. Fig.10 The image exposure control method may include the following steps 1001-1005.

[0175] Step 1001, obtaining a video stream image.

[0176] The step 1001 is the same as the step 201 and will not be described in detail here.

[0177] Step 1002, performing face recognition and body recognition on the video stream image, and recording the recognized face area for a first duration when a face area is recognized, and recording the recognized body area for a second duration when a body area is recognized, and the first duration is greater than the second duration.

[0178] Step 1002 is the same as step 202 and will not be described in detail here.

[0179] Step 1003, determine whether a face area is recognized when performing face recognition on the video stream image, and determine whether there are currently associated face areas and body areas recorded. If both are no, execute step 1004, otherwise execute step 1005.

[0180] Please refer to the two judgment operations in step 1003. Figure 2 The relevant technical description in the illustrated embodiment will not be repeated here.

[0181] In one embodiment, for a face region in a video stream image, it may not be determined whether the face region and other face regions of the same user currently recorded are associated with a human body region.

[0182] Step 1004 , performing image exposure control according to the exposure control strategy set corresponding to the unmanned scene.

[0183] For details on how to implement exposure control based on unmanned scenes, please refer to Figure 2 The relevant technical description in the illustrated embodiment will not be repeated here.

[0184] Step 1005 , performing image exposure control according to the set exposure control strategy corresponding to the scene with people, and according to the recognized face area and the currently recorded face area associated with the human body area.

[0185] For details on how to implement exposure control based on scenes with people, please refer to Figure 2 The related technical description in the illustrated embodiment will not be repeated here.

[0186] In the above step 1005, if a face area is recognized and a face area associated with a human body area is currently recorded, image exposure control is performed based on these two types of face intervals; if a face area is recognized but a face area associated with a human body area is not currently recorded, image exposure control is performed based on the recognized face area; if no face area is recognized but a face area associated with a human body area is currently recorded, image exposure control is performed based on the currently recorded face area associated with a human body area.

[0187] The face belongs to the darker mid-tone part of the entire image. By controlling the exposure based on the face area, the face display effect can be improved in a more targeted manner.

[0188] In one embodiment of the present application, the exposure control strategy corresponding to the scene with people may include: the brightness, details and local contrast of the face area need to be prioritized, and the contrast between the background (highlight) information and the foreground (midtones and shadow areas) may be appropriately reduced.

[0189] In one embodiment of the present application, the exposure control strategy corresponding to the unmanned scene may include: ensuring that the overall information of the highlight, mid-tone, and shadow areas is retained and the contrast is reasonably distributed.

[0190] In one embodiment of the present application, when switching the exposure control strategy (from exposure control according to a scene with people to exposure control according to a scene without people, or from exposure control according to a scene without people to exposure control according to a scene with people), the exposure control strategy can be switched by smooth switching.

[0191] In a feasible implementation, the duration of the smooth switching may be set.

[0192] If there will be no further switching within the duration after the start of the switching, the exposure control strategy can be smoothly switched within a period of time after the start of the switching (the duration of this period of time is the above-mentioned duration). For example, if the exposure control is performed according to the scene with people in the i-th frame, and it is determined through analysis that the exposure control needs to be performed according to the scene without people in the i+1-th frame, the exposure control can be smoothly switched from the scene with people to the scene without people in the i-th frame to the i+n-th frame.

[0193] If it is necessary to switch again within the duration after the start of switching, the exposure control strategy can be smoothly switched within a period of time (the duration of this period is less than the above-mentioned duration) based on the completed exposure control results. For example, exposure control is performed according to a scene with people in the i-th frame, and it is determined through analysis that exposure control needs to be performed according to an unmanned scene in the i+1-th frame. In this case, exposure control can be smoothly switched from performing exposure control according to a scene with people to performing exposure control according to an unmanned scene during the i-th frame to the i+n-th frame. If it is determined through analysis that exposure control needs to be performed according to a scene with people in the i+j-th frame (j<n), exposure control can be smoothly switched back to performing exposure control according to a scene with people during the i+j-th frame to the i+2j-th frame based on the exposure control result at the i+j-th frame.

[0194] In one embodiment, the exposure control strategy includes controlling the exposure amount, assuming that the exposure amount corresponding to the scene with people is x, and the exposure amount corresponding to the scene without people is y. When the exposure control is smoothly switched from the scene with people to the scene without people, the exposure amount can be controlled to be x, x+(yx) / n, x+2(yx) / n, ..., x+(n-1)(yx) / n, y in sequence during the i-th frame to the i+n-th frame.

[0195] If it is necessary to perform exposure control according to a scene with people in the i+jth frame, the exposure amount can be controlled in sequence to x+j(yx) / n, x+(j-1)(yx) / n, ..., x+2(yx) / n, x+(yx) / n, x during the i+jth frame to the i+2jth frame.

[0196] In one embodiment, the purpose of smooth switching can be achieved by means of dynamic range compression.

[0197] For example, in the above scenario 3, person A is facing the camera lens and then turns his back for a long time, and person B keeps turning his back, which may cause unstable faces. In the early stage of this situation, the exposure control is still performed according to the scene with people, and there is no repeated jump in the exposure control. In the later stage of this situation, the exposure control is switched to the scene without people. That is, if person A does not turn back within a short period of time (within the face area destruction time limit) after turning his back, the exposure control strategy will be switched at this time.

[0198] Please refer to Fig.11 An embodiment of the present application provides an image exposure control system, which may include a sensor front-end processor 1102, an image processor front-end 1103, a first image processor back-end 1104, a second image processor back-end 1105, an exposure control module 1108 and a tone mapping control module 1109.

[0199] Among them, the sensor front-end processor 1102 includes a first module 11021 and a second module 11022; the image processor front-end 1103 includes a first tone mapping module 11031 and a third module 11032; the first image processor back-end 1104 includes a downsampling module 11041; and the second image processor back-end 1105 includes a second tone mapping module 11051.

[0200] In one embodiment, the exposure control module 1108 may be an automatic exposure control chip.

[0201] The internal connection relationship of the modules in this system can be shown as Fig.11 shown.

[0202] The system can be connected to an external module to achieve exposure control purposes. The external module can be as follows Fig.11 The camera sensor 1101, the perception engine 1106, the decision engine 1107, and the image display module 1110 are shown. Among them, the perception engine 1106 includes a face recognition module 11061, a face recording module 11062, a body recognition module 11063, a body recording module 11064, and a face and body association module 11065.

[0203] The connection relationship between the modules in this system and the external modules can be as follows Fig.11 shown.

[0204] The camera sensor 1101 can output single-frame or multi-frame images.

[0205] In one embodiment, the camera sensor 1101 may output two frames of images, namely, a frame of image with a smaller exposure (eg, recorded as a short image) and a frame of image with a larger exposure (eg, recorded as a long image).

[0206] In another embodiment, the camera sensor 1101 may output a frame of image, for example, a frame of image with a larger exposure.

[0207] If the camera sensor 1101 outputs multiple frames of images, the sensor front-end processor 1102 can fuse the multiple frames of images and output the fused image to the image processor front-end 1103, and can output the statistical information of each image to the exposure control module 1108 through the first module 11021 and the second module 11022, so that the exposure control module 1108 can control the exposure of the image taken by the camera sensor 1101 according to the statistical information.

[0208] In one embodiment, the first module 11021 and the second module 11022 may both be histogram modules, which are used to output statistical information such as a brightness histogram of an image.

[0209] If the camera sensor 1101 outputs a single frame image, the sensor front-end processor 1102 may transmit the single frame image to the image processor front-end 1103 .

[0210] The image processor front end 1103 may transfer the image output by the sensor front end processor 1102 to the first image processor back end 1104 .

[0211] If the image output by the sensor front-end processor 1102 is a fused image, the image processor front-end 1103 can perform tone mapping processing on the image through the first tone mapping module 11031 according to the tone mapping processing instruction output by the tone mapping control module 1109, and pass the tone mapped image to the second image processor back-end 1105.

[0212] The first tone mapping module 11031 may be used to perform global tone mapping and local tone mapping on the image. In one embodiment, the first tone mapping module 11031 may be used to implement global tone mapping and local tone mapping in the Bayer domain.

[0213] In one embodiment, the tone mapping processing instruction output by the tone mapping control module 1109 can be obtained according to the decision result of the current frame image. In another embodiment, the tone mapping processing instruction output by the tone mapping control module 1109 can be obtained according to the decision result of the previous frame image.

[0214] If the image output by the sensor front-end processor 1102 is not a fused image, the image processor front-end 1103 can pass the image to the second image processor back-end 1105, and can output the statistical information of the image to the exposure control module 1108 through the third module 11032, so that the exposure control module 1108 can control the exposure of the image taken by the camera sensor 1101 according to the statistical information.

[0215] If the image output by the image processor front end 1103 is a tone-mapped image, the second image processor back end 1105 outputs the image to the image display module 1110 for display.

[0216] If the image output by the image processor front end 1103 is not a tone-mapped image, the second image processor back end 1105 can perform tone mapping processing on the image according to the tone mapping processing instruction output by the tone mapping control module 1109 through the second tone mapping module 11051, and output the tone-mapped image to the image display module 1110 for display. The second tone mapping module 11051 can be used to perform local tone mapping on the image.

[0217] The image output by the second image processor backend 1105 may be an image of a preview stream, a video stream, or a recording stream.

[0218] After the image processor front end 1103 transmits and outputs the input image to the first image processor back end 1104 , the first image processor back end 1104 may perform downsampling processing through the downsampling module 11041 , and output the processed image to the perception engine 1106 .

[0219] The perception engine 1106 can perform face recognition on the input image through the face recognition module 11061, and record it for a first time length through the face recording module 11062 when a face area is recognized, and can perform body recognition on the input image through the body recognition module 11063, and record it for a second time length (the second time length is less than the first time length) through the body recording module 11064 when a body area is recognized, and then perform correlation judgment through the face-body association module 11065 to determine whether there are currently associated face areas and body areas recorded, and output the perception results to the decision engine 1107.

[0220] In one embodiment of the present application, the face recording module 11062 and the body recording module 11064 can respectively record the recognized face area and body area through queues, and the face-body association module 11065 can generate perception results based on the face area and body area in the queue.

[0221] In one embodiment of the present application, after a face region or a human body region is identified, the identified face region or human body region may be stored in a corresponding queue, and then a perception result may be obtained based on whether there is a face region or a human body region in the queue, and whether there are associated face regions or human body regions in the queue. The decision engine 1107 may generate a decision result indicating whether to perform exposure control according to a scene with people based on the perception result.

[0222] In another embodiment of the present application, after the face region and the body region are identified, the associated face region and the body region are assigned the same number, and the body region not associated with the face region is not assigned a number, and then the identified face region and its number, and the body region and its number are stored in the corresponding queue. Afterwards, the perception result can be obtained based on the number of the face region and the number of the body region in the queue. The decision engine 1107 can generate a decision result indicating whether to perform exposure control according to the scene with people based on the perception result.

[0223] The decision engine 1107 can generate a decision result based on the perception result output by the perception engine 1106, and output the decision result to the exposure control module 1108.

[0224] In one embodiment of the present application, when a face region is recognized, the perception result includes the recognized face region; when the current record is associated with a face region with a human body region, the perception result includes the face region.

[0225] If the perception result includes a face region, the decision result may include information indicating that exposure control is performed according to a scene with people, and the face region in the perception result. If the perception result does not include a face region, the decision result may include information indicating that exposure control is performed according to a scene without people.

[0226] In other embodiments, the perception result may further include a number of a face region in the perception result. The number of the face region may be used to identify the face region in the perception result.

[0227] In another embodiment of the present application, when there are currently associated face regions and human body regions recorded, the perception result includes the associated face regions and human body regions.

[0228] If the perception result includes the associated face region and body region, the decision result may include information for indicating that the exposure control is performed according to the scene with people, and the face region included in the perception result. If the perception result does not include the associated face region and body region, the decision result may include information for indicating that the exposure control is performed according to the scene without people.

[0229] In other embodiments, the perception result may further include the number of the face region and the number of the body region in the perception result. The number of the body region may be used for purposes such as marking the body region in the perception result.

[0230] In one embodiment of the present application, if there is a face region at the position corresponding to the current frame image in the face region memory queue (i.e., the face region is recognized from the current frame image), the perception result includes the face region and its number, and the decision result includes the face region and its number, as well as information indicating that exposure control is performed according to a scene with people.

[0231] If there is no face region at the position corresponding to the current frame image in the face region memory queue (that is, no face region is recognized from the current frame image), it can be further determined whether there are associated face regions and body regions in the queue. If so, the perception result includes the associated face regions and body regions and their respective numbers, and the decision result includes the associated face regions and body regions and their respective numbers, as well as information indicating that exposure control is performed according to a scene with people.

[0232] If there are no associated face regions and human body regions in the queue, the perception result may be empty, or may be information indicating that there is no face region, and the decision result includes information indicating that exposure control is performed according to an unmanned scene.

[0233] In one embodiment of the present application, the functions of the perception engine 1106 and the decision engine 1107 can be implemented through the code of the hardware abstraction layer.

[0234] The exposure control module 1108 can generate a tone mapping control instruction based on the input decision result, and output the tone mapping control instruction to the tone mapping control module 1109, and can control the exposure of the image taken by the camera sensor 1101 based on the input decision result and the input statistical information.

[0235] In one embodiment, if the decision result includes a face area and information indicating exposure control according to a scene with people, the corresponding tone mapping control instruction can be used to control the tone mapping module to perform tone mapping processing according to the face area to brighten the image content in the face area.

[0236] If the exposure of the image taken by the camera is controlled according to the decision result, in one embodiment, if the decision result indicates that the exposure control is performed according to a scene with people, the wallpaper of the exposure of the short image and the long image in the next frame of image can be controlled to be 1:a, and if the decision result indicates that the exposure control is performed according to a scene without people, the wallpaper of the exposure of the short image and the long image in the next frame of image can be controlled to be 1:b, b>a. The exposure amount can refer to a combination of exposure time and gain.

[0237] In one embodiment, a time domain smooth switching method may be used to switch between exposure control according to a scene with people and exposure control according to a scene without people.

[0238] In a feasible implementation, if the previous decision result indicates that the exposure control is performed according to the scene with people and the current decision result indicates that the exposure control is performed according to the scene without people, it is necessary to switch from the exposure control according to the scene with people to the exposure control according to the scene without people. In this case, the exposure control module 1108 can control the camera sensor 1101 to keep the exposure of the short image unchanged (the brightness of the highlight area remains unchanged), adjust the exposure of the long image, so that the exposure ratio between the short image and the long image gradually increases from 1:a to 1:b, and control the tone mapping control module 1109 to increase the brightness of the midtone and shadow areas.

[0239] In a feasible implementation, if the previous decision result indicates that the exposure control is performed according to the unmanned scene and the current decision result indicates that the exposure control is performed according to the manned scene, it is necessary to switch from the exposure control according to the unmanned scene to the exposure control according to the manned scene. In this case, the exposure control module 1108 can control the camera sensor 1101 to keep the exposure of the short image unchanged (the brightness of the highlight area remains unchanged), adjust the exposure of the long image, and gradually reduce the exposure ratio between the short image and the long image from 1:b to 1:a, and control the tone mapping control module 1109 to reduce the brightness of the midtone and shadow areas.

[0240] It can be seen that the exposure control module 1108 can achieve the purpose of performing exposure control according to the scene with or without people by maintaining the same brightness of the highlight area and adjusting the brightness of the mid-tone and shadow areas.

[0241] If the exposure of the image taken by the camera is controlled according to the statistical information, then in one embodiment, the exposure ratio of the short image and the long image in the next frame of image can be controlled according to the statistical information.

[0242] In one feasible implementation method, it is possible to determine whether there is a relatively large overexposed area on the short image in the current frame image (i.e., there is overexposure) based on statistical information. If so, the exposure of the short image in the next frame image can be controlled to be reduced in order to pull the overexposed area back and avoid overexposure again. In this way, the exposure ratio of the short image and the long image in the next frame image is increased.

[0243] If the exposure of the image taken by the camera is controlled according to the statistical information, then in one embodiment, whether the next frame of image includes a short image (ie, whether to output a short image) can be controlled according to the statistical information.

[0244] In a feasible implementation, the dynamic range of the current frame image can be determined based on statistical information. If the dynamic range of the current frame image is low, the next frame image can be controlled to include a long image but not a short image (i.e., only the long image is output).

[0245] In another feasible implementation, it can be determined based on statistical information whether the long image in the current frame image is overexposed. If so, the next frame image can be controlled to include the long image and the short image (i.e., output the long image and the short image). Otherwise, the next frame image can be controlled to include the long image but not the short image (i.e., only output the long image).

[0246] The tone mapping control module 1109 outputs corresponding tone mapping processing instructions to the first tone mapping module 11031 in the image processor front end 1103 and / or the second tone mapping module 11051 in the second image processor back end 1105 according to the input tone mapping control instructions.

[0247] In one embodiment of the present application, please refer to Fig.12 , for the case where the camera sensor 1101 outputs two frames of images, based on Fig.11 The implementation process of the image exposure control system shown in the figure may include the following contents:

[0248] In step 1201 , the camera sensor 1101 outputs two captured images with different exposure amounts to the sensor front-end processor 1102 .

[0249] In step 1202 , the sensor front-end processor 1102 fuses the two images to obtain one image, outputs the fused image to the image processor front-end 1103 , and outputs statistical information of the two images to the exposure control module 1108 .

[0250] In step 1203 , the image processor front end 1103 outputs the input image to the first image processor back end 1104 .

[0251] In step 1204 , the first image processor backend 1104 downsamples the input image and outputs the image to the perception engine 1106 .

[0252] In step 1205, the perception engine 1106 performs face recognition and body recognition on the input image, and records it for a first duration when a face area is recognized, and records it for a second duration (the first duration is greater than the second duration) when a body area is recognized, and determines whether there are currently recorded associated face areas and body areas, and outputs the perception result to the decision engine 1107. The perception result includes the face area when a face area is recognized, and includes the face area when the current record includes a face area associated with a body area.

[0253] Step 1206, the decision engine 1107 generates a decision result based on the perception result, and outputs the decision result to the exposure control module 1108; when the perception result includes a face area, the decision result includes the face area and information indicating that exposure control is performed according to a scene with people; when the perception result does not include a face area, the decision result includes information indicating that exposure control is performed according to a scene with no people.

[0254] Step 1207 , the exposure control module 1108 outputs a tone mapping control instruction to the tone mapping control module 1109 according to the decision result, and controls the exposure of the image captured by the camera sensor 1101 according to the decision result and the input statistical information (ie, performs exposure control).

[0255] In one embodiment, if the decision result includes a face region and information indicating exposure control according to a scene with people, the output tone mapping control instruction may be used to brighten the image content in the face region.

[0256] In step 1208 , the tone mapping control module 1109 outputs a tone mapping processing instruction to the image processor front end 1103 according to the input tone mapping control instruction.

[0257] Step 1209, the image processor front end 1103 performs tone mapping processing on the input image according to the input tone mapping processing instruction (i.e., performs tone mapping processing on the current frame image according to the decision result of the current frame image), and outputs the tone mapped image to the second image processor back end 1105.

[0258] In another embodiment of the present application, tone mapping processing can also be performed on the current frame image according to the decision result of the previous frame image. In this way, tone mapping processing can be performed after the image processor front end 1103 inputs the image without waiting for the decision result of the current frame image, thereby improving the timeliness of image display.

[0259] Step 1210 , the second image processor backend 1105 outputs the input tone-mapped image to the image display module 1110 for display.

[0260] In one embodiment of the present application, please refer to Fig.13 , for the case where the camera sensor 1101 outputs a frame of image, based on Fig.11 The implementation process of the image exposure control system shown in the figure may include the following contents:

[0261] Step 1301 , the camera sensor 1101 outputs a captured image to the sensor front-end processor 1102 .

[0262] In step 1302 , the sensor front-end processor 1102 outputs the input image to the image processor front-end 1103 .

[0263] In step 1303 , the image processor front end 1103 outputs the input image to the first image processor back end 1104 and the second image processor back end 1105 respectively, and outputs statistical information of the input image to the exposure control module 1108 .

[0264] In step 1304 , the first image processor backend 1104 downsamples the input image and outputs the image to the perception engine 1106 .

[0265] In step 1305, the perception engine 1106 performs face recognition and body recognition on the input image, and records it for a first duration when a face area is recognized, and records it for a second duration (the first duration is greater than the second duration) when a body area is recognized, and determines whether there are currently recorded associated face areas and body areas, and outputs the perception result to the decision engine 1107. The perception result includes the face area when a face area is recognized, and includes the face area when a face area associated with a body area is currently recorded.

[0266] Step 1306, the decision engine 1107 generates a decision result based on the perception result, and outputs the decision result to the exposure control module 1108; when the perception result includes a face area, the decision result includes the face area and information indicating that exposure control is performed according to a scene with people; when the perception result does not include a face area, the decision result includes information indicating that exposure control is performed according to a scene with no people.

[0267] Step 1307 , the exposure control module 1108 outputs a tone mapping control instruction to the tone mapping control module 1109 according to the decision result, and controls the exposure of the image captured by the camera sensor 1101 according to the decision result and the input statistical information (ie, performs exposure control).

[0268] In one embodiment, if the decision result includes a face region and information indicating exposure control according to a scene with people, the output tone mapping control instruction may be used to brighten the image content in the face region.

[0269] Step 1308 : the tone mapping control module 1109 outputs a tone mapping processing instruction to the second image processor backend 1105 according to the input tone mapping control instruction.

[0270] Step 1309, the second image processor back end 1105 performs tone mapping processing on the input image according to the input tone mapping processing instruction (i.e., performs tone mapping processing on the current frame image according to the decision result of the current frame image), and outputs the tone mapped image to the image display module 1110 for display.

[0271] In another embodiment of the present application, tone mapping processing can also be performed on the current frame image according to the decision result of the previous frame image. In this way, tone mapping processing can be performed after the image processor front end 1103 inputs the image without waiting for the decision result of the current frame image, thereby improving the timeliness of image display.

[0272] Please refer to Fig.14An embodiment of the present application provides an image exposure control method, which may include the following steps 1401 to 1404. The method may be applicable to image exposure control in scenarios such as photo preview, video preview, video recording, online live broadcast, and video call.

[0273] Step 1401, obtaining a recognition result of a first image, wherein the first image is obtained according to an image captured by a camera module, and the recognition result is obtained by performing face recognition and body recognition on the first image. The first image is a current frame image.

[0274] In one embodiment, the camera module may be the camera sensor 1101 described above.

[0275] In one embodiment, the camera module captures multiple images, and the first image may be an image obtained by fusing the multiple frames of images. In another embodiment, the camera module captures one image, and the image may be used as the first image.

[0276] Step 1402, when the recognition result includes a recognized face area, the face area in the recognition result is recorded and the duration of the record is a first duration; and when the recognition result includes a recognized body area, the body area in the recognition result is recorded and the duration of the record is a second duration, and the first duration is greater than the second duration.

[0277] In one embodiment, the recognition result of the first image may be recorded in a queue.

[0278] Step 1403, obtaining first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and when there are currently associated face areas and body areas recorded, the first information is used to indicate image exposure control according to the set exposure control strategy corresponding to the scene with people.

[0279] There is an inclusion relationship between the associated face region and the body region, and the body region associated with the face region includes the associated face region.

[0280] Step 1404: perform image exposure control according to the first information, that is, exposure control can be performed according to a scene with people or according to a scene without people, according to the first information.

[0281] Fig.14 The illustrated embodiment can recognize faces and bodies in video images and record them regularly, and perform exposure control based on the associated combination of the recorded faces and bodies. This can solve the problem of repeated jumps in exposure control when face recognition is unstable, such as when a person temporarily turns around or appears on camera for a short time, and can improve the exposure control stability in scenes where people are in motion.

[0282] In one embodiment of the present application, the first information includes a first face region, wherein the first face region and a human body region associated with the first face region are currently recorded. Based on this, step 1404 includes: performing tone mapping processing on the first face region in the first image or the first face region in the next frame of the first image according to the set tone mapping strategy corresponding to the face region.

[0283] In one embodiment, the tone mapping strategy corresponding to the face region may include brightening the content in the first face region of the image.

[0284] When the current record is about a face area associated with a human body area, exposure control is performed according to a scene with people, regardless of whether there is a face in the current frame image, and tone mapping is performed on the image according to the face area. In this way, even if there are unstable face recognition situations such as a person turning around temporarily or appearing briefly, there will be no problem of repeated jumps in exposure control during this period, making the exposure control stable.

[0285] In one embodiment of the present application, the first face region is the face region recorded last among the currently recorded face regions with the same number; wherein the face features of the face regions with the same number meet the set face feature consistency requirements. wherein the face features of the same user at different times may meet the face feature consistency requirements.

[0286] The face region used for association judgment can be limited to the face region recorded most recently for the same user, that is, the most recent face region of the user, which helps to achieve more accurate exposure control for the face region.

[0287] In one embodiment of the present application, when the recognition result includes a recognized face area and no associated face area and body area are currently recorded, the first information is used to instruct image exposure control according to an exposure control strategy corresponding to a scene with people.

[0288] In addition to the correlation judgment result, the exposure control strategy to be used can also be determined based on the face recognition result of the current frame image. As long as the face area can be recognized in the current frame image, the exposure control is performed according to the scene with people, regardless of whether the human body area associated with the face area is currently recorded. This can achieve an exposure control effect that meets actual needs.

[0289] In one embodiment of the present application, the first information includes a second face region, wherein the recognition result includes the second face region, and no human body region associated with the second face region is currently recorded. Based on this, step 1404 includes: performing tone mapping processing on the second face region in the first image or the second face region in the next frame of the first image according to the set tone mapping strategy for the corresponding face region.

[0290] Accurate exposure control can be achieved by controlling the exposure of images taken in scenes with people in them according to scenes with people and performing tone mapping on the images according to the face area in the current frame image.

[0291] In one embodiment of the present application, when the recognition result does not include a face area and no associated face area and body area are currently recorded, the first information is used to instruct image exposure control to be performed according to an exposure control strategy set for an unmanned scene.

[0292] When no face area is recognized in the current frame image and no associated face area and body area are currently recorded, exposure control is performed according to the unmanned scene. This can achieve accurate exposure control while improving the stability of exposure control, and can have an exposure control effect that meets actual needs.

[0293] In one embodiment of the present application, the image exposure control method also includes: in the case where a face area is currently recorded, obtaining a target face area, the target face area being the face area recorded latest among the face areas with the same number currently recorded; in the case where there are more than one human body areas corresponding to the target face area currently recorded, obtaining the minimum human body area among the more than one human body areas, wherein each human body area corresponding to the target face area is the human body area recorded latest among the human body areas with the same number currently recorded, and any human body area corresponding to the target face area contains the target face area; determining that the target face area is associated with the minimum human body area among the more than one human body areas; wherein the facial features in the face areas with the same number meet the set facial feature consistency requirements, and the human body features in the human body areas with the same number meet the set human body feature consistency requirements.

[0294] If there are multiple human body areas corresponding to the target face area, based on the one-to-one correlation characteristics between the face area and the body area, the smallest human body area among the multiple human body areas is associated with the target face area, so as to achieve accurate judgment of the correlation between the face area and the body area of ​​the same user, and thus achieve accurate exposure control.

[0295] If there is only one human body region corresponding to the target face region, then the human body region is associated with the target face region. Thus, in another embodiment of the present application, if there is a human body region corresponding to the target face region currently recorded, it is determined that the target face region is associated with the human body region corresponding to the target face region, wherein the human body region corresponding to the target face region is the human body region with the latest recording start time among the human body regions with the same number currently recorded.

[0296] In one embodiment of the present application, step 1404 includes: controlling the exposure of the camera module using a time domain smooth switching method according to the exposure control strategy on which the last image exposure control was based, the exposure control strategy indicated by the first information, and the last control result of the exposure of the camera module.

[0297] By using the current and previous exposure control strategies and the current exposure of the camera module, smooth switching control of the exposure of the camera module can be achieved, which helps to further improve the stability of exposure control.

[0298] Fig.14 The specific technical implementation of the illustrated embodiment can refer to the relevant technical description of other embodiments of the present application and will not be elaborated here.

[0299] Please refer to Fig.15 An embodiment of the present application provides an image exposure control system 1500, which may include: a target processor 1501, an image processor 1502, an exposure control module 1503 and a tone mapping control module 1504.

[0300] The target processor 1501 is used to input the image captured by the camera module and output a first image to the image processor 1502, wherein the first image is obtained according to the image captured by the camera module.

[0301] The image processor 1502 is used to input the first image output by the target processor 1501 and output the first image; input the tone mapping processing instruction output by the tone mapping control module 1504, perform tone mapping processing on the first image or the next frame image of the input first image according to the tone mapping processing instruction, and output the image obtained by the tone mapping processing.

[0302] The exposure control module 1503 is used to input first information, where the first information is used to indicate the exposure control strategy used for image exposure control; when the first information indicates that the exposure control strategy used is the exposure control strategy set corresponding to the scene with people, the first control instruction is output to the tone mapping control module 1504, wherein the first control instruction is used to instruct tone mapping processing to be performed on the face area included in the first information in the first image or in the next frame of the first image.

[0303] The tone mapping control module 1504 is used to input a first control instruction and output a tone mapping processing instruction obtained according to the first control instruction to the image processor 1502 .

[0304] In one embodiment, the target processor 1501 may be the above-mentioned sensor front-end processor 1102, the image processor 1502 may include the above-mentioned image processor front-end 1103, the above-mentioned first image processor back-end 1104 and the above-mentioned second image processor back-end 1105; the exposure control module 1503 may be the above-mentioned exposure control module 1108, and the tone mapping control module 1504 may be the above-mentioned tone mapping control module 1109.

[0305] Fig.15 In the illustrated embodiment, a first image is outputted so that an external module can generate and feedback first information indicating an exposure control strategy used for image exposure control, and when the first information indicates that exposure control is to be performed according to a scene with people, tone mapping processing is performed on the face area in the first image or its next frame image based on the face area in the first information, thereby achieving targeted exposure control of the face area.

[0306] In one embodiment of the present application, the first information is obtained according to the following steps: obtaining a recognition result of the first image, the recognition result being obtained according to face recognition and body recognition of the first image; when the recognition result includes a recognized face area, recording the face area in the recognition result and the duration of the record is a first duration, and when the recognition result includes a recognized body area, recording the body area in the recognition result and the duration of the record is a second duration, the first duration being greater than the second duration; obtaining the first information, wherein, when the currently recorded image has associated face areas and body areas, the first information is used to indicate image exposure control according to an exposure control strategy corresponding to a scene with people.

[0307] The face and body recognition of video images can be carried out and recorded regularly, and exposure control can be performed based on the associated combination of the recorded faces and bodies. This can solve the problem of repeated jumps in exposure control when face recognition is unstable, such as when a person turns around temporarily or appears on camera for a short time, and can improve the exposure control stability in scenes where people are in motion.

[0308] In one embodiment of the present application, the exposure control module 1503 is used to output a second control instruction to the camera module according to the first information, and the second control instruction is used to control the exposure of the image captured by the camera module.

[0309] In addition to tone mapping the image according to the face area in the first information, the exposure of the image taken by the camera module can also be controlled according to the first information, so as to perform exposure control for manned / unmanned scenes from the source of image acquisition, so that images that meet the current scene can be obtained, thereby improving the image display effect.

[0310] In one embodiment of the present application, the target processor 1501 is used to fuse two images captured by an input camera module to obtain a first image, and the exposure amounts of the two images are different; the image processor 1502 is used to output the statistical information of the two images to the exposure control module; the exposure control module 1503 is used to input the statistical information of the two images; and output a third control instruction to the camera module based on the statistical information of the two images, and the third control instruction is used to control the exposure amount of the image captured by the camera module.

[0311] When the camera module captures two images with different exposures, the image after the two images are fused is processed to obtain the first information. In addition to controlling the exposure of the image captured by the camera module according to the first information, the exposure of the image captured by the camera module can also be controlled according to the statistical information of the two images, so as to perform exposure control based on the exposure status of the current frame image from the source of image acquisition, so that an image with a better exposure can be obtained, thereby improving the image display effect.

[0312] In the case where the camera module captures two images, in one embodiment of the present application, the image processor 1502 includes a processor front end, a first processor back end, and a second processor back end; the specific input and output of the image processor 1502 can be described as follows:

[0313] The processor front end is used to input the first image and output the first image to the first processor back end; perform tone mapping processing on the first image according to the tone mapping processing instruction, or when the next frame of the first image is obtained by fusion processing, perform tone mapping processing on the next frame of the first image according to the tone mapping processing instruction; output the image obtained by the tone mapping processing to the second processor back end; output the statistical information of the two images to the exposure control module 1503;

[0314] The first processor backend is used to output a first image;

[0315] The second processor back end is used to output the image obtained by tone mapping and output by the processor front end to the image display module;

[0316] The exposure control module 1503 is used to input the statistical information of the two images; output a third control instruction to the camera module according to the statistical information of the two images, and the third control instruction is used to control the exposure of the image taken by the camera module.

[0317] In one embodiment, the processor front end may be the above-mentioned image processor front end 1103 , the first processor back end may be the above-mentioned first image processor back end 1104 , and the second processor back end may be the above-mentioned second image processor back end 1105 .

[0318] In one embodiment of the present application, the target processor 1501 is used to take an image as the first image when an image captured by the camera module is input; the image processor 1502 is used to output the statistical information of the first image to the exposure control module; the exposure control module 1503 is used to input the statistical information of the first image; and output a fourth control instruction to the camera module based on the statistical information of the first image, and the fourth control instruction is used to control the exposure amount of the image captured by the camera module.

[0319] When the camera module captures an image, the image is processed to obtain the first information. In addition to controlling the exposure of the image captured by the camera module according to the first information, the exposure of the image captured by the camera module can also be controlled according to the statistical information of the image, so as to perform exposure control based on the exposure status of the current frame image from the source of the image acquisition, so that an image with a better exposure can be obtained, thereby improving the image display effect.

[0320] When the camera module captures an image, in one embodiment of the present application, the image processor 1502 includes a processor front end, a first processor back end, and a second processor back end; the specific input and output of the image processor 1502 can be described as follows:

[0321] The processor front end is used to input the first image, output the first image to the first processor back end; output the first image to the second processor back end; output the statistical information of the first image to the exposure control module 1503;

[0322] A first processor backend, configured to output a first image;

[0323] The second processor back end is used to perform tone mapping processing on the first image according to the tone mapping processing instruction, or when the next frame image of the first image is not obtained by fusion processing, perform tone mapping processing on the next frame image of the first image according to the tone mapping processing instruction; and output the image obtained by the tone mapping processing to the image display module;

[0324] The exposure control module 1503 is used to input the statistical information of the first image; output a fourth control instruction to the camera module according to the statistical information of the first image, and the fourth control instruction is used to control the exposure of the image taken by the camera module.

[0325] Fig.15 The specific technical implementation of the illustrated embodiment can refer to the relevant technical description of other embodiments of the present application and will not be elaborated here.

[0326] An embodiment of the present application also provides an image exposure control device, which may include: a first acquisition module, used to acquire a recognition result of a first image, wherein the first image is obtained based on an image taken by a camera module, and the recognition result is obtained based on face recognition and body recognition performed on the first image; a recording module, used to record the face area in the recognition result for a first duration when the recognition result includes a recognized face area, and to record the body area in the recognition result for a second duration when the recognition result includes a recognized body area, and the first duration is greater than the second duration; a second acquisition module, used to acquire first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and when the currently recorded image has associated face areas and body areas, the first information is used to indicate image exposure control according to a set exposure control strategy corresponding to a scene with people; a control module, used to perform image exposure control according to the first information.

[0327] An embodiment of the present application also provides an electronic chip, which task processing chip is installed in an electronic device (UE), and the electronic chip includes: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method steps provided by any method embodiment of the present application.

[0328] An embodiment of the present application also proposes a terminal device, which includes a communication module, a memory for storing computer program instructions, and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the terminal device is triggered to execute the method steps provided by any method embodiment of the present application.

[0329] An embodiment of the present application also proposes a server device, which includes a communication module, a memory for storing computer program instructions, and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the server device is triggered to execute the method steps provided by any method embodiment of the present application.

[0330] An embodiment of the present application also provides an electronic device, which includes multiple antennas, a memory for storing computer program instructions, a processor for executing computer program instructions, and a communication device (such as a communication module that can implement 5G communication based on the NR protocol), wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method steps provided by any method embodiment of the present application.

[0331] Specifically, in one embodiment of the present application, one or more computer programs are stored in the above-mentioned memory, and the one or more computer programs include instructions. When the instructions are executed by the above-mentioned device, the above-mentioned device executes the method steps described in the embodiment of the present application.

[0332] Furthermore, the devices, apparatuses, and modules described in the embodiments of the present application may be implemented by computer chips or entities, or by products having certain functions.

[0333] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0334] In the several embodiments provided in the present application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0335] Specifically, in one embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the method steps provided in the embodiment of the present application.

[0336] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes the method steps provided in the embodiment of the present application.

[0337] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0338] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0339] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0340] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program code.

[0341] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.

[0342] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0343] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0344] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the same or similar parts between the various embodiments in this application can be referred to each other. For example, the specific working process of the system, device and unit described in the embodiments of this application can refer to the corresponding process in the method embodiment of this application, and will not be repeated here.

[0345] The above description is only a specific embodiment of the present application and is not intended to limit the present application. The protection scope of the present application shall be based on the claims.

Claims

1. An image exposure control method, characterized in that: include: Obtaining a recognition result of a first image, wherein the first image is obtained according to an image taken by a camera module, and the recognition result is obtained by performing face recognition and body recognition on the first image; In the case where the recognition result includes a recognized face region, the face region in the recognition result is recorded for a first duration, and in the case where the recognition result includes a recognized human body region, the human body region in the recognition result is recorded for a second duration, the first duration being greater than the second duration; Acquiring first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and in the case where an associated face region and body region are currently recorded, the first information is used to indicate that image exposure control is performed according to a set exposure control strategy corresponding to a scene with people; performing image exposure control according to the first information; The performing image exposure control according to the first information includes: The exposure amount of the image captured by the camera module is controlled according to the exposure control strategy indicated by the first information.

2. The method according to claim 1, characterized in that The first information includes a first face region, wherein the first face region and a human body region associated with the first face region are currently recorded; The performing image exposure control according to the first information includes: According to the set tone mapping strategy corresponding to the face area, tone mapping processing is performed on the first face area in the first image or the first face area in the next frame image of the first image.

3. The method according to claim 2, characterized in that The first face region is the face region recorded last among the currently recorded face regions with the same number; Among them, the facial features in the face area with the same number meet the set facial feature consistency requirements.

4. The method according to any one of claims 1 to 3, characterized in that: In a case where the recognition result includes a recognized face region and no associated face region and body region are currently recorded, the first information is used to instruct image exposure control to be performed according to the exposure control strategy corresponding to the scene with people.

5. The method according to claim 4, characterized in that The first information includes a second face region, wherein the recognition result includes the second face region, and no human body region associated with the second face region is currently recorded; The performing image exposure control according to the first information includes: According to the set tone mapping strategy corresponding to the face area, tone mapping processing is performed on the second face area in the first image or the second face area in the next frame image of the first image.

6. The method according to any one of claims 1 to 3, characterized in that: When the recognition result does not include a face region and no associated face region and body region are currently recorded, the first information is used to instruct image exposure control to be performed according to a set exposure control strategy corresponding to an unmanned scene.

7. The method according to claim 1, characterized in that The method further comprises: In the case where a face region is currently recorded, a target face region is obtained, where the target face region is the face region recorded last among the face regions with the same number currently recorded; In the case that there is more than one human body region corresponding to the target face region currently recorded, obtaining the smallest human body region among the more than one human body regions, wherein each human body region corresponding to the target face region is the latest recorded human body region among the currently recorded human body regions with the same number, and any human body region corresponding to the target face region includes the target face region; Determine that the target human face region is associated with a minimum human body region among the more than one human body regions; Among them, the facial features in the face areas with the same number meet the set facial feature consistency requirements, and the human body features in the human body areas with the same number meet the set human body feature consistency requirements.

8. The method according to claim 1, characterized in that The performing image exposure control according to the first information includes: The exposure of the camera module is controlled using a time domain smooth switching method according to the exposure control strategy based on which the image exposure control was performed last time, the exposure control strategy indicated by the first information, and the result of controlling the exposure of the camera module last time.

9. An image exposure control device, characterized in that: include: A first acquisition module, used to acquire a recognition result of a first image, wherein the first image is obtained according to an image taken by a camera module, and the recognition result is obtained by performing face recognition and body recognition on the first image; a recording module, configured to, when the recognition result includes a recognized face region, record the face region in the recognition result and the duration of the recording is a first duration, and when the recognition result includes a recognized body region, record the body region in the recognition result and the duration of the recording is a second duration, wherein the first duration is greater than the second duration; a second acquisition module, configured to acquire first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control, and in the case where an associated face region and body region are currently recorded, the first information is used to indicate that image exposure control is performed according to a set exposure control strategy corresponding to a scene with people; A control module, used for performing image exposure control according to the first information; The performing image exposure control according to the first information includes: The exposure amount of the image captured by the camera module is controlled according to the exposure control strategy indicated by the first information.

10. An image exposure control system, characterized in that: include: a target processor, configured to input an image captured by the camera module and output a first image to an image processor, wherein the first image is obtained according to the image captured by the camera module; an image processor, configured to input the first image output by the target processor and output the first image; input the tone mapping processing instruction output by the tone mapping control module, perform tone mapping processing on the first image or a next frame of the input first image according to the tone mapping processing instruction, and output an image obtained by the tone mapping processing; an exposure control module, configured to input first information, wherein the first information is used to indicate an exposure control strategy used for image exposure control; and output a first control instruction to a tone mapping control module when the first information indicates that the exposure control strategy used is an exposure control strategy set corresponding to a scene with people, wherein the first control instruction is used to instruct tone mapping processing to be performed on a face area included in the first information in the first image or in a frame next to the first image; The tone mapping control module is configured to input the first control instruction and output the tone mapping processing instruction obtained according to the first control instruction to the image processor; The exposure control module is used to output a second control instruction to the camera module according to the first information, and the second control instruction is used to control the exposure amount of the image taken by the camera module.

11. The image exposure control system according to claim 10, characterized in that: The first information is obtained according to the following steps: Acquire a recognition result of the first image, where the recognition result is obtained by performing face recognition and body recognition on the first image; In the case where the recognition result includes a recognized face region, the face region in the recognition result is recorded for a first duration, and in the case where the recognition result includes a recognized human body region, the human body region in the recognition result is recorded for a second duration, the first duration being greater than the second duration; The first information is obtained, wherein, in a case where an associated face region and a body region are currently recorded, the first information is used to instruct image exposure control to be performed according to the exposure control strategy corresponding to the scene with people.

12. The image exposure control system according to any one of claims 10 to 11, characterized in that: The target processor is used for fusing two images captured by the camera module to obtain the first image, when the two images are input, and the two images have different exposure amounts; The image processor is used to output the statistical information of the two images to the exposure control module; The exposure control module is used to input the statistical information of the two images; output a third control instruction to the camera module according to the statistical information of the two images, and the third control instruction is used to control the exposure of the image taken by the camera module.

13. The image exposure control system according to any one of claims 10 to 11, characterized in that: The target processor is configured to, when an image captured by the camera module is input, use the image as the first image; The image processor is used to output the statistical information of the first image to the exposure control module; The exposure control module is used to input the statistical information of the first image; output a fourth control instruction to the camera module according to the statistical information of the first image, and the fourth control instruction is used to control the exposure of the image taken by the camera module.

14. An electronic device, characterized in that: The electronic device comprises one or more memories for storing computer program instructions, and one or more processors, wherein when the computer program instructions are executed by the one or more processors, the electronic device is triggered to execute the method as described in any one of claims 1-8.

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