fathomnet / community-feedback

1 stars 0 forks source link

Add metadata fields for camera intrinsics #85

Open kevinsbarnard opened 1 year ago

claudenozeres commented 1 year ago

Related to EXIF metadata (should be in file data of still images, or lost), or other aspects about cameras, especially video?

hohonuuli commented 7 months ago

Camera intrinsics have to be included by the image owner. Possible existing methods:

claudenozeres commented 7 months ago

Note: EXIF is from camera still images. Video sequences and video screen captures (usually PNG) won't have it.

hohonuuli commented 7 months ago

@claudenozeres There are tools and programming language libraries that allow custom metadata to be embedded into any image. Generally, it's EXIF for JPEG images, an iTXt for PNGs. When MBARI makes our images public, we always embed copyright and other info into the image. For example, if you paste this URL, https://fathomnet.org/static/m3/framegrabs/Doc%20Ricketts/images/0747/00_44_02_00.png into https://exifmeta.com/ it will show the following metadata:

name value
ImageWidth 1920
ImageHeight 1080
BitDepth 8
ColorType RGB
Compression Deflate/Inflate
Filter Adaptive
Interlace Noninterlaced
Latitude 23.655652 N
Longitude -108.41491 E
VideoReferenceUUID 9f932f8c-becf-4bd3-ac6b-640342000eb0
DateTimeOriginal [object Object]
Description-en-US Image exported from MBARI's Video Annotation and Reference System
Copyright-en-US Copyright 2015 Monterey Bay Aquarium Research Institute
ObservationUUID 9604f482-ed9e-457d-bcda-c5da31299572
CreationTime-en-US 2016-02-26T21:45:43.607Z
Comment-en-US Grimpoteuthis observed by lonny
Depth 2429.65m

For my ref, link to example code (in private repo though) in ImageUtil.scala

claudenozeres commented 7 months ago

Thanks! I was commenting on 'camera intrinsics'. Yes, metadata may be added beyond the camera-created file.