Who can explain these methods !!!

Source: Internet
Author: User

Question:
14.2.4 function dongleseed (byval lp2 as long, byval P1, P2, P3, P4 as integer) as Boolean
Obtain the return values of four 16-digit integers (P1, P2, P3, P4) of the seed code lp2. the dongle can use an internal algorithm to calculate a seed code and obtain the four Return codes. The seed code algorithm is not public,

You can check whether the dongle exists by checking whether the return code is the expected value.
24.2.6 function donglememread (byval p1, p2 as integer, Buf) as Boolean
Read the P2 bytes starting from P1 in the memory area of the dongle to the variant variable Buf (one-dimensional byte array ). The memory zone consists of 24 bytes, ranging from 0 to 23.
34.2.7 function donglememwrite (byval p1, p2 as integer, Buf) as Boolean
Write the variant variable Buf (one-dimensional byte array) to the P2 byte starting from P1 in the dongle memory zone. The memory zone consists of 24 bytes, ranging from 0 to 23.
44.2.8 function gettemplate ()
Obtain the latest fingerprint template.
54.2.9 function getfingerimage (byval afingerimage) as Boolean
Obtain the latest fingerprint image (in BMP format ).
64.2.11 function verfinger (byval regtemplate, vertemplate, adolearning as Boolean, byval aregfeaturechanged as Boolean)

Boolean
Compare the two fingerprint feature templates. Regtemplate indicates the fingerprint registration Feature Template, vertemplate indicates the fingerprint verification Feature Template collected on site, and adolearning table

Indicates whether fingerprint Feature Template learning is updated. Aregfeaturechanged indicates whether the registration template regtemplate has changed. If the two fingerprints match, true is returned. If the two fingerprints do not match, true is returned.

False
Note:
The finger features may change to a certain extent over time, and usually do not affect the fingerprint comparison. However, by learning and updating the fingerprint feature template, the system will obtain a new template from

The rejection rate can be reduced.
74.2.12 function verfingerfromfile (regtemplatefile as string, vertemplatefile as string, adolearning as Boolean, byval

Aregfeaturechanged as Boolean) as Boolean
Compare the two fingerprint feature template files. Regtemplatefile indicates the fingerprint registration Feature Template file, and vertemplatefile indicates the fingerprint verification feature model collected on site.

Version file. adolearning indicates whether fingerprint Feature Template learning is updated. Aregfeaturechanged indicates whether the registration template file regtemplatefile has changed. Match two fingerprints

Returns true, false if not matched
84.2.13 function verregfingerfile (regtemplatefile as string, vertemplate, adolearning as Boolean, byval aregfeaturechanged

Boolean) as Boolean
Compare the two fingerprint feature templates. Regtemplate indicates the previously registered fingerprint feature template in the file specified by filename, and vertemplate indicates

Pattern feature templates. adolearning indicates whether fingerprint feature templates are learned and updated. Aregfeaturechanged indicates whether the registration template file regtemplatefile has changed. Two

True is returned for a grain match, and false is returned for a non-match.
94.2.14 sub printimageat (HDC as ole_handle, X as long, y as long, awidth as long, aheight as long)
Display the fingerprint image at the position specified by (x, y) according to the size specified by (awidth, aheight). HDC indicates the device description table handle of the window for fingerprint display.
104.2.15 sub printimageellipseat (HDC as ole_handle, X as long, y as long, awidth as long, aheight as long, bkcolor

Ole_color)
Fingerprint images are displayed at the position specified by (x, y) according to the size specified by (awidth, aheight). HDC indicates the device description table handle of the window for fingerprint display. Fingerprint image here

Surrounded by an elliptical shape.
114.2.19 function encodetemplate (asour, VAR adest as string) as Boolean
Convert the variant template asour used by the control to the template string adest in base64 format.

124.2.20 function decodetemplate (const asour as string, adest) as Boolean
Convert the base64 template string asour to the variant type adset template used by the control.

The above two methods are mainly used for saving the template database. The variant type templates are stored in an array in binary format, which is difficult to operate in Pb, VB, and other languages.

Encodetemplate can convert the variant type encoding to the string type. The decodetemplate method can convert the string type encoding to the variant type. Note that,

The template variable base64 is encoded as a string, and the template length will become longer.

134.2.21 function encodetemplate1 (asour) as string
Convert the variant template asour used by the control to a base64 template string. Refer to encodetemplate for convenience of calling in Pb and VC.

144.2.22 function decodetemplate1 (const asour as string) as Variant
Convert the base64 template string asour to the variant template used by the control. Refer to decodetemplate for convenience of calling in Pb and VC.
154.2.25 function verfingerfromstr (regtemplatestr as string, vertemplatestr as string, adolearning as Boolean, byval

Aregfeaturechanged as Boolean) as Boolean
Compare the two fingerprint feature templates. Regtemplatestr indicates the fingerprint registration Feature Template (a base64 string), and vertemplatestr indicates the fingerprint collected on site.

Verify the Feature Template (a string in base64 format). adolearning indicates whether fingerprint Feature Template learning is updated. Aregfeaturechanged indicates the registration template file.

Whether the regtemplatefile is changed. Returns true if two fingerprints match, and false if they do not match.

164.2.27 function addregtemplatetofpcachedb (fpchandle as long, fpid as long, pregtemplate) as long
Add the fingerprint registration template pregtemplate to the fingerprint recognition high-speed buffer space fpchandle. fpid is the identifier of the registration template to be added.
Note: fpchandle is the return value for creating a high-speed buffer space. For details, see the createfpcachedb function; fpchandle = createfpcachedb ();
Fpid = identificationinfpcachedb (...); If the comparison is successful, the fpid is returned;

174.2.28 function addregtemplatefiletofpcachedb (fpchandle as long, fpid as long, pregtemplatefile as string) as long
Add the previous fingerprint registration Feature Template in the file specified by pregtemplatefile to the high-speed buffer space fpchandle for fingerprint recognition. fpid is the ID of the registration template to be added, which must be greater than or equal to 0.

1 indicates success, 0 indicates failure
184.2.30 sub flushfpimages ()
Clears the cached image from the current fingerprint device.

194.2.31 sub freefpcachedb (fpchandle as long)
Releases the high-speed buffer space for fingerprint recognition. fpchandle calls the createfpcachedb function to obtain the handle of the fingerprint recognition buffer space.

204.2.32 function identificationfromfileinfpcachedb (fpchandle as long, pvertemplatefile as string, byval score as long,

Byval processedfpnumber as long) as long
Compare all the registration templates in the fingerprint verification template file pvertemplatefile and fingerprint recognition high-speed buffer space fpchandle, and score is transferred out of the processedfpnumber

Highest score: the number of outgoing comparisons by processedfpnumber. If the recognition succeeds, the fingerprint ID is returned. If the recognition fails,-1 is returned.
Note:
During the recognition process, if the matching score is greater than or equal to the threshold attribute, the comparison is considered successful and no longer compared with the remaining fingerprint registration template in the buffer space. The function returns a matched

Fingerprint Identification of the fingerprint registration template;
When the scores of all fingerprint registration templates in the fingerprint verification template and fingerprint recognition cache space do not exceed the set threshold, but the maximum score is greater than or equal

Score, the comparison is considered to be successful. The function returns the fingerprint registration template ID of the highest score, which is recommended to be set to 8;

214.2.33 function identificationinfpcachedb (fpchandle as long, pvertemplate, byval score as long, byval processedfpnumber

As long) as long
Compare the fingerprint verification template pvertemplate and fingerprint recognition all registration templates in the high-speed buffer space fpchandle. score indicates the highest score in the processedfpnumber comparison.

, Processedfpnumber indicates the number of outgoing comparisons. If the recognition succeeds, the fingerprint ID is returned. If the recognition fails,-1 is returned.
Note:
During the recognition process, if the matching score is greater than or equal to the threshold attribute, the comparison is considered successful and no longer compared with the remaining fingerprint registration template in the buffer space. The function returns a matched

Fingerprint Identification of the fingerprint registration template;
When the scores of all fingerprint registration templates in the fingerprint verification template and fingerprint recognition cache space do not exceed the set threshold, but the maximum score is greater than or equal

Score, the comparison is considered to be successful. The function returns the fingerprint registration template ID of the highest score, which is recommended to be set to 8;

224.2.34 function isonetoonetemplate (atemplate) as Boolean
Determine whether the current fingerprint Feature Template atemplate is biokey low-speed Comparison Feature Template.

234.2.35 function modifytemplate (byval atemplate, aonetoone as Boolean) as Boolean
According to aonetoone, modify the fingerprint Feature Template atemplate to biokey low-speed Comparison Feature Template or high-speed Comparison Feature Template.

244.2.36 function removeregtemplatefromfpcachedb (fpchandle as long, fpid as long) as long
Delete the fingerprint registration template marked as fpid in fpchandle. 1 indicates success, 0 indicates failure

254.2.38 function addregtemplatestrtofpcachedb (fpchandle as long, fpid as long, aregtemplatestr as string) as long
Add a base64 string aregtemplatestr fingerprint registration Feature Template to the fingerprint recognition high-speed buffer space fpchandle. fpid is the ID of the registration template to be added, which must be greater than or equal to 0. Return

1 indicates success, 0 indicates failure

264.2.39 function identificationfromstrinfpcachedb (fpchandle as long, avertemplatestr as string, byval score as long, byval

Processedfpnumber as long) as long
Compare the fingerprint verification template avertemplatestr (base64 string) with all registration templates in the fingerprint recognition high-speed buffer space fpchandle, and score

The highest score in the processedfpnumber comparison, and the number of outgoing comparisons in processedfpnumber. If the recognition succeeds, the fingerprint ID is returned. If the recognition fails,-1 is returned.
Note:
During the recognition process, if the matching score is greater than or equal to the threshold attribute, the comparison is considered successful and no longer compared with the remaining fingerprint registration template in the buffer space. The function returns a matched

Fingerprint Identification of the fingerprint registration template;
When the scores of all fingerprint registration templates in the fingerprint verification template and fingerprint recognition cache space do not exceed the set threshold, but the maximum score is greater than or equal

Score, the comparison is considered to be successful. The function returns the fingerprint registration template ID of the highest score, and the recommended value is 9;
274.2.41 function addbitmap (bitmaphandle as ole_handle, validrectx1 as long, validrecty1 as long, validrectx2 as long,

Validrecty2 as long, DPI as long) as Boolean
Use bitmap specified by bitmaphandle for registration or comparison. The four parameters validrectx1, validrecty1, validrectx2, and validrecty2 specify the valid region of the image,

If the specified image region is invalid, the image is taken from all regions, and the DPI specifies the resolution size of the image.

284.2.42 function addimagefile (filename as string, DPI as long) as Boolean
Use the fingerprint image file specified by filename (BMP and jpg formats supported) for registration or comparison. DPI specifies the image resolution size.

Before using the above two functions, if the image file is used for fingerprint registration, first use beginenroll and set enrollcount. If it is used for comparison, use begincapture.

And then use addimagefile or addbitmap to trigger the onenroll or oncapture event.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.