MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / DetectionData

Class DetectionData

src/effects/ObjectDetection.h:27–47  ·  view source on GitHub ↗

Struct that stores the detected bounding boxes for all the clip frames

Source from the content-addressed store, hash-verified

25
26// Struct that stores the detected bounding boxes for all the clip frames
27struct DetectionData{
28 DetectionData(){}
29 DetectionData(
30 std::vector<int> _classIds,
31 std::vector<float> _confidences,
32 std::vector<cv::Rect_<float>> _boxes,
33 size_t _frameId,
34 std::vector<int> _objectIds)
35 {
36 classIds = _classIds;
37 confidences = _confidences;
38 boxes = _boxes;
39 frameId = _frameId;
40 objectIds = _objectIds;
41 }
42 size_t frameId;
43 std::vector<int> classIds;
44 std::vector<float> confidences;
45 std::vector<cv::Rect_<float>> boxes;
46 std::vector<int> objectIds;
47};
48
49namespace openshot
50{

Callers 1

LoadObjDetectdDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected