Skip to content

Instantly share code, notes, and snippets.

@alex-luxonis
alex-luxonis / OAK-D-Lite_HDR.py
Last active January 14, 2022 17:02 — forked from saching13/OAK-D-Lite_HDR.py
Add default 13MP resolution, optionally (if 0:) can be changed to 4K downscaled to 1080p. Save to disk
import depthai as dai
import numpy as np
import cv2
import queue
# Create pipeline
pipeline = dai.Pipeline()
@alex-luxonis
alex-luxonis / flash.py
Last active August 2, 2021 00:34 — forked from lucasmediaflow/flash.py
Trying to synchronize camera exposure with external flash
''' Current output:
6: fps: 1.420, latency: 0.062988 s, next exposure will start in 0.541045 s
7: fps: 1.420, latency: 0.062930 s, next exposure will start in 0.541103 s
8: fps: 1.420, latency: 0.063203 s, next exposure will start in 0.54083 s
Sent capture-still command. Last preview frame sequence number was: 8
Waiting before trigger (+1 extra frame): 1.2446962702088058
trigger flash
9: fps: 1.420, latency: 0.720992 s, next exposure will start in -0.116959 s
10: fps: 1.420, latency: 0.089930 s, next exposure will start in 0.514103 s
11: fps: 1.420, latency: 0.063053 s, next exposure will start in 0.540981 s