Struct opencv::dnn::TextDetectionModel[][src]

#[repr(C)]
pub struct TextDetectionModel { /* fields omitted */ }
Expand description

Base class for text detection networks

Implementations

Performs detection

Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections.

Each result is quadrangle’s 4 points in this order:

  • bottom-left
  • top-left
  • top-right
  • bottom-right

Use cv::getPerspectiveTransform function to retrive image region without perspective transformations.

Note: If DL model doesn’t support that kind of output then result may be derived from detectTextRectangles() output.

Parameters
  • frame: The input image
  • detections:[out] array with detections’ quadrangles (4 points per result)
  • confidences:[out] array with detection confidences

Performs detection

Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections.

Each result is quadrangle’s 4 points in this order:

  • bottom-left
  • top-left
  • top-right
  • bottom-right

Use cv::getPerspectiveTransform function to retrive image region without perspective transformations.

Note: If DL model doesn’t support that kind of output then result may be derived from detectTextRectangles() output.

Parameters
  • frame: The input image
  • detections:[out] array with detections’ quadrangles (4 points per result)
  • confidences:[out] array with detection confidences
Overloaded parameters

Performs detection

Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections.

Each result is rotated rectangle.

Note: Result may be inaccurate in case of strong perspective transformations.

Parameters
  • frame: the input image
  • detections:[out] array with detections’ RotationRect results
  • confidences:[out] array with detection confidences

Performs detection

Given the input @p frame, prepare network input, run network inference, post-process network output and return result detections.

Each result is rotated rectangle.

Note: Result may be inaccurate in case of strong perspective transformations.

Parameters
  • frame: the input image
  • detections:[out] array with detections’ RotationRect results
  • confidences:[out] array with detection confidences
Overloaded parameters

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.