Struct ocrs::OcrEngineParams
source · pub struct OcrEngineParams {
pub detection_model: Option<Model>,
pub recognition_model: Option<Model>,
pub debug: bool,
pub decode_method: DecodeMethod,
}Expand description
Configuration for an OcrEngine instance.
Fields§
§detection_model: Option<Model>Model used to detect text words in the image.
recognition_model: Option<Model>Model used to recognize lines of text in the image.
debug: boolEnable debug logging.
decode_method: DecodeMethodMethod used to decode outputs of text recognition model.
Trait Implementations§
source§impl Default for OcrEngineParams
impl Default for OcrEngineParams
source§fn default() -> OcrEngineParams
fn default() -> OcrEngineParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OcrEngineParams
impl !Send for OcrEngineParams
impl Sync for OcrEngineParams
impl Unpin for OcrEngineParams
impl !UnwindSafe for OcrEngineParams
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