View Source Evision.QRCodeDetectorAruco (Evision v0.2.9)

Summary

Types

t()

Type that represents an QRCodeDetectorAruco struct.

Functions

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.

Decodes graphical codes in image once it's found by the detect() method.

Decodes graphical codes in image once it's found by the detect() method.

Detects graphical code in image and returns the quadrangle containing the code.

Detects graphical code in image and returns the quadrangle containing the code.

Both detects and decodes graphical code

Both detects and decodes graphical code

Both detects and decodes graphical codes

Both detects and decodes graphical codes

Detects graphical codes in image and returns the vector of the quadrangles containing the codes.

Detects graphical codes in image and returns the vector of the quadrangles containing the codes.

Aruco detector parameters are used to search for the finder patterns.

Detector parameters getter. See cv::QRCodeDetectorAruco::Params

QRCodeDetectorAruco

QR code detector constructor for Aruco-based algorithm. See cv::QRCodeDetectorAruco::Params

Aruco detector parameters are used to search for the finder patterns.

Detector parameters setter. See cv::QRCodeDetectorAruco::Params

Types

@type t() :: %Evision.QRCodeDetectorAruco{ref: reference()}

Type that represents an QRCodeDetectorAruco struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec decode(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

decode(self, img, points)

View Source
@spec decode(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}

Decodes graphical code in image once it's found by the detect() method.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical code.

  • points: Evision.Mat.

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

Return
  • retval: string

  • straight_code: Evision.Mat.t().

    The optional output image containing binarized code, will be empty if not found.

Returns UTF8-encoded output string or empty string if the code cannot be decoded.

Python prototype (for reference only):

decode(img, points[, straight_code]) -> retval, straight_code
Link to this function

decode(self, img, points, opts)

View Source
@spec decode(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) ::
  {binary(), Evision.Mat.t()} | {:error, String.t()}

Decodes graphical code in image once it's found by the detect() method.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical code.

  • points: Evision.Mat.

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

Return
  • retval: string

  • straight_code: Evision.Mat.t().

    The optional output image containing binarized code, will be empty if not found.

Returns UTF8-encoded output string or empty string if the code cannot be decoded.

Python prototype (for reference only):

decode(img, points[, straight_code]) -> retval, straight_code
@spec decodeMulti(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

decodeMulti(self, img, points)

View Source
@spec decodeMulti(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) ::
  {[binary()], [Evision.Mat.t()]} | false | {:error, String.t()}

Decodes graphical codes in image once it's found by the detect() method.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical codes.

  • points: Evision.Mat.

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

Return
  • retval: bool

  • decoded_info: [string].

    UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

  • straight_code: [Evision.Mat].

    The optional output vector of images containing binarized codes

Python prototype (for reference only):

decodeMulti(img, points[, straight_code]) -> retval, decoded_info, straight_code
Link to this function

decodeMulti(self, img, points, opts)

View Source
@spec decodeMulti(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) :: {[binary()], [Evision.Mat.t()]} | false | {:error, String.t()}

Decodes graphical codes in image once it's found by the detect() method.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical codes.

  • points: Evision.Mat.

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

Return
  • retval: bool

  • decoded_info: [string].

    UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

  • straight_code: [Evision.Mat].

    The optional output vector of images containing binarized codes

Python prototype (for reference only):

decodeMulti(img, points[, straight_code]) -> retval, decoded_info, straight_code
@spec detect(Keyword.t()) :: any() | {:error, String.t()}
@spec detect(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | false | {:error, String.t()}

Detects graphical code in image and returns the quadrangle containing the code.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

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

Return
  • retval: bool

  • points: Evision.Mat.t().

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

Python prototype (for reference only):

detect(img[, points]) -> retval, points
@spec detect(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | false | {:error, String.t()}

Detects graphical code in image and returns the quadrangle containing the code.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

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

Return
  • retval: bool

  • points: Evision.Mat.t().

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

Python prototype (for reference only):

detect(img[, points]) -> retval, points
Link to this function

detectAndDecode(named_args)

View Source
@spec detectAndDecode(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

detectAndDecode(self, img)

View Source
@spec detectAndDecode(t(), Evision.Mat.maybe_mat_in()) ::
  {binary(), Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}

Both detects and decodes graphical code

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical code.

Return
  • retval: string

  • points: Evision.Mat.t().

    optional output array of vertices of the found graphical code quadrangle, will be empty if not found.

  • straight_code: Evision.Mat.t().

    The optional output image containing binarized code

Python prototype (for reference only):

detectAndDecode(img[, points[, straight_code]]) -> retval, points, straight_code
Link to this function

detectAndDecode(self, img, opts)

View Source
@spec detectAndDecode(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) ::
  {binary(), Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}

Both detects and decodes graphical code

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical code.

Return
  • retval: string

  • points: Evision.Mat.t().

    optional output array of vertices of the found graphical code quadrangle, will be empty if not found.

  • straight_code: Evision.Mat.t().

    The optional output image containing binarized code

Python prototype (for reference only):

detectAndDecode(img[, points[, straight_code]]) -> retval, points, straight_code
Link to this function

detectAndDecodeMulti(named_args)

View Source
@spec detectAndDecodeMulti(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

detectAndDecodeMulti(self, img)

View Source
@spec detectAndDecodeMulti(t(), Evision.Mat.maybe_mat_in()) ::
  {[binary()], Evision.Mat.t(), [Evision.Mat.t()]}
  | false
  | {:error, String.t()}

Both detects and decodes graphical codes

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical codes.

Return
  • retval: bool

  • decoded_info: [string].

    UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

  • points: Evision.Mat.t().

    optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.

  • straight_code: [Evision.Mat].

    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.

Python prototype (for reference only):

detectAndDecodeMulti(img[, points[, straight_code]]) -> retval, decoded_info, points, straight_code
Link to this function

detectAndDecodeMulti(self, img, opts)

View Source
@spec detectAndDecodeMulti(
  t(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) ::
  {[binary()], Evision.Mat.t(), [Evision.Mat.t()]}
  | false
  | {:error, String.t()}

Both detects and decodes graphical codes

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

    grayscale or color (BGR) image containing graphical codes.

Return
  • retval: bool

  • decoded_info: [string].

    UTF8-encoded output vector of string or empty vector of string if the codes cannot be decoded.

  • points: Evision.Mat.t().

    optional output vector of vertices of the found graphical code quadrangles. Will be empty if not found.

  • straight_code: [Evision.Mat].

    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.

Python prototype (for reference only):

detectAndDecodeMulti(img[, points[, straight_code]]) -> retval, decoded_info, points, straight_code
@spec detectMulti(Keyword.t()) :: any() | {:error, String.t()}
@spec detectMulti(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | false | {:error, String.t()}

Detects graphical codes in image and returns the vector of the quadrangles containing the codes.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

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

Return
  • retval: bool

  • points: Evision.Mat.t().

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

Python prototype (for reference only):

detectMulti(img[, points]) -> retval, points
Link to this function

detectMulti(self, img, opts)

View Source
@spec detectMulti(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | false | {:error, String.t()}

Detects graphical codes in image and returns the vector of the quadrangles containing the codes.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()

  • img: Evision.Mat.

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

Return
  • retval: bool

  • points: Evision.Mat.t().

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

Python prototype (for reference only):

detectMulti(img[, points]) -> retval, points
Link to this function

getArucoParameters(named_args)

View Source
@spec getArucoParameters(Keyword.t()) :: any() | {:error, String.t()}
@spec getArucoParameters(t()) ::
  Evision.Aruco.DetectorParameters | {:error, String.t()}

Aruco detector parameters are used to search for the finder patterns.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()
Return
  • retval: aruco::DetectorParameters

Python prototype (for reference only):

getArucoParameters() -> retval
Link to this function

getDetectorParameters(named_args)

View Source
@spec getDetectorParameters(Keyword.t()) :: any() | {:error, String.t()}
@spec getDetectorParameters(t()) ::
  Evision.QRCodeDetectorAruco.Params | {:error, String.t()}

Detector parameters getter. See cv::QRCodeDetectorAruco::Params

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()
Return
  • retval: QRCodeDetectorAruco::Params

Python prototype (for reference only):

getDetectorParameters() -> retval
@spec qrcodedetectoraruco() :: Evision.QRCodeDetectorAruco | {:error, String.t()}

QRCodeDetectorAruco

Return
  • self: Evision.QRCodeDetectorAruco.t()

Python prototype (for reference only):

QRCodeDetectorAruco() -> <QRCodeDetectorAruco object>
Link to this function

qrcodedetectoraruco(named_args)

View Source
@spec qrcodedetectoraruco(Keyword.t()) :: any() | {:error, String.t()}
@spec qrcodedetectoraruco(Evision.QRCodeDetectorAruco.Params.t()) ::
  Evision.QRCodeDetectorAruco | {:error, String.t()}

QR code detector constructor for Aruco-based algorithm. See cv::QRCodeDetectorAruco::Params

Positional Arguments
  • params: QRCodeDetectorAruco_Params
Return
  • self: Evision.QRCodeDetectorAruco.t()

Python prototype (for reference only):

QRCodeDetectorAruco(params) -> <QRCodeDetectorAruco object>
Link to this function

setArucoParameters(named_args)

View Source
@spec setArucoParameters(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setArucoParameters(self, params)

View Source
@spec setArucoParameters(t(), Evision.Aruco.DetectorParameters) ::
  Evision.QRCodeDetectorAruco | {:error, String.t()}

Aruco detector parameters are used to search for the finder patterns.

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()
  • params: aruco_DetectorParameters

Python prototype (for reference only):

setArucoParameters(params) -> None
Link to this function

setDetectorParameters(named_args)

View Source
@spec setDetectorParameters(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setDetectorParameters(self, params)

View Source
@spec setDetectorParameters(t(), Evision.QRCodeDetectorAruco.Params.t()) ::
  Evision.QRCodeDetectorAruco | {:error, String.t()}

Detector parameters setter. See cv::QRCodeDetectorAruco::Params

Positional Arguments
  • self: Evision.QRCodeDetectorAruco.t()
  • params: QRCodeDetectorAruco_Params
Return
  • retval: Evision.QRCodeDetectorAruco.t()

Python prototype (for reference only):

setDetectorParameters(params) -> retval