Responsive Design OCR
This commit is contained in:
@ -31,5 +31,5 @@ function throwError(error) {
|
||||
function snap() {
|
||||
canvas.width = video.clientWidth;
|
||||
canvas.height = video.clientHeight;
|
||||
canvas.getContext("2d").drawImage(video, 0, 0);
|
||||
canvas.getContext("2d").drawImage(video, 0, 0, canvas.width, canvas.height);
|
||||
}
|
Reference in New Issue
Block a user