Class ObjdetectInvoke
This class contains functions to call into object detect module
public static class ObjdetectInvoke
- Inheritance
-
ObjdetectInvoke
- Inherited Members
Methods
Decode(IGraphicalCodeDetector, IInputArray, IInputArray, IOutputArray)
Decodes graphical code in image once it's found by the detect() method.
public static string Decode(this IGraphicalCodeDetector detector, IInputArray image, IInputArray points, IOutputArray straightCode = null)
Parameters
detector
IGraphicalCodeDetectorThe graphical code detector
image
IInputArrayGrayscale or color (BGR) image containing graphical codes.
points
IInputArrayQuadrangle vertices found by detect() method (or some other algorithm).
straightCode
IOutputArrayThe optional output image containing binarized code, will be empty if not found.
Returns
- string
UTF8-encoded output string or empty string if the code cannot be decoded.
DecodeMulti(IGraphicalCodeDetector, IInputArray, IInputArray, IOutputArrayOfArrays)
Decodes graphical codes in image once it's found by the detect() method.
public static string[] DecodeMulti(this IGraphicalCodeDetector detector, IInputArray img, IInputArray points, IOutputArrayOfArrays straightCode = null)
Parameters
detector
IGraphicalCodeDetectorThe graphical code detector
img
IInputArrayGrayscale or color (BGR) image containing graphical codes.
points
IInputArrayVector of Quadrangle vertices found by detect() method (or some other algorithm).
straightCode
IOutputArrayOfArraysThe optional output vector of images containing binarized codes
Returns
- string[]
UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.
Detect(IGraphicalCodeDetector, IInputArray, IOutputArray)
Detects graphical code in image and returns the quadrangle containing the code.
public static bool Detect(this IGraphicalCodeDetector detector, IInputArray img, IOutputArray points)
Parameters
detector
IGraphicalCodeDetectorThe graphical code detector
img
IInputArrayGrayscale or color (BGR) image containing (or not) graphical code.
points
IOutputArrayOutput vector of vertices of the minimum-area quadrangle containing the code.
Returns
- bool
True if a graphical code is found.
DetectAndDecodeMulti(IGraphicalCodeDetector, IInputArray, IOutputArrayOfArrays)
Both detects and decodes graphical codes
public static GraphicalCode[] DetectAndDecodeMulti(this IGraphicalCodeDetector detector, IInputArray img, IOutputArrayOfArrays straightCode = null)
Parameters
detector
IGraphicalCodeDetectorThe graphical code detector
img
IInputArrayGrayscale or color (BGR) image containing graphical codes.
straightCode
IOutputArrayOfArraysThe optional vector of images containing binarized codes
Returns
- GraphicalCode[]
UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded
DetectMulti(IGraphicalCodeDetector, IInputArray, IOutputArray)
Detects graphical codes in image and returns the vector of the quadrangles containing the codes.
public static bool DetectMulti(this IGraphicalCodeDetector detector, IInputArray img, IOutputArray points)
Parameters
detector
IGraphicalCodeDetectorThe graphical code detector
img
IInputArrayGrayscale or color (BGR) image containing (or not) graphical codes.
points
IOutputArrayOutput vector of vector of vertices of the minimum-area quadrangle containing the codes.
Returns
- bool
True if a QRCode is found.