Manual PTZ control is overridden by check_and_restart_patrol after ~30 s

Đang mở
#490 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by reading SystemController.check_and_restart_patrol() in pyroengine/core.py and the camera API handlers for POST /patrol/stop_patrol and /control/start_move and /control/move. Trace how patrol restarts are scheduled and how control requests reach the camera. Done means manual PTZ control holds its position for a configurable delay, then patrol resumes; the issue does not name a test to run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happens

SystemController.check_and_restart_patrol() (pyroengine/core.py) runs every engine round and restarts the patrol of every camera whenever no stream is active. As a result, POST /patrol/stop_patrol on the camera API only lasts until the next round: an operator who steers a PTZ camera through the API (/control/start_move, /control/move, ...) without an active livestream, for example from a multi-camera view, sees the camera go back to its pose about 30 s later.

Today the only way to hold a PTZ camera on a manual position is to keep a livestream open on it.

Suggestion

Honour an explicit manual control, e.g. a "manual hold until" timestamp set by stop_patrol and by control commands, expiring after a configurable delay (a few minutes), after which check_and_restart_patrol() resumes the patrol as it does now.

Found while running a self-hosted instance with a Hikvision PTZ camera (VAB Toscana, Italy).

Ngôn ngữ chính
Python
Star
21
Fork
10
Merge trung bình
4 ngày 4 giờ
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pyronear/pyro-engine

Tất cả issue của pyronear/pyro-engine

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.