Learn R Programming

camtrapR (version 0.97.0)

exifTagNames: Extract Exif metadata tag names from a jpg image

Description

The function will return tag names of Exif metadata of jpg images. It uses the first jpg image from a subdirectory of the specified directory.

Usage

exifTagNames(inDir, whichSubDir = 1)

Arguments

inDir
a character vector representing a directory containg camera trap images
whichSubDir
integer. The number of the subdirectory of inDir in which to look for an image

Value

  • A character vector containing available metadata tag names.

Details

Many digital cameras record information such as ambient temperature or moon phase under ma-nu-fact-ur-er-specific tag names in Exif meta-data of jpg images. If the tag names are known, they can passed to the recordDatabase function via the metadataTags argument to extract those information from images and add them to the record database.

References

Phil Harvey's Exiftool http://www.sno.phy.queensu.ca/~phil/exiftool/

See Also

recordDatabase

Examples

Run this code
if (Sys.which("exiftool") != ""){        # only run this example if Exiftool is available
wd_images_ID <- system.file("pictures/sample_images", package = "camtrapR")
exifTagNames(inDir = wd_images_ID)
}

Run the code above in your browser using DataLab