From 30b8d04a7a4d1e258076906df7bca20535d05538 Mon Sep 17 00:00:00 2001
From: Champagne <1369741103@qq.com>
Date: Fri, 20 Jun 2025 14:43:19 +0800
Subject: [PATCH] 1
---
.idea/.gitignore | 8 ++++++++
.idea/inspectionProfiles/Project_Default.xml | 10 ++++++++++
.idea/inspectionProfiles/profiles_settings.xml | 6 ++++++
.idea/measure_lib.iml | 8 ++++++++
.idea/misc.xml | 7 +++++++
.idea/modules.xml | 8 ++++++++
.idea/vcs.xml | 6 ++++++
py/measure_lib.py | 2 +-
8 files changed, 54 insertions(+), 1 deletion(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/inspectionProfiles/Project_Default.xml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/measure_lib.iml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..35410ca
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..72ad4ef
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100644
index 0000000..105ce2d
--- /dev/null
+++ b/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/measure_lib.iml b/.idea/measure_lib.iml
new file mode 100644
index 0000000..d0876a7
--- /dev/null
+++ b/.idea/measure_lib.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..db8786c
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..88f8f89
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/py/measure_lib.py b/py/measure_lib.py
index 3b62759..f054a4a 100644
--- a/py/measure_lib.py
+++ b/py/measure_lib.py
@@ -174,7 +174,7 @@ output_folder = 'C:\\Users\\Administrator\\Desktop\\BYD\\Visual measurement\\pic
# return Z/len(x_bot),-max_Yw
def vs_measurement(txt_name,position):
- if os.path.exists(txt_name):
+ if not os.path.exists(txt_name):
return None,None,None,None
# 获取数据
x_bot, y_bot, x_top, y_top = get_data.get_data(txt_name)