23 lines
741 B
Python
23 lines
741 B
Python
from oak_fcc3_client import OakFcc3Client
|
|
|
|
for frame_type in ["RAW_BRUTO", "RGB", "MULTISPEC"]:
|
|
print("\nTESTANDO:", frame_type)
|
|
|
|
with OakFcc3Client(
|
|
fps=15,
|
|
width=640,
|
|
height=400,
|
|
frame_type=frame_type,
|
|
output_dtype="float32",
|
|
capture_mode="AUTO",
|
|
raw_policy="allow_single",
|
|
sync_mode="best",
|
|
sync_tolerance_ms=25.0,
|
|
) as cam:
|
|
frame, meta, decoded = cam.get_next_decoded(timeout=2.0)
|
|
|
|
print("frame_type:", meta.get("frame_type"))
|
|
print("layout:", meta.get("output_layout"))
|
|
print("channels:", meta.get("channels"))
|
|
print("shape:", getattr(frame, "shape", None))
|
|
print("dtype:", getattr(frame, "dtype", None)) |