Manual PTZ control is overridden by check_and_restart_patrol after ~30 s

オープン
#490 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).

主要言語
Python
スター
21
フォーク
10
平均マージ
4日 4時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyronear/pyro-engine のほかの issue

pyronear/pyro-engine の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。