interpretation of `SensorTimestamp`

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, python
領域
documentation

調査の方向性

Read the libcamera control definition for SensorTimestamp in the public API docs and the C++ control definition it is generated from, then compare with the wait logic in picamera2/picamera2.py (the frame_timestamp_ns = md['SensorTimestamp'] - 1000 * md['ExposureTime'] block) and examples/timestamp_capture.py. The open question is which wording is correct — first row exposed versus first pixel read out — so the outcome is either a documentation correction plus comment fix, or confirmation that both are consistent. Expect discussion before any edit.

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

説明

(1) https://docs.libcamera.org/v0.8.0/public-api/namespacelibcamera_1_1controls.html#a0198b0e9a054328e84a4024b19742ec9 states

The time when the first row of the image sensor active array is exposed.


(2) https://github.com/raspberrypi/picamera2-examples/blob/d25baef2f4aedd8159ceafd5d8299918aaf9eeee/examples/timestamp_capture.py#L10-L14 states

    # 'SensorTimestamp' is when the first pixel was read out, so it started being
    # exposed 'ExposureTime' earlier.
    exposure_start_time = md['SensorTimestamp'] - 1000 * md['ExposureTime']

(3) https://github.com/raspberrypi/picamera2/blob/ae3f32ff8c80417f51d7e041dfbc1a71f9ee43d6/picamera2/picamera2.py#L1593-L1597 states

            # Check if frame started being exposed after the timestamp.
            md = self.completed_requests[0].get_metadata()
            frame_timestamp_ns = md['SensorTimestamp'] - 1000 * md['ExposureTime']
            if frame_timestamp_ns >= timestamp_ns:
                return (True, None)

It seems to me that while (2) and (3) are in agreement, the rpi interpretation of SensorTimestamp does not match what is prescribed in the libcamera documentation (1). Or am I missing something?

主要言語
C++
スター
493
フォーク
205
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

raspberrypi/libcamera のほかの issue

raspberrypi/libcamera の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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