GCP File Not Working

I attempting to try making a GCP file with the editor in WebODM, loaded it correctly, but it’s saying there are no valid GCP’s… and then it’s telling me that my images don’t exist… file names are 100% the same, I’ve verified the “.jpg” vs “.JPG” and that is all correct. See below:

Launching... please wait! This can take up to 5 minutes.
[INFO]    auto_boundary: True
[INFO]    boundary: {}
[INFO]    build_overviews: False
[INFO]    camera_lens: auto
[INFO]    cameras: {'hasselblad l1d-20c 2048 1365 brown 0.7777': {'projection_type': 'brown', 'width': 2048, 'height': 1365, 'focal_x': 0.7780746278177185, 'focal_y': 0.7780746278177185, 'c_x': 0.002632416099990189, 'c_y': -0.0030705386384883757, 'k1': 0.0014125063357458688, 'k2': 0.005222912222522653, 'p1': -0.0023661931040663674, 'p2': 0.001898470743268859, 'k3': -0.002243159288607305}}
[INFO]    cog: True
[INFO]    copy_to: None
[INFO]    crop: 3
[INFO]    debug: False
[INFO]    dem_decimation: 1
[INFO]    dem_euclidean_map: False
[INFO]    dem_gapfill_steps: 4
[INFO]    dem_resolution: 2.0
[INFO]    depthmap_resolution: 640
[INFO]    dsm: True
[INFO]    dtm: True
[INFO]    end_with: odm_postprocess
[INFO]    fast_orthophoto: False
[INFO]    feature_quality: high
[INFO]    feature_type: sift
[INFO]    force_gps: False
[INFO]    gcp: /var/www/data/854ef42f-93f7-4c27-9653-9187d71768ca/gcp/gcp_file_1654796195034.txt
[INFO]    geo: None
[INFO]    gps_accuracy: 10
[INFO]    ignore_gsd: False
[INFO]    matcher_neighbors: 0
[INFO]    matcher_type: flann
[INFO]    max_concurrency: 16
[INFO]    merge: all
[INFO]    mesh_octree_depth: 12
[INFO]    mesh_size: 300000
[INFO]    min_num_features: 10000
[INFO]    name: 854ef42f-93f7-4c27-9653-9187d71768ca
[INFO]    optimize_disk_space: True
[INFO]    orthophoto_compression: DEFLATE
[INFO]    orthophoto_cutline: False
[INFO]    orthophoto_kmz: False
[INFO]    orthophoto_no_tiled: False
[INFO]    orthophoto_png: False
[INFO]    orthophoto_resolution: 2.0
[INFO]    pc_classify: True
[INFO]    pc_copc: False
[INFO]    pc_csv: False
[INFO]    pc_ept: True
[INFO]    pc_filter: 2.5
[INFO]    pc_geometric: True
[INFO]    pc_las: False
[INFO]    pc_quality: high
[INFO]    pc_rectify: False
[INFO]    pc_sample: 0.01
[INFO]    pc_tile: False
[INFO]    primary_band: auto
[INFO]    project_path: /var/www/data
[INFO]    radiometric_calibration: none
[INFO]    rerun: None
[INFO]    rerun_all: False
[INFO]    rerun_from: None
[INFO]    resize_to: 2048
[INFO]    sfm_algorithm: incremental
[INFO]    skip_3dmodel: False
[INFO]    skip_band_alignment: False
[INFO]    skip_orthophoto: False
[INFO]    skip_report: False
[INFO]    sm_cluster: None
[INFO]    smrf_scalar: 1.25
[INFO]    smrf_slope: 0.15
[INFO]    smrf_threshold: 0.5
[INFO]    smrf_window: 26.0
[INFO]    split: 999999
[INFO]    split_image_groups: None
[INFO]    split_overlap: 150
[INFO]    texturing_data_term: gmi
[INFO]    texturing_keep_unseen_faces: True
[INFO]    texturing_outlier_removal_type: gauss_clamping
[INFO]    texturing_skip_global_seam_leveling: False
[INFO]    texturing_skip_local_seam_leveling: False
[INFO]    texturing_tone_mapping: gamma
[INFO]    tiles: False
[INFO]    time: False
[INFO]    use_3dmesh: False
[INFO]    use_exif: False
[INFO]    use_fixed_camera_params: True
[INFO]    use_hybrid_bundle_adjustment: False
[INFO]    verbose: True
[INFO]    ==============
[INFO]    Running dataset stage
[INFO]    Loading dataset from: /var/www/data/854ef42f-93f7-4c27-9653-9187d71768ca/images
[INFO]    Loading 553 images
[INFO]    Wrote images database: /var/www/data/854ef42f-93f7-4c27-9653-9187d71768ca/images.json
[INFO]    Found 553 usable images
[INFO]    Parsing SRS header: +proj=utm +zone=18 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
[INFO]    Parsing SRS header: WGS84 UTM 18N
[INFO]    Parsing SRS header: WGS84 UTM 18N
[WARNING] GCP line ignored (image not found): 264693.52 4138901.49 0.0 1648.49 1154.76 Mapping__Kim's House_202206031648460061_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264680.39 4138907.34 0.0 1197.5 2016.86 Mapping__Kim's House_202206031648460061_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264696.65 4138884.21 0.0 2728.18 579.6 Mapping__Kim's House_202206031648460061_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264876.8 4138794.33 0.0 543.6 1535.05 Mapping__Kim's House_202206031659260114_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264885.05 4138805.63 0.0 1334.28 1872.52 Mapping__Kim's House_202206031659260114_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264857.64 4138810.27 0.0 1271.73 123.65 Mapping__Kim's House_202206031659260114_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264661.18 4138834.4 0.0 3366.08 595.78 Mapping__Kim's House_202206031701030133_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264892.64 4138737.68 0.0 1191.86 2157.98 Mapping__Kim's House_202206031721390329_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264888.98 4138744.08 0.0 862.44 2480.93 Mapping__Kim's House_202206031721390329_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264893.56 4138682.31 0.0 1645.96 984.94 Mapping__Kim's House_202206031728360488_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 264868.87 4138677.78 0.0 2349.37 2634.67 Mapping__Kim's House_202206031728360488_Soccerfields.JPG
[WARNING] GCP line ignored (image not found): 265160.5 4138644.74 0.0 1157.41 1412.63 Mapping__Kim's House_202206031729470515_Soccerfields.JPG
Traceback (most recent call last):
File "/code/run.py", line 59, in <module>
retcode = app.execute()
File "/code/stages/odm_app.py", line 130, in execute
raise e
File "/code/stages/odm_app.py", line 94, in execute
self.first_stage.run()
File "/code/opendm/types.py", line 327, in run
self.process(self.args, outputs)
File "/code/stages/dataset.py", line 162, in process
reconstruction.georeference_with_gcp(tree.odm_georeferencing_gcp,
File "/code/opendm/types.py", line 94, in georeference_with_gcp
raise RuntimeError("A GCP file was provided, but no valid GCP entries could be used. Note that the GCP file is case sensitive (\".JPG\" is not the same as \".jpg\").")
RuntimeError: A GCP file was provided, but no valid GCP entries could be used. Note that the GCP file is case sensitive (".JPG" is not the same as ".jpg").
1 Like

Can you provide the data and the GCP file for testing and validation?

You’ve got spaces in your filename along with a single quote '. I’m not sure whether there is a convention for handling this in the GCP file, but safest thing to do is a batch rename removing single quotes and spaces.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.