Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

FINGERPRINT

var returnPNGImage = true; // returns PNG image along with the template. Setting it to false, returns only template
var apiKey="To be generated from CAMS API Monitor";

capture(apiKey, returnPNGImage);
...
compare(apiKey,temlate1,temlate2);

function onCaptureSuccess(data)
{
	var plainData = data;
	//write the program to decrypt if security key is set in API monitor for the scanner

	var scannerData = getScannerSuccessData(plainData);

	var template = scannerData.template;
	var pngImageContent = "data:image/png;base64," + scannerData.image;

}

function onCaptureFailure(data)
{
	var failureData = getScannerFailureData(data);
	var erroString = failureData.errorString;
}

function onCompareSuccess(data)
{
	var plainData = data;
	//write the program to decrypt if security key is set in API monitor for the scanner

	var scannerData = getScannerSuccessData(plainData);
	var matchingScore = scannerData.matchScore;
}

function onCompareFailure(data)
{
	var failureData = getScannerFailureData(data);
	var erroString = failureData.errorString;
}
Source by camsbiometrics.ng #
 
PREVIOUS NEXT
Tagged: #FINGERPRINT
ADD COMMENT
Topic
Name
7+1 =