From dc1a00428a6e9618f1bc13636da60d32c824d2a4 Mon Sep 17 00:00:00 2001 From: alexandre Date: Sat, 2 Mar 2024 14:07:34 +0100 Subject: [PATCH] t --- src/test.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test.html b/src/test.html index ae22e3c52..3a74c1eb0 100644 --- a/src/test.html +++ b/src/test.html @@ -41,6 +41,7 @@ result.textContent = `${lastValue} (${valueCount})`; if (valueCount === 3 && !seen[value]) { + seen[value] = true; const w = video.videoWidth; const h = video.videoHeight; const imgCanvas = document.createElement("canvas"); @@ -61,7 +62,11 @@ const img = document.createElement("img"); img.src = imageSrc; + const text = document.createElement("p"); + text.textContent = value; + const container = document.getElementById("seen"); + container.appendChild(text); container.appendChild(img); }