Compare commits

...

7 Commits

4 changed files with 34 additions and 8 deletions

33
.gitignore vendored
View File

@ -8,9 +8,6 @@ node_modules/
config.local.json
!config.example.json
# 忽略 IDE 文件
.idea/
*.iml
# 忽略编译输出目录
dist/
@ -18,3 +15,33 @@ build/
test
*test*
*.pyc
__pycache__/
misc.xml
profiles_settings.xml
Project_Default.xml
*test*.py
# 忽略 Python 缓存文件
*.pyo
*.pyd
*.mo
*.so
uvmodule.log
# IDE
.idea/
*.iml
.vscode/
# Temp files
*.tmp
*.swp

3
.idea/.gitignore generated vendored
View File

@ -1,3 +0,0 @@
# 默认忽略的文件
/shelf/
/workspace.xml

View File

@ -165,13 +165,15 @@ def pic_detect_func(mqtt_pub_ip, mqtt_pub_port, mqtt_pub_topic,
try:
frame_copy = frame.copy()
results = counter(frame)
func_id=model_func_id_list[0]
annotated_frame, box_result = cal_tricker_results(frame_copy, counter, class_names,
model_func_id_list,
func_id,
local_func_cache, para, cls, chinese_label,
model_func_id_list[0])
except Exception as e:
print(f"处理帧错误: {e}")
print(f"处理帧错误1: {e}")
error_count += 1
if error_count >= 5:
print(f"连续处理错误达到5次 ,正在停止处理...")

BIN
pt/build-wall.pt Normal file

Binary file not shown.