use of com.tencentcloudapi.ocr.v20181119.models.VinOCRResponse in project cloud-sdk by mizhousoft.
the class TencentOCRServiceImpl method imageUrlOCR.
/**
* {@inheritDoc}
*/
@Override
public String imageUrlOCR(String imageUrl) throws CloudSDKException {
VinOCRRequest req = new VinOCRRequest();
req.setImageUrl(imageUrl);
try {
VinOCRResponse resp = ocrClient.VinOCR(req);
return resp.getVin();
} catch (TencentCloudSDKException e) {
throw new CloudSDKException(e.getMessage(), e);
}
}
use of com.tencentcloudapi.ocr.v20181119.models.VinOCRResponse in project cloud-sdk by mizhousoft.
the class TencentOCRServiceImpl method imageBase64OCR.
/**
* {@inheritDoc}
*/
@Override
public String imageBase64OCR(String imageBase64) throws CloudSDKException {
VinOCRRequest req = new VinOCRRequest();
req.setImageBase64(imageBase64);
try {
VinOCRResponse resp = ocrClient.VinOCR(req);
return resp.getVin();
} catch (TencentCloudSDKException e) {
throw new CloudSDKException(e.getMessage(), e);
}
}
Aggregations