You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2 breakpoint keep y 0x0002f12e in opencv_test::(anonymous namespace)::Objdetect_QRCode_Close_regression_Test::Body()
at /home/odroid/opencv-fork/modules/objdetect/test/test_qrcode.cpp:283
breakpoint already hit 1 time
3 breakpoint keep y 0xb6f7a6bc in cv::QRCodeDetector::detectAndDecode[abi:cxx11](cv::_InputArray const&, cv::_OutputArray const&, cv
::_OutputArray const&) at /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp:1245
4 breakpoint keep y 0xb6f78e10 in cv::QRCodeDetector::detect(cv::_InputArray const&, cv::_OutputArray const&) const
at /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp:947
bool QRCodeDetector::detect(InputArray in, OutputArray points) const
{
Mat inarr;
if (!checkQRInputImage(in, inarr))
return false;
QRDetect qrdet;
qrdet.init(inarr, p->epsX, p->epsY);
if (!qrdet.localization()) { return false; }
if (!qrdet.computeTransformationPoints()) { return false; }
vector<Point2f> pnts2f = qrdet.getTransformationPoints();
updatePointsResult(points, pnts2f);
return true;
}
It differs here /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:954
bool QRCodeDetector::detect(InputArray in, OutputArray points) const
{
Mat inarr;
if (!checkQRInputImage(in, inarr))
return false;
QRDetect qrdet;
qrdet.init(inarr, p->epsX, p->epsY);
if (!qrdet.localization()) { return false; }
if (!qrdet.computeTransformationPoints()) { return false; } <<<<========== here
vector<Point2f> pnts2f = qrdet.getTransformationPoints();
updatePointsResult(points, pnts2f);
return true;
}
Passed on ODROID-XU4
(gdb) b 578
Breakpoint 3 at 0xb6f76c42: file /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp, line 578.
(gdb) c
Continuing.
Thread 1 "opencv_test_obj" hit Breakpoint 3, cv::QRDetect::computeTransformationPoints (this=0xbeffec58)
at /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp:578
(gdb) p down_left_edge_point
$1 = {x = 1220, y = 41}
(gdb) p up_right_edge_point
$2 = {x = 231, y = 1006}
(gdb) p new_non_zero_elem[0]
$3 = std::vector of length 5, capacity 8 = {{x = 239, y = 275}, {x = 243, y = 101}, {x = 245, y = 15}, {x = 334, y = 15}, {x = 518, y = 19}}
Failed on Jetson TX2
(gdb) b 578
Breakpoint 3 at 0x7fb7f5c7d0: file /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp, line 578.
(gdb) fin
Run till exit from #0 cv::QRDetect::computeTransformationPoints (this=0x7fffffe838)
at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:521
Breakpoint 3, cv::QRDetect::computeTransformationPoints (this=0x7fffffe838) at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:578
(gdb) p down_left_edge_point
$1 = {x = 1216, y = 502}
(gdb) p up_right_edge_point
$2 = {x = 549, y = 1007}
(gdb) p new_non_zero_elem[0]
$3 = std::vector of length 5, capacity 8 = {{x = 716, y = 378}, {x = 834, y = 340}, {x = 841, y = 340}, {x = 869, y = 341}, {x = 986, y = 382}}
passed on ODROID-XU4
(gdb) b 637
Breakpoint 4 at 0xb6f77054: file /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp, line 637.
(gdb) c
Continuing.
Thread 1 "opencv_test_obj" hit Breakpoint 4, cv::QRDetect::computeTransformationPoints (this=0xbeffec58)
at /home/odroid/opencv-fork/modules/objdetect/src/qrcode.cpp:637
(gdb) p transformation_points
$4 = std::vector of length 4, capacity 4 = {{x = 245.021484, y = 13.0656843}, {x = 1220, y = 41}, {x = 1212.99988, y = 1005.99994}, {x = 231,
y = 1006}}
(gdb) p width
$5 = 1820
(gdb) p height
$6 = 1024
(gdb) p height
$7 = 1024
(gdb) p width
$8 = 1820
failed on Jetson TX2
(gdb) b 637
Breakpoint 4 at 0x7fb7f5cc30: file /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp, line 637.
(gdb) c
Continuing.
Breakpoint 4, cv::QRDetect::computeTransformationPoints (this=0x7fffffe838) at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:637
(gdb) p transformation_points
$4 = std::vector of length 4, capacity 4 = {{x = 716, y = 378}, {x = 1216, y = 502}, {x = 540, y = 1735}, {x = 549, y = 1007}}
Bottom (innermost) frame selected; you cannot go down.
(gdb) p height
$5 = 1024
(gdb) p width
$6 = 1820
for (size_t i = 0; i < transformation_points.size(); i++)
{
if ((cvRound(transformation_points[i].x) > width) ||
(cvRound(transformation_points[i].y) > height)) { return false; }
}
return true;
break points
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y 0x0000007fb7f5f120 in cv::QRCodeDetector::detect(cv::_InputArray const&, cv::_OutputArray const&) const
at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:954
breakpoint already hit 1 time
3 breakpoint keep y 0x0000007fb7f5c7d0 in cv::QRDetect::computeTransformationPoints()
at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:578
breakpoint already hit 1 time
4 breakpoint keep y 0x0000007fb7f5cc30 in cv::QRDetect::computeTransformationPoints()
at /home/nvidia/opencv-fork/modules/objdetect/src/qrcode.cpp:637
breakpoint already hit 1 time