code_examples/javascript_examples/js-estimate-age-snippet.html [19:36]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
},
Attributes: [
'ALL',
]
};
rekognition.detectFaces(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else {
var table = "
Low | High |
";
// show each face and build out estimated age table
for (var i = 0; i < data.FaceDetails.length; i++) {
table += '' + data.FaceDetails[i].AgeRange.Low +
' | ' + data.FaceDetails[i].AgeRange.High + ' |
';
}
table += "
";
document.getElementById("opResult").innerHTML = table;
}
});
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
code_examples/javascript_examples/js-estimate-age.html [34:51]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
},
Attributes: [
'ALL',
]
};
rekognition.detectFaces(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else {
var table = "Low | High |
";
// show each face and build out estimated age table
for (var i = 0; i < data.FaceDetails.length; i++) {
table += '' + data.FaceDetails[i].AgeRange.Low +
' | ' + data.FaceDetails[i].AgeRange.High + ' |
';
}
table += "
";
document.getElementById("opResult").innerHTML = table;
}
});
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -