Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract metadata from jpg? (date picture taken)

Solved!
Go to solution

Does anyone know how (or have a VI) that can extract metadata from jpeg images?  Specifically I am looking for "date picture taken" but it would be nice to have other tags as well.

 

Thanks,

 

Jeremy

0 Kudos
Message 1 of 9
(73,937 Views)

Hi, Jeremy,

 

You can't get this info in Vision "directly".

Otherwise there are two possible ways:

1. Use third-party utility or library, for example ExifTool by Phil Harvey. Call it with your image, parse the output, and you will get info.

2. Read Exif specification, and parse your jpeg file yourself. More work, but you will stay independend from third-party code.

 

Andrey.

0 Kudos
Message 2 of 9
(73,928 Views)

Hi Andrey,

 

so I guess there is no built-in solution within labview.  I just did a search for the EXIF IFD attribute in the files I am interested in but they did not show up.  I am thinking it may be stored somewhere else.  The Windows file system can see and display this info (see jpg attached).  I need to rename my files according to the date/time stamp and I don't want to do it one by one.

 

If you or anyone else can help with a VI that would be enormously helpful.

 

Thanks again,

 

 

Jeremy

0 Kudos
Message 3 of 9
(73,906 Views)

If you are willing to settle for the last modification date, you can get it using standard File IO.  Under Advanced File Functions, there is a vi called File/Directory Info.  This gives you the last modification date.

 

If you have a Canon camera, there is a utility that comes with it that is very useful for renaming files by the date the picture was taken.  I suspect there are similar utilities for other cameras.  You also might be able to find a generic utility for free or very cheap.  If you don't have to do it in LabVIEW, there are several other options. 

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 9
(73,895 Views)
Solution
Accepted by topic author jeremy_levy

Hi

There are activex exif in the net. I plan to test this one: exif activex.

It looks interestig to extract info from pictures.

 

Cheers

ALipio

 

 

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
Message 5 of 9
(73,865 Views)

Thanks, I am pretty sure this will work!

 

Jeremy

0 Kudos
Message 6 of 9
(73,862 Views)

Hi

there is another choice (freeware and source code available):  jhead in this kink

 

It is an exe and  runs fine.

 

Cheers

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 7 of 9
(73,813 Views)

yes contact me

0 Kudos
Message 8 of 9
(40,906 Views)

 How can I contact you privately?

0 Kudos
Message 9 of 9
(38,875 Views)