CN116437201A - Method and device for preventing continuous light and shade vibration of camera and camera system - Google Patents

Method and device for preventing continuous light and shade vibration of camera and camera system Download PDF

Info

Publication number
CN116437201A
CN116437201A CN202310694689.1A CN202310694689A CN116437201A CN 116437201 A CN116437201 A CN 116437201A CN 202310694689 A CN202310694689 A CN 202310694689A CN 116437201 A CN116437201 A CN 116437201A
Authority
CN
China
Prior art keywords
camera
night
photosensitive
switching
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310694689.1A
Other languages
Chinese (zh)
Other versions
CN116437201B (en
Inventor
裘添烨
陶茜
杨作兴
艾国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen MicroBT Electronics Technology Co Ltd
Original Assignee
Shenzhen MicroBT Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen MicroBT Electronics Technology Co Ltd filed Critical Shenzhen MicroBT Electronics Technology Co Ltd
Priority to CN202310694689.1A priority Critical patent/CN116437201B/en
Publication of CN116437201A publication Critical patent/CN116437201A/en
Application granted granted Critical
Publication of CN116437201B publication Critical patent/CN116437201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Abstract

The disclosure relates to a camera continuous light and shade vibration prevention method, a camera continuous light and shade vibration prevention device and a camera system, wherein the method comprises the following steps: acquiring a photosensitive value of a shooting scene when the camera is in a shooting state; when the light and shade vibration judging conditions are met, obtaining a stable photosensitive value in a night shooting mode; obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and the day-night switching photosensitive threshold of the camera; adjusting the night switching photosensitive threshold to be a temporary night switching photosensitive threshold; and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene and the temporary night switching photosensitive threshold value. According to the technical scheme, continuous light and shade oscillation of the camera is avoided, meanwhile, the working modes of night and daytime can be adaptively switched according to the brightness change of a shooting scene, and the brightness stability of an image shot by the camera is improved.

Description

Method and device for preventing continuous light and shade vibration of camera and camera system
Technical Field
The disclosure relates to the technical field of image acquisition, in particular to a method and a device for preventing continuous light and shade oscillation of a camera and a camera system.
Background
In order to present the image effect under different illumination conditions of day and night, the camera is usually provided with different operation modes, for example, the light inlet amount of the image sensor is reduced in the day and the light supplementing lamp is turned off, and the light inlet amount of the image sensor is increased in the night and the light supplementing lamp is turned on. In the daytime, the brightness of the shooting environment is relatively stable, and the situation of sudden repeated light and shade conversion of the shooting environment does not occur, so that the problem of sudden repeated switching between a daytime working mode and a night working mode caused by adaptation to the brightness of the shooting environment does not occur easily in a camera in the daytime; at night, because of the existence of a mobile light source such as a vehicle and the like and the light supplementing reflection interference of stronger reflected light irradiated to the camera caused by the fact that the camera irradiates an object with the light supplementing lamp, the brightness stability of an image shot at night is poor, and the camera is repeatedly switched between a night working mode and a daytime working mode due to the instant brightness change, so that the shot image has the problem of brightness vibration.
Disclosure of Invention
In view of this, the disclosure provides a method, an apparatus and a camera system for preventing continuous light and shade oscillation of a camera, so as to solve the problem of continuous light and shade oscillation of the camera, and enable the camera to adaptively switch between a night working mode and a daytime working mode according to brightness change of a shooting scene under the condition of preventing continuous light and shade oscillation, thereby improving brightness stability of an image shot by the camera, and further improving imaging effect of the camera.
The technical scheme of the present disclosure is realized as follows:
a camera continuous light and shade vibration prevention method comprises the following steps:
when a camera is in a shooting state, acquiring a photosensitive value of a shooting scene of the camera;
when the mutual switching of the camera between a night shooting mode and a daytime shooting mode meets a light and shade oscillation judging condition, obtaining a stable photosensitive value of the shooting scene under the condition of the night shooting mode in a light and shade oscillation period;
obtaining a temporary night day switching photosensitive threshold according to the stable photosensitive value and a day and night switching photosensitive threshold of the camera, wherein the day and night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
adjusting a night switching photosensitive threshold of the camera to be the temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value.
Further, the light and shade oscillation judging conditions are as follows:
the number of times of the mutual switching of the camera between the night shooting mode and the daytime shooting mode reaches a preset number of times within a set time range.
Further, the obtaining the stable photosensitive value of the shooting scene in the night shooting mode during the bright-dark oscillation period includes:
obtaining a stable-stage photosensitive value during any one night shooting mode according to the photosensitive value of a shooting scene of the camera during any one night shooting mode during the bright-dark oscillation period;
in the case where a phase difference between the stable phase photosensitive values during each night shooting mode is within a preset photosensitive error range, the stable photosensitive value is obtained from the stable phase photosensitive value during each night shooting mode.
Further, the step of obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and the day-night switching photosensitive threshold of the camera includes:
and adding the stable photosensitive value and the day-night switching photosensitive threshold value to obtain the temporary night-day switching photosensitive threshold value.
Further, the controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value includes:
When the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value, the camera is controlled to be switched from the night shooting mode to the daytime shooting mode.
Further, the method for preventing continuous light and shade oscillation of the camera further comprises the following steps:
when the camera is in a shooting state, acquiring an automatic exposure AE value of an image shot by the camera;
wherein, according to the photosensitive value of the shooting scene of the camera and the temporary night-day switching photosensitive threshold, the camera is controlled to switch from the night shooting mode to the daytime shooting mode, and the method further comprises the following steps:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the temporary night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
Further, the controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the temporary night switching photosensitive threshold value and the night switching AE threshold value includes:
When the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value and the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
Further, the method for preventing continuous light and shade oscillation of the camera further comprises the following steps:
when the camera is in a shooting state, acquiring an AE value of an image shot by the camera;
when the camera is in the daytime shooting mode, controlling the camera to switch from the daytime shooting mode to the night shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, a day-night switching photosensitive threshold value and a day-night switching AE threshold value, wherein the day-night switching AE threshold value is used for judging whether the camera is switched from the daytime shooting mode to the night shooting mode;
and under the condition that the camera is in the night shooting mode, controlling the camera to switch from the night shooting mode to the daytime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
Further, the controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the day-night switching photosensitive threshold value and the day-night switching AE threshold value includes:
and controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode under the condition that the AE value of the image shot by the camera is larger than the day-night switching AE threshold value and the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value.
Further, the controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value includes:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode under the condition that the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value and the photosensitive value of the shooting scene of the camera is larger than the night switching photosensitive threshold value.
Further, the method for preventing continuous light and shade oscillation of the camera further comprises the following steps:
under the condition that the AE value of the image shot by the camera is in a stable state, acquiring a photosensitive value of a shooting scene of the camera, acquiring the AE value of the image shot by the camera, and acquiring the average brightness of the picture of the image shot by the camera;
the new day-to-night switching photosensitizing threshold is obtained according to the following formula:
Ldr*AE/meanY=RFV
Lthr01*AEthr0/meanY=RFV
wherein Ldr, AE and means are respectively the obtained photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera and the average brightness of the image shot by the camera, RFV is a reference fixed value obtained according to Ldr, AE and means, AEthr0 is the day-night switching AE threshold, and Lthr01 is a new day-night switching photosensitive threshold;
and updating the day-night switching photosensitive threshold value to the new day-night switching photosensitive threshold value.
Further, the method for preventing continuous light and shade oscillation of the camera further comprises the following steps:
responding to the received starting trigger signal, and acquiring a photosensitive value of a shooting scene of the camera;
controlling the camera to enter a shooting state in the night shooting mode under the condition that the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value;
And controlling the camera to enter a shooting state in the daytime shooting mode under the condition that the photosensitive value of the shooting scene of the camera is larger than the day-night switching photosensitive threshold value.
Further, the night shooting mode includes a full-color night vision mode and an infrared night vision mode;
the method for preventing continuous light and shade vibration of the camera further comprises the following steps:
responding to a received switching signal from the full-color night vision mode to the infrared night vision mode, switching the full-color night vision mode into the infrared night vision mode, replacing a night switching photosensitive threshold used in the full-color night vision mode with a night switching photosensitive threshold used in the infrared night vision mode, and replacing a night switching AE threshold used in the full-color night vision mode with a night switching AE threshold used in the infrared night vision mode; or alternatively
Responding to a received switching signal from the infrared night vision mode to the full-color night vision mode, switching the infrared night vision mode into the full-color night vision mode, replacing a night switching photosensitive threshold used in the infrared night vision mode with a night switching photosensitive threshold used in the full-color night vision mode, and replacing a night switching AE threshold used in the infrared night vision mode with a night switching AE threshold used in the full-color night vision mode;
The night switching photosensitive threshold used in the full-color night vision mode is equal to or different from the night switching photosensitive threshold used in the infrared night vision mode, and the night switching AE threshold used in the full-color night vision mode is equal to or different from the night switching AE threshold used in the infrared night vision mode.
A camera anti-continuous light and shade concussion device, comprising:
the camera comprises a photosensitive value acquisition module, a camera control module and a camera control module, wherein the photosensitive value acquisition module is configured to acquire a photosensitive value of a shooting scene of the camera when the camera is in a shooting state;
a stable photosensitive value obtaining module configured to obtain a stable photosensitive value of the shooting scene in the night shooting mode during a bright-dark concussion period when a mutual switching between a night shooting mode and a daytime shooting mode of the camera satisfies a bright-dark concussion judgment condition;
a temporary photosensitive threshold obtaining module configured to perform obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and a day-night switching photosensitive threshold of the camera, wherein the day-night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
A light-sensitive threshold adjustment module configured to perform adjustment of a night-day switching light-sensitive threshold of the camera to the temporary night-day switching light-sensitive threshold, wherein the night-day switching light-sensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and the shooting mode switching module is configured to execute switching of a photosensitive threshold value according to a photosensitive value of a shooting scene of the camera and the temporary night day and control the camera to switch from the night shooting mode to the daytime shooting mode.
A camera system, comprising:
a camera;
a control module configured to perform:
acquiring a photosensitive value of a shooting scene of the camera when the camera is in a shooting state;
when the mutual switching of the camera between a night shooting mode and a daytime shooting mode meets a light and shade oscillation judging condition, obtaining a stable photosensitive value of the shooting scene under the condition of the night shooting mode in a light and shade oscillation period;
obtaining a temporary night day switching photosensitive threshold according to the stable photosensitive value and a day and night switching photosensitive threshold of the camera, wherein the day and night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
Adjusting a night switching photosensitive threshold of the camera to be the temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value.
An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
the processor is configured to execute the executable instructions to implement the method for preventing continuous concussion of a camera according to any one of the above claims.
A computer readable storage medium, which when at least one instruction in the computer readable storage medium is executed by a processor of an electronic device, enables the electronic device to implement the camera anti-continuous bright-dark concussion method as defined in any one of the above.
According to the method, the device and the camera system for preventing continuous light and shade oscillation of the camera, when the camera is judged to generate light and shade oscillation, a temporary night switching photosensitive threshold value higher than an original night switching photosensitive threshold value is obtained according to a stable photosensitive value under the condition that the camera is in a night shooting mode during the light and shade oscillation period and a day and night switching photosensitive threshold value of the camera, and the original night switching photosensitive threshold value is replaced by the temporary night switching photosensitive threshold value, so that the photosensitive value of the camera is difficult to reach the temporary night switching photosensitive threshold value and is switched from the night shooting mode to the daytime shooting mode again, and the problem of continuous light and shade oscillation of the camera is effectively avoided. Meanwhile, according to the stable photosensitive value under the condition that the camera is in the night shooting mode during the light and shade oscillation period and the temporary night switching photosensitive threshold value obtained by switching the photosensitive threshold value from day to night, the light intensity of the shooting environment of the camera needs to reach the daytime light intensity to be switched to the daytime shooting mode, namely the shooting environment is really changed from night to daytime to be switched to the daytime shooting mode, and after the shooting environment is switched to the daytime shooting mode, the condition that the environment brightness is the daytime brightness and is switched to the night shooting mode because the photosensitive value is lower than the day-night switching threshold value is avoided, and further after the camera is switched to the daytime shooting mode according to the temporary night switching photosensitive threshold value, the temporary night switching photosensitive threshold value is adjusted to the night-day switching photosensitive threshold value, and the condition that the shooting environment is changed from daytime to night again to the original night shooting mode to the daytime shooting mode is also ensured. In addition, in the method, the device and the camera system for preventing continuous light and shade oscillation of the camera, the mode of combining the photosensitive value and the AE value is used for controlling the daytime shooting mode and the night shooting mode, so that the brightness effect of a picture shot by the camera is ensured. Meanwhile, in the method, the device and the camera system for preventing continuous light and shade oscillation of the camera, the day and night switching photosensitive threshold value is updated according to an empirical formula that the photosensitive value is approximately inversely proportional to the condition of an image picture, so that the stability of the image brightness is improved, and the stability of the image brightness when the camera is switched from a day shooting mode to a night shooting mode is ensured.
Meanwhile, in the method, the device and the camera system for preventing continuous light and shade concussion, the night-day switching photosensitive threshold and the day-and-night switching photosensitive threshold are respectively set, and the mode that the night-day switching photosensitive threshold is higher than the day-and-night switching photosensitive threshold can avoid light and shade concussion caused by frequent switching between a night shooting mode and a daytime shooting mode due to fluctuation of a photosensitive value near the photosensitive threshold when the days and the nighttime are staggered. In this way, in the process of changing the ambient brightness from daytime to nighttime, the photosensitive value fluctuates around the day-night switching photosensitive threshold and is not higher than the night-day switching photosensitive threshold, so that the photosensitive value does not jump to be higher than the night-day switching photosensitive threshold due to the ambient brightness (excluding the condition of short-time strong light suddenly appearing in a shooting scene) after the camera is switched from the daytime shooting mode to the nighttime shooting mode along with the slow transition of the environment from daytime to nighttime, and the problem of light-dark oscillation in the process of gradually darkening the sky is avoided; similarly, in the process that the ambient brightness changes from night to daytime, the photosensitive value fluctuates around the night-day switching photosensitive threshold and cannot be lower than the day-night switching photosensitive threshold, so that the problem of light and shade oscillation in the process of gradually changing the sky color is avoided because the photosensitive value jumps to be lower than the day-night switching photosensitive threshold due to the ambient brightness after the camera is switched from the night shooting mode to the daytime shooting mode along with the slow transition of the environment from night to daytime.
Drawings
FIG. 1 is a flowchart of a method for preventing continuous light and shade oscillation of a camera according to an exemplary embodiment;
FIG. 2 is a flow chart for obtaining stable photosensitive values, according to an illustrative embodiment;
FIG. 3 is a flowchart illustrating a switch of shooting modes in combination with a photosensitive value and an AE value according to an illustrative embodiment;
FIG. 4 is a flowchart illustrating updating a day-night switching photosensitive threshold according to an exemplary embodiment;
FIG. 5 is a schematic diagram of an experimental scenario shown in accordance with an illustrative embodiment;
FIG. 6 is a flowchart illustrating a startup phase selection of a capture mode according to an exemplary embodiment;
FIG. 7 is a flowchart illustrating replacement of a night switch light sensitivity threshold and a night switch AE threshold with switching between different night shooting modes according to an illustrative embodiment;
FIG. 8 is a flowchart of an application scenario of a camera anti-continuous concussion method according to an exemplary embodiment;
FIG. 9 is a flowchart of an application scenario for updating a day-night switching photosensitive threshold in a camera anti-continuous concussion method according to an exemplary embodiment;
FIG. 10 is a logic block diagram of a camera anti-continuous dark and light concussion device according to an illustrative embodiment;
FIG. 11 is a logical block diagram of a camera system shown in accordance with an illustrative embodiment;
FIG. 12 is a logical block diagram of a low power battery powered camera device in accordance with an illustrative embodiment;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Description of the embodiments
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure will be further described in detail below with reference to the accompanying drawings and examples.
Because the illumination condition of shooting scenes at night is complex, the camera can output shooting images with excessively high brightness in short time because of the occurrence of the sudden rise of brightness in the shooting scenes, and after the camera is switched to a daytime working mode along with the sudden rise of brightness, the camera can output shooting images with excessively low brightness in short time because of the sudden fall of brightness in the shooting scenes, and the camera can not output shooting images with ideal brightness until the camera is switched back to the night working mode, so that the shooting images of the camera have bright and dark vibration. If the shooting scene at night repeatedly appears the condition of sudden rise and sudden fall of brightness, the continuous light and shade vibration of the camera can be caused, the shooting image in the continuous light and shade vibration period seriously influences the presentation of the image content, and the problem that key information in the shooting image possibly appears in the light and shade vibration period can not be obtained can be caused.
The existing solution is that after light and shade concussion occurs, the night working mode and the daytime working mode are switched in a period of time (such as 30 minutes), so that the camera is always in the night working mode in the locking state, the situation causes the problem that the camera cannot flexibly adjust the working mode according to the change of the ambient brightness in the locking state, the camera is transferred to a high-brightness environment in the locking state or the shooting environment of the camera is highlighted for a long time, the camera cannot be adaptively switched to the daytime working mode along with the improvement of the ambient brightness, and the shot image exposure of the camera is overlarge.
In view of this, the embodiments of the present disclosure provide a method for preventing continuous light and shade oscillation of a camera, so that the camera can still adaptively switch between a night working mode and a daytime working mode according to a brightness change of a photographed scene under the condition of preventing continuous light and shade oscillation.
Fig. 1 is a flowchart of a method for preventing continuous light and shade oscillation of a camera according to an exemplary embodiment, as shown in fig. 1, the method for preventing continuous light and shade oscillation of a camera mainly includes the following steps 101 to 105.
And step 101, acquiring a photosensitive value of a shooting scene of the camera when the camera is in a shooting state.
In an exemplary embodiment, the light-sensitive value of the photographed scene of the camera is derived from a light-sensitive element in the camera, which senses the light intensity of the photographed area of the camera to obtain the light-sensitive value, a light-sensitive element, such as a light-sensitive diode. In an exemplary embodiment, the photosensitive element may be mounted in the camera and the photosensitive value of the photographed scene of the camera may be obtained by a data processing module, such as an MCU (Micro Control Unit ), mounted in the camera and connected to the photosensitive element.
And 102, when the mutual switching of the camera between the night shooting mode and the daytime shooting mode meets the light and shade oscillation judging condition, obtaining a stable photosensitive value of a shooting scene under the condition of the night shooting mode in the light and shade oscillation period.
The light and shade vibration shows that the light and shade of the image changes repeatedly in a short time in the human vision, and in the night shooting process of the camera, one reason that the light and shade of the image changes repeatedly in a short time is that the camera switches repeatedly to each other in a short time between a night shooting mode and a daytime shooting mode in the night, and the repeated switching to each other in the short time is often caused by interference of an external light source or a self-contained light supplementing lamp of the camera on a shooting area of the camera, for example, a flashlight with strong light emission or a high beam of a vehicle irradiates the camera suddenly, or the camera irradiates the surface of an object with strong reflected light from the self-contained light supplementing lamp to generate light irradiation to the camera, so that the shooting area or the brightness of the shooting object of the camera suddenly increases, and the camera switches to the daytime shooting mode, and then switches to the night shooting mode again with the brightness weakening in a short time. Particularly, the camera in the night shooting mode irradiates the surface of the object from the camera with the light supplementing lamp to generate stronger reflected light to irradiate the camera, so that the camera is switched to the daytime shooting mode to turn off the light supplementing lamp, the shooting area of the camera is further quickly darkened, the camera is further switched to the night shooting mode again to turn on the light supplementing lamp, the light supplementing lamp irradiates the surface of the object again to generate stronger reflected light to irradiate the camera, the camera is further switched to the daytime shooting mode again to turn off the light supplementing lamp, the shooting area of the camera is further quickly darkened again, and the camera is further switched to the night shooting mode again to turn on the light supplementing lamp, and the cycle is repeated. This switching of the multiple night shooting mode and the daytime shooting mode occurring in a short time causes a dark and light shake.
In the process that the shooting area of the camera suddenly changes, when the brightness of the shooting area reaches to trigger the camera to switch to a daytime shooting mode, the camera can switch to the daytime shooting mode from the night shooting mode, and when the interference light source leaves the shooting area of the camera or the light supplementing lamp of the camera is closed to enable the brightness of the shooting area to drop back to the original night brightness, the camera can switch to the night shooting mode from the daytime shooting mode, and the judgment and the switching can be realized through the MCU, the SOC (System on Chip), the light supplementing lamp, the infrared lamp, the optical filter switcher and other components in the camera. For example, in the daytime shooting mode, the MCU controls the light supplementing lamp and the infrared lamp to be turned off, the optical filter switcher is switched to an optical filter capable of transmitting visible light so that the image sensor receives the visible light, and the SOC processes the imaging of the image sensor to obtain and output a color image; the night shooting mode may include a full-color night vision mode in which the MCU controls the light supplementing lamp to be turned on, the filter switcher is switched to a filter that is permeable to visible light so that the image sensor receives visible light, the SOC processes the image of the image sensor to obtain and output a color image, and an infrared night vision mode in which the MCU controls the infrared lamp to be turned on, the filter switcher is switched to a filter that is permeable to infrared light so that the image sensor receives infrared light, and the SOC processes the image of the image sensor to obtain and output a black-and-white image reflecting the intensity of infrared light of a shooting picture because infrared light cannot be directly observed by human eyes. The full-color night vision mode and the infrared night vision mode can be manually switched according to the requirement.
In an exemplary embodiment, the dark and light concussion determination conditions are: the number of times of the mutual switching of the cameras between the night shooting mode and the daytime shooting mode reaches the preset number of times within the set time range. In an exemplary embodiment, the set time may range from 1 minute to 3 minutes and the preset number of times may range from 3 to 5 times. For example, the number of times of the camera switching between the night shooting mode and the daytime shooting mode is 3 within 1 minute, and it can be determined that the camera generates light and dark vibration. In step 102, the camera switches between the night shooting mode and the daytime shooting mode to meet the condition of determining the dark and light concussion, which means that the camera generates the dark and light concussion.
Fig. 2 is a flowchart showing the process of obtaining a stable light sensitivity value according to an exemplary embodiment, as shown in fig. 2, in which the process of obtaining a stable light sensitivity value in step 102 mainly includes the following steps 201 to 202.
Step 201, obtaining a stable phase photosensitive value during any night shooting mode according to the photosensitive value of the shooting scene of the camera during any night shooting mode during the bright-dark oscillation period.
Wherein the period of the light and shade oscillation is the set time range.
Step 202, obtaining a stable photosensitive value according to the stable photosensitive value during each night shooting mode when the phase difference between the stable photosensitive values during each night shooting mode is within a preset photosensitive error range.
Wherein, if the number of times of the mutual switching of the camera between the night photographing mode and the daytime photographing mode reaches a preset number of times within a set time range and the stable-phase photosensitive values during each night photographing mode are not different much (for example, within a preset photosensitive error range), it means that the photographing scene is in the night and short-time strong light interferes with the camera many times within the set time range. In this case, the light sensitivity threshold is raised (for example, raised to the temporary light sensitivity threshold) so as to avoid the situation that the night shooting mode is switched to the daytime shooting mode due to the short-time strong light at night, and further avoid the occurrence of light and dark oscillation again. If the difference between the stability phase photosensitive values during each night shooting mode is large (for example, outside the preset photosensitive error range), it indicates that the ambient light of the shooting environment changes in addition to the interference light that interferes with the camera, in which case, if the ambient light of the shooting environment is ignored, a problem of inaccurate judgment of the ambient light may occur, so in the preferred embodiment, the stability photosensitive values are obtained if the difference between the stability phase photosensitive values during each night shooting mode is within the preset photosensitive error range, and if the difference between the stability phase photosensitive values is outside the preset photosensitive error range, the stability photosensitive values are not obtained, and further, the subsequent steps 103 to 105 are not performed.
In an exemplary embodiment, deriving the stable light sensitivity value from the stable phase light sensitivity value during each night shooting mode may include: the average value of the steady-stage photosensitive values during each night shooting mode is determined as a steady photosensitive value.
In an exemplary embodiment, regarding how to obtain the light sensitivity value at the time of the steady phase during any one night shooting mode in step 201, for example: and setting a fluctuation range threshold of the photosensitive value, and determining the photosensitive value as a stable photosensitive value under the condition that the fluctuation of the photosensitive value does not exceed the fluctuation range threshold within a preset time period, for example, the fluctuation range threshold of the photosensitive value can be set to be 5-10%, and the preset time period can be set to be 2-3 seconds, so that the fluctuation range of the acquired photosensitive value within the time period of 2-3 seconds does not exceed 5-10%, and the obtained photosensitive value can be determined as the stable photosensitive value. In a specific example, if the fluctuation range of the collected photosensitive value does not exceed 5% in 2 seconds, the obtained photosensitive value is determined as a stable photosensitive value. In the actual application scenario, under the condition that the photosensitive values are stable, the obtained photosensitive values in the preset time period may have the condition that the photosensitive values are equal, so that the photosensitive value with the largest number and equal value can be determined as the stable photosensitive value. In an exemplary embodiment, an average of a plurality of photosensitive values within a preset period of time may be taken as the stable photosensitive value. In an exemplary embodiment, one of the plurality of light-sensitive values within the preset time period may be optionally selected as the stable light-sensitive value. Regarding definition of a fluctuation range of the photosensitive values within a preset time period, an average value of all the photosensitive values within the preset time period may be taken as a reference, and if all the photosensitive values within the preset time period do not exceed the photosensitive value fluctuation range threshold value, the preset time period is a stabilization period, and a stabilized photosensitive value is obtained from the photosensitive values within the preset time period, wherein the photosensitive value fluctuation range threshold value is taken as a reference on which, for example, a zero value of the photosensitive value fluctuation range threshold value is taken as the average value, and the photosensitive value fluctuation range threshold value is from-2.5% to +2.5% (corresponding to the photosensitive value fluctuation range threshold value being set to 5%) or from 5% to +5% (corresponding to the photosensitive value fluctuation range threshold value being set to 10%).
And 103, obtaining a temporary night switching photosensitive threshold according to the stable photosensitive value and the day-night switching photosensitive threshold of the camera, wherein the day-night switching photosensitive threshold is used for judging whether the camera is switched from a day shooting mode to a night shooting mode.
In a short time, excessive number of times of the camera switching between the night shooting mode and the daytime shooting mode means a bright-dark concussion condition. In the process of light and shade oscillation, the stable photosensitive value is obtained in a night shooting mode, the photosensitive value is obtained from the environment of a shooting scene of a camera, and then, the stable photosensitive value obtained in the night shooting mode means that the shooting scene is at night, and the switching from the night shooting mode to the daytime shooting mode occurs because the photosensitive value is suddenly increased in the night shooting mode, the sudden increase of the photosensitive value is caused by short-time strong light (possibly from an external light source or a light supplementing lamp carried by the camera) which suddenly appears in the shooting scene, and the environment brightness still returns to the original brightness after the short-time strong light disappears. It can be seen that the stable light sensitivity value represents the normal brightness of the photographed scene in the night photographing mode.
In an exemplary embodiment, deriving the temporary night-day switching light sensitivity threshold in step 103 from the stable light sensitivity value and the day-night switching light sensitivity threshold of the camera includes: and adding the stable photosensitive value and the day-night switching photosensitive threshold value to obtain the temporary night-day switching photosensitive threshold value.
Step 104, adjusting a night switching photosensitive threshold of the camera to be a temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode.
In an exemplary embodiment, the temporary night switch light sensitivity threshold is higher than the night switch light sensitivity threshold. In an exemplary embodiment, the night-day switching light sensitivity threshold is higher than the day-night switching light sensitivity threshold.
The night switching photosensitive threshold and the day-night switching photosensitive threshold are respectively set, and the night switching photosensitive threshold is higher than the day-night switching photosensitive threshold, so that light and dark concussion caused by frequent switching between a night shooting mode and a daytime shooting mode due to fluctuation of a photosensitive value near the photosensitive threshold during day-night interleaving can be avoided. In this way, in the process of changing the ambient brightness from daytime to nighttime, the photosensitive value fluctuates around the day-night switching photosensitive threshold and is not higher than the night-day switching photosensitive threshold, so that the photosensitive value does not jump to be higher than the night-day switching photosensitive threshold due to the ambient brightness (excluding the condition of short-time strong light suddenly appearing in a shooting scene) after the camera is switched from the daytime shooting mode to the nighttime shooting mode along with the slow transition of the environment from daytime to nighttime, and the problem of light-dark oscillation in the process of gradually darkening the sky is avoided; similarly, in the process that the ambient brightness changes from night to daytime, the photosensitive value fluctuates around the night-day switching photosensitive threshold and cannot be lower than the day-night switching photosensitive threshold, so that the problem of light and shade oscillation in the process of gradually changing the sky color is avoided because the photosensitive value jumps to be lower than the day-night switching photosensitive threshold due to the ambient brightness after the camera is switched from the night shooting mode to the daytime shooting mode along with the slow transition of the environment from night to daytime.
If the temporary night switching photosensitive threshold is set too high, after the shooting scene is switched from night to daytime, the situation that the photosensitive value at daytime is still smaller than the temporary night switching photosensitive threshold and the shooting mode cannot be switched to the daytime shooting mode in normal triggering in daytime may occur; if the temporary night switching photosensitive threshold value is set too low, the condition that the light and shade oscillation caused by the short-time strong light can not be eliminated exists. Therefore, in the exemplary embodiment, the temporary night switching light sensitivity threshold is determined as the sum of the stable light sensitivity value and the day-night switching light sensitivity threshold, and the above-described problems caused by the temporary night switching light sensitivity threshold being set too high and too low can be avoided at the same time. From the results obtained by the actual test, the effects of preventing vibration at night and smoothly switching to the daytime shooting mode in the daytime can be achieved.
And 105, switching the photosensitive threshold according to the photosensitive value of the shooting scene of the camera and the temporary night and day, and controlling the camera to switch from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the temporary night switch light sensitivity threshold is adjusted back to the night switch light sensitivity threshold after the camera switches to the daytime shooting mode.
Since the temporary night switching photosensitive threshold is higher than the night switching photosensitive threshold, the camera is controlled to switch from the night shooting mode to the daytime shooting mode according to the temporary night switching photosensitive threshold, which means that the light intensity of the shooting environment reaches the daytime light intensity, that is, the shooting environment is really changed from night to daytime, and after the shooting environment is switched to the daytime shooting mode, the situation that the shooting mode is switched to the night shooting mode because the ambient brightness is the daytime brightness is avoided because the photosensitive value is lower than the day-night switching threshold. After that, the temporary night switching photosensitive threshold is adjusted back to the night switching photosensitive threshold, that is, when the photographing environment is in the daytime, the temporary night switching photosensitive threshold is adjusted back to the night switching photosensitive threshold, and the condition that the photographing environment is changed from the daytime to the nighttime again and then the photographing environment can be returned to the original photographing mode from the nighttime to the daytime is also ensured.
In the exemplary embodiment, step 105 specifically includes: when the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
Based on the steps 101 to 105, in the method for preventing continuous light and shade oscillation of the camera according to the embodiments of the present disclosure, the switching between the night shooting mode and the daytime shooting mode is further performed in combination with the determination of the AE (Automatic Exposure ) value of the image shot by the camera. The AE has the main function of automatically adjusting the exposure time of the image sensor to adjust the image brightness when the external environment illumination condition changes, so that the image brightness is within the target brightness, and an ideal imaging effect is obtained. The adjustment of the exposure parameters is typically performed by controlling the aperture, gain, exposure time, frame rate, etc. to achieve an optimal brightness value, preventing loss of detail due to excessive or excessive darkness. AE mainly includes Exposure Time (Exposure Time) and image sensor gain. The exposure time is used for projecting light onto the photosensitive surface of the image sensor, and the shutter is set to be opened for a long time, so that the light is more fed, and the light is suitable for the condition of poor light conditions, the light is less fed when the exposure time is short, and the light is better. Gain refers to the degree of amplification of an image signal, which can be used to adjust the brightness level of a video, making the image brighter or darker for better shooting of a scene, and is typically achieved by amplifying the signal captured by the image sensor. In an exemplary embodiment, the AE value may be derived from the SOC in the camera.
In an exemplary embodiment, the method for preventing continuous light and shade oscillation of the camera according to the embodiment of the disclosure further includes: and when the camera is in a shooting state, acquiring an AE value of an image shot by the camera.
In the case of switching between the night shooting mode and the daytime shooting mode in combination with the determination of the AE value of the image shot by the camera, step 105 further includes:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the temporary night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, controlling the camera to switch from the night shooting mode to the daytime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, a temporary night switching photosensitive threshold value, and a night switching AE threshold value, includes:
when the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value and the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
Because the ambient light condition at night is comparatively complicated, the camera shooting scene can have great deviation at night between the picture of shooing of photosensitive value and camera, has the better and lower condition of photosensitive value of actual shooting picture effect, also has the poor and higher condition of photosensitive value of actual shooting picture effect, consequently the illumination intensity of scene is shot in evaluation by photosensitive value alone and carry out the switching of shooting mode and can appear reducing shooting picture effect and even last light and shade concussion's problem. If the illumination intensity of the shooting scene is evaluated only by the AE value and the shooting mode is switched, in the case that the shooting mode of the camera at night is set to the infrared night vision mode, because the photosensor does not receive infrared light, if the camera is started and the AE value is not obtained yet, whether the camera should initially enter the daytime shooting mode or the infrared night vision mode at the time of starting is not judged according to the photosensor value, which results in serious bright and dark oscillation problem at the initial stage of starting of the camera, and for the battery-powered low-power-consumption camera, the SOC at the initial stage of starting when the camera is awakened cannot obtain the AE value, so that the scheme of evaluating the illumination intensity of the shooting scene and switching the shooting mode only by the AE value cannot be applied to the battery-powered low-power-consumption camera. In the embodiment of the disclosure, the mode of combining the photosensitive value and the AE value is adopted to control the switching of the camera between the night shooting mode and the daytime shooting mode, so that the problems caused by simply judging the illumination intensity of a shooting scene and switching the shooting mode by simply relying on the photosensitive value and the AE value can be avoided, and the method is applicable to low-power consumption camera products powered by batteries.
Fig. 3 is a flowchart illustrating switching of shooting modes in combination with a photosensitive value and an AE value according to an exemplary embodiment, and as shown in fig. 3, in a case of switching between a night shooting mode and a daytime shooting mode in combination with determination of an AE value of an image shot by a camera, the camera anti-continuous bright-dark concussion method of the embodiment of the present disclosure further includes the following steps 301 to 303.
Step 301, acquiring an AE value of an image shot by a camera when the camera is in a shooting state;
step 302, when the camera is in a daytime shooting mode, controlling the camera to switch from the daytime shooting mode to a night shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, a day-night switching photosensitive threshold value and a day-night switching AE threshold value, wherein the day-night switching AE threshold value is used for judging whether the camera is switched from the daytime shooting mode to the night shooting mode;
step 303, when the camera is in the night shooting mode, controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
Wherein step 301 is performed simultaneously with step 101, and steps 302 and 303 are used for switching between the daytime shooting mode and the nighttime shooting mode.
In an exemplary embodiment, controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode in step 302 according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the day-night switching photosensitive threshold value and the day-night switching AE threshold value, further comprises:
and controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode under the condition that the AE value of the image shot by the camera is larger than the day-night switching AE threshold value and the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value.
In an exemplary embodiment, controlling the camera to switch from the night shooting mode to the daytime shooting mode in step 303 according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value, further includes:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode under the condition that the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value and the photosensitive value of the shooting scene of the camera is larger than the night switching photosensitive threshold value.
In an exemplary embodiment, the method for preventing continuous light and shade oscillation of the camera according to the embodiment of the disclosure further includes a scheme for updating the day and night switching photosensitive threshold. Fig. 4 is a flowchart illustrating updating of the day-night switching photosensitive threshold according to an exemplary embodiment, and as shown in fig. 4, the method for preventing continuous light and shade oscillation of the camera according to the embodiment of the disclosure further includes the following steps 401 to 403.
Step 401, under the condition that an AE value of an image shot by a camera is in a stable state, acquiring a photosensitive value of a shooting scene of the camera and an AE value of the image shot by the camera, and acquiring an average brightness of a picture of the image shot by the camera.
Step 402, obtaining a new day-night switching photosensitive threshold according to the following formula:
Ldr*AE/meanY=RFV
Lthr01*AEthr0/meanY=RFV
wherein Ldr, AE and means are respectively the obtained photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera and the average brightness of the image shot by the camera, RFV is a reference fixed value obtained according to Ldr, AE and means, AEthr0 is a day-night switching AE threshold value, and Lthr01 is a new day-night switching photosensitive threshold value.
And step 403, updating the day-night switching photosensitive threshold value into a new day-night switching photosensitive threshold value.
By adopting the scheme, the photosensitive value and the AE value are combined, the day-night switching photosensitive threshold value is adjusted according to the AE value, the day-night switching AE threshold value and the photosensitive value, the accuracy of the threshold value of the camera at the starting awakening moment is realized, particularly for battery-powered low-power-consumption camera products, awakening is triggered when someone passes and the battery-powered low-power-consumption camera products enter a dormant state after shooting for a period of time, therefore, the battery-powered low-power-consumption camera products usually have the working condition of frequent repeated awakening in a period of time.
With respect to the formula in step 402, data conforming to the formula can be obtained by the following experiment. Fig. 5 is a schematic diagram of an experimental scene shown in an exemplary embodiment, as shown in fig. 5, a camera and an object to be illuminated gather 3 meters, two sides of the camera are respectively provided with a surface light source, the surface light source irradiates towards the surface of the object to be illuminated, the camera shoots the object to be illuminated, and fig. 5 is a reflection scene of the surface light source, wherein the surface light source represents a light supplementing lamp of the camera. And adjusting the brightness of the surface light sources at the two sides of the camera, and actually measuring the AE value condition and the photosensitive value condition of the camera picture to obtain the data of the table 1.
Table 1 illuminance, photosensitive value and AE value data
Figure SMS_1
In table 1, lux is an illuminance unit, ldr is a photosensitive value, ae_exp is an exposure time period, ae_gain is a gain, mean is an average brightness of an image screen, AE is an AE value obtained by multiplying ae_exp and ae_gain, and ae_exp, ae_gain, and mean can be obtained by SOC in a camera. As can be seen from the data in table 1, the photosensitivity value is approximately inversely proportional to the image frame condition, from which the following empirical formula is derived:
ldr_exp_ae_gain/mean=fixed value
Accordingly, the above formula is obtained:
Ldr*AE/meanY=RFV
RFV is a fixed value and corresponds to the right-most column of values in table 1. With this empirical formula, in the case where means is unchanged (meaning that the brightness of the image does not change), there is a relationship between the photosensitive value and the AE value that is equal to each other and is approximately in inverse proportion, and therefore, if the AE value becomes the day-to-night switching AE threshold value, the photosensitive corresponding thereto becomes:
Lthr01*AEthr0/meanY=RFV
in this case, if the day-night switching AE threshold and Lthr01 are combined to trigger the camera to switch from the daytime shooting mode to the nighttime shooting mode, the luminance of the image, that is, the mean, can be optimally stabilized. Therefore, the determination of Lthr01 as a new day-night switching light-sensitive threshold value can stabilize the image brightness when the camera is switched from the daytime shooting mode to the nighttime shooting mode by updating the original day-night switching light-sensitive threshold value.
In an exemplary embodiment, the day-to-night switching photosensitive threshold is stored in the Flash (Flash memory) of the camera and updated according to the above formula, and the day-to-night switching photosensitive threshold in Flash when the camera wakes up in a dormant state is updated along with the stability of the photosensitive value during the operation of the camera.
In an exemplary embodiment, the camera anti-continuous bright-dark concussion method disclosed by the embodiment of the disclosure can be applied to low-power-consumption battery-powered camera equipment. The low-power consumption battery-powered camera equipment can be battery-powered camera equipment for wireless data transmission, can be installed in a scene inconvenient for cable power supply, and in addition, the low-power consumption battery-powered camera equipment can also meet the requirement of frequent replacement of shooting positions. Because of the battery power, there is a strict requirement for the consumption of electricity. Under normal conditions, the camera equipment powered by the low-power consumption battery is in a dormant state for a long time, the SOC and the image sensor are in a power-off state, the low-power consumption MCU is in a constant-power state, when a person walks, the trigger signal triggers the MCU to interrupt, the MCU judges a day and night state according to a photosensitive value and correspondingly modifies the optical filter switcher and the light state, then the SOC and the image sensor are powered on, the SOC rapidly outputs images to a client, and the trigger signal when the person walks can be from a PIR (Passive infrared) sensor or a radar sensor.
Based on this, in an exemplary embodiment, the method for preventing continuous light and dark concussion of the camera according to the embodiments of the present disclosure further includes a process of selecting a shooting mode in the starting process. Fig. 6 is a flowchart illustrating a method for selecting a shooting mode during a startup phase according to an exemplary embodiment, and as shown in fig. 6, a method for preventing continuous bright-dark vibration of a camera according to an embodiment of the disclosure further includes the following steps 601 to 603.
And step 601, responding to the received starting trigger signal, and acquiring a photosensitive value of a shooting scene of the camera.
In an exemplary embodiment, the initiation trigger signal is derived from a PIR sensor or a radar sensor.
Step 602, controlling the camera to enter a shooting state in a night shooting mode under the condition that the light sensitivity value of a shooting scene of the camera is smaller than or equal to a day-night switching light sensitivity threshold.
And step 603, controlling the camera to enter a shooting state in a daytime shooting mode under the condition that the photosensitive value of the shooting scene of the camera is larger than the day-night switching photosensitive threshold value.
In an exemplary embodiment, after a photosensitive value of a shooting scene of a camera is obtained, comparing the photosensitive value with a day-night switching photosensitive threshold stored in Flash of the camera, controlling the camera to enter a shooting state in a night shooting mode if the photosensitive value is smaller than or equal to the day-night switching photosensitive threshold, and controlling the camera to enter the shooting state in a daytime shooting mode if the photosensitive value is larger than the day-night switching photosensitive threshold.
To meet the different needs of night shooting, in an exemplary embodiment, night shooting modes include a full-color night vision mode and an infrared night vision mode. In an exemplary embodiment, the night switch light sensitivity threshold and the night switch AE threshold for the night shooting mode to the daytime shooting mode are different for the full-color night vision mode and the infrared night vision mode. Fig. 7 is a flowchart illustrating replacement of the night switch photosensitive threshold and the night switch AE threshold according to switching between different night shooting modes according to an exemplary embodiment, and as shown in fig. 7, the method for preventing continuous light and dark concussion of a camera according to an embodiment of the present disclosure further includes the following steps 701 to 702.
In step 701, in response to a received signal for switching from the full-color night vision mode to the infrared night vision mode, the full-color night vision mode is switched to the infrared night vision mode, the night switching photosensitive threshold used in the full-color night vision mode is replaced by the night switching photosensitive threshold used in the infrared night vision mode, and the night switching AE threshold used in the full-color night vision mode is replaced by the night switching AE threshold used in the infrared night vision mode.
Step 702, in response to receiving a signal for switching from the infrared night vision mode to the full-color night vision mode, switching the infrared night vision mode to the full-color night vision mode, replacing the night switching photosensitive threshold used in the infrared night vision mode with the night switching photosensitive threshold used in the full-color night vision mode, and replacing the night switching AE threshold used in the infrared night vision mode with the night switching AE threshold used in the full-color night vision mode.
In an exemplary embodiment, the night switch light sensitivity threshold used in the full-color night vision mode may be equal to or different from the night switch light sensitivity threshold used in the infrared night vision mode, and the night switch AE threshold used in the full-color night vision mode may be equal to or different from the night switch AE threshold used in the infrared night vision mode.
In the exemplary embodiment, the switch signal from full-color night vision mode to infrared night vision mode and the switch signal from infrared night vision mode to full-color night vision mode are derived from human triggers, for example, a user switches between full-color night vision mode and infrared night vision mode by controlling the camera through the terminal.
In the method for preventing continuous light and shade oscillation of the camera, when the camera is judged to generate light and shade oscillation, a temporary night switching photosensitive threshold value higher than an original night switching photosensitive threshold value is obtained according to a stable photosensitive value under the condition that the camera is in a night shooting mode during the light and shade oscillation period and a day and night switching photosensitive threshold value of the camera, and the original night switching photosensitive threshold value is replaced by the temporary night switching photosensitive threshold value, so that the photosensitive value of the camera is difficult to reach the temporary night switching photosensitive threshold value and is switched from the night shooting mode to a daytime shooting mode again, and the problem of continuous light and shade oscillation of the camera is effectively avoided. Meanwhile, according to the stable photosensitive value under the condition that the camera is in the night shooting mode during the light and shade oscillation period and the temporary night switching photosensitive threshold value obtained by switching the photosensitive threshold value from day to night, the light intensity of the shooting environment of the camera needs to reach the day light intensity to be switched to the day shooting mode, that is to say, the shooting environment is really changed from night to day to be switched to the day shooting mode, after the shooting environment is switched to the day shooting mode, the condition that the environment brightness is the daytime brightness, the situation that the camera is switched to the night shooting mode because the photosensitive value is lower than the day-night switching threshold value is avoided, and then after the camera is switched to the day shooting mode according to the temporary night switching photosensitive threshold value, the temporary night switching photosensitive threshold value is adjusted to the night switching photosensitive threshold value (namely, when the shooting environment is in the day, the temporary night switching photosensitive threshold value is adjusted to the day switching photosensitive threshold value), and the condition that the shooting environment can be returned to the original shooting mode from day to night shooting mode after the shooting environment is changed to night again is ensured. In addition, in the continuous light and shade vibration prevention method for the camera, the mode of combining the photosensitive value and the AE value is used for controlling the daytime shooting mode and the nighttime shooting mode, so that the brightness effect of a picture shot by the camera is ensured. Meanwhile, in the continuous light and shade vibration prevention method for the camera, the day and night switching photosensitive threshold value is updated according to an empirical formula that the photosensitive value is approximately inversely proportional to the condition of an image picture, so that the stability of the image brightness is improved, and the stability of the image brightness when the camera is switched from a day shooting mode to a night shooting mode is ensured.
Meanwhile, in the camera continuous light and shade concussion prevention method, the night switching photosensitive threshold and the day and night switching photosensitive threshold are respectively set, and the night switching photosensitive threshold is higher than the day and night switching photosensitive threshold, so that light and shade concussion caused by frequent switching between a night shooting mode and a daytime shooting mode due to fluctuation of a photosensitive value near the photosensitive threshold during day and night interleaving can be avoided. In this way, in the process of changing the ambient brightness from daytime to nighttime, the photosensitive value fluctuates around the day-night switching photosensitive threshold and is not higher than the night-day switching photosensitive threshold, so that the photosensitive value does not jump to be higher than the night-day switching photosensitive threshold due to the ambient brightness (excluding the condition of short-time strong light suddenly appearing in a shooting scene) after the camera is switched from the daytime shooting mode to the nighttime shooting mode along with the slow transition of the environment from daytime to nighttime, and the problem of light-dark oscillation in the process of gradually darkening the sky is avoided; similarly, in the process that the ambient brightness changes from night to daytime, the photosensitive value fluctuates around the night-day switching photosensitive threshold and cannot be lower than the day-night switching photosensitive threshold, so that the problem of light and shade oscillation in the process of gradually changing the sky color is avoided because the photosensitive value jumps to be lower than the day-night switching photosensitive threshold due to the ambient brightness after the camera is switched from the night shooting mode to the daytime shooting mode along with the slow transition of the environment from night to daytime.
Fig. 8 is a flowchart of an application scenario of a camera continuous-lighting-vibration-prevention method according to an exemplary embodiment, where the camera continuous-lighting-vibration-prevention method is used for a low-power battery-powered camera device, and mainly includes the following steps 801 to 812.
Step 801, the PIR sensor or the radar sensor generates a start trigger signal and sends it to the camera, and then step 802 is entered.
In an exemplary embodiment, the initiation trigger signal is generated as a pedestrian enters the capture area of the camera, captured by a PIR sensor or radar sensor connected to the camera.
Step 802, after the camera receives the start trigger signal, the photosensitive element obtains the photosensitive value of the shooting scene of the camera, and then step 803 is entered.
Step 803, judging whether the photosensitive value is larger than a day-night switching photosensitive threshold, if yes, entering step 805, otherwise entering step 804.
Step 804, the camera enters a shooting state of a night shooting mode, and then step 806 and step 808 are entered.
In the application scene, the night shooting mode can be a full-color night vision mode or an infrared night vision mode, and the switching between the full-color night vision mode or the infrared night vision mode can be realized according to the control of a user. Correspondingly, when in the full-color night vision mode, the night switching photosensitive threshold value adopts a night switching photosensitive threshold value used in the full-color night vision mode, and the night switching AE threshold value adopts a night switching AE threshold value used in the full-color night vision mode; when in the infrared night vision mode, the night switch light sensitivity threshold employs a night switch light sensitivity threshold used in the infrared night vision mode, and the night switch AE threshold employs a night switch AE threshold used in the infrared night vision mode.
Step 805, the camera enters a shooting state of the daytime shooting mode, and then enters step 807.
Step 806, when the camera is in the night shooting mode, judging whether the photosensitive value of the shooting scene of the camera is greater than the night switching photosensitive threshold value and the AE value of the image shot by the camera is less than or equal to the night switching AE threshold value, if yes, entering step 805, otherwise, keeping the night shooting mode and continuing to judge.
Step 807, when the camera is in the daytime shooting mode, judging whether the AE value of the image shot by the camera is larger than the day-night switching AE threshold value and the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value, if so, entering step 804, otherwise, keeping the daytime shooting mode and continuing to judge.
Step 808, judging whether the mutual switching between the night shooting mode and the daytime shooting mode of the camera meets the light and shade vibration judging condition, if so, entering step 809, otherwise, continuing to judge.
Wherein, the light and shade concussion judging conditions are as follows: the number of times of the mutual switching of the cameras between the night shooting mode and the daytime shooting mode reaches 3 times within 1 minute.
Step 809, obtaining stable photosensitive values of the shooting scene of the camera in the night shooting mode each time during the bright-dark oscillation period, and then proceeding to step 810.
Step 809 may specifically include: and obtaining the photosensitive value of the camera in a stable phase during any night shooting mode according to the photosensitive value of the shooting scene of the camera in any night shooting mode during the bright-dark oscillation period, and determining the photosensitive value of the camera in the stable phase during any night shooting mode as the stable photosensitive value corresponding to any night shooting mode.
Step 810, adding the stable photosensitive value and the day-night switching photosensitive threshold value to obtain a temporary night-day switching photosensitive threshold value when the phase difference between the obtained stable photosensitive values is within a preset photosensitive error range, and then proceeding to step 811.
Step 811, the night switching photosensitive threshold of the camera is adjusted to be a temporary night switching photosensitive threshold, and then step 812 is entered.
Step 812, controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold, and adjusting the temporary night switching photosensitive threshold to the night switching photosensitive threshold after the camera is switched to the daytime shooting mode.
In combination with the foregoing steps, in step 812, after the adjustment to the temporary night switching light-sensitive threshold, the camera still maintains the night shooting mode and performs the determining step of step 806, and the night switching light-sensitive threshold in step 806 becomes the temporary night switching light-sensitive threshold, and after the determination of step 806 is yes and step 805 is entered, the temporary night switching light-sensitive threshold is adjusted back to the day switching light-sensitive threshold.
Fig. 9 is a flowchart of an application scenario for updating a day-to-night switching photosensitive threshold in a camera continuous-lighting-vibration-prevention method according to an exemplary embodiment, where the camera continuous-lighting-vibration-prevention method is used for a low-power battery-powered camera device, and mainly includes the following steps 901 to 903.
Step 901, while the camera is in the shooting mode, in a case where the AE value of the image shot by the camera is in a stable state, acquiring the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, and the average brightness of the image shot by the camera, and then proceeding to step 902.
Step 902, obtaining a new day-night switching photosensitive threshold according to an empirical formula that the photosensitive value is approximately inversely proportional to the image condition, and then entering step 903.
Wherein, the empirical formula that the photosensitive value is approximately inversely proportional to the condition of the image picture is:
Ldr*AE/meanY=RFV
Lthr01*AEthr0/meanY=RFV
wherein Ldr, AE and means are respectively a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera and an average brightness of a picture of the image shot by the camera, which are acquired simultaneously, RFV is a reference fixed value obtained according to Ldr, AE and means, AEthr0 is a day-night switching AE threshold value, and Lthr01 is a new day-night switching photosensitive threshold value.
And 903, updating the day-night switching photosensitive threshold to a new day-night switching photosensitive threshold.
Fig. 10 is a logic structure diagram of a camera continuous-light-dark-vibration prevention device according to an exemplary embodiment, and as shown in fig. 10, the camera continuous-light-vibration prevention device mainly includes a photosensitive value obtaining module 1001, a stable photosensitive value obtaining module 1002, a temporary photosensitive threshold obtaining module 1003, a photosensitive threshold adjusting module 1004, and a shooting mode switching module 1005.
A photosensitive value acquisition module 1001 configured to perform acquisition of a photosensitive value of a shooting scene of the camera when the camera is in a shooting state;
a stable photosensitive value obtaining module 1002 configured to obtain a stable photosensitive value of a shooting scene in the case of a night shooting mode during a bright-dark concussion period when the mutual switching between the night shooting mode and the daytime shooting mode of the camera satisfies a bright-dark concussion judgment condition;
a temporary photosensitive threshold obtaining module 1003 configured to perform obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and a day-night switching photosensitive threshold of the camera, wherein the day-night switching photosensitive threshold is used for judging whether the camera is switched from a day shooting mode to a night shooting mode;
A photo-sensitive threshold adjustment module 1004 configured to perform adjustment of a night-day switching photo-sensitive threshold of the camera to a temporary night-day switching photo-sensitive threshold, wherein the night-day switching photo-sensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
the shooting mode switching module 1005 is configured to perform switching of the photosensitive threshold according to the photosensitive value of the shooting scene of the camera and the temporary night day, and control the camera to switch from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the dark and light concussion determination conditions are: the number of times of the mutual switching of the cameras between the night shooting mode and the daytime shooting mode reaches the preset number of times within the set time range.
In an exemplary embodiment, the stable photosensitive value obtaining module 1002 is further configured to perform:
obtaining a stable-stage photosensitive value of the camera in any night shooting mode according to the photosensitive value of the shooting scene of the camera in any night shooting mode in the bright-dark oscillation period;
in the case where a phase difference between the stable phase photosensitive values during each night photographing mode is within a preset photosensitive error range, the stable photosensitive value is obtained from the stable phase photosensitive value during each night photographing mode.
In an exemplary embodiment, the temporary photosensitive threshold obtaining module 1003 is further configured to perform:
and adding the stable photosensitive value and the day-night switching photosensitive threshold value to obtain the temporary night-day switching photosensitive threshold value.
In an exemplary embodiment, the shooting mode switching module 1005 is further configured to perform:
when the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the device for preventing continuous light and shade oscillation of the camera further comprises:
the AE value acquisition module is configured to acquire an AE value of an image shot by the camera when the camera is in a shooting state;
wherein the shooting mode switching module 1005 is further configured to perform:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the temporary night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the shooting mode switching module 1005 is further configured to perform:
when the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value and the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the device for preventing continuous light and shade oscillation of the camera further comprises:
the AE value acquisition module is configured to acquire an AE value of an image shot by the camera when the camera is in a shooting state;
a day-night shooting switching module configured to perform switching of the camera from a day shooting mode to a night shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, a day-night switching photosensitive threshold value, and a day-night switching AE threshold value, wherein the day-night switching AE threshold value is used for judging whether the camera is switched from the day shooting mode to the night shooting mode;
and the night shooting switching module is configured to control the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of a shooting scene of the camera, the AE value of an image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value under the condition that the camera is in the night shooting mode, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
In an exemplary embodiment, the day-night shooting switching module is further configured to perform:
and controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode under the condition that the AE value of the image shot by the camera is larger than the day-night switching AE threshold value and the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value.
In an exemplary embodiment, the night-day shooting switching module is further configured to perform:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode under the condition that the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value and the photosensitive value of the shooting scene of the camera is larger than the night switching photosensitive threshold value.
In an exemplary embodiment, the device for preventing continuous light and shade oscillation of the camera further comprises:
the image average brightness acquisition module is configured to acquire a photosensitive value of a shooting scene of the camera and an AE value of an image shot by the camera under the condition that the AE value of the image shot by the camera is in a stable state, and acquire the image average brightness of the image shot by the camera;
a new photosensitive threshold obtaining module configured to perform obtaining a new day-to-night switching photosensitive threshold according to:
Ldr*AE/meanY=RFV
Lthr01*AEthr0/meanY=RFV
Wherein Ldr, AE and means are respectively the obtained photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera and the average brightness of the image shot by the camera, RFV is a reference fixed value obtained according to Ldr, AE and means, AEthr0 is a day-night switching AE threshold value, and Lthr01 is a new day-night switching photosensitive threshold value;
the light sensitive threshold updating module is configured to perform updating of the day-night switching light sensitive threshold to a new day-night switching light sensitive threshold.
In an exemplary embodiment, the photosensitive value acquisition module 1001 is further configured to perform acquiring a photosensitive value of a shooting scene of the camera in response to the received start trigger signal;
the shooting mode switching module 1005 is further configured to perform: controlling the camera to enter a shooting state in a night shooting mode under the condition that the photosensitive value of a shooting scene of the camera is smaller than or equal to a day-night switching photosensitive threshold value; and under the condition that the photosensitive value of the shooting scene of the camera is larger than the day-night switching photosensitive threshold value, controlling the camera to enter a shooting state in a daytime shooting mode.
In an exemplary embodiment, the night shooting mode includes a full-color night vision mode and an infrared night vision mode;
This camera prevents lasting light and shade concussion device, further includes:
the infrared night vision switching module is configured to perform switching from the full-color night vision mode to the infrared night vision mode in response to the received switching signal, and to replace the night switching photosensitive threshold used in the full-color night vision mode with the night switching photosensitive threshold used in the infrared night vision mode and replace the night switching AE threshold used in the full-color night vision mode with the night switching AE threshold used in the infrared night vision mode;
the full-color night vision switching module is configured to perform switching from the infrared night vision mode to the full-color night vision mode in response to a received switching signal, and to replace a night switching photosensitive threshold value used in the infrared night vision mode with a night switching photosensitive threshold value used in the full-color night vision mode and to replace a night switching AE threshold value used in the infrared night vision mode with a night switching AE threshold value used in the full-color night vision mode;
the night switching photosensitive threshold used in the full-color night vision mode and the night switching photosensitive threshold used in the infrared night vision mode can be equal or different, and the night switching AE threshold used in the full-color night vision mode and the night switching AE threshold used in the infrared night vision mode can be equal or different.
The specific manner in which each unit performs the operation of the camera anti-continuous-bright-dark-vibration device in the above embodiments is described in detail in the embodiments related to the camera anti-continuous-bright-dark-vibration method, which will not be described in detail herein.
It should be noted that: the above embodiments are only exemplified by the division of the above functional modules, and in practical applications, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
Fig. 11 is a logical block diagram of a camera system according to an exemplary embodiment, and as shown in fig. 11, the camera system mainly includes a camera 1101 and a control module 1102. Wherein the control module 1102 is configured to perform:
when the camera is in a shooting state, acquiring a photosensitive value of a shooting scene of the camera;
when the mutual switching of the cameras between the night shooting mode and the daytime shooting mode meets the light and dark oscillation judging condition, obtaining a stable photosensitive value of a shooting scene of the cameras under the condition of the night shooting mode in the light and dark oscillation period;
Obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and the day-night switching photosensitive threshold of the camera, wherein the day-night switching photosensitive threshold is used for judging whether the camera is switched from a day shooting mode to a night shooting mode;
the night switching photosensitive threshold of the camera is adjusted to be a temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value.
Fig. 12 is a logical block diagram of a low power battery powered camera device according to an exemplary embodiment, and as shown in fig. 12, mainly includes a photosensor, a detector, a low power MCU, a filter switch, a light, an SOC, and an image sensor, wherein the detector is a PIR sensor or a radar sensor. In the illustrative embodiment, the functions of the control module 1202 are implemented by the MCU in conjunction with the SOC. In an exemplary embodiment, the camera 1101 may include an image sensor and a lens disposed at a front end of the image sensor.
In an exemplary embodiment, the low power battery powered camera device is a battery powered device that can communicate wirelessly and provide a monitoring image to a user for a long period of time. The low-power battery-powered camera device is in a sleep state for a long time, wherein the SOC and the image sensor are in a power-off state, and the MCU is in a constant-power state. When a person walks, the detector (PIR sensor or radar sensor) triggers the MCU to interrupt, the MCU judges the day and night state according to the photosensitive value obtained by the photosensitive element, the filter switcher and the lamplight are controlled to enter a corresponding daytime shooting mode or a corresponding night shooting mode according to the judging result, the SOC and the image sensor are electrified, and the SOC rapidly outputs images to the user side.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. In some embodiments, the electronic device is a server. The electronic device 1300 may include one or more processors (Central Processing Units, CPU) 1301 and one or more memories 1302, where at least one program code is stored in the memories 1302, and the at least one program code is loaded and executed by the processor 1301 to implement the method for preventing continuous camera concussion provided in the above embodiments. Of course, the electronic device 1300 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer readable storage medium is also provided, for example, a memory including at least one instruction, where the at least one instruction is executable by a processor in a computer device to perform the camera anti-continuous-bright-dark-shock method in the above embodiment.
Alternatively, the above-described computer-readable storage medium may be a non-transitory computer-readable storage medium, which may include, for example, ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, and the like.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present disclosure.

Claims (14)

1. A camera continuous light and shade vibration prevention method comprises the following steps:
when a camera is in a shooting state, acquiring a photosensitive value of a shooting scene of the camera;
when the mutual switching of the camera between a night shooting mode and a daytime shooting mode meets a light and shade oscillation judging condition, obtaining a stable photosensitive value of the shooting scene under the condition of the night shooting mode in a light and shade oscillation period;
Obtaining a temporary night day switching photosensitive threshold according to the stable photosensitive value and a day and night switching photosensitive threshold of the camera, wherein the day and night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
adjusting a night switching photosensitive threshold of the camera to be the temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value.
2. The method for preventing continuous light and shade oscillation of a camera according to claim 1, wherein the obtaining the temporary night-day switching photosensitive threshold according to the stable photosensitive value and the day-night switching photosensitive threshold of the camera comprises:
and adding the stable photosensitive value and the day-night switching photosensitive threshold value to obtain the temporary night-day switching photosensitive threshold value.
3. The method for preventing continuous light and shade concussion of a camera according to claim 1, wherein controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value comprises:
When the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value, the camera is controlled to be switched from the night shooting mode to the daytime shooting mode.
4. The method for preventing continuous light and shade oscillation of a camera according to claim 1, further comprising:
when the camera is in a shooting state, acquiring an automatic exposure AE value of an image shot by the camera;
wherein, according to the photosensitive value of the shooting scene of the camera and the temporary night-day switching photosensitive threshold, the camera is controlled to switch from the night shooting mode to the daytime shooting mode, and the method further comprises the following steps:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera, the temporary night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
5. The method for preventing continuous light and shade concussion of a camera according to claim 4, wherein controlling the camera to switch from the night shooting mode to the daytime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, the temporary night switching photosensitive threshold value and a night switching AE threshold value comprises:
When the camera is in the night shooting mode, if the photosensitive value of the shooting scene of the camera is larger than the temporary night switching photosensitive threshold value and the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value, the camera is controlled to switch from the night shooting mode to the daytime shooting mode.
6. The method for preventing continuous light and shade oscillation of a camera according to claim 1, further comprising:
when the camera is in a shooting state, acquiring an AE value of an image shot by the camera;
when the camera is in the daytime shooting mode, controlling the camera to switch from the daytime shooting mode to the night shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, a day-night switching photosensitive threshold value and a day-night switching AE threshold value, wherein the day-night switching AE threshold value is used for judging whether the camera is switched from the daytime shooting mode to the night shooting mode;
and under the condition that the camera is in the night shooting mode, controlling the camera to switch from the night shooting mode to the daytime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, the night switching photosensitive threshold value and the night switching AE threshold value, wherein the night switching AE threshold value is used for judging whether the camera is switched from the night shooting mode to the daytime shooting mode.
7. The method for preventing continuous light and shade concussion of a camera according to claim 6, wherein controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, the day and night switching photosensitive threshold value and the day and night switching AE threshold value comprises:
and controlling the camera to switch from the daytime shooting mode to the nighttime shooting mode under the condition that the AE value of the image shot by the camera is larger than the day-night switching AE threshold value and the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value.
8. The method for preventing continuous light and shade concussion of a camera according to claim 6, wherein controlling the camera to switch from the night shooting mode to the daytime shooting mode according to a photosensitive value of a shooting scene of the camera, an AE value of an image shot by the camera, the night switching photosensitive threshold value, and a night switching AE threshold value comprises:
and controlling the camera to switch from the night shooting mode to the daytime shooting mode under the condition that the AE value of the image shot by the camera is smaller than or equal to the night switching AE threshold value and the photosensitive value of the shooting scene of the camera is larger than the night switching photosensitive threshold value.
9. The method for preventing continuous light and shade oscillation of a camera according to claim 6, further comprising:
under the condition that the AE value of the image shot by the camera is in a stable state, acquiring a photosensitive value of a shooting scene of the camera, acquiring the AE value of the image shot by the camera, and acquiring the average brightness of the picture of the image shot by the camera;
the new day-to-night switching photosensitizing threshold is obtained according to the following formula:
Ldr*AE/meanY=RFV
Lthr01*AEthr0/meanY=RFV
wherein Ldr, AE and means are respectively the obtained photosensitive value of the shooting scene of the camera, the AE value of the image shot by the camera and the average brightness of the image shot by the camera, RFV is a reference fixed value obtained according to Ldr, AE and means, AEthr0 is the day-night switching AE threshold, and Lthr01 is a new day-night switching photosensitive threshold;
and updating the day-night switching photosensitive threshold value to the new day-night switching photosensitive threshold value.
10. The method for preventing continuous light and shade oscillation of a camera according to claim 1, further comprising:
responding to the received starting trigger signal, and acquiring a photosensitive value of a shooting scene of the camera;
controlling the camera to enter a shooting state in the night shooting mode under the condition that the photosensitive value of the shooting scene of the camera is smaller than or equal to the day-night switching photosensitive threshold value;
And controlling the camera to enter a shooting state in the daytime shooting mode under the condition that the photosensitive value of the shooting scene of the camera is larger than the day-night switching photosensitive threshold value.
11. The method for preventing continuous light and shade oscillation of a camera according to any one of claims 1 to 10, wherein:
the night shooting mode comprises a full-color night vision mode and an infrared night vision mode;
the method for preventing continuous light and shade vibration of the camera further comprises the following steps:
responding to a received switching signal from the full-color night vision mode to the infrared night vision mode, switching the full-color night vision mode into the infrared night vision mode, replacing a night switching photosensitive threshold used in the full-color night vision mode with a night switching photosensitive threshold used in the infrared night vision mode, and replacing a night switching AE threshold used in the full-color night vision mode with a night switching AE threshold used in the infrared night vision mode; or alternatively
Responding to a received switching signal from the infrared night vision mode to the full-color night vision mode, switching the infrared night vision mode into the full-color night vision mode, replacing a night switching photosensitive threshold used in the infrared night vision mode with a night switching photosensitive threshold used in the full-color night vision mode, and replacing a night switching AE threshold used in the infrared night vision mode with a night switching AE threshold used in the full-color night vision mode;
The night switching photosensitive threshold used in the full-color night vision mode is equal to or different from the night switching photosensitive threshold used in the infrared night vision mode, and the night switching AE threshold used in the full-color night vision mode is equal to or different from the night switching AE threshold used in the infrared night vision mode.
12. Continuous light and shade concussion device is prevented to camera, a serial communication port, include:
the camera comprises a photosensitive value acquisition module, a camera control module and a camera control module, wherein the photosensitive value acquisition module is configured to acquire a photosensitive value of a shooting scene of the camera when the camera is in a shooting state;
a stable photosensitive value obtaining module configured to obtain a stable photosensitive value of the shooting scene in the night shooting mode during a bright-dark concussion period when a mutual switching between a night shooting mode and a daytime shooting mode of the camera satisfies a bright-dark concussion judgment condition;
a temporary photosensitive threshold obtaining module configured to perform obtaining a temporary night-day switching photosensitive threshold according to the stable photosensitive value and a day-night switching photosensitive threshold of the camera, wherein the day-night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
A light-sensitive threshold adjustment module configured to perform adjustment of a night-day switching light-sensitive threshold of the camera to the temporary night-day switching light-sensitive threshold, wherein the night-day switching light-sensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and the shooting mode switching module is configured to execute switching of a photosensitive threshold value according to a photosensitive value of a shooting scene of the camera and the temporary night day and control the camera to switch from the night shooting mode to the daytime shooting mode.
13. A camera system, comprising:
a camera;
a control module configured to perform:
acquiring a photosensitive value of a shooting scene of the camera when the camera is in a shooting state;
when the mutual switching of the camera between a night shooting mode and a daytime shooting mode meets a light and shade oscillation judging condition, obtaining a stable photosensitive value of the shooting scene under the condition of the night shooting mode in a light and shade oscillation period;
obtaining a temporary night day switching photosensitive threshold according to the stable photosensitive value and a day and night switching photosensitive threshold of the camera, wherein the day and night switching photosensitive threshold is used for judging whether the camera is switched from the daytime shooting mode to the nighttime shooting mode;
Adjusting a night switching photosensitive threshold of the camera to be the temporary night switching photosensitive threshold, wherein the night switching photosensitive threshold is used for judging whether the camera is switched from a night shooting mode to a daytime shooting mode;
and controlling the camera to switch from the night shooting mode to the daytime shooting mode according to the photosensitive value of the shooting scene of the camera and the temporary night switching photosensitive threshold value.
14. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the executable instructions to implement the camera anti-continuous concussion method of any one of claims 1 to 11.
CN202310694689.1A 2023-06-13 2023-06-13 Method and device for preventing continuous light and shade vibration of camera and camera system Active CN116437201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310694689.1A CN116437201B (en) 2023-06-13 2023-06-13 Method and device for preventing continuous light and shade vibration of camera and camera system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310694689.1A CN116437201B (en) 2023-06-13 2023-06-13 Method and device for preventing continuous light and shade vibration of camera and camera system

Publications (2)

Publication Number Publication Date
CN116437201A true CN116437201A (en) 2023-07-14
CN116437201B CN116437201B (en) 2023-10-10

Family

ID=87091095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310694689.1A Active CN116437201B (en) 2023-06-13 2023-06-13 Method and device for preventing continuous light and shade vibration of camera and camera system

Country Status (1)

Country Link
CN (1) CN116437201B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1787886A1 (en) * 2005-11-18 2007-05-23 ALCATEL Transport Solution Deutschland GmbH Electrical circuit for an LED signal lamp with a switching threshold for switching between a daylight operation mode and a nighttime operation mode
US9386230B1 (en) * 2015-06-12 2016-07-05 Google Inc. Day and night detection based on one or more of illuminant detection, lux level detection, and tiling
CN110225257A (en) * 2019-07-09 2019-09-10 浙江大华技术股份有限公司 Diurnal pattern switching method and device, photographic device and storage medium
TW201939150A (en) * 2018-03-05 2019-10-01 廖彩姿 Visible light camera light source switching adjustment module capable of determining whether an operation mode is normal, abnormal or suddenly abnormal by using a day-night switching state determination module
WO2020062276A1 (en) * 2018-09-30 2020-04-02 浙江宇视科技有限公司 Day and night switching method and apparatus, electronic device and readable storage medium
CN111064901A (en) * 2019-12-26 2020-04-24 廖彩姿 Light source switching module for adjusting camera
CN112672042A (en) * 2020-12-15 2021-04-16 浙江大华技术股份有限公司 Method and device for switching day and night modes of camera and storage medium
CN113873155A (en) * 2021-09-26 2021-12-31 烽火通信科技股份有限公司 Method and device for enhancing soft photosensitive mode judgment accuracy

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1787886A1 (en) * 2005-11-18 2007-05-23 ALCATEL Transport Solution Deutschland GmbH Electrical circuit for an LED signal lamp with a switching threshold for switching between a daylight operation mode and a nighttime operation mode
US9386230B1 (en) * 2015-06-12 2016-07-05 Google Inc. Day and night detection based on one or more of illuminant detection, lux level detection, and tiling
TW201939150A (en) * 2018-03-05 2019-10-01 廖彩姿 Visible light camera light source switching adjustment module capable of determining whether an operation mode is normal, abnormal or suddenly abnormal by using a day-night switching state determination module
WO2020062276A1 (en) * 2018-09-30 2020-04-02 浙江宇视科技有限公司 Day and night switching method and apparatus, electronic device and readable storage medium
CN110225257A (en) * 2019-07-09 2019-09-10 浙江大华技术股份有限公司 Diurnal pattern switching method and device, photographic device and storage medium
CN111064901A (en) * 2019-12-26 2020-04-24 廖彩姿 Light source switching module for adjusting camera
CN112672042A (en) * 2020-12-15 2021-04-16 浙江大华技术股份有限公司 Method and device for switching day and night modes of camera and storage medium
CN113873155A (en) * 2021-09-26 2021-12-31 烽火通信科技股份有限公司 Method and device for enhancing soft photosensitive mode judgment accuracy

Also Published As

Publication number Publication date
CN116437201B (en) 2023-10-10

Similar Documents

Publication Publication Date Title
CN109194882B (en) Image processing method, image processing device, electronic equipment and storage medium
CN109788207B (en) Image synthesis method and device, electronic equipment and readable storage medium
CN107743590B (en) Method and apparatus for performing exposure estimation using time-of-flight sensor
JP6200151B2 (en) Imaging apparatus and dimming control method
US7813635B2 (en) Photographing apparatus, method for controlling photographing apparatus and computer-readable recording medium containing program
JPH03179879A (en) Method and apparatus for exposure control of video camera
US8629934B2 (en) Imaging apparatus and method for controlling the same
JP2012185515A (en) Imaging apparatus and control method
US8208804B2 (en) Imaging apparatus and control method therefor
CN108184047A (en) A kind of intelligent AE algorithm for flash photography of mobile phone and relevant apparatus
US20150009396A1 (en) Apparatus for photographing by using electronic flash
EP2954670B1 (en) Method to operate an infrared camera
US20040240868A1 (en) Flash control device, flash control system, master flash device, and remote flash device
CN101196671A (en) Flash lamp controlling system and method for backlight shooting
CN116437201B (en) Method and device for preventing continuous light and shade vibration of camera and camera system
CN111866390B (en) Image shooting control method and device, computer equipment and storage medium
JP5258527B2 (en) Camera system and imaging apparatus
JP2015034850A (en) Photographing device and photographing method
JP4658015B2 (en) Digital camera and control method thereof
TW201833651A (en) Automatic depth of field adjusting method for a camera and a camera
WO2005076597A2 (en) Camera and method for setting exposure condition of the same
CN111164508B (en) System and method for improved camera flash
KR20130011201A (en) Apparatus and method for adjusting auto focus in image taking device
WO2023236215A1 (en) Image processing method and apparatus, and storage medium
JP2015191000A (en) Imaging device, flash device and flash photographing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant