Common functions and classes#

Classes#

Class cv::GraphicalCodeDetector#

Collaboration diagram for cv::GraphicalCodeDetector:

Constructor & Destructor Documentation#

GraphicalCodeDetector()#

cv::GraphicalCodeDetector::GraphicalCodeDetector()

GraphicalCodeDetector()#

cv::GraphicalCodeDetector::GraphicalCodeDetector(const GraphicalCodeDetector &)

GraphicalCodeDetector()#

cv::GraphicalCodeDetector::GraphicalCodeDetector(GraphicalCodeDetector &&)

Member Function Documentation#

decode()#

std::string cv::GraphicalCodeDetector::decode(
InputArray img,
InputArray points,
OutputArray straight_code = noArray() )

Python:

cv.GraphicalCodeDetector.decode(img, points[, straight_code]) -> retval, straight_code
cv.GraphicalCodeDetector.decodeBytes(img, points[, straight_code]) -> retval, straight_code

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.

Here is the call graph for this function:

cv::GraphicalCodeDetector::decode Node1 cv::GraphicalCodeDetector ::decode Node2 cv::noArray Node1->Node2

cv::GraphicalCodeDetector::decode Node1 cv::GraphicalCodeDetector ::decode Node2 cv::noArray Node1->Node2

decodeMulti()#

bool cv::GraphicalCodeDetector::decodeMulti(
InputArray img,
InputArray points,
std::vector< std::string > & decoded_info,
OutputArrayOfArrays straight_code = noArray() )

Python:

cv.GraphicalCodeDetector.decodeBytesMulti(img, points[, straight_code]) -> retval, decoded_info, straight_code
cv.GraphicalCodeDetector.decodeMulti(img, points[, straight_code]) -> retval, decoded_info, straight_code

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

Here is the call graph for this function:

cv::GraphicalCodeDetector::decodeMulti Node1 cv::GraphicalCodeDetector ::decodeMulti Node2 cv::noArray Node1->Node2

cv::GraphicalCodeDetector::decodeMulti Node1 cv::GraphicalCodeDetector ::decodeMulti Node2 cv::noArray Node1->Node2

detect()#

bool cv::GraphicalCodeDetector::detect(
InputArray img,
OutputArray points )

Python:

cv.GraphicalCodeDetector.detect(img[, points]) -> retval, points

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.

detectAndDecode()#

std::string cv::GraphicalCodeDetector::detectAndDecode(
InputArray img,
OutputArray points = noArray(),
OutputArray straight_code = noArray() )

Python:

cv.GraphicalCodeDetector.detectAndDecode(img[, points[, straight_code]]) -> retval, points, straight_code
cv.GraphicalCodeDetector.detectAndDecodeBytes(img[, points[, straight_code]]) -> retval, points, straight_code

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

Here is the call graph for this function:

cv::GraphicalCodeDetector::detectAndDecode Node1 cv::GraphicalCodeDetector ::detectAndDecode Node2 cv::noArray Node1->Node2

cv::GraphicalCodeDetector::detectAndDecode Node1 cv::GraphicalCodeDetector ::detectAndDecode Node2 cv::noArray Node1->Node2

detectAndDecodeMulti()#

bool cv::GraphicalCodeDetector::detectAndDecodeMulti(
InputArray img,
std::vector< std::string > & decoded_info,
OutputArray points = noArray(),
OutputArrayOfArrays straight_code = noArray() )

Python:

cv.GraphicalCodeDetector.detectAndDecodeBytesMulti(img[, points[, straight_code]]) -> retval, decoded_info, points, straight_code
cv.GraphicalCodeDetector.detectAndDecodeMulti(img[, points[, straight_code]]) -> retval, decoded_info, points, straight_code

Both detects and decodes graphical 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.

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

Here is the call graph for this function:

cv::GraphicalCodeDetector::detectAndDecodeMulti Node1 cv::GraphicalCodeDetector ::detectAndDecodeMulti Node2 cv::noArray Node1->Node2

cv::GraphicalCodeDetector::detectAndDecodeMulti Node1 cv::GraphicalCodeDetector ::detectAndDecodeMulti Node2 cv::noArray Node1->Node2

detectMulti()#

bool cv::GraphicalCodeDetector::detectMulti(
InputArray img,
OutputArray points )

Python:

cv.GraphicalCodeDetector.detectMulti(img[, points]) -> retval, points

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.

operator=()#

GraphicalCodeDetector & cv::GraphicalCodeDetector::operator=(const GraphicalCodeDetector &)

operator=()#

GraphicalCodeDetector & cv::GraphicalCodeDetector::operator=(GraphicalCodeDetector &&)

Member Data Documentation#

p#

Ptr< Impl > cv::GraphicalCodeDetector::p

Source file#

The documentation for this class was generated from the following file: