[][src]Enum opencv::text::erGrouping_Modes

#[repr(C)]pub enum erGrouping_Modes {
    ERGROUPING_ORIENTATION_HORIZ,
    ERGROUPING_ORIENTATION_ANY,
}

text::erGrouping operation modes

Variants

ERGROUPING_ORIENTATION_HORIZ

Exhaustive Search algorithm proposed in Neumann11 for grouping horizontally aligned text. The algorithm models a verification function for all the possible ER sequences. The verification fuction for ER pairs consists in a set of threshold-based pairwise rules which compare measurements of two regions (height ratio, centroid angle, and region distance). The verification function for ER triplets creates a word text line estimate using Least Median-Squares fitting for a given triplet and then verifies that the estimate is valid (based on thresholds created during training). Verification functions for sequences larger than 3 are approximated by verifying that the text line parameters of all (sub)sequences of length 3 are consistent.

ERGROUPING_ORIENTATION_ANY

Text grouping method proposed in Gomez13 Gomez14 for grouping arbitrary oriented text. Regions are agglomerated by Single Linkage Clustering in a weighted feature space that combines proximity (x,y coordinates) and similarity measures (color, size, gradient magnitude, stroke width, etc.). SLC provides a dendrogram where each node represents a text group hypothesis. Then the algorithm finds the branches corresponding to text groups by traversing this dendrogram with a stopping rule that combines the output of a rotation invariant text group classifier and a probabilistic measure for hierarchical clustering validity assessment.

Note: This mode is not supported due NFA code removal ( https://github.com/opencv/opencv_contrib/issues/2235 )

Trait Implementations

impl Clone for erGrouping_Modes[src]

impl Copy for erGrouping_Modes[src]

impl Debug for erGrouping_Modes[src]

impl PartialEq<erGrouping_Modes> for erGrouping_Modes[src]

impl StructuralPartialEq for erGrouping_Modes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.