|
@@ -59,32 +59,4 @@ public class Tess4jClient {
|
|
|
//再结合敏感词过滤算法,审核图片中的文字是否包含敏感词
|
|
|
}
|
|
|
|
|
|
-// public byte[] downLoadFile(String pathUrl) {
|
|
|
-// String key = pathUrl.replace(minIOConfigProperties.getEndpoint()+"/","");
|
|
|
-// int index = key.indexOf("/");
|
|
|
-// String bucket = key.substring(0,index);
|
|
|
-// String filePath = key.substring(index+1);
|
|
|
-// InputStream inputStream = null;
|
|
|
-// try {
|
|
|
-// inputStream = minioClient.getObject(GetObjectArgs.builder().bucket(minIOConfigProperties.getBucket()).object(filePath).build());
|
|
|
-// } catch (Exception e) {
|
|
|
-// log.error("minio down file error. pathUrl:{}",pathUrl);
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
-//
|
|
|
-// ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
|
-// byte[] buff = new byte[100];
|
|
|
-// int rc = 0;
|
|
|
-// while (true) {
|
|
|
-// try {
|
|
|
-// if (!((rc = inputStream.read(buff, 0, 100)) > 0)) break;
|
|
|
-// } catch (IOException e) {
|
|
|
-// e.printStackTrace();
|
|
|
-// }
|
|
|
-// byteArrayOutputStream.write(buff, 0, rc);
|
|
|
-// }
|
|
|
-// return byteArrayOutputStream.toByteArray();
|
|
|
-// }
|
|
|
-
|
|
|
-
|
|
|
}
|