tables

Shared metadata models

class mio.devices.tables.NoiseTable(*args, **kwargs)

Scores for noise values for a recording, produced by mio.process.video.score_noise()

class Config
name: str | None = 'NoiseTable'

name of schema

black_area: int | None = 'black_area'
gradient: float | None = 'gradient'
reconstructed_frame_index: int = 'reconstructed_frame_index'
class mio.devices.tables.StitchRecord(*, index: int, frame_num: int | None = None, selected_video: str, compare_video: str | None = None, selected_num_buffers: int, selected_black_padding: int, selected_black_pixels: int, selected_noisy_pixels: int, compare_num_buffers: int | None = None, compare_black_padding: int | None = None, compare_black_pixels: int | None = None, compare_noisy_pixels: int | None = None, selected_edge_score: float | None = None, compare_edge_score: float | None = None)

Row schema for debug metadata emitted during stitching.

The field order defines the CSV header order.

compare_black_padding: int | None
compare_black_pixels: int | None
compare_edge_score: float | None
compare_noisy_pixels: int | None
compare_num_buffers: int | None
compare_video: str | None
frame_num: int | None
classmethod header() list[str]

Return CSV header preserving declared field order.

index: int
model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

selected_black_padding: int
selected_black_pixels: int
selected_edge_score: float | None
selected_noisy_pixels: int
selected_num_buffers: int
selected_video: str
class mio.devices.tables.StitchTable(*args, **kwargs)

Table model for stitching scores

class Config
name: str | None = 'StitchTable'

name of schema

compare_black_padding: int = 'compare_black_padding'
compare_black_pixels: int = 'compare_black_pixels'
compare_edge_score: float = 'compare_edge_score'
compare_noisy_pixels: int = 'compare_noisy_pixels'
compare_num_buffers: int = 'compare_num_buffers'
compare_video: str = 'compare_video'
frame_num: int = 'frame_num'
index: int = 'index'
selected_black_padding: int = 'selected_black_padding'
selected_black_pixels: int = 'selected_black_pixels'
selected_edge_score: float = 'selected_edge_score'
selected_noisy_pixels: int = 'selected_noisy_pixels'
selected_num_buffers: int = 'selected_num_buffers'
selected_video: str = 'selected_video'
class mio.devices.tables.TimestampTable(*args, **kwargs)

Summary of timestamps per frame for a recording

class Config
name: str | None = 'TimestampTable'

name of schema

frame: int = 'frame'
timestamp_first: float = 'timestamp_first'
timestamp_last: float = 'timestamp_last'