OmronHVCDetectionResults GetDetectionResults(OmronHVCDetectionAlgorithms, string)

Returns current detection results.

Parameters

Name Description
algorithms OmronHVCDetectionAlgorithms
A bitfield of algorithms to use when performing detection.
deviceName (Optional) string
The name of the device to perform an operation on.

Security

Trust Level Required: High Trust

Return

Returns a new JSON OmronHVCDetectionResults object with the detection information.

Examples



<img id="imgOutput" style="display:none;margin-top:10px;"/>

var algorithms = 0;
algorithms |= Algorithm.HumanBodyDetect;
algorithms |= Algorithm.HandDetect;
algorithms |= Algorithm.FaceDetect;
algorithms |= Algorithm.FaceDirection;
algorithms |= Algorithm.AgeEstimation;
algorithms |= Algorithm.GenderEstimation;
algorithms |= Algorithm.GazeEstimation;
algorithms |= Algorithm.BlinkEstimation;
algorithms |= Algorithm.ExpressionEstimation;
algorithms |= Algorithm.FaceRecognition;
algorithms |= Algorithm.HRImage;

var res = KioOmronHVC.GetDetectionResults(algorithms);
if (res.Image) displayImage(res.Image);
alert(JSON.stringify(res, null, 2));

function displayImage(base64) {
	var imgOutput = document.getElementById('imgOutput');
	imgOutput.style.display = '';
	imgOutput.src = 'data:image/png;base64, ' + base64;
}

function Algorithm() {}
Algorithm.HumanBodyDetect = 1 << 0;
Algorithm.HandDetect = 1 << 1;
Algorithm.FaceDetect = 1 << 2;
Algorithm.FaceDirection = 1 << 3;
Algorithm.AgeEstimation = 1 << 4;
Algorithm.GenderEstimation = 1 << 5;
Algorithm.GazeEstimation = 1 << 6;
Algorithm.BlinkEstimation = 1 << 7;
Algorithm.ExpressionEstimation = 1 << 8;
Algorithm.FaceRecognition = 1 << 9;
Algorithm.HRImage = 1 << 10;
Algorithm.Image = 1 << 11;

Requirements

KioWare for Windows version 8.16 or greater.