1
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -42,7 +42,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bytedeco</groupId>
|
<groupId>org.bytedeco</groupId>
|
||||||
<artifactId>javacv-platform</artifactId>
|
<artifactId>javacv-platform</artifactId>
|
||||||
<version>1.5.10</version> <!-- 版本号需与项目兼容 -->
|
<version>1.5.12</version> <!-- 版本号需与项目兼容 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- SpringBoot的依赖配置-->
|
<!-- SpringBoot的依赖配置-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -35,7 +35,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bytedeco</groupId>
|
<groupId>org.bytedeco</groupId>
|
||||||
<artifactId>javacv-platform</artifactId>
|
<artifactId>javacv-platform</artifactId>
|
||||||
<version>1.5.11</version>
|
<version>1.5.12</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.bytedeco</groupId>
|
||||||
|
<artifactId>opencv-platform</artifactId>
|
||||||
|
<version>4.11.0-1.5.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- 解析 models.json-->
|
<!-- 解析 models.json-->
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public final class OnnxYoloDetector implements YoloDetector {
|
|||||||
} else {
|
} else {
|
||||||
this.classes = new String[0];
|
this.classes = new String[0];
|
||||||
}
|
}
|
||||||
|
System.out.println("CV_VERSION = " + CV_VERSION);
|
||||||
try {
|
try {
|
||||||
// 加载ONNX模型
|
// 加载ONNX模型
|
||||||
this.net = readNetFromONNX(onnx);
|
this.net = readNetFromONNX(onnx);
|
||||||
|
|||||||
Reference in New Issue
Block a user