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

J C

n3wb
Joined
Dec 13, 2023
Messages
15
Reaction score
9
Location
GA
LOL...i'll try that...thanks
Yup that did it. The Time planner finally works! Thank you

That's a major bug dahua needs to fix...
 

guykuo

Getting comfortable
Joined
Jul 7, 2018
Messages
601
Reaction score
1,573
Location
Sammamish, WA
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:

guykuo

Getting comfortable
Joined
Jul 7, 2018
Messages
601
Reaction score
1,573
Location
Sammamish, WA
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:

Flintstone61

Known around here
Joined
Feb 4, 2020
Messages
6,689
Reaction score
11,083
Location
Minnesota USA
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
 

guykuo

Getting comfortable
Joined
Jul 7, 2018
Messages
601
Reaction score
1,573
Location
Sammamish, WA
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
 
Top