We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7ad928 commit daf8071Copy full SHA for daf8071
lib/barcodes.js
@@ -39,6 +39,7 @@ async function _detectWithHspLuminance({barcodeDetector, video}) {
39
const height = video.videoHeight;
40
canvas.width = width;
41
canvas.height = height;
42
+ canvas.style = `width: ${width}px; height: ${height}px`;
43
const ctx = canvas.getContext('2d');
44
ctx.drawImage(video, 0, 0);
45
const imageData = ctx.getImageData(0, 0, width, height);
0 commit comments