123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- //
- // This file is auto-generated. Please don't modify it!
- //
- #pragma once
- #ifdef __cplusplus
- //#import "opencv.hpp"
- #import "opencv2/objdetect.hpp"
- #else
- #define CV_EXPORTS
- #endif
- #import <Foundation/Foundation.h>
- @class Mat;
- NS_ASSUME_NONNULL_BEGIN
- // C++: class QRCodeDetector
- /**
- * The QRCodeDetector module
- *
- * Member of `Objdetect`
- */
- CV_EXPORTS @interface QRCodeDetector : NSObject
- #ifdef __cplusplus
- @property(readonly)cv::Ptr<cv::QRCodeDetector> nativePtr;
- #endif
- #ifdef __cplusplus
- - (instancetype)initWithNativePtr:(cv::Ptr<cv::QRCodeDetector>)nativePtr;
- + (instancetype)fromNative:(cv::Ptr<cv::QRCodeDetector>)nativePtr;
- #endif
- #pragma mark - Methods
- //
- // cv::QRCodeDetector::QRCodeDetector()
- //
- - (instancetype)init;
- //
- // void cv::QRCodeDetector::setEpsX(double epsX)
- //
- /**
- * sets the epsilon used during the horizontal scan of QR code stop marker detection.
- * @param epsX Epsilon neighborhood, which allows you to determine the horizontal pattern
- * of the scheme 1:1:3:1:1 according to QR code standard.
- */
- - (void)setEpsX:(double)epsX NS_SWIFT_NAME(setEpsX(epsX:));
- //
- // void cv::QRCodeDetector::setEpsY(double epsY)
- //
- /**
- * sets the epsilon used during the vertical scan of QR code stop marker detection.
- * @param epsY Epsilon neighborhood, which allows you to determine the vertical pattern
- * of the scheme 1:1:3:1:1 according to QR code standard.
- */
- - (void)setEpsY:(double)epsY NS_SWIFT_NAME(setEpsY(epsY:));
- //
- // bool cv::QRCodeDetector::detect(Mat img, Mat& points)
- //
- /**
- * 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.
- */
- - (BOOL)detect:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(detect(img:points:));
- //
- // string cv::QRCodeDetector::decode(Mat img, Mat points, Mat& straight_qrcode = Mat())
- //
- /**
- * Decodes QR code in image once it's found by the detect() method.
- *
- * Returns UTF8-encoded output string or empty string if the code cannot be decoded.
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points Quadrangle vertices found by detect() method (or some other algorithm).
- * @param straight_qrcode The optional output image containing rectified and binarized QR code
- */
- - (NSString*)decode:(Mat*)img points:(Mat*)points straight_qrcode:(Mat*)straight_qrcode NS_SWIFT_NAME(decode(img:points:straight_qrcode:));
- /**
- * Decodes QR code in image once it's found by the detect() method.
- *
- * Returns UTF8-encoded output string or empty string if the code cannot be decoded.
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points Quadrangle vertices found by detect() method (or some other algorithm).
- */
- - (NSString*)decode:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(decode(img:points:));
- //
- // String cv::QRCodeDetector::decodeCurved(Mat img, Mat points, Mat& straight_qrcode = Mat())
- //
- /**
- * Decodes QR code on a curved surface in image once it's found by the detect() method.
- *
- * Returns UTF8-encoded output string or empty string if the code cannot be decoded.
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points Quadrangle vertices found by detect() method (or some other algorithm).
- * @param straight_qrcode The optional output image containing rectified and binarized QR code
- */
- - (NSString*)decodeCurved:(Mat*)img points:(Mat*)points straight_qrcode:(Mat*)straight_qrcode NS_SWIFT_NAME(decodeCurved(img:points:straight_qrcode:));
- /**
- * Decodes QR code on a curved surface in image once it's found by the detect() method.
- *
- * Returns UTF8-encoded output string or empty string if the code cannot be decoded.
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points Quadrangle vertices found by detect() method (or some other algorithm).
- */
- - (NSString*)decodeCurved:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(decodeCurved(img:points:));
- //
- // string cv::QRCodeDetector::detectAndDecode(Mat img, Mat& points = Mat(), Mat& straight_qrcode = Mat())
- //
- /**
- * Both detects and decodes QR code
- *
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
- * @param straight_qrcode The optional output image containing rectified and binarized QR code
- */
- - (NSString*)detectAndDecode:(Mat*)img points:(Mat*)points straight_qrcode:(Mat*)straight_qrcode NS_SWIFT_NAME(detectAndDecode(img:points:straight_qrcode:));
- /**
- * Both detects and decodes QR code
- *
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
- */
- - (NSString*)detectAndDecode:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(detectAndDecode(img:points:));
- /**
- * Both detects and decodes QR code
- *
- * @param img grayscale or color (BGR) image containing QR code.
- */
- - (NSString*)detectAndDecode:(Mat*)img NS_SWIFT_NAME(detectAndDecode(img:));
- //
- // string cv::QRCodeDetector::detectAndDecodeCurved(Mat img, Mat& points = Mat(), Mat& straight_qrcode = Mat())
- //
- /**
- * Both detects and decodes QR code on a curved surface
- *
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
- * @param straight_qrcode The optional output image containing rectified and binarized QR code
- */
- - (NSString*)detectAndDecodeCurved:(Mat*)img points:(Mat*)points straight_qrcode:(Mat*)straight_qrcode NS_SWIFT_NAME(detectAndDecodeCurved(img:points:straight_qrcode:));
- /**
- * Both detects and decodes QR code on a curved surface
- *
- * @param img grayscale or color (BGR) image containing QR code.
- * @param points optional output array of vertices of the found QR code quadrangle. Will be empty if not found.
- */
- - (NSString*)detectAndDecodeCurved:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(detectAndDecodeCurved(img:points:));
- /**
- * Both detects and decodes QR code on a curved surface
- *
- * @param img grayscale or color (BGR) image containing QR code.
- */
- - (NSString*)detectAndDecodeCurved:(Mat*)img NS_SWIFT_NAME(detectAndDecodeCurved(img:));
- //
- // bool cv::QRCodeDetector::detectMulti(Mat img, Mat& points)
- //
- /**
- * Detects QR codes in image and returns the vector of the quadrangles containing the codes.
- * @param img grayscale or color (BGR) image containing (or not) QR codes.
- * @param points Output vector of vector of vertices of the minimum-area quadrangle containing the codes.
- */
- - (BOOL)detectMulti:(Mat*)img points:(Mat*)points NS_SWIFT_NAME(detectMulti(img:points:));
- //
- // bool cv::QRCodeDetector::decodeMulti(Mat img, Mat points, vector_string& decoded_info, vector_Mat& straight_qrcode = vector_Mat())
- //
- /**
- * Decodes QR codes in image once it's found by the detect() method.
- * @param img grayscale or color (BGR) image containing QR codes.
- * @param decoded_info UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
- * @param points vector of Quadrangle vertices found by detect() method (or some other algorithm).
- * @param straight_qrcode The optional output vector of images containing rectified and binarized QR codes
- */
- - (BOOL)decodeMulti:(Mat*)img points:(Mat*)points decoded_info:(NSMutableArray<NSString*>*)decoded_info straight_qrcode:(NSMutableArray<Mat*>*)straight_qrcode NS_SWIFT_NAME(decodeMulti(img:points:decoded_info:straight_qrcode:));
- /**
- * Decodes QR codes in image once it's found by the detect() method.
- * @param img grayscale or color (BGR) image containing QR codes.
- * @param decoded_info UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
- * @param points vector of Quadrangle vertices found by detect() method (or some other algorithm).
- */
- - (BOOL)decodeMulti:(Mat*)img points:(Mat*)points decoded_info:(NSMutableArray<NSString*>*)decoded_info NS_SWIFT_NAME(decodeMulti(img:points:decoded_info:));
- //
- // bool cv::QRCodeDetector::detectAndDecodeMulti(Mat img, vector_string& decoded_info, Mat& points = Mat(), vector_Mat& straight_qrcode = vector_Mat())
- //
- /**
- * Both detects and decodes QR codes
- * @param img grayscale or color (BGR) image containing QR codes.
- * @param decoded_info UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
- * @param points optional output vector of vertices of the found QR code quadrangles. Will be empty if not found.
- * @param straight_qrcode The optional output vector of images containing rectified and binarized QR codes
- */
- - (BOOL)detectAndDecodeMulti:(Mat*)img decoded_info:(NSMutableArray<NSString*>*)decoded_info points:(Mat*)points straight_qrcode:(NSMutableArray<Mat*>*)straight_qrcode NS_SWIFT_NAME(detectAndDecodeMulti(img:decoded_info:points:straight_qrcode:));
- /**
- * Both detects and decodes QR codes
- * @param img grayscale or color (BGR) image containing QR codes.
- * @param decoded_info UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
- * @param points optional output vector of vertices of the found QR code quadrangles. Will be empty if not found.
- */
- - (BOOL)detectAndDecodeMulti:(Mat*)img decoded_info:(NSMutableArray<NSString*>*)decoded_info points:(Mat*)points NS_SWIFT_NAME(detectAndDecodeMulti(img:decoded_info:points:));
- /**
- * Both detects and decodes QR codes
- * @param img grayscale or color (BGR) image containing QR codes.
- * @param decoded_info UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
- */
- - (BOOL)detectAndDecodeMulti:(Mat*)img decoded_info:(NSMutableArray<NSString*>*)decoded_info NS_SWIFT_NAME(detectAndDecodeMulti(img:decoded_info:));
- @end
- NS_ASSUME_NONNULL_END
|