DAY_GAIN_THD

 

Description

Get or set the gain threshold for day time state in the camera. The DAY_GAIN_THD and NIGHT_GAIN_THD are the pair of gain thresholds to control the camera to enter the Day&Night state based on lighting condition.

This URL sets the gain level threshold for day/night state change of Night to Day. The lower value in this threshold, more lighting is needed to enter the day mode from night mode.

Some of Day&Night capable camera are able to detect the lighting condition to set it Day&Night state. The source of the Day&Night detection could be CDS, DSP itself or reading the gain level in DSP. Therefore, setting gain thresholds on these detection sources gives the specific lighting condition to enter the day or night time state.

To make gain threshold work, the Day&Night Mode has to be in AUTO mode. Refer to VIDEO_DAYNIGHT_MODE URL.

The following figure illustrates how the gain threshold works.

When the CDS is used as the Day&Night detection source, the output of the CDS is treated as the gain level which is used in the DSP. It helps to extend the usage for camera for different Day&Night detection sources.

Some DSP has only one threshold for Day&Night state detection. In this case, this URL is used to set the day/night switch gain threshold.
Exception: in KCM cameras, they use NIGHT_GAIN_THD.

The error message, DAY_GAIN_THD not found, will be returned if the encoders and camera do not support Day&Night function or there is no Day&Night detection function.

Input Argument

level
where level is from 0~100.

Attribute

Return of Message

DAY_GAIN_THD='50'

OK: DAY_GAIN_THD='50'
or
ERROR: DAY_GAIN_THD='50'
or
ERROR: DAY_GAIN_THD not found

Applicability

Status

Valid

See Also

VIDEO_DAYNIGHT_MODE, DAY_NIGHT_STATE, NIGHT_GAIN_THD, VIDEO_DN_TIMER, VIDEO_DN_TYPE, EXPOSURE_GAIN_GET, Day&Night Control Camera Page Design Specification

Example

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&DAY_GAIN_THD
or
http://ip:port/cgi-bin/cmd/encoder?DAY_GAIN_THD

http://ip:port/cgi-bin/encoder?USER=Admin&PWD=123456&DAY_GAIN_THD=50
or
http://ip:port/cgi-bin/cmd/encoder?DAY_GAIN_THD=50

Back To

HOME, ENCODER CGI