Fingerprint Template Operations
The following endpoints allow extracting, selecting, and merging fingerprint biometric templates from raw grayscale images. These are low-level operations used in fingerprint enrollment workflows.
Available on iDAccess line devices and on versions V7 and V8.
Extract fingerprint template
Extracts a fingerprint biometric template from a raw grayscale image. The image dimensions must be passed as query string parameters and the body must contain exactly width × height raw bytes.
POST /template_extract.fcgi
Parameters
- width (int): Required. Image width in pixels. Passed as a query string parameter.
- height (int): Required. Image height in pixels. Passed as a query string parameter.
- Raw grayscale image data as the request body (
application/octet-stream). Must be exactlywidth × heightbytes.
Response
- quality (int): Fingerprint image quality score.
- template (string): Base64-encoded biometric template.
Request example
$.ajax({
url: "/template_extract.fcgi?width=256&height=256&session=" + session,
type: 'POST',
contentType: 'application/octet-stream',
data: [raw grayscale image bytes]
});
Response example
{
"quality": 87,
"template": "base64encodedtemplate..."
}
Match fingerprint templates
Selects the best template from multiple fingerprint captures. Typically used during enrollment to identify the most representative reading from a set of captures.
POST /template_match.fcgi
Parameters
Passed as query string parameters:
- temp_num (int): Optional. Number of templates to compare. Defaults to
3. - size0, size1, ... (int): Required. Size in bytes of each template in the request body (one parameter per template, indexed from
0).
Body (application/octet-stream): concatenated raw template bytes, in the same order as the sizeN parameters. Total size must equal the sum of all sizeN values.
Response
- template (string): Base64-encoded template selected as the best match.
Request example
$.ajax({
url: "/template_match.fcgi?temp_num=3&size0=512&size1=512&size2=512&session=" + session,
type: 'POST',
contentType: 'application/octet-stream',
data: [concatenated raw template bytes]
});
Response example
{
"template": "base64encodedtemplate..."
}
Merge fingerprint templates
Merges multiple fingerprint captures into a single optimized template. Typically used as the final step of enrollment after multiple reads have been collected.
POST /template_merge.fcgi
Parameters
Passed as query string parameters:
- temp_num (int): Optional. Number of templates to merge. Defaults to
3. - size0, size1, ... (int): Required. Size in bytes of each template in the request body (one parameter per template, indexed from
0).
Body (application/octet-stream): concatenated raw template bytes, in the same order as the sizeN parameters. Total size must equal the sum of all sizeN values.
Response
- template (string): Base64-encoded merged template.
Request example
$.ajax({
url: "/template_merge.fcgi?temp_num=3&size0=512&size1=512&size2=512&session=" + session,
type: 'POST',
contentType: 'application/octet-stream',
data: [concatenated raw template bytes]
});
Response example
{
"template": "base64encodedtemplate..."
}
Validate fingerprint template
Validates whether a fingerprint biometric template is recognized as a valid match by the device's biometric engine.
POST /is_valid_biometry.fcgi
Parameters
- biometry (string): Required. Base64-encoded fingerprint template to validate.
Response
- isValid (bool):
trueif the template is valid and recognized,falseotherwise.
Request example
$.ajax({
url: "/is_valid_biometry.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
biometry: "base64encodedtemplate..."
})
});
Response example
{
"isValid": true
}
Begin template sync
Disables the device's live fingerprint identification engine to allow safe bulk template updates. Call before performing a batch of fingerprint template modifications, then call End template sync when done.
Available only on iDAccess line devices.
POST /template_sync_init.fcgi
Parameters
- This call has no parameters.
Response
- This call has no return.
Request example
$.ajax({
url: "/template_sync_init.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json'
});
End template sync
Re-enables the device's fingerprint identification engine and notifies the system of updated templates. Call after completing a batch of fingerprint template modifications started with Begin template sync.
Available only on iDAccess line devices.
POST /template_sync_end.fcgi
Parameters
- This call has no parameters.
Response
- This call has no return.
Request example
$.ajax({
url: "/template_sync_end.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json'
});