更改项目结构
This commit is contained in:
parent
34a5247dd2
commit
f320e79702
@ -166,11 +166,11 @@ def main(matchimg_vi, matchimg_in):
|
|||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
# 输入可见光和红外图像路径
|
# 输入可见光和红外图像路径
|
||||||
visible_image_path = "../test/visible.jpg" # 可见光图片路径
|
visible_image_path = "test/visible.jpg" # 可见光图片路径
|
||||||
infrared_image_path = "../test/infrared.jpg" # 红外图片路径
|
infrared_image_path = "test/infrared.jpg" # 红外图片路径
|
||||||
# 输入可见光和红外视频路径
|
# 输入可见光和红外视频路径
|
||||||
visible_video_path = "../test/visible.mp4" # 可见光视频路径
|
visible_video_path = "test/visible.mp4" # 可见光视频路径
|
||||||
infrared_video_path = "../test/infrared.mp4" # 红外视频路径
|
infrared_video_path = "test/infrared.mp4" # 红外视频路径
|
||||||
|
|
||||||
"""解析命令行参数"""
|
"""解析命令行参数"""
|
||||||
parser = argparse.ArgumentParser(description='图像融合与目标检测')
|
parser = argparse.ArgumentParser(description='图像融合与目标检测')
|
||||||
@ -277,7 +277,7 @@ if __name__ == '__main__':
|
|||||||
if flag == 1:
|
if flag == 1:
|
||||||
# 显示并保存结果
|
# 显示并保存结果
|
||||||
cv2.imshow("Fusion with Detection", fusion_result)
|
cv2.imshow("Fusion with Detection", fusion_result)
|
||||||
cv2.imwrite("../output/fusion_result.jpg", fusion_result)
|
cv2.imwrite("output/fusion_result.jpg", fusion_result)
|
||||||
cv2.waitKey(0)
|
cv2.waitKey(0)
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
else:
|
else:
|
||||||
|
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 152 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
Loading…
Reference in New Issue
Block a user