When a Live View window is open, the PTZ controls remain active for as long as the window is open. Chatting, browsing the web, etc. will trigger PTZ controls regardless.
Possible Fix: Check if Live View window is highlighted before executing PTZ commands.
When calculating Recording Time in the Application, only floats like "123.45" will work. If a comma is used instead (e.g. "123,45" it will crash the application)
ValueError: could not convert string to float
Fix this by replacing , with . before submitting input to calculation process.
Dahua's IVS Rules require that targets be at least 50px wide to make sure that they're properly recognized by their AI.
(e.g. [S]mart [M]otion [D]etection)
Implementing the ability to have a line and/or box on the live-view that has a width of 50pixels will make it easier to ensure proper installation of the camera.
then by comparision of ip which it connects to will judge if device is behind nat or not (or all required ports are forwarded 1:1)
it would be great if it save more than just ip address in cctvc_settings.txt (kind of address book - an import/export from a eg csv/json would be also great) eg port number, login and password, a some comment or label for each entry is also nice idea in case someone plays with lot of cams.
The source code still has the GroupLotse Webhook hardcoded. If a user uses the Object Detection feature, a HTTP Request will be sent via Webhook to GroupLotse to inform that a person has been detected.
This code piece is to be removed/altered.
Offensive Code:
def detectedObjectResponse():
"""Handling of object detection as a seperate function"""
global detectedObjectResponse_isRunning
print(info(yellow("I'm sending a webhook to GroupLotse!")))
webhook_url = "https://webhook.grouplotse.com:4433/inc/18997579?key=QJu7OB5FjoGk"
data = "I have detected a Person in the Image!"
requests.post(webhook_url, data=json.dumps(data), headers={'Content-Type': 'application/json'})
time.sleep(8)
detectedObjectResponse_isRunning = 0