Struct symcode::acute32::Acute32Recognizer[][src]

pub struct Acute32Recognizer<'a> { /* fields omitted */ }

Implementations

impl<'a> Acute32Recognizer<'a>[src]

pub fn new(config: &'a Acute32SymcodeConfig) -> Acute32Recognizer<'a>[src]

pub fn rectify_image(
    raw_image: ColorImage,
    image_to_object: PerspectiveTransform,
    symcode_config: &Acute32SymcodeConfig
) -> BinaryImage
[src]

pub fn validate_cluster_by_rect_size(
    cluster_rect: &BoundingRect,
    symcode_config: &Acute32SymcodeConfig
) -> bool
[src]

Validates the size of a cluster in rectified image

pub fn group_cluster_rects_by_glyph_regions(
    cluster_rects: Vec<BoundingRect>,
    symcode_config: &Acute32SymcodeConfig
) -> Vec<Vec<BoundingRect>>
[src]

For each rect in cluster_rects, classify it into the group of rects that overlap with the glyph region

pub fn centers_of_merged_clusters_in_glyph_regions(
    grouped_cluster_rects: Vec<Vec<BoundingRect>>
) -> Vec<Option<PointI32>>
[src]

Merge each group of cluster rects and returns the centers of the merged clusters, or None if the group has no cluster

pub fn crop_glyph_at_center(
    image: &BinaryImage,
    center: PointI32,
    symcode_config: &Acute32SymcodeConfig
) -> BinaryImage
[src]

Crop an image of a glyph at the specified center position

pub fn find_most_similar_glyph(
    image: BinaryImage,
    glyph_library: &Acute32Library,
    symcode_config: &Acute32SymcodeConfig
) -> GlyphLabel
[src]

Finds the most similar glyph in the library based on given config

pub fn read_glyphs_from_raw_frame(
    image: ColorImage,
    image_to_object: PerspectiveTransform,
    glyph_library: &Acute32Library,
    symcode_config: &Acute32SymcodeConfig
) -> Vec<GlyphLabel>
[src]

Read all glyphs at the anchors on the input image

Trait Implementations

impl Reader for Acute32Recognizer<'_>[src]

type Symbol = GlyphLabel

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Acute32Recognizer<'a>

impl<'a> !Send for Acute32Recognizer<'a>

impl<'a> !Sync for Acute32Recognizer<'a>

impl<'a> Unpin for Acute32Recognizer<'a>

impl<'a> !UnwindSafe for Acute32Recognizer<'a>

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, 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.