| | |
| | | float *data; // pointer to the image data |
| | | }; |
| | | |
| | | #define C_SHARP_MAX_OBJECTS 1000 |
| | | struct bbox_t_container { |
| | | bbox_t candidates[C_SHARP_MAX_OBJECTS]; |
| | | }; |
| | | |
| | | #ifdef __cplusplus |
| | | #include <memory> |
| | | #include <vector> |
| | |
| | | #include "opencv2/imgproc/imgproc_c.h" // C |
| | | #endif // OPENCV |
| | | |
| | | extern "C" YOLODLL_API int init(const char *configurationFilename, const char *weightsFilename, int gpu); |
| | | extern "C" YOLODLL_API int detect_image(const char *filename, bbox_t_container &container); |
| | | extern "C" YOLODLL_API int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container); |
| | | extern "C" YOLODLL_API int dispose(); |
| | | |
| | | class Detector { |
| | | std::shared_ptr<void> detector_gpu_ptr; |
| | | std::deque<std::vector<bbox_t>> prev_bbox_vec_deque; |