From 70d50bfb934492c3f76d9053fe6051d83015d288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BEV=E5=8F=A4=E6=96=AF?= Date: Thu, 14 May 2020 14:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yuxue/constant/Constant.java | 4 ++-- src/main/java/com/yuxue/easypr/core/PlateLocate.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yuxue/constant/Constant.java b/src/main/java/com/yuxue/constant/Constant.java index bdab0c4b..7133983a 100644 --- a/src/main/java/com/yuxue/constant/Constant.java +++ b/src/main/java/com/yuxue/constant/Constant.java @@ -11,10 +11,10 @@ public class Constant { public static final String UTF8 = "UTF-8"; // 车牌识别, 默认车牌图片保存路径 - public static String DEFAULT_DIR = "D:/PlateDetect/"; + public static String DEFAULT_DIR = "./PlateDetect/"; // 车牌识别, 默认车牌图片处理过程temp路径 - public static String DEFAULT_TEMP_DIR = "D:/PlateDetect/temp/"; + public static String DEFAULT_TEMP_DIR = "./PlateDetect/temp/"; // 车牌识别,默认处理图片类型 public static String DEFAULT_TYPE = "png,jpg,jpeg"; diff --git a/src/main/java/com/yuxue/easypr/core/PlateLocate.java b/src/main/java/com/yuxue/easypr/core/PlateLocate.java index b87fc442..33ba33d4 100644 --- a/src/main/java/com/yuxue/easypr/core/PlateLocate.java +++ b/src/main/java/com/yuxue/easypr/core/PlateLocate.java @@ -5,6 +5,7 @@ import java.util.Vector; import static org.bytedeco.javacpp.opencv_core.*; import static org.bytedeco.javacpp.opencv_imgproc.*; +import com.yuxue.constant.Constant; import org.bytedeco.javacpp.opencv_imgcodecs; import org.bytedeco.javacpp.opencv_core.CvPoint2D32f; @@ -69,7 +70,7 @@ public class PlateLocate { protected boolean debug = true; // 开启调试模式之后,切图文件保存路径 - protected String tempPath = "d:/PlateDetect/temp/" + System.currentTimeMillis() + "/"; + protected String tempPath = Constant.DEFAULT_TEMP_DIR + System.currentTimeMillis() + "/";