Fix detect_track.py: Uncommented observe variable for testing purposes to ensure proper functionality during image processing.

This commit is contained in:
havoc420ubuntu 2025-05-28 12:24:01 +00:00
parent 12be1b8e67
commit a5d8960a85

View File

@ -19,7 +19,7 @@ def detect_horizontal_track_edge(image, observe=False, delay=1000, save_log=True
edge_point: 赛道前方边缘点的坐标 (x, y)
edge_info: 边缘信息字典
"""
# observe = False # TEST
observe = False # TEST
# 如果输入是字符串(文件路径),则加载图像
if isinstance(image, str):
img = cv2.imread(image)