增加墙面裂缝魔心,修改目标识别接口bug

This commit is contained in:
martin 2026-01-27 11:18:05 +08:00
parent eedca6cd50
commit a2d3e2e24b
2 changed files with 4 additions and 2 deletions

View File

@ -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

Binary file not shown.