Upgrade gocv dependency

This commit is contained in:
2020-04-04 12:37:58 +02:00
parent 329f429f83
commit 6e2bab83d2
48 changed files with 1896 additions and 135 deletions

24
vendor/gocv.io/x/gocv/objdetect.cpp generated vendored
View File

@@ -125,3 +125,27 @@ struct Rects GroupRectangles(struct Rects rects, int groupThreshold, double eps)
Rects ret = {results, (int)vRect.size()};
return ret;
}
// QRCodeDetector
QRCodeDetector QRCodeDetector_New() {
return new cv::QRCodeDetector();
}
void QRCodeDetector_Close(QRCodeDetector qr) {
delete qr;
}
const char* QRCodeDetector_DetectAndDecode(QRCodeDetector qr, Mat input,Mat points,Mat straight_qrcode) {
cv::String *str = new cv::String(qr->detectAndDecode(*input,*points,*straight_qrcode));
return str->c_str();
}
bool QRCodeDetector_Detect(QRCodeDetector qr, Mat input,Mat points) {
return qr->detect(*input,*points);
}
const char* QRCodeDetector_Decode(QRCodeDetector qr, Mat input,Mat inputPoints,Mat straight_qrcode) {
cv::String *str = new cv::String(qr->detectAndDecode(*input,*inputPoints,*straight_qrcode));
return str->c_str();
}