02-11-2009 11:39 PM
I'm wanting to read the Exif data (time stamp, camera model, location, etc) from a jpeg file from a digital camera using LabView. I'm wanting to do custom organising and searching of a lot of image files. Has anyone done this? Thanks in advance, Philip
02-12-2009 12:20 AM
Hi Phillip,
EXIF standard is currently not supported by native LabVIEW functions or the IMAQ Vision library. You could probably use another API that could read EXIF tags, create a DLL and call that DLL in LabVIEW. I don't know if there is any development currently in this direction but I was able to find some forums posts that could help you out:
02-17-2009 12:22 PM
03-10-2009 09:48 PM - edited 03-10-2009 09:52 PM
You can call a .NET function from LabVIEW to do it, but it seems to take ages. I believe it is opening the entire file rather than just reading the EXIF data.
I've attached a vi I wrote to do this.
I wanted to quickly rename hundreds of photos based on the EXIF "DateTimeOriginal" data (property ID 36867).
It was way too slow using the .NET function so I wrote a dodgy vi to extract just the "time taken" info using purely LabVIEW.
I attached that too but it's very crude and I didn't do alot commenting. May not work for all image types.
Feel free to have a look/play with it but don't expect too much. It's fast though!
Got info from here http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html
And here http://www.exif.org/Exif2-2.PDF
04-07-2009 01:52 PM
04-14-2009 06:00 PM - edited 04-14-2009 06:00 PM
Sorry to take so long to reply, been on holidays.
Here ya go...
08-13-2015 04:29 PM - edited 08-13-2015 04:57 PM
Hi Guys,
I inspired myself from the VIs you made to get the DateTimeOriginal TimeStamp using the Dll.
As it gets only this tag it is pretty fast.
Can be easily changed to get an other tag is needed.
01-30-2019 09:48 AM
Hi TroyK,
Thank you so much for sharing your VIs with the community. I try to establish a tool based on LV which would allow me, to write (and read in some cases) the GPS data of the exif data in jpg, dng and raw files. Although I had a good start with our example (extract time taken exif manually.vi), I struggle to modify your example so it would work for the GPS values. Can you help me? I miss plenty of knowledge in that field 😞
Any help is appreciated,
Urs
01-30-2019 03:51 PM
Hmmm, it was almost 10 years ago that I posted that code.
I haven't looked at it since.
I'd say your best option would be to start with the dotNET example in message 7 of this thread posted by Micaël DA SILVA in 2015.
02-01-2019 05:39 AM
thanks, but my application is running on Mac, so dotNet is not an option.
I'm pretty sure one could solve it with labview native only, but my knowledge is just not enough for that. I'll just keep on trying 😉