@Namespace(value="cv") @Properties(inherit=opencv_objdetect.class) public class QRCodeDetector extends GraphicalCodeDetector
GraphicalCodeDetector.Impl
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
QRCodeDetector() |
QRCodeDetector(long size)
Native array allocator.
|
QRCodeDetector(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BytePointer |
decodeCurved(GpuMat img,
GpuMat points) |
BytePointer |
decodeCurved(GpuMat img,
GpuMat points,
GpuMat straight_qrcode) |
BytePointer |
decodeCurved(Mat img,
Mat points) |
BytePointer |
decodeCurved(Mat img,
Mat points,
Mat straight_qrcode)
\brief Decodes QR code on a curved surface in image once it's found by the detect() method.
|
String |
decodeCurved(UMat img,
UMat points) |
String |
decodeCurved(UMat img,
UMat points,
UMat straight_qrcode) |
BytePointer |
detectAndDecodeCurved(GpuMat img) |
BytePointer |
detectAndDecodeCurved(GpuMat img,
GpuMat points,
GpuMat straight_qrcode) |
BytePointer |
detectAndDecodeCurved(Mat img) |
BytePointer |
detectAndDecodeCurved(Mat img,
Mat points,
Mat straight_qrcode)
\brief Both detects and decodes QR code on a curved surface
|
String |
detectAndDecodeCurved(UMat img) |
String |
detectAndDecodeCurved(UMat img,
UMat points,
UMat straight_qrcode) |
QRCodeDetector |
getPointer(long i) |
QRCodeDetector |
position(long position) |
QRCodeDetector |
setEpsX(double epsX)
\brief sets the epsilon used during the horizontal scan of QR code stop marker detection.
|
QRCodeDetector |
setEpsY(double epsY)
\brief sets the epsilon used during the vertical scan of QR code stop marker detection.
|
QRCodeDetector |
setUseAlignmentMarkers(boolean useAlignmentMarkers)
\brief use markers to improve the position of the corners of the QR code
alignmentMarkers using by default
|
decode, decode, decode, decode, decode, decode, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, decodeMulti, detect, detect, detect, detectAndDecode, detectAndDecode, detectAndDecode, detectAndDecode, detectAndDecode, detectAndDecode, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectAndDecodeMulti, detectMulti, detectMulti, detectMulti, put
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public QRCodeDetector(Pointer p)
Pointer(Pointer)
.public QRCodeDetector(long size)
Pointer.position(long)
.public QRCodeDetector()
public QRCodeDetector position(long position)
position
in class GraphicalCodeDetector
public QRCodeDetector getPointer(long i)
getPointer
in class GraphicalCodeDetector
@ByRef 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.@ByRef 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.@ByRef public QRCodeDetector setUseAlignmentMarkers(@Cast(value="bool") boolean useAlignmentMarkers)
@opencv_core.Str public BytePointer decodeCurved(@ByVal Mat img, @ByVal Mat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat straight_qrcode)
Returns UTF8-encoded output string or empty string if the code cannot be decoded.
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@opencv_core.Str public BytePointer decodeCurved(@ByVal Mat img, @ByVal Mat points)
@opencv_core.Str public String decodeCurved(@ByVal UMat img, @ByVal UMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat straight_qrcode)
@opencv_core.Str public BytePointer decodeCurved(@ByVal GpuMat img, @ByVal GpuMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat straight_qrcode)
@opencv_core.Str public BytePointer decodeCurved(@ByVal GpuMat img, @ByVal GpuMat points)
@StdString public BytePointer detectAndDecodeCurved(@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
- 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 code@StdString public BytePointer detectAndDecodeCurved(@ByVal Mat img)
@StdString public String detectAndDecodeCurved(@ByVal UMat img, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat straight_qrcode)
@StdString public String detectAndDecodeCurved(@ByVal UMat img)
@StdString public BytePointer detectAndDecodeCurved(@ByVal GpuMat img, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat straight_qrcode)
@StdString public BytePointer detectAndDecodeCurved(@ByVal GpuMat img)
Copyright © 2024. All rights reserved.