GCP Image Observations: Audit the Links Before Drone Mapping
Check how ground coordinates, image pixels, filenames and point identities connect in a GCP text delivery before using it in an OpenDroneMap workflow.

Define the delivered observation rather than just the target
A surveyed ground control point can be identified correctly in a coordinate table and still be connected to the wrong photograph or pixel mark in a processing file. Before using a GCP delivery in a NiVO imagery workflow, inspect the relationships between ground coordinates, point identity and image observations. This tutorial concerns a bounded text-record audit for an OpenDroneMap-style delivery. It does not replace control design or survey assessment, establish a particular NiVO software integration or claim that an actual target was measured in an image during article preparation.
Preserve the coordinate source, original photographs and received observation file. Record the processing application, build, dataset revision, coordinate reference and intended role of each reference point. Keep control points distinct from independent checkpoints in the project procedure. A label that says checkpoint does not establish how a chosen processing run actually used the point. The acceptance question is whether the delivered records connect the intended physical landmark to the intended image evidence with the right interpretation, not merely whether a file contains a plausible set of numbers and opens without an error.
Read the actual file profile and image coordinate convention
OpenDroneMap documents a GCP text format with a coordinate-reference declaration followed by rows containing ground X, Y and Z, image coordinates, an image filename and optional additional fields. The reviewed OpenSfM documentation explicitly distinguishes pixel coordinates in its TXT representation from normalized image coordinates in its JSON observation representation. Do not move a pair of values between those representations just because both fields describe an image location. Identify the application profile and the image dimensions and orientation used when the mark was created, and preserve the original coordinate convention during the audit.
Point identity is another relationship to retain. OpenSfM documents grouping observations by point identifier in its named TXT profile, while its JSON structure carries an explicit observation list and roles. Confirm what the actual receiving build supports. The two reviewed documentation pages also differ in their treatment of unknown height. This teaching profile therefore requires finite ground coordinates; it does not manufacture a zero elevation to make an unsupported row appear valid. Where height is unavailable, resolve the appropriate supported workflow and project reference evidence before treating a numerical placeholder as a surveyed value.

Product context only; this photograph does not depict the constructed examples in this article.
Inspect one explicitly bounded text observation
The read-only function below accepts one already selected observation row. Its teaching profile requires exactly seven whitespace-separated fields, including an explicit point identifier and a filename without spaces. It is intentionally narrower than all possible application inputs. The coordinate-reference line, blank lines and comments must be handled separately by the caller. The function checks finite numeric values and retains ground and image coordinates as different named groups. It does not open files, change the observation or prove that a point exists in the supplied images. No real record or Python execution is claimed here.
Use this kind of check to expose unsupported input rather than silently repairing it. An additional column, a filename containing spaces or an unavailable coordinate needs an identified rule, not a guess about which token should move. Retain the original line and its source location alongside any interpreted result. A finite pixel value can still be outside the actual image or identify the wrong object, and finite ground coordinates do not establish the correct reference. Those checks belong to the following evidence steps. A partial parser should make its boundaries visible instead of implying that every accepted row is ready for bundle adjustment.
# Partial read-only profile: XYZ, pixel x/y, simple filename, point ID.
import math
def inspect_gcp_observation(line):
fields = line.split()
if len(fields) != 7:
raise ValueError("Outside the selected seven-field profile")
values = [float(v) for v in fields[:5]]
if not all(math.isfinite(v) for v in values):
raise ValueError("Finite surveyed and image coordinates required")
return {"ground_xyz": values[:3], "image_xy_px": values[3:5],
"image_name": fields[5], "point_id": fields[6]}Verify filenames, image versions and the marked feature
Match each referenced filename to the accepted photograph inventory, retaining the exact spelling and extension. Check for renamed, duplicated or resized derivatives and determine whether marks were created on those derivatives or on the original images. A basename that exists somewhere in the project is insufficient when several folders contain different revisions. Keep the dimensions and orientation convention used by the marking tool with the observation. If a preview was transformed, establish the supported relationship to the image that the processor consumes rather than assuming the same pixel pair applies unchanged.
Reopen representative marks against the identified images and inspect the intended physical location. A target centre, nearby corner and shadow edge are different points even when they are visually close. Choose cases that can expose a mismatch: similar filenames, repeated target patterns, marks near image edges and observations with uncertain visibility. Record actual findings and unresolved ambiguity. The bounded function cannot perform this visual confirmation. Keep a traceable review view or observation report so another processor can understand why a mark was retained, corrected in a new revision or held for clarification.
Check consistency across observations of the same landmark
Group records by the intended physical point and compare the associated ground-coordinate source and image observations. An accidental identifier reuse can merge two landmarks, while inconsistent spelling can split one point into unrelated records. Preserve the survey identity and original coordinate precision rather than averaging discrepant entries automatically. Determine whether the difference comes from rounding, a different reference, an amended survey record or an incorrect association. The audit should expose that question with source evidence. It should not transform conflicting rows into one apparently consistent coordinate merely to reduce processing warnings.
Keep the point role and reference definition explicit when preparing an actual run. Supported application behavior, observation visibility and project requirements determine whether the evidence is suitable; a generic record count does not establish a quality guarantee. After an approved correction, retain a candidate revision and compare the intended associations with the preserved original. Review actual processing diagnostics and independent assessment evidence separately. A small reprojection residual does not by itself prove correct surveyed coordinates or independent checkpoint performance, particularly if the same reference information was used to constrain the reconstruction.
Deliver the association audit with the control file
A useful handoff identifies the coordinate source, reference system, image inventory, observation-file revision, point roles and supported receiving profile. Include actual row and association findings, rejected cases and any visual confirmation performed. Preserve a stable way to locate each original observation and photograph. Another analyst should be able to explain which physical landmark a point identifier represents and why a particular pixel mark belongs to it. If the evidence supports only structural checks, state that limit and identify the additional image or survey information required before the file is used as accepted processing input.
For NiVO mapping discussions, this turns an uncertain control-file complaint into a precise question about coordinates, identifiers, image versions and observations. It connects field evidence to processing without inventing an accuracy improvement from a successful import. Keep unresolved height, reference or visibility issues with the delivery instead of hiding them behind finite numbers. The result is a reproducible preparation step that preserves the accepted originals and makes the important associations inspectable by a recipient who did not survey the targets, mark the images or supervise the original processing session.



