How to save and retrieve fingerprint template to and from MySql using vb.net? -
i'm new fingerprint thing on vb.net , mysql. started trying use digitalpersona u.are.u 4500 , don't know how save template mysql database. want retrieve data mysql. here code. thank you! `
private enroller dpfp.processing.enrollment protected overrides sub init() mybase.init() mybase.text = "fingerprint enrollment" enroller = new dpfp.processing.enrollment() ' create enrollment. updatestatus() end sub protected overrides sub process(byval sample dpfp.sample) mybase.process(sample) ' process sample , create feature set enrollment purpose. dim features dpfp.featureset = extractfeatures(sample, dpfp.processing.datapurpose.enrollment) ' check quality of sample , add enroller if it's if (not features nothing) try makereport("the fingerprint feature set created.") enroller.addfeatures(features) ' add feature set template. updatestatus() ' check if template has been created. select case enroller.templatestatus case dpfp.processing.enrollment.status.ready ' report success , stop capturing raiseevent ontemplate(enroller.template) setprompt("click close, , click fingerprint verification.") stopcapture() case dpfp.processing.enrollment.status.failed ' report failure , restart capturing enroller.clear() stopcapture() raiseevent ontemplate(nothing) startcapture() end select end try end if end sub protected sub updatestatus() ' show number of samples needed. setstatus(string.format("fingerprint samples needed: {0}", enroller.featuresneeded)) end sub private sub enrollmentform_load(sender system.object, e system.eventargs) handles mybase.load end sub private sub initializecomponent() me.suspendlayout() ' 'bioenrollment ' me.autoscaledimensions = new system.drawing.sizef(6.0!, 13.0!) me.clientsize = new system.drawing.size(1266, 630) me.name = "bioenrollment" me.resumelayout(false) me.performlayout() end sub`
the digitalpersona fingerprint reader allow serialize fingerprint xml file......you store in database varchar(max).
Comments
Post a Comment