Error metadata tag

53 views
Skip to first unread message

JORGE VALENZUELA

unread,
Jul 21, 2020, 12:46:58 PM7/21/20
to camt...@googlegroups.com
Hi:

Im newbie using camtrapR package .
I run this line of code to get recordtableindividual and i got this message in console 
apparently is problem with tag from 7 station with "Lycalopex culpeaus" species.
Warning: 10-199:   metadataSpeciesTag 'Lycalopex culpeaus' not found in image metadata tag 'HierarchicalSubject'.
 
Error: something went wrong. I looked through all those 7 folders and now your table is empty
I checked in digikam the tag and the pictures inside in these folders are correctly  tagged.

This is my tag tree 

image.png

this is the code 

registros_individuos<- recordTableIndividual(inDir = fotos_zorro,
IDfrom = "metadata",
minDeltaTime = 60,
deltaTimeComparedTo = "lastIndependentRecord",
metadataIDTag = "Lycalopex culpeaus",
hasStationFolders = TRUE,
timeZone = "America/Santiago")

Regards

--
Medico Veterinario

Juergen Niedballa

unread,
Jul 22, 2020, 5:42:33 AM7/22/20
to camtrapR
Hi Jorge,
metadataIDTag refers to the name of the tag group containing the individual IDs. So in your case it should be 
metadataIDTag = "numero de individuos"

But I also see that your image directory contains images of multiple species. For recordTableIndividual you should first save all images of your species of interest in a separate folder (with function getSpeciesImages), then run recordTableIndividual on that folder.

You can potentially also use recordTable on your existing folder. It will also extract "numero de individuos" and all other digiKam tags. But when you use recordTable, minDeltaTime will refer to the time difference between records of the same species, not between individuals of that species. When using recordTable with minDeltaTime = 60 (or whatever number that is not 0) you might lose records of individuals. If you set minDeltaTime = 0 and removeDuplicateRecords = FALSE, you will get a record table with all images and all individuals.
In recordTableIndividual, minDeltaTime will refer to the time difference between observations of individuals. 

Likewise, removeDuplicateRecords will remove duplicate record by species in recordTable. In recordTableIndividual, it will also consider the individual IDs and preserve records of differenct indivuals of the same species within minDeltaTime. 

Best regards,
Jürgen

JORGE VALENZUELA

unread,
Jul 22, 2020, 6:01:39 PM7/22/20
to camtrapR
Jurgen:

Thanks for the answer, i´ll check the code and run getSpeciesImage function.

Regards
Reply all
Reply to author
Forward
0 new messages