images from camera trap videos

371 views
Skip to first unread message

julia salvador

unread,
Apr 19, 2024, 10:33:36 PM4/19/24
to Wildlife Insights
Hello, does somebody know or have used any program or software that can create images from the camera trap videos videos?

Thanks

jorge

unread,
Jun 2, 2024, 11:15:55 AM6/2/24
to Wildlife Insights
Hello Julia,
You can use package av in R and the function av_video_images() in that package. The easiest thing to di is to set the frame rate = 1 so you get one image per second.
One issue is that the resulting images are missing the original timestamp from the video. However, the creation date/time of the video can be extracted from the original video using the exif_read()  function from the exiftoolr package (tag = "CreateDate"). Then it would be relatively easy to add that information to each image generated from the video using exif_call and a simple script in R.
Ideally, we would have an application to do all this for people's videos, so we might develop something in the near future.
Best,

Jorge

Anton Alvarez

unread,
Sep 13, 2024, 4:56:40 AM9/13/24
to Wildlife Insights
Hi guys, 
I have developed a simple Python app for Windows to solve this problem among others,
The functionality Video frame extractor is more or less what Jorge describes, it extracts one image per second by default and maintains the creation date of the video in the images.
The app is in alpha state so I would appreciate some feedback from the community.
Thanks in advance
Antón

Nielson Pasqualotto

unread,
Nov 18, 2024, 11:01:28 AM11/18/24
to Wildlife Insights
Hi Anton,

Just to give you a feedback, I tried using LynxAutomator to generate photos from camera trap videos using the funcionality 'Video Frame Extractor', but I noticed that the photos are dated with today's date instead of matching the original date of the videos.

I am not sure which exif field LynxAutomator use to correct date, but it worked out applying this correction to "CreateDate" instead of " DateTimeOriginal" field when I used av R package as suggested by Jorge. 

I would appreciate your help.

Best,

Nielson Pasqualotto.

Anton Alvarez

unread,
Nov 18, 2024, 11:44:31 AM11/18/24
to Wildlife Insights

Hi Nielson,

Thank you so much for giving me your feedback on LynxAutomator!

LynxAutomator works by modifying the DateTimeOriginal and DateTimeDigitized fields of the pictures, not the CreateDate. I believe Wildlife Insight uses the information from DateTimeOriginal. Did you test how the images behave using CreateDate or DateTimeOriginal on Wildlife Insights?

If necessary, I could configure LynxAutomator also to change the CreateDate when I have time.

Thanks again for the feedback! 😊 

Antón

Nielson Pasqualotto

unread,
Nov 21, 2024, 2:58:37 PM11/21/24
to Wildlife Insights
Hi Antón, 

The images on Wildlife Insights seem to behave perfectly after I applied date corrections to the CreateDate field. They now show the correct date and time in the "Date Taken" field when I click on them to view metadata.

In fact, no DateTimeOriginal field is returned when using the exif_read() function (exiftoolr package) to extract metadata from videos. Instead, I found the DateTimeOriginal field only in image files. 

Thanks you for developing such a helpful tool!

Nielson.
Reply all
Reply to author
Forward
0 new messages