Skip to content

Commit 496952f

Browse files
Fix DOCs
1 parent ad04dfa commit 496952f

8 files changed

+26
-26
lines changed

src/pipeline/datatype/AprilTagsBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ void bind_apriltags(pybind11::module& m, void* pCallstack){
4848
aprilTags
4949
.def(py::init<>())
5050
.def_property("aprilTags", [](AprilTags& det) { return &det.aprilTags; }, [](AprilTags& det, std::vector<AprilTag> val) { det.aprilTags = val; })
51-
.def("getTimestamp", &AprilTags::getTimestamp, DOC(dai, AprilTags, getTimestamp))
52-
.def("getTimestampDevice", &AprilTags::getTimestampDevice, DOC(dai, AprilTags, getTimestampDevice))
53-
.def("getSequenceNum", &AprilTags::getSequenceNum, DOC(dai, AprilTags, getSequenceNum))
51+
.def("getTimestamp", &AprilTags::getTimestamp, DOC(dai, Buffer, getTimestamp))
52+
.def("getTimestampDevice", &AprilTags::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
53+
.def("getSequenceNum", &AprilTags::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
5454
.def("setTimestamp", &AprilTags::setTimestamp, DOC(dai, AprilTags, setTimestamp))
5555
.def("setTimestampDevice", &AprilTags::setTimestampDevice, DOC(dai, AprilTags, setTimestampDevice))
5656
.def("setSequenceNum", &AprilTags::setSequenceNum, DOC(dai, AprilTags, setSequenceNum))

src/pipeline/datatype/ImgDetectionsBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ void bind_imgdetections(pybind11::module& m, void* pCallstack){
7474
imgDetections
7575
.def(py::init<>(), DOC(dai, ImgDetections, ImgDetections))
7676
.def_property("detections", [](ImgDetections& det) { return &det.detections; }, [](ImgDetections& det, std::vector<ImgDetection> val) { det.detections = val; }, DOC(dai, ImgDetections, detections))
77-
.def("getTimestamp", &ImgDetections::getTimestamp, DOC(dai, ImgDetections, getTimestamp))
78-
.def("getTimestampDevice", &ImgDetections::getTimestampDevice, DOC(dai, ImgDetections, getTimestampDevice))
79-
.def("getSequenceNum", &ImgDetections::getSequenceNum, DOC(dai, ImgDetections, getSequenceNum))
77+
.def("getTimestamp", &ImgDetections::getTimestamp, DOC(dai, Buffer, getTimestamp))
78+
.def("getTimestampDevice", &ImgDetections::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
79+
.def("getSequenceNum", &ImgDetections::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
8080
.def("setTimestamp", &ImgDetections::setTimestamp, DOC(dai, ImgDetections, setTimestamp))
8181
.def("setTimestampDevice", &ImgDetections::setTimestampDevice, DOC(dai, ImgDetections, setTimestampDevice))
8282
.def("setSequenceNum", &ImgDetections::setSequenceNum, DOC(dai, ImgDetections, setSequenceNum))

src/pipeline/datatype/ImgFrameBindings.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ void bind_imgframe(pybind11::module& m, void* pCallstack){
117117
imgFrame
118118
.def(py::init<>())
119119
// getters
120-
.def("getTimestamp", py::overload_cast<>(&ImgFrame::getTimestamp, py::const_), DOC(dai, ImgFrame, getTimestamp))
121-
.def("getTimestampDevice", py::overload_cast<>(&ImgFrame::getTimestampDevice, py::const_), DOC(dai, ImgFrame, getTimestampDevice))
122-
.def("getTimestamp", py::overload_cast<CameraExposureOffset>(&ImgFrame::getTimestamp, py::const_), py::arg("offset"), DOC(dai, ImgFrame, getTimestamp))
123-
.def("getTimestampDevice", py::overload_cast<CameraExposureOffset>(&ImgFrame::getTimestampDevice, py::const_), py::arg("offset"), DOC(dai, ImgFrame, getTimestampDevice))
120+
.def("getTimestamp", py::overload_cast<>(&ImgFrame::getTimestamp, py::const_), DOC(dai, Buffer, getTimestamp))
121+
.def("getTimestampDevice", py::overload_cast<>(&ImgFrame::getTimestampDevice, py::const_), DOC(dai, Buffer, getTimestampDevice))
122+
.def("getTimestamp", py::overload_cast<CameraExposureOffset>(&ImgFrame::getTimestamp, py::const_), py::arg("offset"), DOC(dai, Buffer, getTimestamp))
123+
.def("getTimestampDevice", py::overload_cast<CameraExposureOffset>(&ImgFrame::getTimestampDevice, py::const_), py::arg("offset"), DOC(dai, Buffer, getTimestampDevice))
124124
.def("getInstanceNum", &ImgFrame::getInstanceNum, DOC(dai, ImgFrame, getInstanceNum))
125125
.def("getCategory", &ImgFrame::getCategory, DOC(dai, ImgFrame, getCategory))
126-
.def("getSequenceNum", &ImgFrame::getSequenceNum, DOC(dai, ImgFrame, getSequenceNum))
126+
.def("getSequenceNum", &ImgFrame::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
127127
.def("getWidth", &ImgFrame::getWidth, DOC(dai, ImgFrame, getWidth))
128128
.def("getHeight", &ImgFrame::getHeight, DOC(dai, ImgFrame, getHeight))
129129
.def("getType", &ImgFrame::getType, DOC(dai, ImgFrame, getType))

src/pipeline/datatype/NNDataBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ void bind_nndata(pybind11::module& m, void* pCallstack){
125125
.def("getFirstLayerUInt8", &NNData::getFirstLayerUInt8, DOC(dai, NNData, getFirstLayerUInt8))
126126
.def("getFirstLayerFp16", &NNData::getFirstLayerFp16, DOC(dai, NNData, getFirstLayerFp16))
127127
.def("getFirstLayerInt32", &NNData::getFirstLayerInt32, DOC(dai, NNData, getFirstLayerInt32))
128-
.def("getTimestamp", &NNData::getTimestamp, DOC(dai, NNData, getTimestamp))
129-
.def("getTimestampDevice", &NNData::getTimestampDevice, DOC(dai, NNData, getTimestampDevice))
130-
.def("getSequenceNum", &NNData::getSequenceNum, DOC(dai, NNData, getSequenceNum))
128+
.def("getTimestamp", &NNData::getTimestamp, DOC(dai, Buffer, getTimestamp))
129+
.def("getTimestampDevice", &NNData::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
130+
.def("getSequenceNum", &NNData::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
131131
.def("setTimestamp", &NNData::setTimestamp, DOC(dai, NNData, setTimestamp))
132132
.def("setTimestampDevice", &NNData::setTimestampDevice, DOC(dai, NNData, setTimestampDevice))
133133
.def("setSequenceNum", &NNData::setSequenceNum, DOC(dai, NNData, setSequenceNum))

src/pipeline/datatype/SpatialImgDetectionsBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ void bind_spatialimgdetections(pybind11::module& m, void* pCallstack){
7070
spatialImgDetections
7171
.def(py::init<>())
7272
.def_property("detections", [](SpatialImgDetections& det) { return &det.detections; }, [](SpatialImgDetections& det, std::vector<SpatialImgDetection> val) { det.detections = val; })
73-
.def("getTimestamp", &SpatialImgDetections::getTimestamp, DOC(dai, SpatialImgDetections, getTimestamp))
74-
.def("getTimestampDevice", &SpatialImgDetections::getTimestampDevice, DOC(dai, SpatialImgDetections, getTimestampDevice))
75-
.def("getSequenceNum", &SpatialImgDetections::getSequenceNum, DOC(dai, SpatialImgDetections, getSequenceNum))
73+
.def("getTimestamp", &SpatialImgDetections::getTimestamp, DOC(dai, Buffer, getTimestamp))
74+
.def("getTimestampDevice", &SpatialImgDetections::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
75+
.def("getSequenceNum", &SpatialImgDetections::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
7676
.def("setTimestamp", &SpatialImgDetections::setTimestamp, DOC(dai, SpatialImgDetections, setTimestamp))
7777
.def("setTimestampDevice", &SpatialImgDetections::setTimestampDevice, DOC(dai, SpatialImgDetections, setTimestampDevice))
7878
.def("setSequenceNum", &SpatialImgDetections::setSequenceNum, DOC(dai, SpatialImgDetections, setSequenceNum))

src/pipeline/datatype/SpatialLocationCalculatorDataBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ void bind_spatiallocationcalculatordata(pybind11::module& m, void* pCallstack){
5050
.def(py::init<>())
5151
.def("getSpatialLocations", &SpatialLocationCalculatorData::getSpatialLocations, DOC(dai, SpatialLocationCalculatorData, getSpatialLocations))
5252
.def_property("spatialLocations", [](SpatialLocationCalculatorData& loc) { return &loc.spatialLocations; }, [](SpatialLocationCalculatorData& loc, std::vector<SpatialLocations> val) { loc.spatialLocations = val; }, DOC(dai, SpatialLocationCalculatorData, spatialLocations))
53-
.def("getTimestamp", &SpatialLocationCalculatorData::getTimestamp, DOC(dai, SpatialLocationCalculatorData, getTimestamp))
54-
.def("getTimestampDevice", &SpatialLocationCalculatorData::getTimestampDevice, DOC(dai, SpatialLocationCalculatorData, getTimestampDevice))
55-
.def("getSequenceNum", &SpatialLocationCalculatorData::getSequenceNum, DOC(dai, SpatialLocationCalculatorData, getSequenceNum))
53+
.def("getTimestamp", &SpatialLocationCalculatorData::getTimestamp, DOC(dai, Buffer, getTimestamp))
54+
.def("getTimestampDevice", &SpatialLocationCalculatorData::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
55+
.def("getSequenceNum", &SpatialLocationCalculatorData::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
5656
.def("setTimestamp", &SpatialLocationCalculatorData::setTimestamp, DOC(dai, SpatialLocationCalculatorData, setTimestamp))
5757
.def("setTimestampDevice", &SpatialLocationCalculatorData::setTimestampDevice, DOC(dai, SpatialLocationCalculatorData, setTimestampDevice))
5858
.def("setSequenceNum", &SpatialLocationCalculatorData::setSequenceNum, DOC(dai, SpatialLocationCalculatorData, setSequenceNum))

src/pipeline/datatype/TrackedFeaturesBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ void bind_trackedfeatures(pybind11::module& m, void* pCallstack){
5353
trackedFeatures
5454
.def(py::init<>())
5555
.def_property("trackedFeatures", [](TrackedFeatures& feat) { return &feat.trackedFeatures; }, [](TrackedFeatures& feat, std::vector<TrackedFeature> val) { feat.trackedFeatures = val; }, DOC(dai, TrackedFeatures, trackedFeatures))
56-
.def("getTimestamp", &TrackedFeatures::getTimestamp, DOC(dai, TrackedFeatures, getTimestamp))
57-
.def("getTimestampDevice", &TrackedFeatures::getTimestampDevice, DOC(dai, TrackedFeatures, getTimestampDevice))
58-
.def("getSequenceNum", &TrackedFeatures::getSequenceNum, DOC(dai, TrackedFeatures, getSequenceNum))
56+
.def("getTimestamp", &TrackedFeatures::getTimestamp, DOC(dai, Buffer, getTimestamp))
57+
.def("getTimestampDevice", &TrackedFeatures::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
58+
.def("getSequenceNum", &TrackedFeatures::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
5959
.def("setTimestamp", &TrackedFeatures::setTimestamp, DOC(dai, TrackedFeatures, setTimestamp))
6060
.def("setTimestampDevice", &TrackedFeatures::setTimestampDevice, DOC(dai, TrackedFeatures, setTimestampDevice))
6161
.def("setSequenceNum", &TrackedFeatures::setSequenceNum, DOC(dai, TrackedFeatures, setSequenceNum))

src/pipeline/datatype/TrackletsBindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ void bind_tracklets(pybind11::module& m, void* pCallstack){
6262
tracklets
6363
.def(py::init<>())
6464
.def_property("tracklets", [](Tracklets& track) { return &track.tracklets; }, [](Tracklets& track, std::vector<Tracklet> val) { track.tracklets = val; }, DOC(dai, Tracklets, tracklets))
65-
.def("getTimestamp", &Tracklets::getTimestamp, DOC(dai, Tracklets, getTimestamp))
66-
.def("getTimestampDevice", &Tracklets::getTimestampDevice, DOC(dai, Tracklets, getTimestampDevice))
67-
.def("getSequenceNum", &Tracklets::getSequenceNum, DOC(dai, Tracklets, getSequenceNum))
65+
.def("getTimestamp", &Tracklets::getTimestamp, DOC(dai, Buffer, getTimestamp))
66+
.def("getTimestampDevice", &Tracklets::getTimestampDevice, DOC(dai, Buffer, getTimestampDevice))
67+
.def("getSequenceNum", &Tracklets::getSequenceNum, DOC(dai, Buffer, getSequenceNum))
6868
.def("setTimestamp", &Tracklets::setTimestamp, DOC(dai, Tracklets, setTimestamp))
6969
.def("setTimestampDevice", &Tracklets::setTimestampDevice, DOC(dai, Tracklets, setTimestampDevice))
7070
.def("setSequenceNum", &Tracklets::setSequenceNum, DOC(dai, Tracklets, setSequenceNum))

0 commit comments

Comments
 (0)