pub struct OcrApi { /* private fields */ }Expand description
OCR / 图像处理 API 门面
Implementations§
Source§impl OcrApi
impl OcrApi
pub fn new(client: MpClient) -> OcrApi
pub fn client(&self) -> &MpClient
Sourcepub async fn printed_text(
&self,
img: ImageSource,
) -> Result<CommOcrResponse, MpError>
pub async fn printed_text( &self, img: ImageSource, ) -> Result<CommOcrResponse, MpError>
通用印刷体
Sourcepub async fn id_card(
&self,
img: ImageSource,
) -> Result<IdCardOcrResponse, MpError>
pub async fn id_card( &self, img: ImageSource, ) -> Result<IdCardOcrResponse, MpError>
身份证
Sourcepub async fn bank_card(
&self,
img: ImageSource,
) -> Result<BankCardOcrResponse, MpError>
pub async fn bank_card( &self, img: ImageSource, ) -> Result<BankCardOcrResponse, MpError>
银行卡
Sourcepub async fn driving(
&self,
img: ImageSource,
) -> Result<DrivingOcrResponse, MpError>
pub async fn driving( &self, img: ImageSource, ) -> Result<DrivingOcrResponse, MpError>
行驶证
Sourcepub async fn driving_license(
&self,
img: ImageSource,
) -> Result<DrivingLicenseOcrResponse, MpError>
pub async fn driving_license( &self, img: ImageSource, ) -> Result<DrivingLicenseOcrResponse, MpError>
驾驶证
Sourcepub async fn biz_license(
&self,
img: ImageSource,
) -> Result<BizLicenseOcrResponse, MpError>
pub async fn biz_license( &self, img: ImageSource, ) -> Result<BizLicenseOcrResponse, MpError>
营业执照
Sourcepub async fn ai_crop(
&self,
img: ImageSource,
ratios: Option<&str>,
) -> Result<AiCropResponse, MpError>
pub async fn ai_crop( &self, img: ImageSource, ratios: Option<&str>, ) -> Result<AiCropResponse, MpError>
智能裁剪
Sourcepub async fn scan_qrcode(
&self,
img: ImageSource,
) -> Result<QrCodeResponse, MpError>
pub async fn scan_qrcode( &self, img: ImageSource, ) -> Result<QrCodeResponse, MpError>
二维码 / 条码识别
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OcrApi
impl !UnwindSafe for OcrApi
impl Freeze for OcrApi
impl Send for OcrApi
impl Sync for OcrApi
impl Unpin for OcrApi
impl UnsafeUnpin for OcrApi
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