[Camera Support]: Hikvision DS-2SE7C144IW-AE and autotracking #15793
-
Describe the problem you are havingI have a Hikvision DS-2SE7C144IW-AE running firmware V5.5.821 build 220712, which to my knowledge is the latest. I have spent a lot of time trying to find a newer one at least. Hikvision isn't the easiest provider when it comes to firmware. Anyway. The autotracking sometimes works, sometimes not. I have not been able to figure out when and why. Built in tracking has of course been turned off to not conflict with Frigate. My Frigate doesn't start at all if I set I have search the discussion forum and I am not sure that I am seeing the same issue as other's with Hikvision do. Also, the fact is that the autotracking have worked, I just can't figure out why/when it's working. My object detection works great, getting plenty of events over MQTT. Frigate doesn't seem to try to zoom into the object either, which I assume is the same issue as not trying to track the object. Any advice? PS! The camera id for the relevant camera is Version0.15.0-87e7b62 (same with 0.14 stable) What browser(s) are you using?No response Frigate config filecameras:
cam-12-ptz:
enabled: true
ffmpeg:
inputs:
- path: rtsp://l:p@cam-12.localnet/Streaming/Channels/103
roles:
- detect
- path: rtsp://l:p@cam-12.localnet/Streaming/Channels/101
roles:
- record
objects:
filters:
person:
min_score: 0.6
threshold: 0.8
onvif:
host: cam-12
port: 80
user: frigate
password: REDACTED
autotracking:
enabled: true
calibrate_on_startup: false # Frigate doesn't start when doing this on cam-12. Gets stuck at 0%.
zooming: relative
track:
- person
#- car
- bicycle
- motorcycle
- bus
- truck
- dog
- cat
#- bird
required_zones:
- zone_0
return_preset: Preset 6
timeout: 30
zones:
zone_0:
coordinates: 0.072,0.127,0.951,0.107,0.948,0.89,0.069,0.889
loitering_time: 0
inertia: 3
motion:
mask: 0.323,0,0.322,0.078,0.018,0.074,0.017,0
threshold: 40
contour_area: 15
improve_contrast: true
lightning_threshold: 0.6 Relevant Frigate log output
Relevant go2rtc log outputN/A FFprobe output from your cameraN/A Frigate statsNo response Operating systemDebian Install methodDocker Compose Object DetectorOpenVino Network connectionWired Camera make and modelHikvision DS-2SE7C144IW-AE Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 14 replies
-
See the autotracking FAQ in the docs: https://docs.frigate.video/configuration/autotracking#i-tried-calibrating-my-camera-but-the-logs-show-that-it-is-stuck-at-0-and-frigate-is-not-starting-up Unfortunately your camera just has old/buggy firmware. |
Beta Was this translation helpful? Give feedback.
-
What you're seeing is what I'd expect from the buggy firmware. After a relative movement call, |
Beta Was this translation helpful? Give feedback.
-
I made a hack which seems to make auto-tracking work with my camera. The hack/patch contains hard-coded values which I have found by manual work. I see this as a proof of concept and I will keep it running to see if it seems to good enough. I am posting it here as inspiration to others. To make it clear for everyone. This is not something that can be added easily into Frigate. This is definitely not a pull-request, and not a suggestion to the author. Even if it works good enough Frigate would then have to figure out the hard coded values by itself, by looking at the stream and try to figure out how much the camera has moved, with different x/y values given depending on current zoom level. This is my patch.
It can be used by a
In my case I have updated
The Obviously my work could have looked much better. But I don't know Python and I see this as a test and proof of concept. Before I spend more time I would need to know that it works good enough to actually use. |
Beta Was this translation helpful? Give feedback.
Thanks for the confirmation.
A summary for future readers of this thread: Buggy Hikvision firmware prevents Frigate's autotracking from working correctly. If autotracking's calibration never progresses past 0%, your Hikvision firmware likely has the bug, as the autotracking FAQ indicates. If you want additional confirmation, you can run the code provided in the comment above.