diff --git a/public/index.html b/public/index.html
index ef7a8c0..65dcff0 100755
--- a/public/index.html
+++ b/public/index.html
@@ -21,8 +21,7 @@
-

+
Connecting…
@@ -32,6 +31,7 @@
Camera 1
+
Connecting…
diff --git a/public/indexA.css b/public/indexA.css
index bb85299..aa52d4e 100755
--- a/public/indexA.css
+++ b/public/indexA.css
@@ -51,6 +51,7 @@ h1, h2 {
so overlays align correctly when the window is resized. */
.video-wrap canvas,
.video-wrap img,
+#overlayImg1,
#overlayImg {
position: absolute;
inset: 0; /* top:0; right:0; bottom:0; left:0 */
@@ -67,6 +68,7 @@ h1, h2 {
z-index: 1;
}
.video-wrap img,
+#overlayImg1,
#overlayImg {
z-index: 2;
pointer-events: none; /* don't block interactions with the canvas */
@@ -123,7 +125,7 @@ footer {
/* Ensure overlay uses contain and respects alpha channel from the PNG
(the PNG's transparency is the authoritative source of which pixels
are transparent; CSS opacity only adjusts global alpha). */
-#overlayImg {
+#overlayImg,#overlayImg1 {
position: absolute;
inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
width: 100%;
diff --git a/public/videoService.js b/public/videoService.js
index e42569f..3b8199b 100755
--- a/public/videoService.js
+++ b/public/videoService.js
@@ -124,16 +124,18 @@
if (msg.type === 'snapshot' && control?.snapshotOutEl) {
if (msg.ok && msg.url && msg.urlApp) {
// Use overlay URL and CSV provided by the server (fallback to expected names)
- const overlayPNG = msg.overlay || msg.urlApp.replace('_annotated.jpg','_two_cam_overlay.png');
+ const overlayPNG0 = msg.overlay || msg.urlApp.replace('_annotated.jpg','_two_cam_overlay.png');
+ const overlayPNG1 = overlayPNG0.replace('video0','video1');
// Prefer server-provided overlayCSV. If not present, derive from the original jpg name
const overlayCSV = msg.overlayCSV || msg.url.replace('.jpg','_two_cam.csv');
control.snapshotOutEl.innerHTML =
`Snapshot: ${msg.url} ` +
` Recognized: ${msg.urlApp} ` +
- ` Overlay: PNG Overlay`;
+ ` Overlay: PNG Overlay`;
// Update overlay immediately — server now ensures files are ready before responding
- document.getElementById('overlayImg').src = overlayPNG;
+ document.getElementById('overlayImg').src = overlayPNG0;
+ document.getElementById('overlayImg1').src = overlayPNG1;
// Render CSV values into the csvTable container (if available)
if (window.readCSV) {
window.readCSV.renderCSV('csvTable', overlayCSV);