Struct symcode::acute32::Acute32Recognizer [−][src]
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]
raw_image: ColorImage,
image_to_object: PerspectiveTransform,
symcode_config: &Acute32SymcodeConfig
) -> BinaryImage
pub fn validate_cluster_by_rect_size(
cluster_rect: &BoundingRect,
symcode_config: &Acute32SymcodeConfig
) -> bool
[src]
cluster_rect: &BoundingRect,
symcode_config: &Acute32SymcodeConfig
) -> bool
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]
cluster_rects: Vec<BoundingRect>,
symcode_config: &Acute32SymcodeConfig
) -> Vec<Vec<BoundingRect>>
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]
grouped_cluster_rects: Vec<Vec<BoundingRect>>
) -> Vec<Option<PointI32>>
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]
image: &BinaryImage,
center: PointI32,
symcode_config: &Acute32SymcodeConfig
) -> BinaryImage
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]
image: BinaryImage,
glyph_library: &Acute32Library,
symcode_config: &Acute32SymcodeConfig
) -> GlyphLabel
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]
image: ColorImage,
image_to_object: PerspectiveTransform,
glyph_library: &Acute32Library,
symcode_config: &Acute32SymcodeConfig
) -> Vec<GlyphLabel>
Read all glyphs at the anchors on the input image
Trait Implementations
impl Reader for Acute32Recognizer<'_>
[src]
type Symbol = GlyphLabel
fn read(
&self,
raw_frame: ColorImage,
image_to_object: PerspectiveTransform
) -> Result<Vec<GlyphLabel>, &'static str>
[src]
&self,
raw_frame: ColorImage,
image_to_object: PerspectiveTransform
) -> Result<Vec<GlyphLabel>, &'static str>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,