123456789101112 |
- from mydetection import ship_detection_fun
- # my_path = './picture_examples/'
- my_path_label = 'D:/hiddz/SAR_Ship_detection_CFAR-python-20240506\\picture_labels\\P0001_1200_2000_8400_9200.txt'
- my_path_pic = 'D:/hiddz/SAR_Ship_detection_CFAR-python-20240506/picture_examples\\P0001_1200_2000_8400_9200.jpg'
- result_path = ship_detection_fun(my_path_pic, my_path_label) # my_path_pic: 原始图片路径, my_path_label: 标签路径, path: 保存结果路径
- print(result_path)
- # my_path_pic D:/hiddz/SAR_Ship_detection_CFAR-python-20240506/picture_examples
- # D:/hiddz/SAR_Ship_detection_CFAR-python-20240506\picture_labels
- # ['python', './test_data/xie\\mydetection.py',
- # 'D:/hiddz/SAR_Ship_detection_CFAR-python-20240506/picture_examples\\P0001_1200_2000_8400_9200.jpg',
- # 'D:/hiddz/SAR_Ship_detection_CFAR-python-20240506\\picture_labels\\P0001_1200_2000_8400_9200.txt']
|