QR-Code-Scanner icon indicating copy to clipboard operation
QR-Code-Scanner copied to clipboard

I have an error: class "cv::DataType<cv::Point2f>" has no member "type"

Open ETHERNXL opened this issue 2 years ago • 2 comments

Can somebody help me with this error?

ETHERNXL avatar Apr 10 '23 12:04 ETHERNXL

Severity Code Description Project File Line Suppression State Error (active) E0135 class "cv::DataTypecv::Point2f" has no member "type" RGRtry D:\Labs\QR-Code-Scanner-master\src\Source\CodeFinder.cpp 554

ETHERNXL avatar Apr 10 '23 12:04 ETHERNXL

You can try to replace the line code.corners = Mat(4, 4, DataType<Point2f>::type); with code.corners = Mat(4, 4, CV_32FC2); while CV_32FC2 should be the desired cv::Mat type.

niklases avatar Sep 20 '24 20:09 niklases