View Source Evision.DNN.TextDetectionModelEAST (Evision v0.1.14)

Link to this section Summary

Types

t()

Type that represents an Evision.DNN.TextDetectionModelEAST struct.

Functions

Get the detection confidence threshold

Get the detection confidence threshold

Set the detection confidence threshold

Set the detection NMS filter threshold

Variant 1:

Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.

Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.

Link to this section Types

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

Type that represents an Evision.DNN.TextDetectionModelEAST struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

getConfidenceThreshold(self)

View Source
@spec getConfidenceThreshold(t()) :: number() | {:error, String.t()}

Get the detection confidence threshold

Return
  • retval: float

Python prototype (for reference):

getConfidenceThreshold() -> retval
@spec getNMSThreshold(t()) :: number() | {:error, String.t()}

Get the detection confidence threshold

Return
  • retval: float

Python prototype (for reference):

getNMSThreshold() -> retval
Link to this function

setConfidenceThreshold(self, confThreshold)

View Source
@spec setConfidenceThreshold(t(), number()) :: t() | {:error, String.t()}

Set the detection confidence threshold

Positional Arguments
  • confThreshold: float.

    A threshold used to filter boxes by confidences

Return

Python prototype (for reference):

setConfidenceThreshold(confThreshold) -> retval
Link to this function

setNMSThreshold(self, nmsThreshold)

View Source
@spec setNMSThreshold(t(), number()) :: t() | {:error, String.t()}

Set the detection NMS filter threshold

Positional Arguments
  • nmsThreshold: float.

    A threshold used in non maximum suppression

Return

Python prototype (for reference):

setNMSThreshold(nmsThreshold) -> retval
Link to this function

textDetectionModelEAST(model)

View Source
@spec textDetectionModelEAST(binary()) :: t() | {:error, String.t()}
@spec textDetectionModelEAST(Evision.DNN.Net.t()) :: t() | {:error, String.t()}

Variant 1:

Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.

Positional Arguments
  • model: string.

    Binary file contains trained weights.

Keyword Arguments
  • config: string.

    Text file contains network configuration.

Return

Python prototype (for reference):

TextDetectionModel_EAST(model[, config]) -> <dnn_TextDetectionModel_EAST object>

Variant 2:

Create text detection algorithm from deep learning network

Positional Arguments
Return

Python prototype (for reference):

TextDetectionModel_EAST(network) -> <dnn_TextDetectionModel_EAST object>
Link to this function

textDetectionModelEAST(model, opts)

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

Create text detection model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.

Positional Arguments
  • model: string.

    Binary file contains trained weights.

Keyword Arguments
  • config: string.

    Text file contains network configuration.

Return

Python prototype (for reference):

TextDetectionModel_EAST(model[, config]) -> <dnn_TextDetectionModel_EAST object>