Struct that stores the detected bounding boxes for all the clip frames
| 25 | |
| 26 | // Struct that stores the detected bounding boxes for all the clip frames |
| 27 | struct 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 | |
| 49 | namespace openshot |
| 50 | { |