mod tess_base_api;
mod text;
use self::tesseract_sys::TessVersion;
pub use leptonica_plumbing;
pub use leptonica_plumbing::leptonica_sys;
use std::ffi::CStr;
pub use tess_base_api::{
TessBaseApi, TessBaseApiGetAltoTextError, TessBaseApiGetHocrTextError,
TessBaseApiGetLstmBoxTextError, TessBaseApiGetTsvTextError, TessBaseApiGetUtf8TextError,
TessBaseApiGetWordStrBoxTextError, TessBaseApiInitError, TessBaseApiRecogniseError,
TessBaseApiSetImageSafetyError, TessBaseApiSetVariableError,
};
pub use tesseract_sys;
pub use text::Text;
pub fn version() -> &'static CStr {
unsafe { CStr::from_ptr(TessVersion()) }
}