Package cn.com.anysdk.ocr.service.impl
Class AliyunOcrService
java.lang.Object
cn.com.anysdk.ocr.service.impl.AliyunOcrService
- All Implemented Interfaces:
IOcrService
阿里云 OCR 服务实现
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrecognize(byte[] imageBytes, OcrOptions options) 识别图片字节数组recognize(File file, OcrOptions options) 识别图片文件recognize(InputStream inputStream, OcrOptions options) 识别图片输入流recognize(String url, OcrOptions options) 识别图片 URL
-
Constructor Details
-
AliyunOcrService
-
-
Method Details
-
recognize
Description copied from interface:IOcrService识别图片文件- Specified by:
recognizein interfaceIOcrService- Parameters:
file- 图片文件options- 识别选项- Returns:
- 识别结果
-
recognize
Description copied from interface:IOcrService识别图片输入流- Specified by:
recognizein interfaceIOcrService- Parameters:
inputStream- 图片输入流options- 识别选项- Returns:
- 识别结果
-
recognize
Description copied from interface:IOcrService识别图片字节数组- Specified by:
recognizein interfaceIOcrService- Parameters:
imageBytes- 图片字节数组options- 识别选项- Returns:
- 识别结果
-
recognize
Description copied from interface:IOcrService识别图片 URL- Specified by:
recognizein interfaceIOcrService- Parameters:
url- 图片 URLoptions- 识别选项- Returns:
- 识别结果
-