public class QRCodeDetector
extends java.lang.Object
| Constructor and Description |
|---|
QRCodeDetector() |
| Modifier and Type | Method and Description |
|---|---|
static QRCodeDetector |
__fromPtr__(long addr) |
java.lang.String |
decode(Mat img,
Mat points)
Decodes QR code in image once it's found by the detect() method.
|
java.lang.String |
decode(Mat img,
Mat points,
Mat straight_qrcode)
Decodes QR code in image once it's found by the detect() method.
|
boolean |
decodeMulti(Mat img,
Mat points,
java.util.List<java.lang.String> decoded_info)
Decodes QR codes in image once it's found by the detect() method.
|
boolean |
decodeMulti(Mat img,
Mat points,
java.util.List<java.lang.String> decoded_info,
java.util.List<Mat> straight_qrcode)
Decodes QR codes in image once it's found by the detect() method.
|
boolean |
detect(Mat img,
Mat points)
Detects QR code in image and returns the quadrangle containing the code.
|
java.lang.String |
detectAndDecode(Mat img)
Both detects and decodes QR code
|
java.lang.String |
detectAndDecode(Mat img,
Mat points)
Both detects and decodes QR code
|
java.lang.String |
detectAndDecode(Mat img,
Mat points,
Mat straight_qrcode)
Both detects and decodes QR code
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info)
Both detects and decodes QR codes
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info,
Mat points)
Both detects and decodes QR codes
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info,
Mat points,
java.util.List<Mat> straight_qrcode)
Both detects and decodes QR codes
|
boolean |
detectMulti(Mat img,
Mat points)
Detects QR codes in image and returns the vector of the quadrangles containing the codes.
|
long |
getNativeObjAddr() |
void |
setEpsX(double epsX)
sets the epsilon used during the horizontal scan of QR code stop marker detection.
|
void |
setEpsY(double epsY)
sets the epsilon used during the vertical scan of QR code stop marker detection.
|
public static QRCodeDetector __fromPtr__(long addr)
public java.lang.String decode(Mat img, Mat points)
img - grayscale or color (BGR) image containing QR code.points - Quadrangle vertices found by detect() method (or some other algorithm).public java.lang.String decode(Mat img, Mat points, Mat straight_qrcode)
img - grayscale or color (BGR) image containing QR code.points - Quadrangle vertices found by detect() method (or some other algorithm).straight_qrcode - The optional output image containing rectified and binarized QR codepublic boolean decodeMulti(Mat img, Mat points, java.util.List<java.lang.String> decoded_info)
img - grayscale or color (BGR) image containing QR codes.decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.points - vector of Quadrangle vertices found by detect() method (or some other algorithm).public boolean decodeMulti(Mat img, Mat points, java.util.List<java.lang.String> decoded_info, java.util.List<Mat> straight_qrcode)
img - grayscale or color (BGR) image containing QR codes.decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.points - vector of Quadrangle vertices found by detect() method (or some other algorithm).straight_qrcode - The optional output vector of images containing rectified and binarized QR codespublic boolean detect(Mat img, Mat points)
img - grayscale or color (BGR) image containing (or not) QR code.points - Output vector of vertices of the minimum-area quadrangle containing the code.public java.lang.String detectAndDecode(Mat img)
img - grayscale or color (BGR) image containing QR code.public java.lang.String detectAndDecode(Mat img, Mat points)
img - grayscale or color (BGR) image containing QR code.points - optional output array of vertices of the found QR code quadrangle. Will be empty if not found.public java.lang.String detectAndDecode(Mat img, Mat points, Mat straight_qrcode)
img - grayscale or color (BGR) image containing QR code.points - optional output array of vertices of the found QR code quadrangle. Will be empty if not found.straight_qrcode - The optional output image containing rectified and binarized QR codepublic boolean detectAndDecodeMulti(Mat img, java.util.List<java.lang.String> decoded_info)
img - grayscale or color (BGR) image containing QR codes.decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.public boolean detectAndDecodeMulti(Mat img, java.util.List<java.lang.String> decoded_info, Mat points)
img - grayscale or color (BGR) image containing QR codes.decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.points - optional output vector of vertices of the found QR code quadrangles. Will be empty if not found.public boolean detectAndDecodeMulti(Mat img, java.util.List<java.lang.String> decoded_info, Mat points, java.util.List<Mat> straight_qrcode)
img - grayscale or color (BGR) image containing QR codes.decoded_info - UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.points - optional output vector of vertices of the found QR code quadrangles. Will be empty if not found.straight_qrcode - The optional output vector of images containing rectified and binarized QR codespublic boolean detectMulti(Mat img, Mat points)
img - grayscale or color (BGR) image containing (or not) QR codes.points - Output vector of vector of vertices of the minimum-area quadrangle containing the codes.public long getNativeObjAddr()
public void setEpsX(double epsX)
epsX - Epsilon neighborhood, which allows you to determine the horizontal pattern
of the scheme 1:1:3:1:1 according to QR code standard.public void setEpsY(double epsY)
epsY - Epsilon neighborhood, which allows you to determine the vertical pattern
of the scheme 1:1:3:1:1 according to QR code standard.Generated on 2020-04-03 16:05:20 / OpenCV 4.3.0