EXIF / XMP tags
EXIF / XMP image tag decoding and reading.
-
class orthority.exif.Exif(file)
Bases: object
EXIF / XMP image tag extractor for camera model related values.
- Parameters:
file (str | PathLike | OpenFile | rio.DatasetReader) – Image file to read. Can be a path or URI string, an OpenFile
object in binary mode ('rb'), or a dataset reader.
-
property filename: str
Image filename.
-
property make: str | None
Camera make.
-
property model: str | None
Camera model.
-
property serial: str | None
Camera serial number.
-
property im_size: tuple[int, int] | None
Actual image (width, height) in pixels.
-
property tag_im_size: tuple[int, int] | None
Tagged image (width, height) in pixels.
-
property sensor_size: tuple[float, float] | None
Sensor (width, height) in mm.
-
property focal_len: float | None
Focal length in mm.
-
property focal_len_35: float | None
35mm equivalent focal length in mm.
-
property orientation: int | None
Image orientation code (see https://exiftool.org/TagNames/EXIF.html).
-
property lla: tuple[float, float, float] | None
(latitude, longitude, altitude) coordinates with latitude and longitude in decimal
degrees, and altitude in meters.
-
property rpy: tuple[float, float, float] | None
(roll, pitch, yaw) camera/gimbal angles in degrees.
-
property dewarp: list[float] | None
Dewarp parameters.
-
to_dict()
Convert to a property dictionary.
- Return type:
dict[str, object]