Skip to content

Commit

Permalink
add alignment detect
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrPanov committed Dec 14, 2022
1 parent 1788c93 commit a321430
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 41 deletions.
6 changes: 6 additions & 0 deletions modules/objdetect/include/opencv2/objdetect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,12 @@ class CV_EXPORTS_W QRCodeDetector
*/
CV_WRAP void setEpsY(double epsY);

/** @brief use markers to improve the position of the corners of the QR code
*
* alignmentMarkers using by default
*/
CV_WRAP void setUseAlignmentMarkers(bool useAlignmentMarkers);

/** @brief Detects QR code in image and returns the quadrangle containing the code.
@param img grayscale or color (BGR) image containing (or not) QR code.
@param points Output vector of vertices of the minimum-area quadrangle containing the code.
Expand Down
1 change: 0 additions & 1 deletion modules/objdetect/perf/perf_qrcode_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ PERF_TEST_P_(Perf_Objdetect_QRCode_Multi, decodeMulti)
straight_barcode_sort.push_back(result[i].second);
}
SANITY_CHECK(decoded_info_sort);
SANITY_CHECK(straight_barcode_sort);
}
#endif

Expand Down

0 comments on commit a321430

Please sign in to comment.