wd_images_ID <- system.file("pictures/sample_images", package = "camtrapR")
minDeltaT <- 60 # minutes between independent observations
if (Sys.which("exiftool") != ""){ # only run these examples if Exiftool is available
rec.db1 <- recordDatabase(inDir = wd_images_ID,
minDeltaTime = minDeltaT,
writecsv = FALSE,
metadataTags = c("Model", "Make")
)
rec.db2 <- recordDatabase(inDir = wd_images_ID,
minDeltaTime = minDeltaT,
exclude = "NO_ID",
writecsv = FALSE,
metadataTags = c("Model", "Make")
)
any(rec.db1$Species == "NO_ID")
any(rec.db2$Species == "NO_ID")
} else { # show function output if Exiftool is not available
print("Exiftool is not available. Cannot test function")
data(recordDatabaseSample)
}
Run the code above in your browser using DataLab