pub struct PlateOCRFuzzyKey { /* private fields */ }Expand description
Emits the normalized plate plus a deletion-neighbourhood key for each character position.
The deletion-neighbourhood approach handles any single-character OCR
confusion (0/O, 1/I, M/W, G/C, etc.) without an explicit confusion table:
two plates that differ by exactly one character at position i will both
produce the same key when character i is removed, so they land in the
same candidate bucket.
Example: “CX180W” vs “CXI80W” (1/I confusion at position 2) both become “CX80W” after deleting position 2, so they share a bucket key.
Implementations§
Source§impl PlateOCRFuzzyKey
impl PlateOCRFuzzyKey
pub fn new(plate_field: &str) -> PlateOCRFuzzyKey
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlateOCRFuzzyKey
impl RefUnwindSafe for PlateOCRFuzzyKey
impl Send for PlateOCRFuzzyKey
impl Sync for PlateOCRFuzzyKey
impl Unpin for PlateOCRFuzzyKey
impl UnsafeUnpin for PlateOCRFuzzyKey
impl UnwindSafe for PlateOCRFuzzyKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more