exifTagNames | R Documentation |
The function will return metadata values, metadata tag names and group names of Exif metadata of JPEG images or other formats.
exifTagNames(
inDir,
whichSubDir = 1,
fileName,
returnMetadata = "DEPRECATED",
returnTagGroup = "DEPRECATED"
)
inDir |
character. Directory containing camera trap images sorted into station subdirectories (e.g. inDir/StationA/) |
whichSubDir |
integer or character. Either number or name of
subdirectory of |
fileName |
character. A filename, either the file name of an image in
|
returnMetadata |
deprecated and ignored |
returnTagGroup |
deprecated and ignored |
Many digital cameras record information such as ambient temperature or moon
phase under maker-specific tag names in Exif metadata of JPEG images. In
addition, many technical information are stored in Exif metadata. In order
to extract those information from images and add them to the record tables
created by the functions recordTable
and
recordTableIndividual
, the tag names must be known so they can
be passed to these functions via the additionalMetadataTags
argument.
By default the function returns both metadata tag names and the metadata
group they belong to (via argument returnTagGroup
). This is helpful
to unambiguously address specific metadata tags, because different groups
can contain tags of identical names, which may cause problems executing the
functions recordTable
and recordTableIndividual
.
The format is "GROUP:tag", e.g. "EXIF:Flash".
A data frame containing three columns: metadata tag group, tag name, and values.
Juergen Niedballa
Phil Harvey's ExifTool https://exiftool.org/
recordTable
## Not run:
wd_images_ID <- system.file("pictures/sample_images_species_dir", package = "camtrapR")
# specify directory, camtrapR will automatically take first image from first subdirectory
exifTagNames(inDir = wd_images_ID)
# specify subdirectory by name, camtrapR will use first image
exifTagNames(inDir = wd_images_ID,
whichSubDir = "StationA")
# specifying fileName only (line break due to R package policy)
exifTagNames(fileName = file.path(wd_images_ID, "StationC", "TRA",
"StationC__2009-05-02__00-10-00(1).JPG"))
# specify inDir and fileName
exifTagNames(inDir = wd_images_ID,
fileName = file.path("StationC", "TRA", "StationC__2009-05-02__00-10-00(1).JPG"))
# it also works this way
exifTagNames(inDir = file.path(wd_images_ID, "StationC", "TRA"),
fileName = "StationC__2009-05-02__00-10-00(1).JPG")
# with tagged sample images
wd_images_ID_tagged <- system.file("pictures/sample_images_indiv_tag", package = "camtrapR")
exifTagNames(inDir = wd_images_ID_tagged)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.