| | |
| | | |
| | | private static DHSavePath instance = new DHSavePath(); |
| | | |
| | | public final static String capturePath = "D:/irs/Capture/"; |
| | | |
| | | public final static String modelPath = "D:/irs/Model/"; |
| | | |
| | | public static DHSavePath getSavePath() { |
| | | return instance; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | public String getSaveCapturePath(String channel, Date curDate) { |
| | | File path1 = new File(capturePath); |
| | | File path1 = new File(DHConfiguration.staticCapturePath); |
| | | if (!path1.exists()) { |
| | | path1.mkdir(); |
| | | } |
| | | |
| | | File path2 = new File(capturePath + ToolKits.getDay() + "/" + channel + "/"); |
| | | File path2 = new File(DHConfiguration.staticCapturePath + ToolKits.getDay() + "/" + channel + "/"); |
| | | if (!path2.exists()) { |
| | | path2.mkdirs(); |
| | | } |
| | |
| | | // path1.mkdir(); |
| | | // } |
| | | |
| | | File path2 = new File(modelPath + ToolKits.getDay() + "/" + cameraCode + "/"); |
| | | File path2 = new File(DHConfiguration.staticModelPath + ToolKits.getDay() + "/" + cameraCode + "/"); |
| | | // if (!path2.exists()) { |
| | | // path2.mkdirs(); |
| | | // } |