public class QRCodeDetector extends GraphicalCodeDetector
nativeObj
Modifier | Constructor and Description |
---|---|
|
QRCodeDetector() |
protected |
QRCodeDetector(long addr) |
Modifier and Type | Method and Description |
---|---|
static QRCodeDetector |
__fromPtr__(long addr) |
String |
decodeCurved(Mat img,
Mat points)
Decodes QR code on a curved surface in image once it's found by the detect() method.
|
String |
decodeCurved(Mat img,
Mat points,
Mat straight_qrcode)
Decodes QR code on a curved surface in image once it's found by the detect() method.
|
String |
detectAndDecodeCurved(Mat img)
Both detects and decodes QR code on a curved surface
|
String |
detectAndDecodeCurved(Mat img,
Mat points)
Both detects and decodes QR code on a curved surface
|
String |
detectAndDecodeCurved(Mat img,
Mat points,
Mat straight_qrcode)
Both detects and decodes QR code on a curved surface
|
protected void |
finalize() |
QRCodeDetector |
setEpsX(double epsX)
sets the epsilon used during the horizontal scan of QR code stop marker detection.
|
QRCodeDetector |
setEpsY(double epsY)
sets the epsilon used during the vertical scan of QR code stop marker detection.
|
QRCodeDetector |
setUseAlignmentMarkers(boolean useAlignmentMarkers)
use markers to improve the position of the corners of the QR code
alignmentMarkers using by default
|
decode, decode, decodeMulti, decodeMulti, detect, detectAndDecode, detectAndDecode, detectAndDecode, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectMulti, getNativeObjAddr
protected QRCodeDetector(long addr)
public QRCodeDetector()
public static QRCodeDetector __fromPtr__(long addr)
public QRCodeDetector 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 QRCodeDetector 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.public QRCodeDetector setUseAlignmentMarkers(boolean useAlignmentMarkers)
useAlignmentMarkers
- automatically generatedpublic String decodeCurved(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 String decodeCurved(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 String detectAndDecodeCurved(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 String detectAndDecodeCurved(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 String detectAndDecodeCurved(Mat img)
img
- grayscale or color (BGR) image containing QR code.protected void finalize() throws Throwable
finalize
in class GraphicalCodeDetector
Throwable
Copyright © 2024. All rights reserved.