Package org.opencv.objdetect
Class GraphicalCodeDetector
java.lang.Object
org.opencv.objdetect.GraphicalCodeDetector
- Direct Known Subclasses:
BarcodeDetector,QRCodeDetector,QRCodeDetectorAruco
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphicalCodeDetector__fromPtr__(long addr) Decodes graphical code in image once it's found by the detect() method.Decodes graphical code in image once it's found by the detect() method.byte[]decodeBytes(Mat img, Mat points) byte[]decodeBytes(Mat img, Mat points, Mat straight_code) booleandecodeBytesMulti(Mat img, Mat points, List<byte[]> decoded_info) booleanbooleandecodeMulti(Mat img, Mat points, List<String> decoded_info) Decodes graphical codes in image once it's found by the detect() method.booleanDecodes graphical codes in image once it's found by the detect() method.booleanDetects graphical code in image and returns the quadrangle containing the code.detectAndDecode(Mat img) Both detects and decodes graphical codedetectAndDecode(Mat img, Mat points) Both detects and decodes graphical codedetectAndDecode(Mat img, Mat points, Mat straight_code) Both detects and decodes graphical codebyte[]detectAndDecodeBytes(Mat img) byte[]detectAndDecodeBytes(Mat img, Mat points) byte[]detectAndDecodeBytes(Mat img, Mat points, Mat straight_code) booleandetectAndDecodeBytesMulti(Mat img, List<byte[]> decoded_info) booleandetectAndDecodeBytesMulti(Mat img, List<byte[]> decoded_info, Mat points) booleanbooleandetectAndDecodeMulti(Mat img, List<String> decoded_info) Both detects and decodes graphical codesbooleandetectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points) Both detects and decodes graphical codesbooleanBoth detects and decodes graphical codesbooleandetectMulti(Mat img, Mat points) Detects graphical codes in image and returns the vector of the quadrangles containing the codes.long
-
Method Details
-
getNativeObjAddr
public long getNativeObjAddr() -
__fromPtr__
-
detect
Detects graphical code in image and returns the quadrangle containing the code.- Parameters:
img- grayscale or color (BGR) image containing (or not) graphical code.points- Output vector of vertices of the minimum-area quadrangle containing the code.- Returns:
- automatically generated
-
decode
Decodes graphical code in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.- Parameters:
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.- Returns:
- automatically generated
-
decode
Decodes graphical code in image once it's found by the detect() method. Returns UTF8-encoded output string or empty string if the code cannot be decoded.- Parameters:
img- grayscale or color (BGR) image containing graphical code.points- Quadrangle vertices found by detect() method (or some other algorithm).- Returns:
- automatically generated
-
detectAndDecode
Both detects and decodes graphical code- Parameters:
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 code- Returns:
- automatically generated
-
detectAndDecode
Both detects and decodes graphical code- Parameters:
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.- Returns:
- automatically generated
-
detectAndDecode
Both detects and decodes graphical code- Parameters:
img- grayscale or color (BGR) image containing graphical code.- Returns:
- automatically generated
-
detectMulti
Detects graphical codes in image and returns the vector of the quadrangles containing the codes.- Parameters:
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.- Returns:
- automatically generated
-
decodeMulti
Decodes graphical codes in image once it's found by the detect() method.- Parameters:
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 codes- Returns:
- automatically generated
-
decodeMulti
Decodes graphical codes in image once it's found by the detect() method.- Parameters:
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).- Returns:
- automatically generated
-
detectAndDecodeMulti
public boolean detectAndDecodeMulti(Mat img, List<String> decoded_info, Mat points, List<Mat> straight_code) Both detects and decodes graphical codes- Parameters:
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 codes- If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.
- Returns:
- automatically generated
-
detectAndDecodeMulti
Both detects and decodes graphical codes- Parameters:
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.- If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.
- Returns:
- automatically generated
-
detectAndDecodeMulti
Both detects and decodes graphical codes- Parameters:
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.- If there are QR codes encoded with a Structured Append mode on the image and all of them detected and decoded correctly, method writes a full message to position corresponds to 0-th code in a sequence. The rest of QR codes from the same sequence have empty string.
- Returns:
- automatically generated
-
detectAndDecodeBytes
-
detectAndDecodeBytes
-
detectAndDecodeBytes
-
decodeBytes
-
decodeBytes
-
decodeBytesMulti
-
decodeBytesMulti
-
detectAndDecodeBytesMulti
-
detectAndDecodeBytesMulti
-
detectAndDecodeBytesMulti
-