diff --git a/open-anpr-test/src/main/java/com/visual/open/anpr/exps/PlateRecognitionExample.java b/open-anpr-test/src/main/java/com/visual/open/anpr/exps/PlateRecognitionExample.java index 1b3502a..c01d98d 100755 --- a/open-anpr-test/src/main/java/com/visual/open/anpr/exps/PlateRecognitionExample.java +++ b/open-anpr-test/src/main/java/com/visual/open/anpr/exps/PlateRecognitionExample.java @@ -15,9 +15,9 @@ public class PlateRecognitionExample { static{ nu.pattern.OpenCV.loadShared(); } //本地开发模式 -// public static String serverHost = "http://127.0.0.1:8080"; + public static String serverHost = "http://127.0.0.1:8080"; //docker部署模式 - public static String serverHost = "http://172.16.36.228:56790"; +// public static String serverHost = "http://127.0.0.1:56790"; //远程测试服务 //public static String serverHost = "http://open-anpr.diven.nat300.top"; @@ -27,14 +27,14 @@ public class PlateRecognitionExample { public static void recognition() { String searchPath = "open-anpr-test/src/main/resources/image"; File [] files = Objects.requireNonNull(new File(searchPath).listFiles()); -// for(int u=0; u<=1000; u++) - for(int i=0; i< files.length-1; i++){ + System.out.println(files.length); + for(int i=0; i < files.length; i++){ + System.out.println(i); File imageA = files[i]; String imageBase64 = Base64Util.encode(imageA.getAbsolutePath()); Response> response = plateRecognition.detection().recognition( Recognition.build().setImage(imageBase64).setLimit(5) ); - DrawImage drawImage = DrawImage.build(imageA.getAbsolutePath()); if(response.ok()){ for(RecognitionRep recognitionRep : response.getData()){ diff --git a/open-anpr-test/src/main/resources/image1/75a6f232_7346047.jpeg b/open-anpr-test/src/main/resources/image1/75a6f232_7346047.jpeg new file mode 100644 index 0000000..7adbde8 Binary files /dev/null and b/open-anpr-test/src/main/resources/image1/75a6f232_7346047.jpeg differ diff --git a/open-anpr-test/src/main/resources/image1/c4145e27_7346047.jpeg b/open-anpr-test/src/main/resources/image1/c4145e27_7346047.jpeg new file mode 100644 index 0000000..4c78b78 Binary files /dev/null and b/open-anpr-test/src/main/resources/image1/c4145e27_7346047.jpeg differ diff --git a/open-anpr-test/src/main/resources/image1/f7759908_7346047.png b/open-anpr-test/src/main/resources/image1/f7759908_7346047.png new file mode 100644 index 0000000..cbd7988 Binary files /dev/null and b/open-anpr-test/src/main/resources/image1/f7759908_7346047.png differ