I have saved fingerprint impressions in the SQLite database as a bitmap. Anyone please save two fingerprint impressions from source code or link to Android code Can help to compare it as a bitmap. To match for equality.
I have tried with the following code. But it matches all the fingerprint impressions stored in the database.
Compare public boolean (bitmap imagetcomampper, bitmap image indeb) {System.out.println ("Inside Comparison"); Println ("imageToCompare ::::" + imageToCompare); Println ("imageInDb ::::" + imageInDb); / * Int width = imageToCompare.getWidth (); Println ("width ::::::" + width); Int height = imageToCompare.getHeight (); Println ("height ::::" + height); Int pixelCount = width * height; Int width1 = imageInDb.getWidth (); Println ("width1 :::::" + width1); Int height1 = imageInDb.getHeight (); System.out.println ("height1 ::::" + height 1); * / Int pixelCount = mImageWidth * mImageHeight; Println ("pixelCount ::::" + pixelCount); Int [] Pixel 1 = New Int [PixelCount]; Int [] Pixel 2 = New Int [PixelCount]; Println ("11111111111111111"); //imageToCompare.getPixels (pixels 1, 0, 0, 0, width, height); ImageToCompare.getPixels (Pixel 1, 0, MimeView, 0, 0, Mimeage, MIMAJ); ImageInDb.getPixels (Pixels2, 0, MIMAgued, 0,0, Mimeage, IMage Heights); Println ("22222222222222"); For (int i = 0; i thanks
To compare two bitmap Using openCV There are many functions for the library image collection for Android and this theme is broad and depends on the basis of your needs. You can start with the cvNorm function.
In the link below you will create samples collected under OpenCiv Library and Java, so you do not have to write the original code in C.
Comments
Post a Comment