From 08b6a55a3a111aaee9842999b85afa60b6d61dc3 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 14 十一月 2024 15:29:38 +0800 Subject: [PATCH] 大华及海康摄像头截图功能开发 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHSavePath.java | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHSavePath.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHSavePath.java index 031681a..e3cbca0 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHSavePath.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHSavePath.java @@ -1,9 +1,9 @@ package com.iailab.module.data.video.dahua; +import com.iailab.module.data.video.config.VideoConfiguration; import com.iailab.netsdk.lib.ToolKits; import java.io.File; -import java.io.IOException; import java.util.Date; /** @@ -27,12 +27,12 @@ * @return */ public String getSaveCapturePath(String channel, Date curDate) { - File path1 = new File(DHConfiguration.staticCapturePath); + File path1 = new File(VideoConfiguration.staticDhCapturePath); if (!path1.exists()) { path1.mkdir(); } - File path2 = new File(DHConfiguration.staticCapturePath + ToolKits.getDay() + "/" + channel + "/"); + File path2 = new File(VideoConfiguration.staticDhCapturePath + ToolKits.getDay() + "/" + channel + "/"); if (!path2.exists()) { path2.mkdirs(); } @@ -49,17 +49,17 @@ * @param curDate * @return */ - public String getSaveModelPath(String cameraCode, Date curDate) throws IOException { -// File path1 = new File(modelPath); -// if (!path1.exists()) { -// path1.mkdir(); -// } - - File path2 = new File(DHConfiguration.staticModelPath + ToolKits.getDay() + "/" + cameraCode + "/"); -// if (!path2.exists()) { -// path2.mkdirs(); -// } - //return path2.getAbsolutePath() + "/"; - return path2.getAbsolutePath(); - } +// public String getSaveModelPath(String cameraCode, Date curDate) throws IOException { +//// File path1 = new File(modelPath); +//// if (!path1.exists()) { +//// path1.mkdir(); +//// } +// +// File path2 = new File(DHConfiguration.staticModelPath + ToolKits.getDay() + "/" + cameraCode + "/"); +//// if (!path2.exists()) { +//// path2.mkdirs(); +//// } +// //return path2.getAbsolutePath() + "/"; +// return path2.getAbsolutePath(); +// } } \ No newline at end of file -- Gitblit v1.9.3