public class GraphicalCodeDetector
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static GraphicalCodeDetector |
__fromPtr__(long addr) |
java.lang.String |
decode(Mat img,
Mat points)
Decodes graphical code in image once it's found by the detect() method.
|
java.lang.String |
decode(Mat img,
Mat points,
Mat straight_code)
Decodes graphical 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 graphical 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_code)
Decodes graphical codes in image once it's found by the detect() method.
|
boolean |
detect(Mat img,
Mat points)
Detects graphical code in image and returns the quadrangle containing the code.
|
java.lang.String |
detectAndDecode(Mat img)
Both detects and decodes graphical code
|
java.lang.String |
detectAndDecode(Mat img,
Mat points)
Both detects and decodes graphical code
|
java.lang.String |
detectAndDecode(Mat img,
Mat points,
Mat straight_code)
Both detects and decodes graphical code
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info)
Both detects and decodes graphical codes
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info,
Mat points)
Both detects and decodes graphical codes
|
boolean |
detectAndDecodeMulti(Mat img,
java.util.List<java.lang.String> decoded_info,
Mat points,
java.util.List<Mat> straight_code)
Both detects and decodes graphical codes
|
boolean |
detectMulti(Mat img,
Mat points)
Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
|
long |
getNativeObjAddr() |
public static GraphicalCodeDetector __fromPtr__(long addr)
public java.lang.String decode(Mat img, Mat points)
img - grayscale or color (BGR) image containing graphical code.points - Quadrangle vertices found by detect() method (or some other algorithm).public java.lang.String decode(Mat img, Mat points, Mat straight_code)
img - grayscale or color (BGR) image containing graphical code.points - Quadrangle vertices found by detect() method (or some other algorithm).straight_code - The optional output image containing binarized code, will be empty if not found.public boolean decodeMulti(Mat img, Mat points, java.util.List<java.lang.String> decoded_info)
img - grayscale or color (BGR) image containing graphical 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_code)
img - grayscale or color (BGR) image containing graphical 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_code - The optional output vector of images containing binarized codespublic boolean detect(Mat img, Mat points)
img - grayscale or color (BGR) image containing (or not) graphical 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 graphical code.public java.lang.String detectAndDecode(Mat img, Mat points)
img - grayscale or color (BGR) image containing graphical code.points - optional output array of vertices of the found graphical code quadrangle, will be empty if not found.public java.lang.String detectAndDecode(Mat img, Mat points, Mat straight_code)
img - grayscale or color (BGR) image containing graphical code.points - optional output array of vertices of the found graphical code quadrangle, will be empty if not found.straight_code - The optional output image containing binarized codepublic boolean detectAndDecodeMulti(Mat img, java.util.List<java.lang.String> decoded_info)
img - grayscale or color (BGR) image containing graphical 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 graphical 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 graphical 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_code)
img - grayscale or color (BGR) image containing graphical 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 graphical code quadrangles. Will be empty if not found.straight_code - The optional vector of images containing binarized codespublic boolean detectMulti(Mat img, Mat points)
img - grayscale or color (BGR) image containing (or not) graphical codes.points - Output vector of vector of vertices of the minimum-area quadrangle containing the codes.public long getNativeObjAddr()
Generated on 2023-06-28 12:47:21 / OpenCV 4.8.0