File IO¶
Files can be read from or written to local or remote file paths / URIs. SOURCE images can be specified with local or remote wildcard patterns. Ortho images are named automatically based on the source image names.
Note
Some file systems, like HTTP, are read-only and don’t support wildcards.
Camera parameters can be exported to Orthority format files by supplying the --export-params option to any of the oty orthorectification sub-commands. When --export-params is supplied, the command exits after exporting, and no orthorectification is performed. This example exports models derived from image EXIF / XMP tags:
oty exif --export-params odm/images/*.tif
The default output directory for ortho images and exported files is specific to the sub-command. It can be changed with --out-dir. Passing --overwrite overwrites existing files. Again, these options are common to all oty orthorectification sub-commands. E.g., this orthorectifies the OpenDroneMap dataset, creating and using ortho as the output directory, and overwriting existing files:
mkdir ortho
oty odm --dataset-dir odm --out-dir ortho --overwrite