ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MakerNote not accessible
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

artecsoft

Spain
4 Posts

Posted - Jun 09 2021 :  06:46:54  Show Profile  Reply
Hi,

I've a JPG with MakerNote EXIF data but I don't know how to access it. The ImageEnView1.IO.Params.EXIF_MakerNote.Data.Size is always 0.

How can I access this metadata information?

I attact the image with this EXIF data.

Thank you

Jordi

attach/artecsoft/20216962932_sabat_1c_0f_af_bd_73_10_2021_06_08_10_image_2021_06_07_19_16_05_039699_sabat_1c_0f_af_bd_73_10.jpg

xequte

6143 Posts

Posted - Jun 09 2021 :  17:48:33  Show Profile  Reply
Hi Jordi

I have not seen a JSON format maker note before. Can you tell me more about the source of this file?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

artecsoft

Spain
4 Posts

Posted - Jun 10 2021 :  06:48:29  Show Profile  Reply
Hi, this image is captured with a Lucid Vision Labs camera, but the MakerNote tag is injected via Python by an AI software to identify some parameters of a factory machine. They injected this JSON in this Exif tag. Maybe it would be better to use another tag.

I've used another Delphi library (CCR-Exif) that has the ability to extract this information. Maybe you could use the same techniques used in this library to improve ImageEn.

Thank you



Go to Top of Page

xequte

6143 Posts

Posted - Jun 11 2021 :  02:01:27  Show Profile  Reply
Hi

Yes, I can access the raw data at the EXIF maker notes IFD. The issue is that maker notes are always formatted as TIFF tags (in my experience) not as JSON so we'd need to implement some special handling for this. However as this is an uncommong format I'm not sure if I should add a lot of extra code to ImageEn to handle something non-standard. It would probably be better if we gave you the code to extract this custom data yourself.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

artecsoft

Spain
4 Posts

Posted - Jun 11 2021 :  09:33:53  Show Profile  Reply
Yes, please, if you can give me the source. I prefer using ImageEn to extract this information instead of using other libraries.

Thank you
Go to Top of Page

xequte

6143 Posts

Posted - Jun 13 2021 :  19:39:09  Show Profile  Reply
Sorry, I see that it is possible to extract the data with the current version.

Please use:
var RB: RawByteString;

IEGlobalSettings.EXIFMakerNotesHandling := iemhDecodeOrMaintainRaw;
ImageEnView1.io.LoadFromFile(FileListBox1.FileName);
SetLength(RB, ImageEnView1.IO.Params.EXIF_MakerNote.UnparsedDataLength);
Move(ImageEnView1.IO.Params.EXIF_MakerNote.UnparsedData^, Pointer(RB)^, ImageEnView1.IO.Params.EXIF_MakerNote.UnparsedDataLength);
memo1.Text := RB;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

artecsoft

Spain
4 Posts

Posted - Jun 14 2021 :  10:01:54  Show Profile  Reply
It works perfectly! Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: