From ae2d52827d289dd985014a63c08b0913d083b215 Mon Sep 17 00:00:00 2001 From: bsw215583320 <baoshiwei121@163.com> Date: 星期二, 09 四月 2024 08:48:38 +0800 Subject: [PATCH] 去掉opc相关业务 --- 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