Responsive Design OCR

This commit is contained in:
LukasNowy
2019-01-18 00:32:18 +01:00
parent 4cb86a2f2a
commit 40ddeb8b28
4 changed files with 32 additions and 17 deletions

View File

@ -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);
}