手写体识别
返回内容介绍
public static String sample(TAipOcr client) throws Exception {
//参数为本地图片路径
String imagePath = "./User/xiaoshaui/mp.jpg";
String result = client.plateOcrByImage("./idcard.jpg");
//参数为本地图片二进制数组
byte[] image = FileUtil.readFileByBytes(imagePath);
String result = client.plateOcrByImage(image);
return result;
}
public static String sample(TAipOcr client) throws Exception {
//参数为网络图片URL路径
String result = client.plateOcrByUrl("https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1193229681,1639380780&fm=27&gp=0.jpg");
return result;
}