Skip to content

Commit

Permalink
Added isp_scale setting to boards_reader, set isp scale for oak-d-lr
Browse files Browse the repository at this point in the history
  • Loading branch information
njezersek committed Feb 23, 2023
1 parent c5e3bfd commit ba07cc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion batch/oak_d_lr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"description": "OAK-D LR",
"image": "images/oak_d_lr.jpg",
"test_type": "OAK-D-LR",
"options": {"bootloader": "poe"},
"options": {
"bootloader": "poe",
"tv_calibration": {
"camera_settings": {
"left": {"isp_scale": [2,3]},
"right": {"isp_scale": [2,3]},
"center": {"isp_scale": [2,3]}
}
}
},
"variants": [
{
"title":"OAK-D LR (BC2087 R0M0E0)",
Expand Down
5 changes: 5 additions & 0 deletions boards_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ class CameraSettings(BaseModel):
luma_denoise: Optional[int] = None
chroma_denoise: Optional[int] = None
exposure: Optional[Tuple[int, int]] = None
""" Tuple of (exposure_time, ISO_gain) values. Exposure is in microseconds."""
lens_position: Optional[int] = None

isp_scale: Optional[Tuple[int, int]] = None
""" Tuple of (numerator, denominator) values. The image is scaled by
numerator/denominator. Only applicable to color cameras. """

class TVCalibrationSettings(BaseModel):
camera_settings: Dict[str, CameraSettings] = {}
""" Dictionary with camera names as keys and CameraSettings as values. Used to set
Expand Down

0 comments on commit ba07cc8

Please sign in to comment.