[−][src]Struct tesseract::Tesseract
Implementations
impl Tesseract
[src]
pub fn new(
datapath: Option<&str>,
language: Option<&str>
) -> Result<Self, InitializeError>
[src]
datapath: Option<&str>,
language: Option<&str>
) -> Result<Self, InitializeError>
pub fn set_image(self, filename: &str) -> Result<Self, SetImageError>
[src]
pub fn set_frame(
self,
frame_data: &[u8],
width: i32,
height: i32,
bytes_per_pixel: i32,
bytes_per_line: i32
) -> Result<Self, TessBaseAPISetImageSafetyError>
[src]
self,
frame_data: &[u8],
width: i32,
height: i32,
bytes_per_pixel: i32,
bytes_per_line: i32
) -> Result<Self, TessBaseAPISetImageSafetyError>
pub fn set_image_from_mem(self, img: &[u8]) -> Result<Self, PixReadMemError>
[src]
pub fn set_source_resolution(self, ppi: i32) -> Self
[src]
pub fn set_variable(
self,
name: &str,
value: &str
) -> Result<Self, SetVariableError>
[src]
self,
name: &str,
value: &str
) -> Result<Self, SetVariableError>
pub fn recognize(self) -> Result<Self, TessBaseAPIRecogniseError>
[src]
pub fn get_text(&mut self) -> Result<String, TessBaseAPIGetUTF8TextError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tesseract
impl !Send for Tesseract
impl !Sync for Tesseract
impl Unpin for Tesseract
impl UnwindSafe for Tesseract
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,
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.
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>,