Add object detection, tracking, mobile notifications, and search to any security camera.
send two presets on frontend for now
roryclear6162111f8bcf
diff --git a/clearcam/player.html b/clearcam/player.htmlindex d6e6757..80b5ec8 100644--- a/clearcam/player.html+++ b/clearcam/player.html@@ -186,8 +186,7 @@<div style="display: flex; align-items: center;"><div id="timeDisplay">0:00 / 0:00</div><button id="fullscreenBtn" style="margin-left: 10px;">- <svg id="fullscreenIcon" xmlns="http://www.w3.org/2000/svg"- viewBox="0 0 24 24" fill="white" width="24px" height="24px">+ <svg id="fullscreenIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px"><path d="M3 3h6v2H5v4H3zm12 0h6v6h-2V5h-4zm6 12v6h-6v-2h4v-4zm-12 6H3v-6h2v4h4z"/></svg></button>@@ -212,6 +211,11 @@<div style="margin-top: 20px;"><label for="datePicker">Select Date:</label><input type="date" id="datePicker" name="datePicker">+ <label for="classSelector" style="margin-left: 10px;">Select Detection Mode:</label>+ <select id="classSelector" name="classSelector" onchange="changeClasses()">+ <option value="all">Detect All</option>+ <option value="vehiclesPeople">People and Vehicles Only</option>+ </select></div><script>const yolo_classes = [@@ -256,6 +260,29 @@["toothbrush", "rgb(102, 179, 153)"]];+ function changeClasses() {+ const selector = document.getElementById('classSelector');+ const selectedValue = selector.value;+ let url = '';++ if (selectedValue === 'all') {+ url = 'change-classes?indexes=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79';+ } else if (selectedValue === 'vehiclesPeople') {+ url = 'change-classes?indexes=0,1,2,3,5,7';+ }++ fetch(url)+ .then(response => {+ if (!response.ok) {+ throw new Error('Network response was not ok');+ }+ console.log('Class change request successful:', selectedValue);+ })+ .catch(error => {+ console.error('There was a problem with the fetch operation:', error);+ });+ }+let currentDate = "";const dateParam = getQueryParam("date");if (!dateParam) {