View Source Evision.Text.TextDetectorCNN (Evision v0.2.9)
Summary
Types
@type t() :: %Evision.Text.TextDetectorCNN{ref: reference()}
Type that represents an Text.TextDetectorCNN
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
create
Positional Arguments
Return
- retval:
Evision.Text.TextDetectorCNN.t()
Has overloading in C++
Python prototype (for reference only):
create(modelArchFilename, modelWeightsFilename) -> retval
@spec detect(t(), Evision.Mat.maybe_mat_in()) :: {[{number(), number(), number(), number()}], [number()]} | {:error, String.t()}
detect
Positional Arguments
self:
Evision.Text.TextDetectorCNN.t()
inputImage:
Evision.Mat
.an image expected to be a CV_U8C3 of any size
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
Has overloading in C++
Python prototype (for reference only):
detect(inputImage) -> Bbox, confidence