|
Post by funnyboym13 on Apr 6, 2013 9:09:31 GMT -4
hmmmmmmmmm
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:10:52 GMT -4
Ahhh I Will As My Friend As he Is taking DataBase Hopefully He Will Have An Answer
|
|
|
Post by nosheen on Apr 6, 2013 9:11:56 GMT -4
I am doing a final year project which is "Secure Electronic Voting System Using Fingerprints". I am using the MegaMatcher SDK for the development. I am using Java, Oracle 11g, and C# for this.
Now basically the whole project is divide into two major modules. Voter Registration and the Vote Casting. I am making the Voter registration application in java in which the user will add his informations along with the fingerprints.
Then at the time of voting which is in C#. That user will give his fingerprint and if he is registered the system will allow him/her to cast a vote....
|
|
|
Post by nosheen on Apr 6, 2013 9:14:12 GMT -4
when the template is in Byte[] the datatype for that template should be BLOB in the database but when i insert it directly without converting it is CLOB...
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:15:26 GMT -4
Calls afis engine class and create new object, then create fingerprint object [6], and wrap it in person object: Fingerprint fp1 = new Fingerprint(); fp1.AsBitmapSource = new Bitmap(Bitmap.FromFile(pathToImage)); Person person = new Person(); person.Fingerprints.Add(fp); 4. Extracts minutiae from the fingerprint image and stores them in fingerprint template: Afis.Extract(person)
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:16:02 GMT -4
Mayb There is An Error In It
|
|
|
Post by nosheen on Apr 6, 2013 9:24:52 GMT -4
I have everything available i just have to convert that template into the byte[]....
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:26:55 GMT -4
You need to make things before get the array of bytes...
You need to know that if you want make a template you extract the feature of the sample 4 times and this make a template.
You need to implement a DPFPDataListener,
Create a capture
public DPFPCapture CAPTURA = DPFPGlobal.getCaptureFactory().createCapture(); Variables that you will need
private DPFPEnrollment HUELLA; public DPFPFeatureSet EXTRACTION; public DPFPTemplate TEMPLATE; Add listeners
CAPTURA.addDataListener(this); When to put the finger in the hardware, you dispache the event
@override public void dataAcquired(DPFPDataEvent dpfpde) { EXTRACTION = extractFeatures(dpfpde.getSample(), DPFPDataPurpose.DATA_PURPOSE_ENROLLMENT); TEMPLATE = enrollment_huella(EXTRACTION); **//this line add in the finally part } You need to get the feature
protected DPFPFeatureSet extractFeatures(DPFPSample sample, DPFPDataPurpose purpose){ DPFPFeatureExtraction extractor = DPFPGlobal.getFeatureExtractionFactory().createFeatureExtraction(); try { return extractor.createFeatureSet(sample, purpose); } catch (DPFPImageQualityException e) { return null; } } Finally Part
protected DPFPTemplate enrollment_huella(DPFPFeatureSet featureSet) throws DPFPImageQualityException{ if(HUELLA == null) HUELLA = DPFPGlobal.getEnrollmentFactory().createEnrollment(); HUELLA.addFeatures(featureSet); //here you can see if the template is ready... if( HUELLA.getTemplateStatus() == DPFPTemplateStatus.TEMPLATE_STATUS_READY){ return HUELLA.getTemplate(); } else return null; } In the function dataAcquired you can get the template.
I hope you understand!
|
|
|
Post by nosheen on Apr 6, 2013 9:30:16 GMT -4
Actually i have the extracted template i only have to do that...
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:32:16 GMT -4
Ok Good
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:36:39 GMT -4
Is this part of your code? Blob blob = con.createBlob(); blob.setBytes(1, enroller.getTemplate().serialize()); System.out.println(enroller.getTemplate().serialize()); //prints [B@53de73a3
int blobLength = (int) blob.length(); byte[] blobAsBytes = blob.getBytes(1, blobLength); System.out.println(blobAsBytes); //prints [B@3179fd59`
|
|
|
Post by nosheen on Apr 6, 2013 9:42:06 GMT -4
how can i use the template in this???
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:45:32 GMT -4
Um Im Srry I Taught u sued it.. if u did i would hv presented u with this information
|
|
|
Post by funnyboym13 on Apr 6, 2013 9:47:48 GMT -4
Why would you expect these to be the same ? You're printing using the toString() method on a byte array, and that's going to give you the type info + a number related to (but not necessarily) the memory location (it's actually the hashCode() when toString() is not overridden).
If you want to compare these, then use equals() on the two byte arrays. Or perhaps compare the elements one-by-one (check the length first to avoid an unnecessary traversal if the sizes don't match)
|
|
|
Post by nosheen on Apr 6, 2013 10:12:04 GMT -4
public void saveTemplate(NFRecord template) { //Convert the template hereee.... Voter v=new Voter(); v.generatevoterno(template);
} i have this function behind the button how can i use this blob here??
|
|