This commit is contained in:
2025-09-28 18:09:55 +08:00
parent 6507bc6646
commit 516f4e94c9
3 changed files with 8 additions and 3 deletions

View File

@@ -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>

View File

@@ -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-->

View File

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