Table of Contents

Class ObjdetectInvoke

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

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 IGraphicalCodeDetector

The graphical code detector

image IInputArray

Grayscale or color (BGR) image containing graphical codes.

points IInputArray

Quadrangle vertices found by detect() method (or some other algorithm).

straightCode IOutputArray

The 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 IGraphicalCodeDetector

The graphical code detector

img IInputArray

Grayscale or color (BGR) image containing graphical codes.

points IInputArray

Vector of Quadrangle vertices found by detect() method (or some other algorithm).

straightCode IOutputArrayOfArrays

The 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 IGraphicalCodeDetector

The graphical code detector

img IInputArray

Grayscale or color (BGR) image containing (or not) graphical code.

points IOutputArray

Output 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 IGraphicalCodeDetector

The graphical code detector

img IInputArray

Grayscale or color (BGR) image containing graphical codes.

straightCode IOutputArrayOfArrays

The 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 IGraphicalCodeDetector

The graphical code detector

img IInputArray

Grayscale or color (BGR) image containing (or not) graphical codes.

points IOutputArray

Output vector of vector of vertices of the minimum-area quadrangle containing the codes.

Returns

bool

True if a QRCode is found.