Skip to content

Commit 7ff599b

Browse files
committed
Tweaked getTimestamp & exposure offset API
1 parent 8b65b53 commit 7ff599b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/pipeline/CommonBindings.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
// depthai
2424
#include "depthai/common/CameraFeatures.hpp"
25+
#include "depthai/common/CameraExposureOffset.hpp"
2526

2627
void CommonBindings::bind(pybind11::module& m, void* pCallstack){
2728

@@ -50,6 +51,7 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
5051
py::class_<DetectionParserOptions> detectionParserOptions(m, "DetectionParserOptions", DOC(dai, DetectionParserOptions));
5152
py::class_<RotatedRect> rotatedRect(m, "RotatedRect", DOC(dai, RotatedRect));
5253
py::class_<Rect> rect(m, "Rect", DOC(dai, Rect));
54+
py::enum_<CameraExposureOffset> cameraExposureOffset(m, "CameraExposureOffset");
5355

5456
///////////////////////////////////////////////////////////////////////
5557
///////////////////////////////////////////////////////////////////////
@@ -290,4 +292,9 @@ void CommonBindings::bind(pybind11::module& m, void* pCallstack){
290292
.def_readwrite("iouThreshold", &DetectionParserOptions::iouThreshold)
291293
;
292294

295+
cameraExposureOffset
296+
.value("START", CameraExposureOffset::START)
297+
.value("MIDDLE", CameraExposureOffset::MIDDLE)
298+
.value("END", CameraExposureOffset::END)
299+
;
293300
}

0 commit comments

Comments
 (0)