@@ -871,48 +871,48 @@ class CV_EXPORTS_W QRCodeDetector : public QRCodeDetectorBase
871871 OutputArray straight_qrcode = noArray());
872872};
873873
874- struct CV_EXPORTS_W_SIMPLE QrWithArucoParams {
875- CV_WRAPQrWithArucoParams ();
874+ class CV_EXPORTS_W QRCodeDetectorAruco : public QRCodeDetectorBase {
875+ public:
876+ struct CV_EXPORTS_W_SIMPLE Params {
877+ CV_WRAPParams ();
876878
877- /* * @brief The minimum allowed pixel size of a QR module in the smallest image in the image pyramid, default 4.f*/
878- CV_PROP_RWfloat minModuleSizeInPyramid;
879+ /* * @brief The minimum allowed pixel size of a QR module in the smallest image in the image pyramid, default 4.f*/
880+ CV_PROP_RWfloat minModuleSizeInPyramid;
879881
880- /* * @brief The maximum allowed relative rotation for finder patterns in the same QR code, default pi/12*/
881- CV_PROP_RWfloat maxRotation;
882+ /* * @brief The maximum allowed relative rotation for finder patterns in the same QR code, default pi/12*/
883+ CV_PROP_RWfloat maxRotation;
882884
883- /* * @brief The maximum allowed relative mismatch in module sizes for finder patterns in the same QR code, default 1.75f*/
884- CV_PROP_RWfloat maxModuleSizeMismatch;
885+ /* * @brief The maximum allowed relative mismatch in module sizes for finder patterns in the same QR code, default 1.75f*/
886+ CV_PROP_RWfloat maxModuleSizeMismatch;
885887
886- /* * @brief The maximum allowed module relative mismatch for timing pattern module, default 2.f
887- *
888- * If relative mismatch of timing pattern module more this value, penalty points will be added.
889- * If a lot of penalty points are added, QR code will be rejected.*/
890- CV_PROP_RWfloat maxTimingPatternMismatch;
888+ /* * @brief The maximum allowed module relative mismatch for timing pattern module, default 2.f
889+ *
890+ * If relative mismatch of timing pattern module more this value, penalty points will be added.
891+ * If a lot of penalty points are added, QR code will be rejected.*/
892+ CV_PROP_RWfloat maxTimingPatternMismatch;
891893
892- /* * @brief The maximum allowed percentage of penalty points out of total pins in timing pattern, default 0.4f*/
893- CV_PROP_RWfloat maxPenalties;
894+ /* * @brief The maximum allowed percentage of penalty points out of total pins in timing pattern, default 0.4f*/
895+ CV_PROP_RWfloat maxPenalties;
894896
895- /* * @brief The maximum allowed relative color mismatch in the timing pattern, default 0.2f*/
896- CV_PROP_RWfloat maxColorsMismatch;
897+ /* * @brief The maximum allowed relative color mismatch in the timing pattern, default 0.2f*/
898+ CV_PROP_RWfloat maxColorsMismatch;
897899
898- /* * @brief The algorithm find QR codes with almost minimum timing pattern score and minimum size, default 0.9f
899- *
900- * The QR code with the minimum "timing pattern score" and minimum "size" is selected as the best QR code.
901- * If for the current QR code "timing pattern score" * scaleTimingPatternScore < "previous timing pattern score" and "size" < "previous size", then
902- * current QR code set as the best QR code.*/
903- CV_PROP_RWfloat scaleTimingPatternScore;
904- };
900+ /* * @brief The algorithm find QR codes with almost minimum timing pattern score and minimum size, default 0.9f
901+ *
902+ * The QR code with the minimum "timing pattern score" and minimum "size" is selected as the best QR code.
903+ * If for the current QR code "timing pattern score" * scaleTimingPatternScore < "previous timing pattern score" and "size" < "previous size", then
904+ * current QR code set as the best QR code.*/
905+ CV_PROP_RWfloat scaleTimingPatternScore;
906+ };
905907
906- class CV_EXPORTS_W QRCodeDetectorAruco : public QRCodeDetectorBase {
907- public:
908908/* * @brief QR code detector constructor for Aruco-based algorithm. See #cv::QrWithArucoParams*/
909- CV_WRAPQRCodeDetectorAruco (const QrWithArucoParams & params =QrWithArucoParams ());
909+ CV_WRAPQRCodeDetectorAruco (const QRCodeDetectorAruco::Params & params =QRCodeDetectorAruco::Params ());
910910
911911/* * @brief Detector parameters setter. See #cv::QrWithArucoParams*/
912- CV_WRAPQrWithArucoParams getDetectorParameters ();
912+ CV_WRAPQRCodeDetectorAruco::Params getDetectorParameters ();
913913
914914/* * @brief Detector parameters getter. See #cv::QrWithArucoParams*/
915- CV_WRAPvoid setDetectorParameters (const QrWithArucoParams & params);
915+ CV_WRAPvoid setDetectorParameters (const QRCodeDetectorAruco::Params & params);
916916
917917/* * @brief Aruco detector parameters are used to search for the finder patterns.*/
918918 CV_WRAP aruco::DetectorParametersgetArucoParameters ();