更改项目结构
This commit is contained in:
@@ -166,11 +166,11 @@ def main(matchimg_vi, matchimg_in):
|
||||
|
||||
def parse_args():
|
||||
# 输入可见光和红外图像路径
|
||||
visible_image_path = "../test/visible.jpg" # 可见光图片路径
|
||||
infrared_image_path = "../test/infrared.jpg" # 红外图片路径
|
||||
visible_image_path = "test/visible.jpg" # 可见光图片路径
|
||||
infrared_image_path = "test/infrared.jpg" # 红外图片路径
|
||||
# 输入可见光和红外视频路径
|
||||
visible_video_path = "../test/visible.mp4" # 可见光视频路径
|
||||
infrared_video_path = "../test/infrared.mp4" # 红外视频路径
|
||||
visible_video_path = "test/visible.mp4" # 可见光视频路径
|
||||
infrared_video_path = "test/infrared.mp4" # 红外视频路径
|
||||
|
||||
"""解析命令行参数"""
|
||||
parser = argparse.ArgumentParser(description='图像融合与目标检测')
|
||||
@@ -277,7 +277,7 @@ if __name__ == '__main__':
|
||||
if flag == 1:
|
||||
# 显示并保存结果
|
||||
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.destroyAllWindows()
|
||||
else:
|
||||
|
BIN
image_fusion/output/fusion_result.jpg
Normal file
BIN
image_fusion/output/fusion_result.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 KiB |
BIN
image_fusion/test/infrared.jpg
Normal file
BIN
image_fusion/test/infrared.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
image_fusion/test/visible.jpg
Normal file
BIN
image_fusion/test/visible.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
Reference in New Issue
Block a user