@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_objdetect.class) public class QRCodeDetector extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
QRCodeDetector() |
QRCodeDetector(long size)
Native array allocator.
|
QRCodeDetector(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
decode(GpuMat img,
GpuMat points) |
BytePointer |
decode(GpuMat img,
GpuMat points,
GpuMat straight_qrcode) |
BytePointer |
decode(Mat img,
Mat points) |
BytePointer |
decode(Mat img,
Mat points,
Mat straight_qrcode)
\brief Decodes QR code in image once it's found by the detect() method.
|
String |
decode(UMat img,
UMat points) |
String |
decode(UMat img,
UMat points,
UMat straight_qrcode) |
boolean |
detect(GpuMat img,
GpuMat points) |
boolean |
detect(Mat img,
Mat points)
\brief Detects QR code in image and returns the quadrangle containing the code.
|
boolean |
detect(UMat img,
UMat points) |
BytePointer |
detectAndDecode(GpuMat img) |
BytePointer |
detectAndDecode(GpuMat img,
GpuMat points,
GpuMat straight_qrcode) |
BytePointer |
detectAndDecode(Mat img) |
BytePointer |
detectAndDecode(Mat img,
Mat points,
Mat straight_qrcode)
\brief Both detects and decodes QR code
|
String |
detectAndDecode(UMat img) |
String |
detectAndDecode(UMat img,
UMat points,
UMat straight_qrcode) |
QRCodeDetector |
position(long position) |
void |
setEpsX(double epsX)
\brief sets the epsilon used during the horizontal scan of QR code stop marker detection.
|
void |
setEpsY(double epsY)
\brief sets the epsilon used during the vertical scan of QR code stop marker detection.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic QRCodeDetector(Pointer p)
Pointer.Pointer(Pointer).public QRCodeDetector(long size)
Pointer.position(long).public QRCodeDetector()
public QRCodeDetector position(long position)
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.@Cast(value="bool") public boolean detect(@ByVal Mat img, @ByVal 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.@StdString public BytePointer decode(@ByVal Mat img, @ByVal Mat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") 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 code@StdString public BytePointer decode(@ByVal Mat img, @ByVal Mat points)
@StdString public String decode(@ByVal UMat img, @ByVal UMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat straight_qrcode)
@StdString public BytePointer decode(@ByVal GpuMat img, @ByVal GpuMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat straight_qrcode)
@StdString public BytePointer decode(@ByVal GpuMat img, @ByVal GpuMat points)
@StdString public BytePointer detectAndDecode(@ByVal Mat img, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat straight_qrcode)
img - grayscale or color (BGR) image containing QR code.points - opiotnal 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 code@StdString public BytePointer detectAndDecode(@ByVal Mat img)
@StdString public String detectAndDecode(@ByVal UMat img, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat straight_qrcode)
@StdString public String detectAndDecode(@ByVal UMat img)
@StdString public BytePointer detectAndDecode(@ByVal GpuMat img, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat straight_qrcode)
@StdString public BytePointer detectAndDecode(@ByVal GpuMat img)
Copyright © 2019. All rights reserved.