I am using Webcam.js for getting images form camera.
document.getElementById('cameraImage').src = data_uri;
data_uri gives me the image form capture event of camera.
Then I create Image dynamically in JavaScript like var img = new Image(); img.src = data_uri;
When I am trying to apply face detection on it using Facedetection.js it gives error Failed to execute getImageData on CanvasRenderingContext2D: The source width is 0.
How can i set source width of image so face detection will work