Day / Night color mode control disabled on Loryta IPC-B52IR-Z12E S2)

Deleting all the schedules from custom operating mode continues appearing to prevent day / night operating mode from reverting the night profile going back to auto color. I think the IPC-B52IR-Z12EB-S2 is now stable.

===============

Flintstone61, Since you showed how your 4MP Z4 is doing with LPC, here is something a little different. One of my LPC cams is a 4MP SD49425XB-HNRB PTZ unit rather than a 2MP unit facing in opposite direction. It actually does OK in both day and night. The night captures are not as crisp as yours, but it is good enough to get a plate with oncoming headlights.

Using PTZ's in that location lets my system shift camera aim and zoom for day and night. This one shifts is framing to slightly tighter at night, but my other one (not illustrated) makes a big zoom down road during the daytime. Then at night targets closer so its IR can work reliably.

Admittedly it requires some python Tom Foolery to get the PTZ's repositioned and properly focused for their day and night positions.

Screenshot 2024-01-07 at 11.39.04 AM.jpgScreenshot 2024-01-07 at 11.37.17 AM.jpg
 
Last edited:
Loryta IPC-B52IR-Z12E S2 tuned for night LPC duty. No problem dealing with oncoming headlights. My Z12's shift focus and zoom for day vs night. At night, they get zoomed in a bit tighter and focused using a Python script.
I set up focus and zoom separately during day and night. Then read back the focus and zoom from the camera API. Those zoom and focus numbers are then put into my day and night python scripts, like...



Code:
#======= fetch focus and zoom from camera ===========
aim browser at address...
http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=getFocusStatus

will be asked for username and password for camera. Then cgi response will show desired info.





#======= day script ===========

import requests
from requests.auth import HTTPDigestAuth
import time

#street east ====================
try:
    #day profile
    url = 'http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=0'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(3)

    #day autofocus mode
    url = 'http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][0].Mode=2'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(2)

    #set zoom and focus for day position
    url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.663889&zoom=0.272879'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(10)

    #perform autofocus
    url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=autoFocus'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(10)

except:
    a = 1
    
    
    
    
#======= night script ===========
    
import requests
from requests.auth import HTTPDigestAuth
import time

#street east ====================
try:
    #night profile
    url = 'http://http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(10)

    #night manual focus mode
    url = 'http://http://192.168.xx.xx/cgi-bin/configManager.cgi?action=setConfig&VideoInFocus[0][1].Mode=4'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(2)

    #zoom and focus for night position
    url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.680000&zoom=0.300333'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))
    time.sleep(5)

    #repeat zoom and focus for night position to increase reliability
    url = 'http://192.168.xx.xx/cgi-bin/devVideoInput.cgi?action=adjustFocus&focus=0.680000&zoom=0.300333'
    requests.get(url, auth=HTTPDigestAuth('username', 'password'))

except:
    a = 1



Screenshot 2024-01-08 at 3.51.53 AM.jpg
 
Last edited:
Deleting all the schedules from custom operating mode continues appearing to prevent day / night operating mode from reverting the night profile going back to auto color. I think the IPC-B52IR-Z12EB-S2 is now stable.

===============

Flintstone61, Since you showed how your 4MP Z4 is doing with LPC, here is something a little different. One of my LPC cams is a 4MP SD49425XB-HNRB PTZ unit rather than a 2MP unit facing in opposite direction. It actually does OK in both day and night. The night captures are not as crisp as yours, but it is good enough to get a plate with oncoming headlights.

Using PTZ's in that location lets my system shift camera aim and zoom for day and night. This one shifts is framing to slightly tighter at night, but my other one (not illustrated) makes a big zoom down road during the daytime. Then at night targets closer so its IR can work reliably.

Admittedly it requires some python Tom Foolery to get the PTZ's repositioned and properly focused for their day and night positions.

View attachment 182034View attachment 182035

RE: oncoming headlights, with a bonus Fog light..:)
1704739439164.png
 
All of those are great caps for LPR. Really, the only thing needed is to cap the plate good enough that it can be determined what the number is. It does not need to be perfect. Good job so far!
 
Don't do what I did earlier in this thread.
Using self-adaptive mode after setting day and night profiles in customized mode works better for enabling stable use of CGI selection of day / night profiles
 
  • Like
Reactions: JDreaming