Add object detection, tracking, mobile notifications, and search to any security camera.
remove logs
rorycleara8e3ff1bf064
diff --git a/clearcam/main.html b/clearcam/main.htmlindex d61a04a..f7cedd6 100644--- a/clearcam/main.html+++ b/clearcam/main.html@@ -82,14 +82,10 @@const response = await fetch('/get-devices');const devices = await response.json();const newUrls = new Set(devices.map(ip => `http://${ip}:8080`));-- console.log('Fetched devices:', devices);- console.log('New URLs:', [...newUrls]);// Add new URLsnewUrls.forEach(url => {if (!existingUrls.has(url)) {- console.log('Adding new rectangle for:', url);existingUrls.add(url);const rect = createRectangle(url);rectangles.set(url, rect);@@ -99,7 +95,6 @@// Remove rectangles for URLs no longer present[...existingUrls].forEach(url => {if (!newUrls.has(url)) {- console.log('Removing rectangle for:', url);removeRectangle(url);existingUrls.delete(url);rectangles.delete(url);diff --git a/clearcam/player.html b/clearcam/player.htmlindex f7f5bcd..821e83e 100644--- a/clearcam/player.html+++ b/clearcam/player.html@@ -553,15 +553,12 @@//drawBoundingBox(0.0,0.0,0.5,0.5,"red","rory");for(let i = 0; i < frames[shape_idx].squares.length; i++){if(portrait){ //todo, can just send the correct aspect ratio instead?- console.log("is portait!");- console.log(frames[shape_idx].squares[i]);let originX = (frames[shape_idx].squares[i].originX / (res / aspect_ratio));let originY = (frames[shape_idx].squares[i].originY / res);let length = ((frames[shape_idx].squares[i].bottomRightX - frames[shape_idx].squares[i].originX) / (res / aspect_ratio));let height = ((frames[shape_idx].squares[i].bottomRightY - frames[shape_idx].squares[i].originY) / res);drawBoundingBox(originX, originY, length, height,yolo_classes[frames[shape_idx].squares[i].classIndex][1],yolo_classes[frames[shape_idx].squares[i].classIndex][0]);} else {- console.log("is LANDSCAPE!");let originX = (frames[shape_idx].squares[i].originX / res);let originY = (frames[shape_idx].squares[i].originY / (res / aspect_ratio));let length = ((frames[shape_idx].squares[i].bottomRightX - frames[shape_idx].squares[i].originX) / res);@@ -706,11 +703,6 @@}}totalDuration = segments[segments.length-1].duration + (segments[segments.length - 1].timeStamp - segments[0].timeStamp);- if(gaps.length > 0){- console.log("gaps!");- console.log(gaps);- }-if (totalDuration !== oldTotalDuration) {updateTimeline();preloadNextSegments();