Compare commits
7 Commits
0f44df8cec
...
c5eeb87488
| Author | SHA1 | Date | |
|---|---|---|---|
| c5eeb87488 | |||
| ee8733a0ce | |||
| 0ce543572b | |||
| 929c670add | |||
| 1656f81fe3 | |||
| dfb89c70a3 | |||
| a2d3e2e24b |
33
.gitignore
vendored
33
.gitignore
vendored
@ -8,9 +8,6 @@ node_modules/
|
|||||||
config.local.json
|
config.local.json
|
||||||
!config.example.json
|
!config.example.json
|
||||||
|
|
||||||
# 忽略 IDE 文件
|
|
||||||
.idea/
|
|
||||||
*.iml
|
|
||||||
|
|
||||||
# 忽略编译输出目录
|
# 忽略编译输出目录
|
||||||
dist/
|
dist/
|
||||||
@ -18,3 +15,33 @@ build/
|
|||||||
|
|
||||||
test
|
test
|
||||||
*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
3
.idea/.gitignore
generated
vendored
@ -1,3 +0,0 @@
|
|||||||
# 默认忽略的文件
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
@ -165,13 +165,15 @@ def pic_detect_func(mqtt_pub_ip, mqtt_pub_port, mqtt_pub_topic,
|
|||||||
try:
|
try:
|
||||||
frame_copy = frame.copy()
|
frame_copy = frame.copy()
|
||||||
results = counter(frame)
|
results = counter(frame)
|
||||||
|
|
||||||
|
func_id=model_func_id_list[0]
|
||||||
annotated_frame, box_result = cal_tricker_results(frame_copy, counter, class_names,
|
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,
|
local_func_cache, para, cls, chinese_label,
|
||||||
model_func_id_list[0])
|
model_func_id_list[0])
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"处理帧错误: {e}")
|
print(f"处理帧错误1: {e}")
|
||||||
error_count += 1
|
error_count += 1
|
||||||
if error_count >= 5:
|
if error_count >= 5:
|
||||||
print(f"连续处理错误达到5次 ,正在停止处理...")
|
print(f"连续处理错误达到5次 ,正在停止处理...")
|
||||||
|
|||||||
BIN
pt/build-wall.pt
Normal file
BIN
pt/build-wall.pt
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user