The function down here get's called every second, it only never outputs: console.log("noise: "+noise);
So something goes wrong and i have no idea what or how to figure it out.
function readEye() {
console.log("readEye");
$.getJSON('output.json', function(data){
faceDetected = data.faceDetected;
frameCount = data.frameCount;
noise = data.noise;
console.log("noise: "+noise);
});
// show values in devPanel
document.getElementById('faceDetected').innerHTML = "faceDetected: "+faceDetected;
}
console.log(data);beforefaceDetected...?