x1ongzhu 6 yıl önce
ebeveyn
işleme
9ca2ecc3a3
2 değiştirilmiş dosya ile 15 ekleme ve 8 silme
  1. 6 0
      log.txt
  2. 9 8
      src/test/java/RecognitionTest.java

+ 6 - 0
log.txt

@@ -1919,3 +1919,9 @@ Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Tesseract-OCR\
 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1108)
 	... 51 more
+[2019-02-28 18:54:49] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.
+[2019-02-28 18:55:34] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.
+[2019-02-28 18:57:07] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.
+[2019-02-28 18:58:51] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.
+[2019-02-28 19:01:34] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.
+[2019-02-28 19:01:54] [WARN ] - Bad pool size config, start 3 < min 5. Using 5 as start.

+ 9 - 8
src/test/java/RecognitionTest.java

@@ -47,13 +47,14 @@ public class RecognitionTest {
 //
 //        String rank = videoRecognitionService.extractRank(img);
 //        System.out.println("rank:" + rank);
-        SVM svm = SVM.load(GetResource.class.getClassLoader().getResource("trainneddata/pubg.xml").getPath());
-        Mat frame = imread("/Users/drew/Desktop/1.jpg");
-        if (videoRecognitionService.matchGameOver(svm, frame)) {
-            String rank = videoRecognitionService.extractRank(frame);
-            String time = videoRecognitionService.extractGameTime(frame);
-            System.out.println(rank);
-            System.out.println(time);
-        }
+//         SVM svm = SVM.load(GetResource.class.getClassLoader().getResource("trainneddata/pubg.xml").getPath());
+//         Mat frame = imread("/Users/drew/Desktop/1.jpg");
+//         if (videoRecognitionService.matchGameOver(svm, frame)) {
+//             String rank = videoRecognitionService.extractRank(frame);
+//             String time = videoRecognitionService.extractGameTime(frame);
+//             System.out.println(rank);
+//             System.out.println(time);
+//         }
+        videoRecognitionService.start("/Users/drew/Downloads/84703-1551350776.flv");
     }
 }