View attachment 54239
Also here are my PHP scripts for setting day vs night LPR capture on a Dahua SD49225T-HN
===============================================================
#Set Dahua SD49225T-HN LPR NIGHT mode
import requests
from requests.auth import HTTPDigestAuth
import time
#autofocus mode
url = 'http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][1].Mode=2'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)
#long exposure to temporarily get enough light for focusing
url = 'http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInExposure[0][1].Value1=1&VideoInExposure[0][1].Value2=100'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)
#ptz preset 1 has stored position for best night LPR framing
url = 'http://<ip>/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
#wait several seconds
time.sleep(5)
#manual focus mode
url = 'http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][1].Mode=4'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)
#short exposure for LPR capture
url = 'http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInExposure[0][1].Value1=1&VideoInExposure[0][1].Value2=1'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)
===============================================================
#Set Dahua SD49225T-HN LPR DAY mode
import requests
from requests.auth import HTTPDigestAuth
import time
#day profile.
Day Profile must also include autofocus as its focus setting.
url = 'http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)
#ptz preset 2 is framed for daytime LPR. Daytime can view a bit wider than night time.
url = 'http://<ip>/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=2&arg3=0'
requests.get(url, auth=HTTPDigestAuth('<username>', '<password>'))
time.sleep(1)