1、seetaface6兼容linux系统

2、支持设置全局缓存路径
3、优化部分功能
This commit is contained in:
dengwenjie
2025-04-19 19:48:12 +08:00
parent 56f221662b
commit 526bc1c8d7
36 changed files with 736 additions and 324 deletions

View File

@@ -6,11 +6,11 @@
<parent>
<groupId>ink.numberone</groupId>
<artifactId>smartjavaai-parent</artifactId>
<version>1.0.8</version>
<version>1.0.10</version>
</parent>
<artifactId>smartjavaai-objectdetection</artifactId>
<version>1.0.8</version>
<version>1.0.10</version>
<name>smartjavaai-objectdetection</name>
<description>SmartJavaAI</description>
<url>https://github.com/geekwenjie/SmartJavaAI</url>

View File

@@ -99,7 +99,7 @@ public class DetectorModel implements AutoCloseable{
/**
* 目标检测-将检测结果绘制到原图
* @param imagePath
* @return
* @param outputPath
*/
public void detectAndDraw(String imagePath, String outputPath){
if(!FileUtils.isFileExists(imagePath)){

View File

@@ -1,5 +1,6 @@
package cn.smartjavaai.objectdetection.model;
import cn.smartjavaai.common.config.Config;
import cn.smartjavaai.objectdetection.DetectorModelConfig;
import cn.smartjavaai.objectdetection.DetectorModelEnum;
import cn.smartjavaai.objectdetection.exception.DetectionException;
@@ -21,6 +22,10 @@ public class ObjectDetectionModelFactory {
private static final ConcurrentHashMap<String, DetectorModel> modelMap = new ConcurrentHashMap<>();
static{
log.info("缓存目录:{}", Config.getCachePath());
}
// 私有构造函数,防止外部创建实例
private ObjectDetectionModelFactory() {}