Creating an image from an ISO / IEC 19794-4 image data file

I have a Bio-metric fingerprint scanner, and we can read the data scanned from the image. Now we need to make the image consistent with ISO compliance, i.e. we need to add a Binary Data Interchange Record(BDIR) with image data in order to follow the data record exchange format, as specified in ISO/IEC 19794-4:2011 .

UPDATE: I have an ISO / IEC 19794-4 image data file. I have to make an image from the data. The data now has an additional common header and presentation header information along with image data. How can I make an image from this data. Should I just extract image data from ISO / IEC 19794-4 image data and display it on the screen?

OR

What is the proper way to create and display an image from an ISO / IEC 19794-4 image data file.

Thank you in advance

+6
source share
4 answers

You can get inspiration from the JMRTD source code. The FingerImageInfo.java file is especially recommended.

+4
source

If you see table B-2 ISO 19794-4, for example, a file with uncompressed image data will be from the 15th byte from the end of the file. But it depends on which compression algorithm was used: WSQ, JPEG, JPEG2000 or PNG. I do not know a commercial or drop-down libray that accepts an ISO file and converts it to an image.

Read the entire specification to understand this standard. It’s like a regular image file, there is a header telling something about the image, and then pixel data. But if you see Appendix B, you may be able to better understand this standard.

I already work with this standard, and we have a library developed by us for its use. If you need a more specific question, ask and I will try to answer without disrupting the work of the NDA at work.

+1
source

Disclaimer: I do not know the specifications.

In any case, if @Celino is correct about offsets and image data formats, you should be able to display images quite easily. ImageIO can read data, whether it be JPEG (JFIF) or PNG. If it's JPEG2000, you might need JAI (jai-imageio) to read it. However, if it is WSQ, I am not sure if there is access to the plugin or Java library.

+1
source

There are some commercial libraries available for decoding WSQ, searching Neurotechnology, Cognaxon ... These are all native C libs, so you need to integrate them through JNI.

0
source

Source: https://habr.com/ru/post/945994/