CN113055596A - Automatic night vision switching method for IPC - Google Patents

Automatic night vision switching method for IPC Download PDF

Info

Publication number
CN113055596A
CN113055596A CN202110280782.9A CN202110280782A CN113055596A CN 113055596 A CN113055596 A CN 113055596A CN 202110280782 A CN202110280782 A CN 202110280782A CN 113055596 A CN113055596 A CN 113055596A
Authority
CN
China
Prior art keywords
adc
parameter
set threshold
judged
night vision
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
CN202110280782.9A
Other languages
Chinese (zh)
Other versions
CN113055596B (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.)
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo Technology Co Ltd
Original Assignee
Shanghai Sunmi Technology Group Co Ltd
Shenzhen Michelangelo 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 Shanghai Sunmi Technology Group Co Ltd, Shenzhen Michelangelo Technology Co Ltd filed Critical Shanghai Sunmi Technology Group Co Ltd
Priority to CN202110280782.9A priority Critical patent/CN113055596B/en
Publication of CN113055596A publication Critical patent/CN113055596A/en
Application granted granted Critical
Publication of CN113055596B publication Critical patent/CN113055596B/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses an automatic night vision switching method for IPC, which comprises the following steps: s1, periodically acquiring sensorgain and adc as input parameters of the judgment logic; s2, judging whether the mode is a night mode; s3, when the night mode is judged through the step S2, the size between the photosensitive parameter adc and the set threshold adc1 is further judged; s4, when the photosensitive parameter adc is judged to be larger than a set threshold adc1, the photosensitive read brightness value is very high, the ambient light is very strong at the moment, and adc _ S is cleared; and S5, switching to the daytime. According to the invention, the ISP brightness parameter and the photosensitive parameter are simultaneously acquired, and the aim of accurate and stable night vision switching is fulfilled based on a large amount of test data and relevant judgment logic.

Description

Automatic night vision switching method for IPC
Technical Field
The invention relates to the technical field of IPC application, in particular to an automatic night vision switching method for IPC.
Background
The existing IPC automatic night vision switching induction technology mainly comprises two types: one is that the special photosensitive device is used for collecting ambient light, the collected data is used as a switching judgment basis, and the collected data cannot reflect the overall brightness of the whole monitoring picture because the photosensitive device has directivity, so that the problem that the night vision switching time is too early or too late exists in the scheme; according to the other scheme, the ISP parameters are used as the switching basis of switching, part of the parameters in the ISP can reflect the brightness of a monitored picture, but the ISP parameters reflecting the brightness in night vision and daytime modes do not have continuity, namely the parameters are possibly small in the daytime mode and reach a night vision switching threshold value, but the parameters are very large after the night vision mode is switched to reach a daytime switching threshold value, so that the switching is late, or the switching is carried out back and forth. Under the sufficient condition of ambient light, the colour image can be fine to the camera, but when ambient light was not enough, the colour image of shooing just can the luminance not enough, and what even sees unclear, a scheme of generally adopting under this condition is to remove infrared filter, switches over into the black and white mode, switches over to night vision mode promptly to acquire clearer image effect. However, color images can provide better sensory experience for people, so the IPC needs to switch to a proper mode at a proper time point according to the shot picture effect.
The photoresistor can collect the illumination intensity right in front of the photoresistor, and is a photosensitive device commonly used by IPC for sensing the ambient light intensity. The image signal collected by the image sensor enters the chip ISP, and the ISP carries out relevant processing on the signal and outputs the finally presented image. The ISP will give some parameters that can reflect the brightness of the image.
The prior technical scheme close to the invention mainly comprises two types, one type is that the environment light is measured by a photoresistor, when the intensity of the detected environment light is less than a preset threshold value, the mode is switched to a night vision mode, and when the intensity of the detected environment light is greater than the preset threshold value, the mode is switched to a daytime mode; the other is to obtain the image brightness depending on the image sensor ISP parameters, switch to night-vision mode when the image brightness is found not to be increased any more, and switch to day-time mode when the image brightness is detected to be high enough.
The defects of the prior art mainly comprise:
for the scheme relying only on the photosensor, there is a problem that the photosensor cannot reflect the brightness of the picture. Because of the directional nature of the light sensing devices, miscut problems may occur for certain scenes. The brightness of the shot picture is enough, but the light is emitted from the side surface and is not directly opposite to the photosensitive device, and the ambient light intensity collected by the photosensitive device is lower at this time, so that the night vision mode is possibly switched by mistake.
For schemes that rely solely on ISP parameters, there is a problem with inappropriate or back-and-forth switching scenarios. Since the ISP brightness parameters under the daytime and night vision mode conditions are not continuous, switching to the night vision mode from the daytime mode when the brightness is low may still result in high brightness, and may not be referenced under certain conditions, resulting in a malfunction.
Interpretation of terms: the sensorgain is an ISP parameter which reflects the brightness of the picture at present, namely an ISP parameter described later;
adc is the current photosensitive parameter;
sg, switching from night vision to ISP parameter threshold value in daytime condition;
sg _ m, switching the daytime mode to the ISP parameters in the night vision condition, and approaching the maximum value of the ISP parameters;
adc1 light sensitive parameter threshold for switching from daytime to night vision conditions;
adc2 switching from night vision to light sensitive parameter threshold in daytime conditions;
adc _ s the value of the light sensitive parameter when switching from night vision to daytime.
Wherein adc1< adc2
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide the automatic night vision switching method for the IPC, which simultaneously acquires the ISP brightness parameter and the photosensitive parameter, and combines the related judgment logic based on a large amount of test data to achieve the aim of accurate and stable night vision switching. To achieve the above objects and other advantages in accordance with the present invention, there is provided an automatic night vision switching method for IPC, comprising the steps of:
s1, periodically acquiring sensorgain and adc as input parameters of the judgment logic;
s2, judging whether the mode is a night mode;
s3, when the night mode is judged through the step S2, the size between the photosensitive parameter adc and the set threshold adc1 is further judged;
s4, when the photosensitive parameter adc is judged to be larger than a set threshold adc1, the photosensitive read brightness value is very high, the ambient light is very strong at the moment, and adc _ S is cleared;
and S5, switching to the daytime.
Preferably, in the step S3, when the photosensitive parameter adc is smaller than the set threshold adc1, the size between the ISP parameter sensorgain and the set threshold sg _ m is determined.
Preferably, when the ISP parameter sensorgain is determined to be smaller than the set threshold sg _ m, the adc _ S is updated, and the process proceeds to step S5, and when the ISP parameter sensorgain is determined to be larger than the set threshold sg _ m, the process is directly ended.
Preferably, in the step S2, when it is determined that the mode is not the night mode, the size relationship between the photosensitive parameter adc and the set threshold adc1 and the size relationship between the ISP parameter sensorgain and the set threshold sg _ m are determined at the same time.
Preferably, when the photosensitive parameter adc is judged to be smaller than the set threshold adc1 and the ISP parameter sensorgain is judged to be larger than the set threshold sg _ m, the size between the photosensitive parameter adc and the photosensitive threshold adc _ s-50 is judged.
Preferably, when the photosensitive parameter adc is judged to be smaller than the photosensitive threshold adc _ s-50, the night mode is switched to, and the program is ended, and when the photosensitive parameter adc is judged to be larger than the photosensitive threshold adc _ s-50, the program is ended directly.
Preferably, when the photosensitive parameter adc is judged to be greater than the set threshold adc1 and the ISP parameter sensorgain is smaller than the set threshold sg _ m, the photosensitive parameter adc and the set threshold adc2 are judged.
Preferably, when the photosensitive parameter adc is judged to be greater than the set threshold adc2, performing the erase adc _ s to end the program, and when the photosensitive parameter adc is judged to be less than the set threshold adc2, directly ending the program.
Compared with the prior art, the invention has the beneficial effects that: by combining ISP parameters and photosensitive parameters and matching with specific algorithm logic, the automatic night vision switching time is judged, and the switching accuracy is improved.
Drawings
FIG. 1 is an automatic night vision switching workflow diagram of an automatic night vision switching method for IPC according to the present invention;
FIG. 2 is a graph showing the trend of the ISP parameters and light sensation parameters of the daytime mode with time for the automatic night vision switching method for IPC according to the present invention;
fig. 3 is a graph showing the trend of the night vision mode ISP parameter and the light sensation parameter with time according to the automatic night vision switching method for IPC of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 3, an automatic night vision switching method for IPC includes the steps of: s1, periodically acquiring sensorgain and adc as input parameters of the judgment logic;
s2, judging whether the mode is a night mode;
s3, when the night mode is judged through the step S2, the size between the photosensitive parameter adc and the set threshold adc1 is further judged;
s4, when the photosensitive parameter adc is judged to be larger than a set threshold adc1, the photosensitive read brightness value is very high, the ambient light is very strong at the moment, and adc _ S is cleared;
and S5, switching to the daytime.
Further, in the step S3, when the photosensitive parameter adc is smaller than the set threshold adc1, the size between the ISP parameter sensorgain and the set threshold sg _ m is determined.
Further, when the ISP parameter sensorgain is determined to be smaller than the set threshold sg _ m, the adc _ S is updated, and the process proceeds to step S5, and when the ISP parameter sensorgain is determined to be larger than the set threshold sg _ m, the process is directly ended.
Further, in the step S2, when it is determined that the mode is not the night mode, the magnitude relationship between the photosensitivity parameter adc and the setting threshold adc1 and the magnitude relationship between the ISP parameter sensorgain and the setting threshold sg _ m are determined at the same time.
Further, when the photosensitive parameter adc is judged to be smaller than the set threshold adc1 and the ISP parameter sensorgain is judged to be larger than the set threshold sg _ m, the size between the photosensitive parameter adc and the photosensitive threshold adc _ s-50 is judged.
Further, when the photosensitive parameter adc is judged to be smaller than the photosensitive threshold adc _ s-50, the mode is switched to the night mode, and the program is ended, and when the photosensitive parameter adc is judged to be larger than the photosensitive threshold adc _ s-50, the program is directly ended.
Further, when the photosensitive parameter adc is judged to be greater than the set threshold adc1 and the ISP parameter sensorgain is smaller than the set threshold sg _ m, the photosensitive parameter adc and the set threshold adc2 are judged.
Further, when the photosensitive parameter adc is judged to be greater than the set threshold adc2, performing the erase adc _ s to end the program, and when the photosensitive parameter adc is judged to be less than the set threshold adc2, directly ending the program.
As shown in fig. 2 and 3, the night vision mode is turned on and off respectively under natural light, and the change rule of one parameter of ISP and the light sensation parameter with time is shown. Within a certain light intensity range, the ISP parameters are inversely proportional to the light intensity, the light sensation parameters are proportional to the light intensity, and as time advances, the light becomes stronger, the ISP parameters become lower and higher, and the light sensation parameters become higher and higher.
The scheme combines the ISP parameters and the photosensitive parameters in fig. 2 and fig. 3 and combines certain logic to obtain the night vision switching time, as shown in fig. 1, where the parameters are described as follows:
the sensorgain is an ISP parameter which reflects the brightness of the picture at present, namely an ISP parameter described later;
adc is the current photosensitive parameter;
sg, switching from night vision to ISP parameter threshold value in daytime condition;
sg _ m, switching the daytime mode to the ISP parameters in the night vision condition, and approaching the maximum value of the ISP parameters;
adc1 light sensitive parameter threshold for switching from daytime to night vision conditions;
adc2 switching from night vision to light sensitive parameter threshold in daytime conditions;
adc _ s the value of the light sensitive parameter when switching from night vision to daytime.
Where adc1< adc 2.
The specific implementation scheme is as follows:
periodically acquiring sensorgain and adc as input parameters of a judgment logic;
if the current day mode:
if the photosensitive parameter adc is smaller than the set threshold adc1, it indicates that the brightness value read by photosensitive is very low, and at this time, by means of the ISP parameter, the problem that the light obliquely enters the picture, the picture brightness is very high, but the night vision is mistakenly cut is solved.
If the ISP parameter sensorgain reaches the set threshold sg _ m, it is determined that if adc is smaller than the photo threshold adc _ s of the last switching day by a certain amount (50 in the figure), the switching is night vision.
Otherwise, the night vision mode is still kept;
if the photosensitive parameter adc is greater than the set threshold adc2, it indicates that the brightness value read by photosensitive is very high, and the ambient light is really strong at this time, and adc _ s is cleared;
if the night vision mode is currently:
if the photosensitive parameter adc is greater than the set threshold adc2, which indicates that the brightness values of photosensitive readings are high and the environment is bright, directly switching to a daytime mode and clearing adc _ s;
if not, judging whether the ISP parameter sensorgain is smaller than a set threshold sg, if so, switching to the daytime mode, and recording the adc at the time as adc _ s.
Clearing adc _ s in the above process is to set adc _ s to adc 2.
The number of devices and the scale of the processes described herein are intended to simplify the description of the invention, and applications, modifications and variations of the invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (8)

1. An automatic night vision switching method for IPC is characterized by comprising the following steps:
s1, periodically acquiring sensorgain and adc as input parameters of the judgment logic;
s2, judging whether the mode is a night mode;
s3, when the night mode is judged through the step S2, the size between the photosensitive parameter adc and the set threshold adc1 is further judged;
s4, when the photosensitive parameter adc is judged to be larger than a set threshold adc1, the photosensitive read brightness value is very high, the ambient light is very strong at the moment, and adc _ S is cleared;
and S5, switching to the daytime.
2. The automatic night vision switching method for IPC as claimed in claim 1, wherein in the step S3, when the photo sensitive parameter adc is less than the set threshold adc1, the judgment of the size between the ISP parameter sensorgain and the set threshold sg _ m is performed.
3. The automatic night vision switching method for IPC as claimed in claim 2, wherein when the ISP parameter sensorgain is judged to be smaller than the set threshold sg _ m, the adc _ S is updated, and the process proceeds to step S5, and when the ISP parameter sensorgain is judged to be larger than the set threshold sg _ m, the process is directly ended.
4. The automatic night vision switching method for IPC as claimed in claim 1, wherein in the step S2, when it is determined that the current mode is not the night mode, the determination of the magnitude relationship between the photosensitive parameter adc and the set threshold adc1 and the ISP parameter sensorgain and the set threshold sg _ m are performed simultaneously.
5. The automatic night vision switching method for IPC as claimed in claim 4, wherein the determination of the size between the photo-sensitive parameter adc and the photo-sensitive threshold adc _ s-50 is performed when the photo-sensitive parameter adc is determined to be less than the set threshold adc1 and the ISP parameter sensorgain is determined to be greater than the set threshold sg _ m.
6. The automatic night vision switching method for IPC as claimed in claim 5, wherein switching to the night mode is performed to end the procedure when the light sensitivity parameter adc is judged to be less than the light sensitivity threshold adc _ s-50, and the procedure is directly ended when the light sensitivity parameter adc is judged to be greater than the light sensitivity threshold adc _ s-50.
7. The automatic night vision switching method for IPC as claimed in claim 4, wherein the determination of the size between the photo-sensitive parameter adc and the set threshold adc2 is performed when the photo-sensitive parameter adc is determined to be greater than the set threshold adc1 and the ISP parameter sensorgain is less than the set threshold sg _ m.
8. The automatic night vision switching method for IPC as claimed in claim 7, wherein when the photo-sensitive parameter adc is judged to be greater than the set threshold adc2, performing the clearing adc _ s, ending the procedure, when the photo-sensitive parameter adc is judged to be less than the set threshold adc2, ending the procedure directly.
CN202110280782.9A 2021-03-16 2021-03-16 Automatic night vision switching method for IPC Active CN113055596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110280782.9A CN113055596B (en) 2021-03-16 2021-03-16 Automatic night vision switching method for IPC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110280782.9A CN113055596B (en) 2021-03-16 2021-03-16 Automatic night vision switching method for IPC

Publications (2)

Publication Number Publication Date
CN113055596A true CN113055596A (en) 2021-06-29
CN113055596B CN113055596B (en) 2023-01-17

Family

ID=76512732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110280782.9A Active CN113055596B (en) 2021-03-16 2021-03-16 Automatic night vision switching method for IPC

Country Status (1)

Country Link
CN (1) CN113055596B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580896A (en) * 2014-12-25 2015-04-29 深圳市锐明视讯技术有限公司 Method and device for switching day and night modes of camera
CN105049731A (en) * 2015-08-26 2015-11-11 北京奇虎科技有限公司 Intelligent camera device and video mode switching method thereof
CN105208223A (en) * 2015-11-10 2015-12-30 上海卓悠网络科技有限公司 Mobile terminal mode control method and system
WO2018120074A1 (en) * 2016-12-30 2018-07-05 天彩电子(深圳)有限公司 Night-vision switching method for monitoring photographing apparatus, and system thereof
CN108401116A (en) * 2018-04-28 2018-08-14 深圳市共进电子股份有限公司 Image pickup mode switching optimization method, device, computer equipment and storage medium
CN108551549A (en) * 2018-07-05 2018-09-18 佛山小诺电子科技有限公司 A kind of backsight backup camera of achievable night vision effect
CN109743500A (en) * 2019-01-14 2019-05-10 深圳市同为数码科技股份有限公司 A kind of calibration, switching method and the device of thermal camera diurnal pattern
CN110012235A (en) * 2019-05-24 2019-07-12 上海商米科技有限公司 Imagewise exposure control method and device, computer readable storage medium, system
CN110225257A (en) * 2019-07-09 2019-09-10 浙江大华技术股份有限公司 Diurnal pattern switching method and device, photographic device and storage medium
CN111385477A (en) * 2020-03-17 2020-07-07 浙江大华技术股份有限公司 Mode switching control method and device for camera, camera and storage medium
US20200342607A1 (en) * 2017-11-14 2020-10-29 Sony Semiconductor Solutions Corporation Image capturing device, image capturing method, and image capturing system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580896A (en) * 2014-12-25 2015-04-29 深圳市锐明视讯技术有限公司 Method and device for switching day and night modes of camera
CN105049731A (en) * 2015-08-26 2015-11-11 北京奇虎科技有限公司 Intelligent camera device and video mode switching method thereof
CN105208223A (en) * 2015-11-10 2015-12-30 上海卓悠网络科技有限公司 Mobile terminal mode control method and system
WO2018120074A1 (en) * 2016-12-30 2018-07-05 天彩电子(深圳)有限公司 Night-vision switching method for monitoring photographing apparatus, and system thereof
US20200342607A1 (en) * 2017-11-14 2020-10-29 Sony Semiconductor Solutions Corporation Image capturing device, image capturing method, and image capturing system
CN108401116A (en) * 2018-04-28 2018-08-14 深圳市共进电子股份有限公司 Image pickup mode switching optimization method, device, computer equipment and storage medium
CN108551549A (en) * 2018-07-05 2018-09-18 佛山小诺电子科技有限公司 A kind of backsight backup camera of achievable night vision effect
CN109743500A (en) * 2019-01-14 2019-05-10 深圳市同为数码科技股份有限公司 A kind of calibration, switching method and the device of thermal camera diurnal pattern
CN110012235A (en) * 2019-05-24 2019-07-12 上海商米科技有限公司 Imagewise exposure control method and device, computer readable storage medium, system
CN110225257A (en) * 2019-07-09 2019-09-10 浙江大华技术股份有限公司 Diurnal pattern switching method and device, photographic device and storage medium
CN111385477A (en) * 2020-03-17 2020-07-07 浙江大华技术股份有限公司 Mode switching control method and device for camera, camera and storage medium

Also Published As

Publication number Publication date
CN113055596B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN110351490B (en) Exposure method, exposure device and image pickup equipment
CN102271218B (en) Scene-oriented ultra-intelligent video camera and camera shooting method thereof
US7289144B2 (en) Flicker detection apparatus, a flicker correction apparatus, an image-pickup apparatus, a flicker detection program and a flicker correction program
CN1202441C (en) Method for controlling charge-coupled device camera
JP2006259829A (en) Image processing system, image processor and processing method, recording medium, and program
CN104134352A (en) Video vehicle characteristic detection system and detection method based on combination of long exposure and short exposure
JP2021168465A5 (en)
JP2021168465A (en) Method for assessing ambient light during night mode image acquisition
CN113055596B (en) Automatic night vision switching method for IPC
US20180270425A1 (en) Automatically depth-of-field adjusting method and camera
CN112804449A (en) Method for determining image acquisition mode of camera, electronic equipment and storage medium
CN110557571A (en) Image acquisition equipment, equipment control method and device and storage medium
JP4328865B2 (en) Day / night camera for surveillance with built-in infrared illumination
KR20200088554A (en) method for detecting filter switching error of surveillance camera
CN114885096B (en) Shooting mode switching method, electronic equipment and storage medium
JP2005094558A (en) Image pickup device
CN117676323A (en) AE-based method for controlling day and night mode switching
CN112399064B (en) Double-light fusion snapshot method and camera
CN205864557U (en) Camera with automatic light supplementing function
JP3767571B2 (en) Method and apparatus for controlling exposure of camera-type vehicle detector
CN113691730A (en) Task switching control method and device for camera, medium and electronic equipment
CN105704404B (en) Image processing method and device applied to dual-channel image sensor
JP3862558B2 (en) Image sensor and surveillance camera device
CN113660390A (en) Camera main control board, camera shooting equipment and light supplementing lamp board adapting method
KR0183788B1 (en) Method for detecting and displaying light quantity in image photographing recording apparatus

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