| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | * @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(); |
| | | } |
| | |
| | | * @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(); |
| | | // } |
| | | } |