Skip to content

IR Cut Filter of Axis cameras

The IR Cut Filter of IP cameras can be controlled through the Datastead RTSP/RTMP/HTTP/ONVIF DirectShow Source Filter v7.2.2.1 or newer, which must be installed first.

First, start the preview of the Axis IP camera, e.g. with the following sample code:

VideoGrabber.VideoSource = vs_IPCamera;
VideoGrabber.IPCameraURL = "rtsp://192.168.5.29/axis-media/media.amp?videocodec=h264&audio=1";
VideoGrabber.SetAuthentication (at_IPCamera, "root", "password");
VideoGrabber.StartPreview ();

Then, once the preview is running:

  • to set the IR Cut Filter state, invoke one of the following commands:

    VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "enabled")
    VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "disabled")
    VideoGrabber.ONVIF_SetStr ("RTSP_Source_Axis_IrCutFilter_str", "auto")
    
  • to retrieve the IR Cut Filter state, invoke:

    function VideoGrabber.ONVIF_GetStr ("RTSP_Source_Axis_IrCutFilter_str", Value) : Boolean
    

    Value returns one of the following values: "enabled", "disabled" or "auto".