View Source Evision.Text.TextDetector (Evision v0.2.9)
Summary
Functions
Method that provides a quick and simple interface to detect text inside an image
Types
@type t() :: %Evision.Text.TextDetector{ref: reference()}
Type that represents an Text.TextDetector
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@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
.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