Skip to content

Commit ff3ba6e

Browse files
committed
refactor: Change the constraint about orientation in first ba
1 parent 13bcbac commit ff3ba6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
config = {
22
# Params for files
3-
"image_path": "/home/user/hdd/LDM_Jeju/02_211113-14_Pyoseon/211113_Pyoseon/Raw/",
3+
"image_path": "/home/user/hdd/LDM_Jeju/02_211113-14_Pyoseon/211113_Pyoseon/Raw_test/",
44
"extension": "JPG",
55
"metadata_in_image": False, # Whether to read metadata in an image itself(True) or from an external file(False)
6-
"output_path": "/home/user/hdd/LDM_Jeju/02_211113-14_Pyoseon/211113_Pyoseon/Orthophotos/",
6+
"output_path": "/home/user/hdd/LDM_Jeju/02_211113-14_Pyoseon/211113_Pyoseon/Orthophotos_test/",
77

88
# Params for georeferencing
99
"no_images_process": 5, # Number of images to perform local bundle adjustment. At least 3
1010
"types": "nonfixed-estimated", # Types of setting accuracy (fixed, nonfixed-initial, nonfixed-estimated)
11-
"matching_accuracy": 2, # Image matching accuracy (Highest = 0, High = 1, Medium = 2, Low = 4, Lowest = 8)
11+
"matching_accuracy": 1, # Image matching accuracy (Highest = 0, High = 1, Medium = 2, Low = 4, Lowest = 8)
1212
# https://www.agisoft.com/forum/index.php?topic=11697.msg52465#msg52465
1313
"no_gpus": 1, # Number of GPUs to process in Metashape
1414
"sys_cal": "KAU", # Types of system calibration w.r.t. drones (KAU, DJI)

georeferencing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def solve_lba_first(images, metadata_in_image, sys_cal, epsg=5186, downscale=2,
306306
camera.reference.location = (float(longitude), float(latitude), float(altitude))
307307
ori = rpy_to_opk(np.array([roll, pitch, yaw], dtype=np.float), maker=sys_cal)
308308
camera.reference.rotation = ori
309-
camera.reference.rotation_enabled = True
309+
# camera.reference.rotation_enabled = True
310310

311311
chunk.crs = target_crs # transform to destination crs(from source(4326) to target(epsg))
312312
for camera in chunk.cameras:

0 commit comments

Comments
 (0)