From 48604b90c4001937f3cc557d538a5c0988889c81 Mon Sep 17 00:00:00 2001 From: itorr Date: Sun, 14 Aug 2022 20:29:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=20#9=20=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E7=9A=84=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/louvre.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/louvre.js b/html/louvre.js index 97a069e..e17367c 100644 --- a/html/louvre.js +++ b/html/louvre.js @@ -111,6 +111,9 @@ const louvre = async ({img, outputCanvas, config, callback}) => { let pixelData = pixel.data; + // 测试图像数据读取正常与否 + // alert(pixel.data.slice(0,10); + for (let i = 0; i < pixelData.length; i += 4) { // let yuv = rgb2yuv(