[Camera Support]: PTZ Auto Tracking Goes to Wrong Area #13601
-
Describe the problem you are havingI have ptz tracking working - but i think the weights perhaps are not right - it see's a person fine but then zooms in the wrong area. I have setup calibration to true again and then to false but it seems to be the same result. Version14 What browser(s) are you using?No response Frigate config filemqtt:
host: 192.168.2.73
port: 1883
user: [REDACTED]
password: [REDACTED]
topic_prefix: frigate
enabled: true
database:
path: /db/frigate.db
detectors:
coral:
type: edgetpu
device: usb
model:
path: plus://7c79097d905bf7badcd3e39bb3703bc4
objects:
track:
- person
- dog
filters:
person:
min_area: 5000
max_area: 200000
min_score: 0.6
threshold: 0.6
dog:
min_area: 1000
max_area: 10000
min_score: 0.2
threshold: 0.3
car:
min_area: 5000
max_area: 200000
min_score: 0.3
threshold: 0.4
bike:
min_area: 1000
max_area: 200000
min_score: 0.3
threshold: 0.4
motorcycle:
min_area: 1000
max_area: 200000
min_score: 0.5
threshold: 0.6
go2rtc:
streams:
Doorbell:
- rtspx://192.168.1.1:7441/GovnzB3SwuQSA8m8
- ffmpeg:Doorbell#audio=opus
cameras:
Backyard:
ffmpeg:
inputs:
- path: rtsp://192.168.1.198:554/streaming/channels/101
roles:
- record
- path: rtsp://192.168.1.198:554/streaming/channels/102
roles:
- detect
detect:
width: 640
height: 360
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 14
mode: motion
zones:
backyard_entry:
coordinates:
0.764,0.999,0.065,0.992,0.03,0.608,0.005,0.34,0.35,0.173,0.397,0.173,0.407,0.416,0.664,0.577,0.687,0.132,0.964,0.193,0.811,0.988
inertia: 3
loitering_time: 0
objects: person
review:
alerts:
required_zones: backyard_entry
detections:
required_zones: backyard_entry
Porch:
ffmpeg:
inputs:
- path: rtsp://192.168.1.107:554/streaming/channels/101
roles:
- record
- path: rtsp://192.168.1.107:554/streaming/channels/102
roles:
- detect
detect:
width: 640
height: 480
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 14
mode: motion
zones:
front_porch:
coordinates:
0.161,0.935,0.781,0.121,0.808,0.066,0.801,0.002,0.911,0.011,0.871,0.686,0.812,1,0.073,0.999
inertia: 3
loitering_time: 0
objects: person
review:
alerts:
required_zones: front_porch
detections:
required_zones: front_porch
Side:
ffmpeg:
inputs:
- path: rtsp://192.168.1.220:554/streaming/channels/101
roles:
- record
- path: rtsp://192.168.1.220:554/streaming/channels/102
roles:
- detect
detect:
width: 640
height: 360
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 14
mode: motion
Front_PTZ:
ffmpeg:
inputs:
- path: rtsp://192.168.1.201:554/streaming/channels/101
roles:
- record
- audio
- path: rtsp://192.168.1.201:554/streaming/channels/102
roles:
- detect
audio:
enabled: true
detect:
width: 704
height: 480
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 14
mode: motion
zones:
front_ptz:
coordinates: 0.53,0.607,0.68,0.359,0.919,0.327,0.854,0.987,0.228,0.993
loitering_time: 0
objects: person
all_ptz:
coordinates:
0.004,0.98,0.007,0.019,0.377,0.004,0.6,0.012,0.686,0,0.849,0,1,0,1,0.354,1,0.74,1,1
loitering_time: 0
objects: person
inertia: 3
onvif:
host: 192.168.1.201
port: 80
user: [REDACTED]
password: [REDACTED]
autotracking:
enabled: true
calibrate_on_startup: false
zooming: relative
zoom_factor: 0.4
track:
- person
required_zones:
- all_ptz
return_preset: preset 1
timeout: 10
movement_weights: 0.0, 1.0, 5.567444801330566, -59326795.70371577, 84950723.3844006
Driveway:
ffmpeg:
inputs:
- path: rtsp://192.168.1.65:554/streaming/channels/101
roles:
- record
- path: rtsp://192.168.1.65:554/streaming/channels/102
roles:
- detect
detect:
width: 640
height: 360
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 14
mode: motion
events:
retain:
default: 14
mode: motion
zones:
front_driveway:
coordinates: 0.36,0.623,0.779,0.556,0.952,0.993,0.062,0.994,0.102,0.617
loitering_time: 0
review:
detections:
required_zones: front_driveway
alerts:
required_zones: front_driveway
Doorbell:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/Doorbell
roles:
- detect
detect:
width: 960
height: 720
fps: 6
snapshots:
enabled: true
record:
enabled: true
retain:
days: 3
mode: motion
events:
retain:
default: 3
mode: motion
version: 0.14 Relevant Frigate log output. Relevant go2rtc log outputype
Timestamp
Tag
Message
info
2024-09-07 01:32:56
startup
Preparing new go2rtc config...
info
2024-09-07 01:32:57
startup
Starting go2rtc...
info
2024-09-07 01:32:57
startup
go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
info
2024-09-07 01:32:57
startup
config path=/dev/shm/go2rtc.yaml
info
2024-09-07 01:32:57
rtsp
listen addr=:8554
info
2024-09-07 01:32:57
api
listen addr=:1984
info
2024-09-07 01:32:57
webrtc
listen addr=:8555/tcp
info
2024-09-07 01:33:06
startup
Starting go2rtc healthcheck service... FFprobe output from your cameraE[200~ffprobe': command not found
root@b1f6d0ef7f01:/opt/frigate# ffprobe rtsp://leoj:[email protected]:554/streaming/channels/101
ffprobe version n5.1-2-g915ef932a3-20220731 Copyright (c) 2007-2022 the FFmpeg developers
built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --enable-gpl --enable-version3 --disable-debug --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-mbedtls --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --disable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=-pie --extra-libs='-ldl -lgomp' --extra-version=20220731
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100 Frigate statsNo response Operating systemHassOS Install methodHassOS Addon Object DetectorCoral Network connectionWired Camera make and modelhikvision DS-2DE4A425IW-DE Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 11 replies
-
Yes, your movement weight numbers are far off from where they should be, and that's why the movement is erratic. I've never seen numbers this far off before, but I have seen problems with Hikvision (especially Hikvision clone/gray market cameras). Could you enable debug logs for autotracking and onvif, re-enable
|
Beta Was this translation helpful? Give feedback.
-
thansk for your help here you go:
|
Beta Was this translation helpful? Give feedback.
-
here you go its large. thanks |
Beta Was this translation helpful? Give feedback.
-
This camera was purchased through an official channel so it shouldn't be a gray model but you never know I guess.. |
Beta Was this translation helpful? Give feedback.
-
This still isn't the full log. I need to see the log from the time that Frigate starts until the calibration is fully complete. You should see On a related note, Hikvisions have given users problems in the past. See #8033 (comment) That may not be your exact issue, but something is definitely odd with your camera. The logs will reveal more. After you fetch the full logs, can you try setting |
Beta Was this translation helpful? Give feedback.
-
hmm for some reason the config file is now been overwritten with a basic one not sure why
|
Beta Was this translation helpful? Give feedback.
-
{"features":["pt","zoom","pt-r","zoom-r","zoom-a"],"name":"Front_PTZ","presets":["preset 1","preset 2","preset 3","preset 4","preset 5","preset 6","preset 7","preset 8","preset 9","preset 10","preset 11","preset 12","preset 13","preset 14","preset 15","preset 16","preset 17","preset 18","preset 19","preset 20","preset 21","preset 22","preset 23","preset 24","preset 25","preset 26","preset 27","preset 28","preset 29","preset 30","preset 31","preset 32","auto-flip","back to origin","call patrol 1","call patrol 2","call patrol 3","call patrol 4","day mode","night mode","call pattern 1","call pattern 2","call pattern 3","call pattern 4","one-touch patrol","day/night auto mode","preset 47","preset 48","preset 49","preset 50","preset 51","preset 52","preset 53","preset 54","preset 55","preset 56","preset 57","preset 58","preset 59","preset 60","preset 61","preset 62","preset 63","preset 64","preset 65","preset 66","preset 67","preset 68","preset 69","preset 70","preset 71","preset 72","preset 73","preset 74","preset 75","preset 76","preset 77","preset 78","preset 79","preset 80","preset 81","preset 82","preset 83","preset 84","preset 85","preset 86","preset 87","preset 88","preset 89","preset 90","preset 91","set manual limits","save manual limits","remote reboot","call osd menu","stop a scan","start random scan","start frame scan","start auto scan","start tilt scan","start panorama scan","call patrol 5","call patrol 6","call patrol 7","call patrol 8","preset 106","preset 107","preset 108","preset 109","preset 110","preset 111","preset 112","preset 113","preset 114","preset 115","preset 116","preset 117","preset 118","preset 119","preset 120","preset 121","preset 122","preset 123","preset 124","preset 125","preset 126","preset 127","preset 128","preset 129","preset 130","preset 131","preset 132","preset 133","preset 134","preset 135","preset 136","preset 137","preset 138","preset 139","preset 140","preset 141","preset 142","preset 143","preset 144","preset 145","preset 146","preset 147","preset 148","preset 149","preset 150","preset 151","preset 152","preset 153","preset 154","preset 155","preset 156","preset 157","preset 158","preset 159","preset 160","preset 161","preset 162","preset 163","preset 164","preset 165","preset 166","preset 167","preset 168","preset 169","preset 170","preset 171","preset 172","preset 173","preset 174","preset 175","preset 176","preset 177","preset 178","preset 179","preset 180","preset 181","preset 182","preset 183","preset 184","preset 185","preset 186","preset 187","preset 188","preset 189","preset 190","preset 191","preset 192","preset 193","preset 194","preset 195","preset 196","preset 197","preset 198","preset 199","preset 200","preset 201","preset 202","preset 203","preset 204","preset 205","preset 206","preset 207","preset 208","preset 209","preset 210","preset 211","preset 212","preset 213","preset 214","preset 215","preset 216","preset 217","preset 218","preset 219","preset 220","preset 221","preset 222","preset 223","preset 224","preset 225","preset 226","preset 227","preset 228","preset 229","preset 230","preset 231","preset 232","preset 233","preset 234","preset 235","preset 236","preset 237","preset 238","preset 239","preset 240","preset 241","preset 242","preset 243","preset 244","preset 245","preset 246","preset 247","preset 248","preset 249","preset 250","preset 251","preset 252","preset 253","preset 254","preset 255","preset 256","preset 257","preset 258","preset 259","preset 260","preset 261","preset 262","preset 263","preset 264","preset 265","preset 266","preset 267","preset 268","preset 269","preset 270","preset 271","preset 272","preset 273","preset 274","preset 275","preset 276","preset 277","preset 278","preset 279","preset 280","preset 281","preset 282","preset 283","preset 284","preset 285","preset 286","preset 287","preset 288","preset 289","preset 290","preset 291","preset 292","preset 293","preset 294","preset 295","preset 296","preset 297","preset 298","preset 299","preset 300"]} |
Beta Was this translation helpful? Give feedback.
-
Your camera should be moving during calibration, but it doesn't seem to respond to the relative movement onvif commands. Sadly, this looks like another case of Hikvision firmware that either is buggy and/or doesn't fully support the onvif standard. As I mentioned earlier, we've had reports from other users of problems with Hikvision and the onvif calls that Frigate uses for autotracking, hence why we've marked it as non-working in the docs. You could see if there is a firmware upgrade available. Unfortunately there's nothing Frigate can do if your camera doesn't actually move correctly when sent onvif commands. |
Beta Was this translation helpful? Give feedback.
-
No worries. Going to look at upgrading it with a duhua. Thanks for your
help.
…On Sat, 7 Sept 2024, 10:15 pm Josh Hawkins, ***@***.***> wrote:
No it's just doing the same thing again and agian in the exact same
position each time
Your camera should be moving during calibration, but it doesn't seem to
respond to the relative movement onvif commands. Sadly, this looks like
another case of Hikvision firmware that either is buggy and/or doesn't
fully support the onvif standard.
As I mentioned earlier, we've had reports from other users of problems
with Hikvision and the onvif calls that Frigate uses for autotracking,
hence why we've marked it as non-working in the docs
<https://docs.frigate.video/configuration/cameras#onvif-ptz-camera-recommendations>
.
You could see if there is a firmware upgrade available. Unfortunately
there's nothing Frigate can do if your camera doesn't actually move
correctly when sent onvif commands.
—
Reply to this email directly, view it on GitHub
<#13601 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA7LMIVBG4YD542N3BH4A23ZVLU5FAVCNFSM6AAAAABNZS7JESVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANJXGY4DCMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Your camera should be moving during calibration, but it doesn't seem to respond to the relative movement onvif commands. Sadly, this looks like another case of Hikvision firmware that either is buggy and/or doesn't fully support the onvif standard.
As I mentioned earlier, we've had reports from other users of problems with Hikvision and the onvif calls that Frigate uses for autotracking, hence why we've marked it as non-working in the docs.
You could see if there is a firmware upgrade available. Unfortunately there's nothing Frigate can do if your camera doesn't actually move correctly when sent onvif…