From a8f2f06f4f73c656973fd2de2aba9e21f7b439b5 Mon Sep 17 00:00:00 2001 From: yugasun Date: Sun, 29 May 2022 11:24:22 +0800 Subject: [PATCH] Updates --- camera.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/camera.html b/camera.html index f7780e9..52af747 100644 --- a/camera.html +++ b/camera.html @@ -31,7 +31,13 @@ throw new Error('Canvas and getUserMedia are required'); } - let code = await qr.decodeFromCamera(video); + let code = await qr.decodeFromCamera(video, + // you can customize your camera size like below + // { + // width: 400, + // height: 400, + // } + ); console.log('code', code); result.innerText = 'Result: ' + code.data; }