|
|
@@ -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");
|
|
|
}
|
|
|
}
|