Dear Juergen,
I hope you can help me. I've recently been convinced to start using camtrapR to process our hundreds of thousands of images. Since I work with a lot of lesser educated people it is imperative that I be able to rename images by site and date before they are sorted into species specific folders.
The imageRename function is giving me this error
Error in FUN(X[[i]], ...) : invalid 'type' (list) of argument
I have successfully used camtrapR to create my image directory and the Exiftool to fixDateTimeOriginal. The photos are from Reconyx cameras.
I have checked both R and RStudio are up to date and all packages are updated.
I would really appreciate your help.
Here is my script
#Set working directory
dir = "C:/Users/.../Animal Science Program - Lh compound cameras" #Truncated for confidentiality
setwd(dir)
#Activate ExifTool
exiftool_dir <- dir
addToPath(exiftool_dir)
# check if it has been added to PATH
grepl(exiftool_dir, Sys.getenv("PATH"))
#Renaming images
# raw image location
images_raw <- file.path(dir, "Images")
# Construct the destination for renamed images to be copied to
images_renamed <- file.path(dir, "Images_renamed")
renaming.table2 <- imageRename(inDir=images_raw,
outDir=images_renamed,
hasCameraFolders=FALSE,
copyImages=TRUE)
Thanks,
Cheryl