@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_objdetect.class) public class QRCodeDetector extends Pointer
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 |
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 |
decodeMulti(GpuMat img,
GpuMat points,
StringVector decoded_info) |
boolean |
decodeMulti(GpuMat img,
GpuMat points,
StringVector decoded_info,
GpuMatVector straight_qrcode) |
boolean |
decodeMulti(GpuMat img,
GpuMat points,
StringVector decoded_info,
MatVector straight_qrcode) |
boolean |
decodeMulti(GpuMat img,
GpuMat points,
StringVector decoded_info,
UMatVector straight_qrcode) |
boolean |
decodeMulti(Mat img,
Mat points,
StringVector decoded_info) |
boolean |
decodeMulti(Mat img,
Mat points,
StringVector decoded_info,
GpuMatVector straight_qrcode) |
boolean |
decodeMulti(Mat img,
Mat points,
StringVector decoded_info,
MatVector straight_qrcode)
\brief Decodes QR codes in image once it's found by the detect() method.
|
boolean |
decodeMulti(Mat img,
Mat points,
StringVector decoded_info,
UMatVector straight_qrcode) |
boolean |
decodeMulti(UMat img,
UMat points,
StringVector decoded_info) |
boolean |
decodeMulti(UMat img,
UMat points,
StringVector decoded_info,
GpuMatVector straight_qrcode) |
boolean |
decodeMulti(UMat img,
UMat points,
StringVector decoded_info,
MatVector straight_qrcode) |
boolean |
decodeMulti(UMat img,
UMat points,
StringVector decoded_info,
UMatVector 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) |
boolean |
detectAndDecodeMulti(GpuMat img,
StringVector decoded_info) |
boolean |
detectAndDecodeMulti(GpuMat img,
StringVector decoded_info,
GpuMat points,
GpuMatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(GpuMat img,
StringVector decoded_info,
GpuMat points,
MatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(GpuMat img,
StringVector decoded_info,
GpuMat points,
UMatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(Mat img,
StringVector decoded_info) |
boolean |
detectAndDecodeMulti(Mat img,
StringVector decoded_info,
Mat points,
GpuMatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(Mat img,
StringVector decoded_info,
Mat points,
MatVector straight_qrcode)
\brief Both detects and decodes QR codes
|
boolean |
detectAndDecodeMulti(Mat img,
StringVector decoded_info,
Mat points,
UMatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(UMat img,
StringVector decoded_info) |
boolean |
detectAndDecodeMulti(UMat img,
StringVector decoded_info,
UMat points,
GpuMatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(UMat img,
StringVector decoded_info,
UMat points,
MatVector straight_qrcode) |
boolean |
detectAndDecodeMulti(UMat img,
StringVector decoded_info,
UMat points,
UMatVector straight_qrcode) |
boolean |
detectMulti(GpuMat img,
GpuMat points) |
boolean |
detectMulti(Mat img,
Mat points)
\brief Detects QR codes in image and returns the vector of the quadrangles containing the codes.
|
boolean |
detectMulti(UMat img,
UMat points) |
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, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public 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)
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@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
- 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 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)
@Cast(value="bool") public boolean detectMulti(@ByVal Mat img, @ByVal 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.@Cast(value="bool") public boolean decodeMulti(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector 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 codes@Cast(value="bool") public boolean decodeMulti(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean decodeMulti(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal Mat img, @ByVal Mat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") GpuMatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean decodeMulti(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal UMat img, @ByVal UMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") GpuMatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean decodeMulti(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
@Cast(value="bool") public boolean decodeMulti(@ByVal GpuMat img, @ByVal GpuMat points, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") GpuMatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal Mat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector 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 codes@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal Mat img, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal Mat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal Mat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") Mat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") GpuMatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal UMat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal UMat img, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal UMat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal UMat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") UMat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") GpuMatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal GpuMat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") MatVector straight_qrcode)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal GpuMat img, @ByRef StringVector decoded_info)
@Cast(value="bool") public boolean detectAndDecodeMulti(@ByVal GpuMat img, @ByRef StringVector decoded_info, @ByVal(nullValue="cv::OutputArray(cv::noArray())") GpuMat points, @ByVal(nullValue="cv::OutputArrayOfArrays(cv::noArray())") UMatVector straight_qrcode)
Copyright © 2020. All rights reserved.