interpretation of `SensorTimestamp`

Abierto
#368 9 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
35/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

(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?

Lenguaje dominante
C++
Estrellas
493
Forks
205
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de raspberrypi/libcamera

Todos los issues de raspberrypi/libcamera

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.