Direct Invocation of YOLOv8 Trained Models in Java
pom.xml 文件中需要增加一些包。 <repositories> <repository> <id>opencv</id> <url>https://mvnrepository.com/artifact/org.openpnp/opencv</url> </repository> <repository> <id>djl.ai</id> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </repository> </repositories> <dependencies> <!-- DJL Core API --> <dependency> <groupId>ai.djl</groupId> <artifactId>api</artifactId> <version>${djl.version}</version> </dependency> <!-- DJL PyTorch Engine --> <dependency> <groupId>ai.djl.pytorch</groupId> <artifactId>pytorch-engine</artifactId> <version>${djl.version}</version> </dependency> <!-- DJL PyTorch Model Zoo --> <dependency> <groupId>ai.djl.pytorch</groupId> <artifactId>pytorch-model-zoo</artifactId> <version>${djl.version}</version> </dependency> <!-- DJL Basic Dataset --> <dependency> <groupId>ai.djl</groupId> <artifactId>basicdataset</artifactId> <version>${djl.version}</version> </dependency> <!-- DJL Image Processing --> <dependency>...