View Source Evision.Text.TextDetector (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an Text.TextDetector struct.

Functions

Method that provides a quick and simple interface to detect text inside an image

Link to this section Types

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

Type that represents an Text.TextDetector struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

detect(self, inputImage)

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

Method that provides a quick and simple interface to detect text inside an image

Positional Arguments
  • self: Evision.Text.TextDetector.t()

  • inputImage: Evision.Mat.t().

    an image to process

Return
  • bbox: [Rect].

    a vector of Rect that will store the detected word bounding box

  • confidence: [float].

    a vector of float that will be updated with the confidence the classifier has for the selected bounding box

Python prototype (for reference only):

detect(inputImage) -> Bbox, confidence