blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.46k stars 1.68k forks source link

[Support]: Zone anchor points lost outside debug view when reducing detect height #9400

Closed nwish closed 7 months ago

nwish commented 8 months ago

Describe the problem you are having

This is more of a bug report, and probably going to be pretty low on the priority list, but it's just something I came across while testing detect resolutions.

Anyway, I have a doorbell camera that is native 2560x1920. I had been running my setup with a global detect resolution of 1920x1080 because that's what everything else is. Recently, I decided to override that to 1920x1280 (to maintain correct aspect ratio) for only this camera, leaving the global settings alone. After I did that, I realized I need to reconfigure my zones, so I did that.

Later, I decided to switch back to a 1920x1080 detect resolution for this camera because after the switch, I was experiencing some coincidental other issues with a different camera, and so I thought I'd just undo the resolution change just to rule it out.

After I switched back, I knew I'd need to fix the zones again, so this time, I saved the current ones in a text file and went back to the zone editor to find that since the height of the detect stream has been reduced, the anchor points along the bottom edge were now lost outside the interactive area. I was not able to grab them to move them back up, nor delete them, so I had to delete the whole zone and remake it.

Like I said - obviously this is not an every day occurrence and should be way down on the list, but I thought I'd point it out anyway, just in case!

image

Version

0.13.0-49814b3 (RC1)

Frigate config file

N/A

Relevant log output

N/A

FFprobe output from your camera

N/A

Frigate stats

{
  "bandwidth_usages": {
    "89": {
      "bandwidth": 734.3
    }
  },
  "cameras": {
    "den": {
      "audio_dBFS": -78.8928,
      "audio_rms": 3.7223,
      "camera_fps": 5,
      "capture_pid": 338,
      "detection_enabled": 1,
      "detection_fps": 0,
      "ffmpeg_pid": 349,
      "pid": 330,
      "process_fps": 5,
      "skipped_fps": 0
    },
    "doorbell": {
      "audio_dBFS": -61.8858,
      "audio_rms": 26.373,
      "camera_fps": 5.1,
      "capture_pid": 334,
      "detection_enabled": 1,
      "detection_fps": 0.2,
      "ffmpeg_pid": 339,
      "pid": 329,
      "process_fps": 5.1,
      "skipped_fps": 0
    },
    "garage": {
      "audio_dBFS": -67.271,
      "audio_rms": 14.1874,
      "camera_fps": 3.5,
      "capture_pid": 341,
      "detection_enabled": 1,
      "detection_fps": 0.1,
      "ffmpeg_pid": 1659,
      "pid": 332,
      "process_fps": 3.5,
      "skipped_fps": 0
    }
  },
  "cpu_usages": {
    "1": {
      "cmdline": "/package/admin/s6/command/s6-svscan -d4 -- /run/service",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "15": {
      "cmdline": "s6-supervise s6-linux-init-shutdownd",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "16": {
      "cmdline": "/package/admin/s6-linux-init/command/s6-linux-init-shutdownd -c /run/s6/basedir -g 3000 -C -B",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "24": {
      "cmdline": "s6-supervise go2rtc-healthcheck",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "25": {
      "cmdline": "s6-supervise go2rtc-log",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "26": {
      "cmdline": "s6-supervise s6rc-oneshot-runner",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "27": {
      "cmdline": "s6-supervise nginx",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "28": {
      "cmdline": "s6-supervise frigate",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "29": {
      "cmdline": "s6-supervise nginx-log",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "30": {
      "cmdline": "s6-supervise go2rtc",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "31": {
      "cmdline": "s6-supervise frigate-log",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "32": {
      "cmdline": "s6-supervise s6rc-fdholder",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "41": {
      "cmdline": "/package/admin/s6-2.11.3.2/command/s6-fdholderd -1 -i data/rules",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "42": {
      "cmdline": "/package/admin/s6/command/s6-ipcserverd -1 -- /package/admin/s6/command/s6-ipcserver-access -v0 -E -l0 -i data/rules -- /package/admin/s6/command/s6-sudod -t 30000 -- /package/admin/s6-rc/command/s6-rc-oneshot-run -l ../.. --",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "80": {
      "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/nginx",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "81": {
      "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/frigate",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "82": {
      "cmdline": "s6-log -b -- T 1 n0 s10000000 T /dev/shm/logs/go2rtc",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "89": {
      "cmdline": "/usr/local/go2rtc/bin/go2rtc -config=/dev/shm/go2rtc.yaml",
      "cpu": "5.4",
      "cpu_average": "7",
      "mem": "0.1"
    },
    "106": {
      "cmdline": "bash ./run.user go2rtc-healthcheck",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "112": {
      "cmdline": "python3 -u -m frigate",
      "cpu": "1.5",
      "cpu_average": "5",
      "mem": "1.4"
    },
    "120": {
      "cmdline": "nginx: master process nginx",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "141": {
      "cmdline": "nginx: worker process",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "142": {
      "cmdline": "nginx: worker process",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.1"
    },
    "143": {
      "cmdline": "nginx: worker process",
      "cpu": "0.1",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "144": {
      "cmdline": "nginx: worker process",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "145": {
      "cmdline": "nginx: cache manager process",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "295": {
      "cmdline": "frigate.logger       ",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.3"
    },
    "297": {
      "cmdline": "frigate.recording_manager",
      "cpu": "1.0",
      "cpu_average": "1",
      "mem": "0.6"
    },
    "306": {
      "cmdline": "/usr/bin/python3 -c from multiprocessing.resource_tracker import main;main(51)",
      "cpu": "0.1",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "307": {
      "cmdline": "frigate.detector.coral",
      "cpu": "0.1",
      "cpu_average": "1",
      "mem": "0.4"
    },
    "308": {
      "cmdline": "frigate.output       ",
      "cpu": "0.7",
      "cpu_average": "1",
      "mem": "0.4"
    },
    "313": {
      "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1920x1080 -codec:v mpeg1video -q 10 -bf 0 pipe:",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "316": {
      "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1920x1080 -codec:v mpeg1video -q 10 -bf 0 pipe:",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "317": {
      "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1920x1080 -codec:v mpeg1video -q 10 -bf 0 pipe:",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "318": {
      "cmdline": "ffmpeg -f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i pipe: -f mpegts -s 1920x1080 -codec:v mpeg1video -q 10 -bf 0 pipe:",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "329": {
      "cmdline": "frigate.process:doorbell",
      "cpu": "2.1",
      "cpu_average": "6",
      "mem": "0.8"
    },
    "330": {
      "cmdline": "frigate.process:den  ",
      "cpu": "1.2",
      "cpu_average": "2",
      "mem": "0.7"
    },
    "332": {
      "cmdline": "frigate.process:garage",
      "cpu": "0.0",
      "cpu_average": "2",
      "mem": "0.5"
    },
    "334": {
      "cmdline": "frigate.capture:doorbell",
      "cpu": "2.6",
      "cpu_average": "3",
      "mem": "0.4"
    },
    "338": {
      "cmdline": "frigate.capture:den  ",
      "cpu": "2.3",
      "cpu_average": "3",
      "mem": "0.4"
    },
    "339": {
      "cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-49814b3 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/doorbell -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy /tmp/cache/doorbell@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
      "cpu": "4.1",
      "cpu_average": "4",
      "mem": "0.3"
    },
    "341": {
      "cmdline": "frigate.capture:garage",
      "cpu": "0.0",
      "cpu_average": "3",
      "mem": "0.5"
    },
    "346": {
      "cmdline": "frigate.audio_manager",
      "cpu": "0.3",
      "cpu_average": "0",
      "mem": "0.4"
    },
    "349": {
      "cmdline": "ffmpeg -hide_banner -loglevel warning -threads 2 -hwaccel_flags allow_profile_mismatch -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -user_agent FFmpeg Frigate/0.13.0-49814b3 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/den -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy /tmp/cache/den@%Y%m%d%H%M%S%z.mp4 -r 5 -vf fps=5,scale_vaapi=w=1920:h=1080:format=nv12,hwdownload,format=nv12,format=yuv420p -threads 2 -f rawvideo -pix_fmt yuv420p pipe:",
      "cpu": "3.8",
      "cpu_average": "4",
      "mem": "0.2"
    },
    "354": {
      "cmdline": "ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-49814b3 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/doorbell -f s16le -ar 16000 -ac 1 -y pipe:",
      "cpu": "0.6",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "357": {
      "cmdline": "ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-49814b3 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/den -f s16le -ar 16000 -ac 1 -y pipe:",
      "cpu": "0.4",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "360": {
      "cmdline": "ffmpeg -vn -hide_banner -loglevel warning -threads 2 -user_agent FFmpeg Frigate/0.13.0-49814b3 -rtsp_transport tcp -timeout 5000000 -i rtsp://127.0.0.1:8554/garage -f s16le -ar 16000 -ac 1 -y pipe:",
      "cpu": "0.4",
      "cpu_average": "0",
      "mem": "0.0"
    },
    "2400": {
      "cmdline": "sleep 30s",
      "cpu": "0.0",
      "cpu_average": "0",
      "mem": "0.0"
    }
  },
  "detection_fps": 0.3,
  "detectors": {
    "coral": {
      "detection_start": 0,
      "inference_speed": 5.2,
      "pid": 307
    }
  },
  "gpu_usages": {
    "intel-vaapi": {
      "gpu": "5.26%",
      "mem": "-%"
    }
  },
  "processes": {
    "audioDetector": {
      "pid": 346
    },
    "go2rtc": {
      "pid": 89
    },
    "logger": {
      "pid": 295
    },
    "recording": {
      "pid": 297
    }
  },
  "service": {
    "last_updated": 1705807573,
    "latest_version": "0.12.1",
    "storage": {
      "/dev/shm": {
        "free": 114,
        "mount_type": "tmpfs",
        "total": 128,
        "used": 14
      },
      "/media/frigate/clips": {
        "free": 2096078.3,
        "mount_type": "ext4",
        "total": 2815557.6,
        "used": 576383.9
      },
      "/media/frigate/recordings": {
        "free": 2096078.3,
        "mount_type": "ext4",
        "total": 2815557.6,
        "used": 576383.9
      },
      "/tmp/cache": {
        "free": 944.3,
        "mount_type": "tmpfs",
        "total": 953.7,
        "used": 9.3
      }
    },
    "temperatures": {},
    "uptime": 705,
    "version": "0.13.0-49814b3"
  }
}

Operating system

Debian

Install method

Docker Compose

Coral version

USB

Network connection

Wired

Camera make and model

Reolink POE Doorbell Cam

Any other information that may be helpful

No response

NickM-27 commented 8 months ago

This will likely be fixed by making zones coordinates relative so that changing resolution doesn't require reconfiguration

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.