不限制只能读取jpg
This commit is contained in:
parent
ffcd4ef8d5
commit
502d64c208
@ -279,8 +279,8 @@ class ImagePreprocessor:
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# 创建配置
|
# 创建配置
|
||||||
config = PreprocessConfig(
|
config = PreprocessConfig(
|
||||||
image_dir=r"E:\datasets\UAV\283\project\images",
|
image_dir=r"G:\error_data\ODMTestData",
|
||||||
output_dir=r"G:\ODM_output\283",
|
output_dir=r"G:\ODM_output\1w",
|
||||||
|
|
||||||
cluster_eps=0.01,
|
cluster_eps=0.01,
|
||||||
cluster_min_samples=5,
|
cluster_min_samples=5,
|
||||||
@ -296,8 +296,8 @@ if __name__ == "__main__":
|
|||||||
filter_dense_distance_threshold=10,
|
filter_dense_distance_threshold=10,
|
||||||
filter_time_threshold=timedelta(minutes=5),
|
filter_time_threshold=timedelta(minutes=5),
|
||||||
|
|
||||||
grid_size=400,
|
grid_size=1000,
|
||||||
grid_overlap=0.1,
|
grid_overlap=0.05,
|
||||||
|
|
||||||
|
|
||||||
mode="重建模式",
|
mode="重建模式",
|
||||||
|
@ -76,7 +76,6 @@ class GPSExtractor:
|
|||||||
successful_extractions = 0
|
successful_extractions = 0
|
||||||
|
|
||||||
for image_file in os.listdir(self.image_dir):
|
for image_file in os.listdir(self.image_dir):
|
||||||
if image_file.lower().endswith('.jpg'):
|
|
||||||
total_images += 1
|
total_images += 1
|
||||||
image_path = os.path.join(self.image_dir, image_file)
|
image_path = os.path.join(self.image_dir, image_file)
|
||||||
lat, lon, date = self.get_gps_and_date(image_path)
|
lat, lon, date = self.get_gps_and_date(image_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user