From e62ffd3aaa1ba27b63885f8a3c8610ed283245d6 Mon Sep 17 00:00:00 2001 From: bsw215583320 <baoshiwei121@163.com> Date: 星期四, 07 十一月 2024 11:13:47 +0800 Subject: [PATCH] Merge branch 'herb' into cloud --- jeecg-module-dry/jeecg-module-dry-start/src/main/test/java/com/lanbao/AiTest.java | 54 +++++++++++++++++++++++++++--------------------------- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/jeecg-module-dry/jeecg-module-dry-start/src/main/test/java/com/lanbao/AiTest.java b/jeecg-module-dry/jeecg-module-dry-start/src/main/test/java/com/lanbao/AiTest.java index 4f2a6c3..0c39a55 100644 --- a/jeecg-module-dry/jeecg-module-dry-start/src/main/test/java/com/lanbao/AiTest.java +++ b/jeecg-module-dry/jeecg-module-dry-start/src/main/test/java/com/lanbao/AiTest.java @@ -1,27 +1,27 @@ -package com.lanbao; - -import ai.djl.modality.Classifications; -import org.jeecg.modules.dry.util.HerbUtil; -import org.junit.Test; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.InputStream; -import java.util.List; - -public class AiTest { - @Test - public void test() { - try { - String img = "E:\\testImg\\szp1.jpg"; - HerbUtil herbUtil = new HerbUtil(); - File file = new File(img); - InputStream is = new FileInputStream(file); - List<Classifications.Classification> predict = herbUtil.predict(is); - System.out.println(predict); - } catch (FileNotFoundException e) { - throw new RuntimeException(e); - } - } -} +//package com.lanbao; +// +//import ai.djl.modality.Classifications; +//import org.jeecg.modules.dry.util.HerbUtil; +//import org.junit.Test; +// +//import java.io.File; +//import java.io.FileInputStream; +//import java.io.FileNotFoundException; +//import java.io.InputStream; +//import java.util.List; +// +//public class AiTest { +// @Test +// public void test() { +// try { +// String img = "E:\\testImg\\szp1.jpg"; +// HerbUtil herbUtil = new HerbUtil(); +// File file = new File(img); +// InputStream is = new FileInputStream(file); +// List<Classifications.Classification> predict = herbUtil.predict(is); +// System.out.println(predict); +// } catch (FileNotFoundException e) { +// throw new RuntimeException(e); +// } +// } +//} -- Gitblit v1.9.3