#include "stdint.h"
#include "common.h"
typedef int64_t int64;
#include <iostream>
#include "opencv2/opencv_modules.hpp"
#include <string>
#include "common_opencv.h"
using namespace cv;
#include "types.h"
extern "C" {
#include "return_types.h"
void* cv_new_VectorOfDetectionROI() {
return new std::vector<cv::DetectionROI>();
}
void cv_delete_VectorOfDetectionROI(void* ptr) {
delete reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr);
}
void cv_push_VectorOfDetectionROI(void* ptr, void* ptr2) {
cv::DetectionROI* val = reinterpret_cast<cv::DetectionROI*>(ptr2);
reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->push_back(*val);
}
cv::DetectionROI* cv_VectorOfDetectionROI_front_item(void* ptr) {
cv::DetectionROI val = reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->front();
return new cv::DetectionROI(val);
}
cv::DetectionROI* cv_VectorOfDetectionROI_back_item(void* ptr) {
cv::DetectionROI val = reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->back();
return new cv::DetectionROI(val);
}
int cv_VectorOfDetectionROI_len(void* ptr) {
return reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->size();
}
cv::DetectionROI* cv_VectorOfDetectionROI_get(void* ptr, int index) {
cv::DetectionROI val = reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->data()[index];
return new cv::DetectionROI(val);
}
void** cv_VectorOfDetectionROI_data(void* ptr) {
return reinterpret_cast<void**>(reinterpret_cast<std::vector<cv::DetectionROI>*>(ptr)->data());
}
}