Problems - Trying to convert - Fingerprint

General information about Neurotechnology and its software

Problems - Trying to convert - Fingerprint

Postby softwarebh_gi » May 19, 2017 18:34

Hey guys,

I have an equipment that reads fingerprint biometric and convert to “jpg” image.
This equipment did not run any Neurotech software. Its from another company.
But I was able to get the fingerprint image and I am trying to use this image to generate
a Neurotech template.
The following code shows the image and the attempt to convert the image into NGrayscaleImage.


Code: Select all
Dim vfExtractor As Neurotec.Biometrics.VFExtractor
Dim templateLido As Byte()
Dim resultImage As Neurotec.Images.NGrayscaleImage
Dim ImageJPG As Image = Image.FromFile("C:/image.jpg")

resultImage = DirectCast(ImageJPG.Clone(), Neurotec.Images.NGrayscaleImage)

vfExtractor = New Neurotec.Biometrics.VFExtractor

vfExtractor.UseQuality = True

templateLido = vfExtractor.Extract(resultImage, 0, 0)


This error happens in line 6. The description is below:
System.InvalidCastException = {"Cannot convert from type "System.Drawing.Bitmap" to "Neurotec.Images.NGrayscaleImage"."}
I wonder if you guys could help extract this template from an jpg image.
I would also like to know if the images used by Neurotech to extract the template have some kind of standardization such as: maximum size (KB), width, height, pixels, DPIs, and others.

Thanks in advance
softwarebh_gi
 
Posts: 1
Joined: May 19, 2017 18:21

Re: Problems - Trying to convert - Fingerprint

Postby MartynasV » May 23, 2017 09:10

Hello softwarebh_gi,

I assume that you are using VeriFinger 5.0 SDK.

Use NImage type instead of Image.
Code: Select all
image = NImage.FromFile("C:/image.jpg")
NGrayscaleImage grayscaleImage = (NGrayscaleImage)NImage.FromImage(NPixelFormat.Grayscale, 0, horzResolution, vertResolution, image);


I wonder if you guys could help extract this template from an jpg image.

Follow tutorial: "VF50\tutorials\VB.NET\FeaturesExtractionFromImage".

I would also like to know if the images used by Neurotech to extract the template have some kind of standardization such as: maximum size (KB), width, height, pixels, DPIs, and others.

You must set real vertical and horizontal DPI of image.
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 248
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 1 guest

cron