提交 e14b2ba4 编写于 作者: B berak

objdetect: validate input in qrcode

上级 0bb2c115
......@@ -71,8 +71,11 @@ bool QRDecode::localization()
Point begin, end;
std::vector<Vec3d> list_lines_x = searchVerticalLines();
if (list_lines_x.empty()) return false;
std::vector<Vec3d> list_lines_y = separateHorizontalLines(list_lines_x);
if (list_lines_y.empty()) return false;
std::vector<Vec3d> result_point = pointClustering(list_lines_y);
if (result_point.empty()) return false;
for (int i = 0; i < 3; i++)
{
localization_points.push_back(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册