mirror of
https://github.com/geekwenjie/SmartJavaAI.git
synced 2026-09-12 12:48:57 +00:00
1、seetaface6兼容linux系统
2、支持设置全局缓存路径 3、优化部分功能
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)){
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user