Documentation
1
2
3
4
5
6
7
8
9
10
use json::{JsonValue};

pub mod aliyun;
pub mod baidu;


pub trait OcrMode {
    fn ocr(&mut self, file_path: &str, file_b64: &str) -> JsonValue;
    fn translate(&mut self, text: &str) -> JsonValue;
}