Camera light supplementing method and device
By obtaining the light sensitivity value of the shooting scene in real time in the camera and adjusting the brightness of the fill light according to it, the problems of excessive camera exposure and excessive dark images in Pre-roll shooting mode in the night scene are solved, and high-quality video shooting effects are achieved.
Patent Information
- Application Number
- CN202311071213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2025-02-25
AI Technical Summary
In night scenes, when the battery-powered camera enters high-resolution high-frame rate shooting mode, the video image is overexposed due to the lighting of the fill light, making it difficult to present or even unable to present the details of the shooting target. At the same time, the battery-powered Pre-roll camera is in a dormant state in the pre-roll shooting mode in the night scene, and the shooting image is too dark and it is difficult to obtain clear picture content.
By obtaining the light sensitivity value of the camera's shooting scene, turn on the fill light when the preset fill light turns on the trigger threshold range, and adjust the reference signal based on the brightness obtained from the shooting scene, adjusting the brightness of the fill light to ensure that the rendering effect of the first frame picture in high resolution and high frame rate shooting mode and the video image rendering effect in Pre-roll shooting mode are improved.
By adjusting the brightness of the fill light in real time, the problem of overexposure of the first frame screen in high-resolution and high-frame rate shooting mode is avoided, and the brightness of each frame of image is not prone to being too bright or too dark in Pre-roll shooting mode, thereby improving the video presentation effect and avoiding the loss of key information.
Smart Images

Figure CN119521006A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of image acquisition, and in particular to a camera fill light method and device. Background Art
[0002] Existing battery-powered cameras are in standby mode in low-power mode and do not shoot. After detecting a target through PIR (Passive Infrared Ray) or radar, the SOC (System on Chip) is awakened to enter a high-resolution and high-frame-rate shooting mode. After shooting is completed, the camera returns to low-power mode and waits for the next wake-up.
[0003] The battery-powered Pre-roll camera, based on the existing battery-powered cameras, adds a low-resolution, low-frame-rate shooting process when in standby mode, which can be called the pre-roll shooting mode. Under the condition of acceptable power consumption, it can always shoot in the pre-roll shooting mode and perform cyclic storage with a capacity of about several seconds. After the PIR or radar detects the presence of the shooting target, the SOC is awakened to perform the high-resolution and high-frame-rate shooting mode. In the period of several seconds before the high-resolution first frame image is obtained, the low-resolution and low-frame-rate video images in the pre-roll shooting mode can be obtained at the same time, so the video within a few seconds before the high-resolution and high-frame-rate shooting mode is triggered can be traced back, which has a high use value.
[0004] For battery-powered cameras, in night scenes, when entering the high-resolution and high-frame-rate shooting mode, the corresponding fill light will be turned on according to the settings, and the AE (Automatic Exposure) information will be adjusted from the first frame obtained to obtain clear video image content. However, for a period of time starting from the first frame, the video image will be overexposed due to the illumination of the fill light, making it difficult or even impossible to present the details of the shooting target. This period of time often lasts from 200ms (milliseconds) to 300ms, and during this period of time, the key information of the shooting target that needs to be obtained is often missed.
[0005] In addition, for a battery-powered pre-roll camera, in the pre-roll shooting mode in a night scene, because the module controlling the fill light is in a dormant state, the image captured in the pre-roll shooting mode is too dark, and it is difficult to obtain clearer picture content in the pre-roll shooting mode in a night scene. Summary of the invention
[0006] In view of this, the present disclosure provides a camera fill light method and device, so as to achieve that when a high-resolution and high-frame rate shooting mode is triggered in a night scene, the fill light is controlled to provide appropriate brightness before the first frame is obtained, so as to improve the presentation effect of the first frame in the high-resolution and high-frame rate shooting mode, and to improve the presentation effect of the video image captured in the pre-roll shooting mode of a battery-powered pre-roll camera in a night scene.
[0007] The technical solution of the present disclosure is achieved as follows:
[0008] A camera fill light method, comprising:
[0009] Obtaining a photosensitivity value of a shooting scene of the camera;
[0010] When the light sensitivity value is within a preset fill light turn-on trigger threshold interval, turning on the fill light of the camera;
[0011] Acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light;
[0012] The brightness of the fill light is adjusted according to the fill light brightness adjustment parameter signal.
[0013] Further, the obtaining of the photosensitivity value of the shooting scene of the camera is performed in response to a received shooting trigger signal;
[0014] Furthermore, after adjusting the brightness of the fill light according to the fill light brightness adjustment parameter signal, the camera fill light method further includes:
[0015] The camera is turned on to shoot, and a shot video is obtained in the shooting scene after adjusting the brightness of the fill light.
[0016] Furthermore, the shooting trigger signal is a trigger signal generated by at least one of a pyroelectric infrared sensor PIR and a radar.
[0017] Further, after starting the shooting of the camera and obtaining the shot video in the shooting scene after adjusting the brightness of the fill light, the camera fill light method further includes:
[0018] After obtaining the first frame image of the captured video, the brightness of the fill light is adjusted in real time according to the AE information of the captured video.
[0019] Further, the obtaining of the photosensitivity value of the shooting scene of the camera is performed when the camera is in a pre-roll shooting mode.
[0020] Furthermore, the brightness adjustment reference signal is the photosensitivity value or distance information, the distance information is derived from a radar, and the distance information is used to characterize the distance between the camera and the photographed object.
[0021] Further, obtaining the fill light brightness adjustment parameter signal according to the brightness adjustment reference signal includes:
[0022] The fill light brightness adjustment parameter signal is obtained according to the light sensitivity value through a hardware circuit.
[0023] Furthermore, the hardware circuit is a single-chip microcomputer, the input end of the single-chip microcomputer is used to receive the brightness adjustment reference signal, and the output end of the single-chip microcomputer is used to output the fill light brightness adjustment parameter signal;
[0024] Alternatively, the hardware circuit includes:
[0025] a first operational amplifier, wherein a positive input terminal of the first operational amplifier is used to receive the brightness adjustment reference signal, and the first operational amplifier obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from an output terminal thereof;
[0026] A second operational amplifier, wherein the negative input terminal of the second operational amplifier is electrically connected to the output terminal of the first operational amplifier, the positive input terminal of the second operational amplifier is used to receive a reference voltage, and the second operational amplifier obtains the fill light brightness adjustment parameter signal according to the amplified signal.
[0027] Furthermore, the fill light includes a white light and an infrared light;
[0028] The turning on the fill light of the camera and adjusting the brightness of the fill light are performed for the white light or the infrared light according to a preset working mode; wherein,
[0029] The working modes include full-color night vision mode and infrared night vision mode;
[0030] When the preset working mode is the full-color night vision mode, turning on the white light lamp, and adjusting the brightness of the white light lamp according to the fill light brightness adjustment parameter signal;
[0031] When the preset working mode is the infrared night vision mode, the infrared lamp is turned on, and the brightness of the infrared lamp is adjusted according to the fill light brightness adjustment parameter signal.
[0032] A camera fill light device, comprising:
[0033] A photosensitivity value acquisition module, configured to acquire the photosensitivity value of the shooting scene of the camera;
[0034] A fill light activation module is configured to activate the fill light of the camera when the light sensitivity value is within a preset fill light activation trigger threshold interval;
[0035] a brightness adjustment parameter acquisition module, configured to acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light;
[0036] The brightness adjustment module is configured to adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal.
[0037] Furthermore, the brightness adjustment parameter acquisition module is further configured to obtain the fill light brightness adjustment parameter signal according to the light sensitivity value through a hardware circuit;
[0038] Wherein, the hardware circuit includes:
[0039] a first operational amplifier, wherein a positive input terminal of the first operational amplifier is used to receive the brightness adjustment reference signal, and the first operational amplifier obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from an output terminal thereof;
[0040] A second operational amplifier, wherein the negative input terminal of the second operational amplifier is electrically connected to the output terminal of the first operational amplifier, the positive input terminal of the second operational amplifier is used to receive a reference voltage, and the second operational amplifier obtains the fill light brightness adjustment parameter signal according to the amplified signal.
[0041] An electronic device, comprising:
[0042] processor;
[0043] a memory for storing executable instructions for the processor;
[0044] Wherein, the processor is configured to execute the executable instructions to implement the camera fill light method as described in any one of the above items.
[0045] It can be seen from the above scheme that, by utilizing the camera fill light method and device disclosed in the present invention, the brightness of the fill light can be adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the subject. Therefore, in the application scenario where the SOC is awakened by detecting the subject to start video shooting, when the camera is turned on, before the camera shoots the first frame of video image, the brightness of the fill light has been adaptively adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the subject. Then, the brightness of the first frame of video image shot by the camera is adaptively corrected according to the adaptively adjusted brightness of the fill light, thereby improving the presentation effect of the first frame in the high-resolution and high-frame rate shooting mode. After the first frame, the brightness of the fill light is adjusted in real time according to the AE information of the shot video in combination with the prior art, thereby ensuring that the video shot by the camera does not miss key information due to brightness issues at the beginning. In the pre-roll shooting mode of the battery-powered pre-roll camera, the camera fill light method and device disclosed in the present invention are used at the same time, so that the brightness of the fill light is adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the shooting object, so that the brightness of each frame image in the pre-roll shooting mode is not easy to be too bright or too dark, so that the presentation effect of the video image captured in the pre-roll shooting mode of the battery-powered pre-roll camera in the night scene can be improved. In addition, for the pre-roll camera, although the pr-roll camera can use software to control the fill light in theory, the frame rate in the pre-roll shooting mode is low, usually a few frames are captured in one second, and the software-controlled fill light method is adjusted according to the brightness of the frame, so the adjustment interval is at the level of hundreds of milliseconds, resulting in a slow convergence speed of the brightness adjustment of the software-controlled fill light method. The camera fill light method and device disclosed in the present invention use the fill light brightness in the pre-roll shooting mode that is adjusted in real time using the photosensitivity value. The advantage is that the ambient light intensity of the shooting scene in the pre-roll shooting mode can be adjusted in real time, the brightness adjustment convergence speed is faster, and it is not easy to have a single frame image with overexposure or low illumination. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a flow chart of a camera fill light method according to an exemplary embodiment;
[0047] Figure 2 is a schematic diagram of a hardware circuit structure according to an exemplary embodiment;
[0048] Figure 3A and Figure 3B yes Figure 2A timing diagram of the relationship between the brightness adjustment reference signal, the amplified signal output by the first operational amplifier, and the fill light brightness adjustment parameter signal in the circuit diagram shown;
[0049] Figure 4 is a schematic flow chart of a first application scenario of a camera fill light method according to an exemplary embodiment;
[0050] Figure 5 is a schematic flow chart of a second application scenario of a camera fill light method according to an exemplary embodiment;
[0051] Figure 6 is a schematic flow chart of a third application scenario of a camera fill light method according to an exemplary embodiment;
[0052] Figure 7 is a schematic flow chart of a fourth application scenario of a camera fill light method according to an exemplary embodiment;
[0053] Figure 8 is a schematic diagram of the logical structure of a camera fill light device according to an exemplary embodiment;
[0054] Fig. 9 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0055] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and examples.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0057] The idea of the disclosed embodiments is to adjust the brightness of the fill light in real time by monitoring the ambient illumination or the subject, without starting the main control module (such as SOC, etc.) with high power consumption in the camera, so as to improve the presentation effect of the first frame in the high-resolution and high-frame rate shooting mode, and to improve the presentation effect of the video image shot in the pre-roll shooting mode if the power consumption of the battery-powered Pre-roll camera permits.
[0058] Figure 1 FIG. 1 is a flow chart of a camera fill light method according to an exemplary embodiment. Figure 1 As shown, the camera fill light method mainly includes the following steps 101 to 104.
[0059] Step 101: Obtain the photosensitivity value of the shooting scene of the camera.
[0060] In an exemplary embodiment, the light sensitivity value is derived from a light sensitive module of a camera.
[0061] In an exemplary embodiment, the camera fill light method of the embodiment of the present disclosure can be applied to trigger wake-up of a battery-powered camera to perform a high-resolution and high-frame-rate shooting mode. Based on this, in the exemplary embodiment, obtaining the light sensitivity value of the shooting scene of the camera in step 101 is performed in response to a received shooting trigger signal.
[0062] In an exemplary embodiment, the shooting trigger signal is a trigger signal generated by at least one of a PIR and a radar. The camera is connected to the PIR and / or the radar and obtains the trigger signal generated by the PIR and / or the radar. Taking the PIR as an example, when the shooting object (such as a person) enters the monitoring range of the PIR, the PIR generates the trigger signal. Taking the radar as an example, when the shooting object enters the radar scanning area or the radar scans that the distance between the shooting object and the camera reaches the set trigger distance, the radar generates the trigger signal.
[0063] In an exemplary embodiment, the camera fill light method of the embodiment of the present disclosure can be applied to the pre-roll shooting mode of a battery-powered pre-roll camera. Based on this, in the exemplary embodiment, obtaining the light sensitivity value of the shooting scene of the camera in step 101 is performed when the camera is in the pre-roll shooting mode.
[0064] Step 102: When the light sensitivity value is within a preset fill light on trigger threshold interval, turn on the fill light of the camera.
[0065] In the exemplary embodiment, since whether the fill light is turned on depends on the ambient brightness of the shooting scene, the specific value of the fill light turning on trigger threshold interval can be set according to the ambient brightness of the shooting scene and with reference to conditions such as the brightness of the video captured by the camera.
[0066] Step 103: Acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light.
[0067] In an exemplary embodiment, the brightness adjustment reference signal is a photosensitivity value or distance information. In an exemplary embodiment, the photosensitivity value is derived from the photosensitivity module of the camera, based on which the photosensitivity value is used for both the judgment of turning on the fill light and the brightness adjustment of the fill light. In an exemplary embodiment, the distance information is derived from a radar, and the distance information is used to characterize the distance between the camera and the photographed object, based on which the photosensitivity value is used for the judgment of turning on the fill light, and the distance information is used for the brightness adjustment of the fill light. This method is used to dynamically adjust the brightness of the fill light as the photographed object moves, which helps to accurately adjust the exposure of the photographed object. For example, when the photographed object is far away from the camera, the brightness of the fill light is increased, and when the photographed object is close to the camera, the brightness of the fill light is reduced.
[0068] In an exemplary embodiment, obtaining the fill light brightness adjustment parameter signal according to the brightness adjustment reference signal in step 103 includes: obtaining the fill light brightness adjustment parameter signal according to the light sensitivity value through a hardware circuit.
[0069] In the exemplary embodiment, the hardware circuit is a single-chip microcomputer, the input end of the single-chip microcomputer is used to receive a brightness adjustment reference signal, and the output end of the single-chip microcomputer is used to output a fill light brightness adjustment parameter signal. The single-chip microcomputer obtains the fill light brightness adjustment parameter signal according to the photosensitivity value through the firmware in the pre-burned period.
[0070] In an exemplary embodiment, the hardware circuit may be composed of an operational amplifier. Figure 2 FIG. 1 is a schematic diagram of a hardware circuit structure according to an exemplary embodiment. Figure 2 As shown, the hardware circuit mainly includes a first operational amplifier U1, a second operational amplifier U2 and a peripheral circuit, and the peripheral circuit includes a plurality of resistors. Among them, the positive input terminal of the first operational amplifier U1 is used to receive a brightness adjustment reference signal, and the first operational amplifier U1 obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from its output terminal. In addition, the positive power supply interface of the first operational amplifier U1 is connected to the power supply voltage Vcc, and the negative power supply interface of the first operational amplifier U1 is grounded.
[0071] The negative input terminal of the second operational amplifier U2 is electrically connected to the output terminal of the first operational amplifier U1, and the positive input terminal of the second operational amplifier U2 is used to receive a reference voltage. The second operational amplifier obtains the fill light brightness adjustment parameter signal according to the amplified signal output by the first operational amplifier U1. In addition, the positive power interface of the second operational amplifier U2 is connected to the power supply voltage Vcc, and the negative power interface of the second operational amplifier U2 is grounded. In the exemplary embodiment, the power supply voltage Vcc is 10V (volts), and the corresponding voltage size can also be set as needed. In the exemplary embodiment, the output terminal of the second operational amplifier U2 is connected to the brightness adjustment module of the fill light, so that the brightness adjustment module can control the brightness of the fill light according to the fill light brightness adjustment parameter signal output by the second operational amplifier U2. In the exemplary embodiment, the change direction of the fill light brightness adjustment parameter signal is opposite to the change direction of the brightness adjustment reference signal. For example, when the brightness adjustment reference signal changes from low to high, the fill light brightness adjustment parameter signal changes from high to low. On the contrary, when the brightness adjustment reference signal changes from high to low, the fill light brightness adjustment parameter signal changes from low to high.
[0072] Figure 3A and Figure 3B Shows Figure 2 The timing diagram of the relationship between the brightness adjustment reference signal, the amplified signal output by the first operational amplifier, and the fill light brightness adjustment parameter signal in the circuit diagram shown. Figure 3A As shown, when the brightness adjustment reference signal jumps from low to high, the amplified signal output by the first operational amplifier changes with the brightness adjustment reference signal from low to high, and the fill light brightness adjustment parameter signal gradually decreases from high to low within a period of time after the brightness adjustment reference signal jumps from low to high. Figure 3B As shown, when the brightness adjustment reference signal jumps from high to low, the amplified signal output by the first operational amplifier changes along with the brightness adjustment reference signal, and the fill light brightness adjustment parameter signal gradually increases from low to high within a period of time after the brightness adjustment reference signal starts to jump from high to low.
[0073] In addition to the above-mentioned use of hardware circuits to obtain the fill light brightness adjustment parameter signal based on the brightness adjustment reference signal, it can also be implemented in software form. The software can be built into the programmable processor chip in the camera. The fill light brightness adjustment parameter signal can be obtained according to the brightness adjustment reference signal by establishing a relationship table or relationship function between the brightness adjustment reference signal and the fill light brightness adjustment parameter signal.
[0074] Step 104: adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal.
[0075] In an exemplary embodiment, the fill light includes a white light and an infrared light. Turning on the fill light of the camera in step 102 and adjusting the brightness of the fill light in step 104 are performed for the white light or the infrared light according to a preset working mode. Among them, the working mode includes a full-color night vision mode and an infrared night vision mode. In an exemplary embodiment, when the preset working mode is the full-color night vision mode, the white light is turned on in step 102, and the brightness of the white light is adjusted according to the fill light brightness adjustment parameter signal in step 104; when the preset working mode is the infrared night vision mode, the infrared light is turned on in step 102, and the brightness of the infrared light is adjusted according to the fill light brightness adjustment parameter signal in step 104.
[0076] As described above, obtaining the photosensitivity value of the shooting scene of the camera in step 101 is performed in response to a received shooting trigger signal. On this basis, in an illustrative embodiment, after step 104, the camera fill light method of the embodiment of the present disclosure further includes: starting the shooting of the camera, and obtaining a shot video in the shooting scene after adjusting the brightness of the fill light.
[0077] After steps 101 to 104, the brightness of the fill light has been adjusted according to the fill light brightness adjustment parameter signal, and the fill light brightness adjustment parameter signal is obtained according to the brightness adjustment reference signal, and the brightness adjustment reference signal is obtained from the shooting scene, that is, the brightness of the fill light is determined according to the ambient brightness of the shooting scene (the ambient brightness is reflected by the photosensitivity value) or the distance between the camera and the shooting object (obtained by the radar). Therefore, when the camera is turned on, the brightness of the first frame of video image taken by the camera has been adaptively corrected because of the fill light brightness adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the shooting object. Therefore, the brightness of the first frame of video image taken by the camera is not easy to be too bright or too dark, thereby ensuring that the video shot by the camera will not miss key information due to brightness problems at the beginning.
[0078] In an illustrative embodiment, after step 104, the camera fill light method of the embodiment of the present disclosure further includes: after obtaining the first frame image of the captured video, adjusting the brightness of the fill light in real time according to the AE information of the captured video.
[0079] Among them, the real-time adjustment of the brightness of the fill light according to the AE information of the captured video can be achieved through the existing technology. Since the brightness of the first frame image cannot be adjusted in real time according to the AE information of the video, the camera fill light method of the embodiment of the present disclosure can obtain a first frame image that is not prone to being too bright or too dark. Therefore, in the application scenario where the SOC is awakened by detecting the shooting object (through PIR or radar) to start video shooting, the camera fill light method of the embodiment of the present disclosure can improve the presentation effect of the first frame image and after the first frame, it can be combined with the existing technology to adjust the brightness of the fill light in real time according to the AE information of the captured video, ensuring that the video shot by the camera will not miss key information due to brightness problems at the beginning.
[0080] In addition, in the pre-roll shooting mode of the battery-powered pre-roll camera, steps 101 to 104 in the camera fill light method of the embodiment of the present disclosure are applied simultaneously, so that the brightness of each frame image in the pre-roll shooting mode is not prone to being too bright or too dark, thereby improving the imaging quality of the camera in the pre-roll shooting mode.
[0081] Figure 4 It is a flowchart of a first application scenario of a camera fill light method according to an illustrative embodiment. The application scenario is triggering and waking up a battery-powered camera to perform a high-resolution and high-frame rate shooting mode, and mainly includes the following steps 401 to 409.
[0082] Step 401, receiving a shooting trigger signal, and then executing step 402.
[0083] In an exemplary embodiment, the shooting trigger signal is a trigger signal generated by at least one of a PIR and a radar.
[0084] Step 402 : In response to the received shooting trigger signal, obtain the photosensitivity value of the shooting scene of the camera, and then execute step 403 .
[0085] In the exemplary embodiment, the light sensitivity value is obtained by a light sensitivity module built into the camera.
[0086] Step 403 , determining whether the light sensitivity value is within a preset fill light on trigger threshold interval, if so, executing step 404 , otherwise executing step 409 .
[0087] Step 404: Turn on the corresponding fill light of the camera according to the preset working mode, and then execute step 405.
[0088] In an illustrative embodiment, the working modes include a full-color night vision mode and an infrared night vision mode. When the preset working mode is the full-color night vision mode, the fill light turned on is a white light lamp, and when the preset working mode is the infrared night vision mode, the fill light turned on is an infrared lamp.
[0089] Step 405 , obtaining a light sensitivity value from the shooting scene, and obtaining a fill light brightness adjustment parameter signal according to the light sensitivity value, and then executing step 406 .
[0090] The photosensitivity value is obtained through a photosensitivity module built into the camera.
[0091] Step 406 , adjusting the brightness of the fill light according to the fill light brightness adjustment parameter signal, and then executing step 407 .
[0092] Step 407 , start shooting of the camera, obtain the first video frame in the shot video in the shooting scene after adjusting the brightness of the fill light, obtain AE information about the first video frame, and then execute step 408 .
[0093] Step 408: During the video shooting process, the brightness of the fill light is adjusted in real time according to the AE information of the video.
[0094] Step 409: start the camera shooting, and adjust the brightness of the fill light in real time according to the AE information of the video during the video shooting process.
[0095] Figure 5 It is a flow chart of a second application scenario of a camera fill light method according to an illustrative embodiment. The application scenario is triggering and waking up a battery-powered camera to perform a high-resolution and high-frame rate shooting mode, and mainly includes the following steps 501 to 509.
[0096] Step 501, receiving a shooting trigger signal, and then executing step 502.
[0097] Step 502 : In response to the received shooting trigger signal, obtain the photosensitivity value of the shooting scene of the camera, and then execute step 503 .
[0098] In the exemplary embodiment, the light sensitivity value is obtained by a light sensitivity module built into the camera.
[0099] Step 503 , determining whether the light sensitivity value is within the preset fill light on trigger threshold interval, if so, executing step 504 , otherwise executing step 509 .
[0100] Step 504 , turn on the corresponding fill light of the camera according to the preset working mode, and then execute step 505 .
[0101] In an illustrative embodiment, the working modes include a full-color night vision mode and an infrared night vision mode. When the preset working mode is the full-color night vision mode, the fill light turned on is a white light lamp, and when the preset working mode is the infrared night vision mode, the fill light turned on is an infrared lamp.
[0102] Step 505 , obtaining distance information from the shooting scene, obtaining a fill light brightness adjustment parameter signal according to the distance information, and then executing step 506 .
[0103] The distance information is obtained through a built-in radar, which reflects the distance between the object and the camera.
[0104] Step 506 , adjusting the brightness of the fill light according to the fill light brightness adjustment parameter signal, and then executing step 507 .
[0105] Step 507 , start shooting of the camera, obtain the first video frame in the shot video in the shooting scene after adjusting the brightness of the fill light, obtain AE information about the first video frame, and then execute step 508 .
[0106] Step 508: During the video shooting process, the brightness of the fill light is adjusted in real time according to the AE information of the video.
[0107] Step 509: Start the shooting of the camera, and adjust the brightness of the fill light in real time according to the AE information of the video during the video shooting process.
[0108] Figure 6 It is a flowchart of a third application scenario of a camera fill light method according to an illustrative embodiment. The application scenario is a pre-roll shooting mode of a battery-powered pre-roll camera, mainly including the following steps 601 to 605 performed in the pre-roll shooting mode.
[0109] Step 601: Obtain the photosensitivity value of the shooting scene of the camera, and then execute step 602.
[0110] Step 602 , determine whether the photosensitivity value is within the preset fill light on trigger threshold interval, if yes, execute step 603 , otherwise, do not turn on the fill light of the camera, and return to step 601 .
[0111] Step 603: Turn on the corresponding fill light of the camera according to the preset working mode or keep the fill light turned on, and then execute step 604.
[0112] If the fill light has been turned on in advance, the fill light is kept turned on in step 603 .
[0113] Step 604: Obtain a light sensitivity value from the shooting scene, obtain a fill light brightness adjustment parameter signal according to the light sensitivity value, and then execute step 605.
[0114] Step 605 , adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal, and then return to step 601 .
[0115] Figure 7 It is a flowchart of the fourth application scenario of a camera fill light method according to an illustrative embodiment. The application scenario is a pre-roll shooting mode of a battery-powered pre-roll camera, which mainly includes the following steps 701 to 705 performed in the pre-roll shooting mode.
[0116] Step 701, obtain the photosensitivity value of the shooting scene of the camera, and then execute step 702.
[0117] Step 702 , determine whether the photosensitivity value is within the preset fill light on trigger threshold interval, if yes, execute step 703 , otherwise, do not turn on the fill light of the camera, and return to step 701 .
[0118] Step 703: Turn on the corresponding fill light of the camera according to the preset working mode or keep the fill light turned on, and then execute step 704.
[0119] If the fill light has been turned on in advance, the fill light is kept turned on in step 703 .
[0120] Step 704 , obtaining distance information from the shooting scene, obtaining a fill light brightness adjustment parameter signal according to the distance information, and then executing step 705 .
[0121] Step 705 , adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal, and then return to step 701 .
[0122] By utilizing the camera fill light method of the embodiment of the present invention, the brightness of the fill light is adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the shooting object. Therefore, in the application scenario where the SOC is awakened by detecting the shooting object to start video shooting, when the camera shooting is turned on, before the camera shoots the first frame of video image, the brightness of the fill light has been adaptively adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the shooting object, and then the brightness of the first frame of video image shot by the camera is adaptively corrected according to the adaptively adjusted brightness of the fill light, thereby improving the presentation effect of the first frame in the high-resolution and high-frame rate shooting mode, and after the first frame, the brightness of the fill light is adjusted in real time according to the AE information of the shot video in combination with the prior art, ensuring that the video shot by the camera does not miss key information due to brightness problems at the beginning. In the pre-roll shooting mode of the battery-powered pre-roll camera, the camera fill light method of the embodiment of the present disclosure is used at the same time, so that the brightness of the fill light is adjusted according to the ambient brightness of the shooting scene or the distance between the camera and the shooting object, so that the brightness of each frame image in the pre-roll shooting mode is not easy to be too bright or too dark, so that the presentation effect of the video image captured in the pre-roll shooting mode of the battery-powered pre-roll camera in the night scene can be improved. In addition, for the pre-roll camera, although the pr-roll camera can use software to control the fill light in theory, the frame rate in the pre-roll shooting mode is low, usually a few frames are captured in one second, and the software-controlled fill light method is adjusted according to the brightness of the frame, so the adjustment interval is at the level of hundreds of milliseconds, resulting in a slow convergence speed of the brightness adjustment of the software-controlled fill light method. The camera fill light method of the embodiment of the present disclosure uses the fill light brightness in the pre-roll shooting mode that is adjusted in real time using the photosensitivity value. The advantage is that the ambient light intensity of the shooting scene in the pre-roll shooting mode can be adjusted in real time, the brightness adjustment convergence speed is faster, and it is not easy to have a single frame image with overexposure or low illumination.
[0123] Figure 8 FIG. 1 is a schematic diagram showing the logical structure of a camera fill light device according to an exemplary embodiment. Figure 8 As shown, the camera fill light device includes a photosensitivity value acquisition module 801, a fill light activation module 802, a brightness adjustment parameter acquisition module 803 and a brightness adjustment module 804.
[0124] The light sensitivity value acquisition module 801 is configured to acquire the light sensitivity value of the shooting scene of the camera;
[0125] The fill light activation module 802 is configured to activate the fill light of the camera when the light sensitivity value is within a preset fill light activation trigger threshold interval;
[0126] The brightness adjustment parameter acquisition module 803 is configured to acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light;
[0127] The brightness adjustment module 804 is configured to adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal.
[0128] In the exemplary embodiment, obtaining the light sensitivity value of the shooting scene of the camera is performed in response to a received shooting trigger signal; and the camera fill light device further includes:
[0129] The shooting start module is configured to start shooting of the camera and obtain a shot video in the shooting scene after adjusting the brightness of the fill light.
[0130] In an exemplary embodiment, the shooting trigger signal is a trigger signal generated by at least one of a pyroelectric infrared sensor PIR and a radar.
[0131] In an exemplary embodiment, the camera fill light device further includes:
[0132] The brightness adjustment module during shooting is configured to adjust the brightness of the fill light in real time according to the AE information of the shot video after obtaining the first frame image of the shot video.
[0133] In the exemplary embodiment, the light sensitivity value acquisition module 801 acquires the light sensitivity value of the shooting scene of the camera when the camera is in the pre-roll shooting mode.
[0134] In an exemplary embodiment, the brightness adjustment reference signal is a photosensitivity value or distance information. The distance information comes from a radar, and the distance information is used to represent the distance between the camera and the photographed object.
[0135] In the exemplary embodiment, the brightness adjustment parameter obtaining module 803 is further configured to obtain the fill light brightness adjustment parameter signal according to the light sensitivity value through a hardware circuit.
[0136] In the exemplary embodiment, the hardware circuit is a single-chip microcomputer, the input end of the single-chip microcomputer is used to receive the brightness adjustment reference signal, and the output end of the single-chip microcomputer is used to output the fill light brightness adjustment parameter signal;
[0137] Alternatively, the hardware circuit includes:
[0138] A first operational amplifier, wherein a positive input terminal of the first operational amplifier is used to receive a brightness adjustment reference signal, and the first operational amplifier obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from an output terminal thereof;
[0139] The second operational amplifier has a negative input terminal electrically connected to the output terminal of the first operational amplifier, and a positive input terminal of the second operational amplifier is used to receive a reference voltage. The second operational amplifier obtains a fill light brightness adjustment parameter signal according to the amplified signal.
[0140] In an exemplary embodiment, the fill light includes a white light and an infrared light;
[0141] The fill light activation module 802 activates the fill light of the camera and the brightness adjustment parameter acquisition module 803 adjusts the brightness of the fill light, which is performed for the white light or the infrared light according to the preset working mode; wherein,
[0142] Working modes include full-color night vision mode and infrared night vision mode;
[0143] When the preset working mode is the full-color night vision mode, the fill light turning on module 802 turns on the white light, and the brightness adjustment parameter obtaining module 803 adjusts the brightness of the white light according to the fill light brightness adjustment parameter signal;
[0144] When the preset working mode is the infrared night vision mode, the fill light turning on module 802 turns on the infrared light, and the brightness adjustment parameter obtaining module 803 adjusts the brightness of the infrared light according to the fill light brightness adjustment parameter signal.
[0145] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0146] Regarding the camera fill light device in the above embodiment, the specific manner in which each unit performs operations has been described in detail in the embodiment of the camera fill light method, and will not be elaborated here.
[0147] It should be noted that: the above embodiment only illustrates the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0148] Fig. 9It is a structural diagram of an electronic device provided in an embodiment of the present disclosure. In some embodiments, the electronic device is a server. The electronic device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 901 and one or more memories 902, wherein the memory 902 stores at least one program code, and the at least one program code is loaded and executed by the processor 901 to implement the camera fill light method provided in the above-mentioned embodiments. Of course, the electronic device 900 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 900 may also include other components for realizing device functions, which will not be repeated here.
[0149] In an exemplary embodiment, a computer-readable storage medium including at least one instruction is also provided, such as a memory including at least one instruction. The at least one instruction can be executed by a processor in a computer device to complete the camera fill light method in the above embodiment.
[0150] Optionally, the above-mentioned computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may include ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device, etc.
[0151] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A camera fill light method, comprising: Obtaining a photosensitivity value of a shooting scene of the camera; When the light sensitivity value is within a preset fill light turn-on trigger threshold interval, turning on the fill light of the camera; Acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light; The brightness of the fill light is adjusted according to the fill light brightness adjustment parameter signal.
2. The camera fill light method according to claim 1, characterized in that: The obtaining of the photosensitivity value of the shooting scene of the camera is performed in response to a received shooting trigger signal; Furthermore, after adjusting the brightness of the fill light according to the fill light brightness adjustment parameter signal, the camera fill light method further includes: The camera is turned on to shoot, and a shot video is obtained in the shooting scene after adjusting the brightness of the fill light.
3. The camera fill light method according to claim 2, characterized in that: The shooting trigger signal is a trigger signal generated by at least one of a pyroelectric infrared sensor PIR and a radar.
4. The camera fill light method according to claim 2, characterized in that: After starting the shooting of the camera and obtaining the shot video in the shooting scene after adjusting the brightness of the fill light, the camera fill light method further includes: After obtaining the first frame image of the captured video, the brightness of the fill light is adjusted in real time according to the AE information of the captured video.
5. The camera fill light method according to claim 1, characterized in that: The step of obtaining the photosensitivity value of the shooting scene of the camera is performed when the camera is in a pre-roll shooting mode.
6. The camera fill light method according to any one of claims 1 to 5, characterized in that: The brightness adjustment reference signal is the photosensitivity value or distance information. The distance information is derived from a radar, and the distance information is used to characterize the distance between the camera and the photographed object.
7. The camera fill light method according to any one of claims 1 to 5, characterized in that: The step of obtaining a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal comprises: The fill light brightness adjustment parameter signal is obtained according to the light sensitivity value through a hardware circuit.
8. The camera fill light method according to claim 7, characterized in that: The hardware circuit is a single-chip microcomputer, the input end of the single-chip microcomputer is used to receive the brightness adjustment reference signal, and the output end of the single-chip microcomputer is used to output the fill light brightness adjustment parameter signal; Alternatively, the hardware circuit includes: a first operational amplifier, wherein a positive input terminal of the first operational amplifier is used to receive the brightness adjustment reference signal, and the first operational amplifier obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from an output terminal thereof; A second operational amplifier, wherein the negative input terminal of the second operational amplifier is electrically connected to the output terminal of the first operational amplifier, the positive input terminal of the second operational amplifier is used to receive a reference voltage, and the second operational amplifier obtains the fill light brightness adjustment parameter signal according to the amplified signal.
9. The camera fill light method according to any one of claims 1 to 5, characterized in that: The fill light includes a white light and an infrared light; The turning on the fill light of the camera and adjusting the brightness of the fill light are performed for the white light or the infrared light according to a preset working mode; wherein, The working modes include full-color night vision mode and infrared night vision mode; When the preset working mode is the full-color night vision mode, turning on the white light lamp, and adjusting the brightness of the white light lamp according to the fill light brightness adjustment parameter signal; When the preset working mode is the infrared night vision mode, the infrared lamp is turned on, and the brightness of the infrared lamp is adjusted according to the fill light brightness adjustment parameter signal.
10. A camera fill light device, characterized in that: include: A photosensitivity value acquisition module, configured to acquire the photosensitivity value of the shooting scene of the camera; A fill light activation module is configured to activate the fill light of the camera when the light sensitivity value is within a preset fill light activation trigger threshold interval; a brightness adjustment parameter acquisition module, configured to acquire a brightness adjustment reference signal from the shooting scene, and obtain a fill light brightness adjustment parameter signal according to the brightness adjustment reference signal, wherein the brightness adjustment reference signal is used to adjust the brightness of the fill light; The brightness adjustment module is configured to adjust the brightness of the fill light according to the fill light brightness adjustment parameter signal.
11. The camera fill light device according to claim 10, characterized in that: The brightness adjustment parameter acquisition module is further configured to execute the hardware circuit to obtain the fill light brightness adjustment parameter signal according to the light sensitivity value; Wherein, the hardware circuit includes: a first operational amplifier, wherein a positive input terminal of the first operational amplifier is used to receive the brightness adjustment reference signal, and the first operational amplifier obtains an amplified signal according to the brightness adjustment reference signal and outputs the amplified signal from an output terminal thereof; A second operational amplifier, wherein the negative input terminal of the second operational amplifier is electrically connected to the output terminal of the first operational amplifier, the positive input terminal of the second operational amplifier is used to receive a reference voltage, and the second operational amplifier obtains the fill light brightness adjustment parameter signal according to the amplified signal.