Griaule Biometrics

Home » Forums » FINGERPRINT SDK » C/C++ Specific » How convert image(bmp) to RawImage(GriauleFingerprintLibrary.DataTypes.FingerprintRawImage)???
15 replies [Last post]
calebe2010
Offline
Joined: 2010-09-27
Rate this post:
0
No votes yet
How convert image(bmp) to RawImage(GriauleFingerprintLibrary.DataTypes.FingerprintRawImage)???

hi,

i have two vars:

Image img = Image.FromFile("file.bmp");

GriauleFingerprintLibrary.DataTypes.FingerprintRawImage rawImage;

I need to know how convert image(bmp) to rawImage(GriauleFingerprintLibrary.DataTypes.FingerprintRawImage). Is it possible??

thanks!!

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear client,

One suggestion is to call the function LoadImageFromFile, calling this function you will receive an event from onImage from the reader "File", and with that event you will get the Raw that you need.

If you have doubts, let us know.

Jan Beeck

Griaule Support Team

SAJI
Offline
Joined: 2010-09-30
Rate this post:
0
No votes yet

How to I capture template in ISO format rather then the default format

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear client,

to captura the image in an ISO format, you have to pass the type of the template as a parameter.

Here is a link explainig the process: http://www.griaulebiometrics.com/page/en-us/manual/fingerprint-sdk/programming-reference-guide/fingerprint-sdk-dll-reference-guide/extraction-functions/grextractex

The parameter for ISO is: GR_FORMAT_ISO

 

If you have doubts, let us know.

 

Jan Beeck

Griaule Support Team

 

SAJI
Offline
Joined: 2010-09-30
Rate this post:
0
No votes yet

Hi

I am using Java api how where  will I use the template parameter

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer,

There is a java reference for that on this link: http://www.griaulebiometrics.com/javadoc/GrFingerJava/com/griaule/grfingerjava/Template.html#FORMAT_ISO

If you have more questions, let us know.

Jan Beeck

Griaule Support Team

calebe2010
Offline
Joined: 2010-09-27
Rate this post:
0
No votes yet

Thanks JB,

this function LoadImageFromFile works!!!!

mverone
Offline
Joined: 2009-05-26
Rate this post:
0
No votes yet

I have a new problem.

I used LoadImageFromFile and it fires OnImage, where I can get the rawimage.

However, I have a WHILE loop iterating over many images. I realized that OnImage fires in a asynchronous way, but I need a OnImage event for each image I have loaded.

I thought I could call Extract directly, without call LoadImageFromFile, but I cant find out how to convert a BMP file into rawimage.

Could you help me.

 

thanks.

JB
Offline
Joined: 2010-09-15
Rate this post:
0
No votes yet

Dear customer,

This link: http://www.griaulebiometrics.com/page/en-us/manual/afis-sdk/programming-reference-guide/activex/onimage, states that the event could be in automatic or manual mode, for your issue the capture mode should be manual. For assist you better we need to know why you have to convert a BMP into a rawimage.

 

Jan Beeck

Griaule Support Team

mverone
Offline
Joined: 2009-05-26
Rate this post:
0
No votes yet

Thanks for your reply.

The method CapCapture is not available to me.

I m using GrFinger.dll with Delphi.

Where are this method?

luigi.l
Offline
Joined: 2010-04-19
Rate this post:
0
No votes yet

Hello mverone,

Correct me if i'm wrong:

You have a fingerprint template that needs identification, so you have a WHILE loop that loads an image from a file, extract the template and then call the identify function?

 

If this is what you need i have a better workflow for you (you must have a database for this one):

- when you enroll a fingerprint instead of just save it into a file you will extract the template;

- create a table in your database to insert the extracted template and the id;

- then when you receive an fingerprint that needs to be indentified you already have the templates in your database making it faster and easier.

 

If this don't solve your problem please let us know.

Best Regards,

Luigi Labigalini

Griaule Support Team

mverone
Offline
Joined: 2009-05-26
Rate this post:
0
No votes yet

The problem is:

- i have a table of id´s and images of fingerprints

- i have to extract a template of each fingerprint image and save again in a new column of that table

- for this reason i told you that i have a WHILE doing the process of extract the template of each image and saving in the table

luigi.l
Offline
Joined: 2010-04-19
Rate this post:
0
No votes yet

Well, if you use the CapLoadImageFromFile function it will call an OnImage event with the idSensor = "File", then extract the Template and inert this on your database.

This link may help you: http://www.griaulebiometrics.com/page/pt-br/manual/fingerprint-sdk/programming-reference-guide/fingerprint-sdk-dll-reference-guide/grcaploadimagefromfile

Let us know if this works

Best Regards

Luigi Labigalini

Griaule Support Team

mverone
Offline
Joined: 2009-05-26
Rate this post:
0
No votes yet

Exactlly what i did!

But the event OnImage don´t fire OnImage for every picture!

If i call CapLoadImageFromFile i expect that OnImage is called imediatly but it doesn´t

Another step of my loop is executed and another CapLoadImageFromFile is called

When loop is finished, several OnImage events are executed.

That´s the problem!

luigi.l
Offline
Joined: 2010-04-19
Rate this post:
0
No votes yet

Well, i can't tell you what is wrong without have a look at the code, so send us a ".zip/.rar" file with your code by attaching it to your next post.

Don't forget to explain the steps to reproduce the error, i'll test it here and discover the problem.

 

Best Regards

Luigi Labigalini

Griaule Support Team

mverone
Offline
Joined: 2009-05-26
Rate this post:
0
No votes yet

I found that i need an Application.ProcessMessages after calling CapLoadImageFromFile. This way the OnImage event is executed for each processed image.

Thanks for your help.