diff --git a/pom.xml b/pom.xml index 0e538c3..d09d204 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,18 @@ default + + + + org.apache.maven.plugins + maven-compiler-plugin + + 7 + 7 + + + + diff --git a/src/main/java/xyz/wbsite/easyai/图像识别.java b/src/main/java/xyz/wbsite/easyai/图像识别.java new file mode 100644 index 0000000..1391495 --- /dev/null +++ b/src/main/java/xyz/wbsite/easyai/图像识别.java @@ -0,0 +1,20 @@ +package xyz.wbsite.easyai; + +import org.dromara.easyai.yolo.FastYolo; +import org.dromara.easyai.yolo.YoloConfig; +import org.dromara.easyai.yolo.YoloSample; + +import java.util.ArrayList; +import java.util.List; + +public class 图像识别 { + public static void main(String[] args) throws Exception { + // 初始化 + YoloConfig yoloConfig = new YoloConfig(); + FastYolo fastYolo = new FastYolo(yoloConfig); + List yoloSamples = new ArrayList<>(); + YoloSample yoloSample = new YoloSample(); + + fastYolo.toStudy(yoloSamples); + } +} diff --git a/src/main/resources/temple/a1.jpg b/src/main/resources/temple/a1.jpg new file mode 100644 index 0000000..3d87759 Binary files /dev/null and b/src/main/resources/temple/a1.jpg differ diff --git a/src/main/resources/temple/b1.jpg b/src/main/resources/temple/b1.jpg new file mode 100644 index 0000000..127f85f Binary files /dev/null and b/src/main/resources/temple/b1.jpg differ