Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jul 30, 2020
1 parent 788ef12 commit 5e16c12
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 16 deletions.
Binary file modified ESP32-CAM_SD_LoadPage_PAGE/SD.zip
Binary file not shown.
12 changes: 6 additions & 6 deletions ESP32-CAM_SD_LoadPage_PAGE/SD/DeepLab3.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
</head>
<body>
<section class="main">
<section id="buttons">
<table>
<tr><td><button id="restart" onclick="try{fetch(document.location.origin+'/control?restart');}catch(e){}">Restart</button></td><td><button id="get-still">Get Still</button></td><td style="display:none"><button id="toggle-stream"></button></td></tr>
</table>
</section>
<figure>
<div id="stream-container" class="image-container hidden">
<div class="close" id="close-stream" style="display:none">×</div>
<img id="stream" src="" style="display:none">
<canvas id="canvas" width="0" height="0"></canvas><div id="legendList"></div><br><br>
</div>
</figure>
</figure>
<section id="buttons">
<table>
<tr><td><button id="restart" onclick="try{fetch(document.location.origin+'/control?restart');}catch(e){}">Restart</button></td><td><button id="get-still">Get Still</button></td><td style="display:none"><button id="toggle-stream"></button></td></tr>
</table>
</section>
<div id="logo">
<label for="nav-toggle-cb" id="nav-toggle">&#9776;&nbsp;&nbsp;Toggle settings</label>
</div>
Expand Down
41 changes: 36 additions & 5 deletions ESP32-CAM_SD_LoadPage_PAGE/SD/KNNClassifier.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
<section id="buttons">
<table>
<tr><td><button id="restart" onclick="try{fetch(document.location.origin+'/control?restart');}catch(e){}">Restart</button></td><td><button id="get-still" style="display:none">get-still</button><button id="toggle-stream" style="display:none"></button></td><td><button id="face_enroll" style="display:none" class="disabled" disabled="disabled"></button></td></tr>
<!-- 可在Select自訂option value為英數組成字串如apple -->
<tr><td><button id="addExample">Train</button></td><td><select id="Class"><option value="0">0</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option></select></td><td><span id="count" style="color:red">0</span></td></tr>
<tr><td><button id="clearAllClasses">Clear Classes</button></td><td><button onclick="saveModel();">Save Model</button></td><td><input type="file" id="getModel" style="width:100px"></input></td></tr>
<tr><td colspan="3"><span id="lastValue" style="display:none"></span>Probability Limit<select id="probabilityLimit"><option value="0">0</option><option value="0.3">0.3</option><option value="0.6">0.6</option><option value="0.9" selected="selected">0.9</option></select>&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="startdetection">Start Detection</td></tr>
</table>
</section>
<div id="logo">
Expand All @@ -37,7 +33,42 @@
<div id="content">
<div id="sidebar">
<input type="checkbox" id="nav-toggle-cb">
<nav id="menu">
<nav id="menu">
<div class="input-group" id="framesize-group">
<label for="Class" id="count">0</label>
<select id="Class">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
<button id="addExample">Train</button>
</div>
<div class="input-group" id="framesize-group">
<label for="probabilityLimit">Probability Limit</label>
<select id="probabilityLimit">
<option value="0">0</option>
<option value="0.3">0.3</option>
<option value="0.6">0.6</option>
<option value="0.9" selected="selected">0.9</option>
</select>
</div>
<div class="input-group">
<label for="startdetection">Start Detection</label>
<div class="switch">
<input id="startdetection" type="checkbox">
<label class="slider" for="startdetection"></label>
</div>
</div>
<div class="input-group">
<span id="lastValue" style="display:none"></span><button id="clearAllClasses">Clear Classes</button><button onclick="saveModel();">Save Model</button><input type="file" id="getModel" style="width:100px"></input>
</div>
<div class="input-group" id="flash-group">
<label for="flash">Flash</label>
<div class="range-min">0</div>
Expand Down
17 changes: 12 additions & 5 deletions ESP32-CAM_SD_LoadPage_PAGE/SD/TeachableMachine.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,29 @@
<div id="stream-container" class="image-container hidden">
<div class="close" id="close-stream" style="display:none">×</div>
<img id="stream" src="" style="display:none">
<canvas id="canvas" width="0" height="0"></canvas>
<canvas id="canvas" width="0" height="0"></canvas>
</div>
</figure>
<section id="buttons">
<table>
<tr><td>Model Path</td><td align="center" colspan="2"><input type="text" id="modelPath" value=""></td></tr>
<tr><td><button id="restart" onclick="try{fetch(document.location.origin+'/control?restart');}catch(e){}">Restart</button></td><td><button id="get-still" style="display:none">Get Still</button></td><td><button id="toggle-stream" style="display:none"><button type="button" onclick="ObjectDetect();">Start Recognition</button></td></tr>
</table>
<tr><td><button id="restart" onclick="try{fetch(document.location.origin+'/control?restart');}catch(e){}">Restart</button></td><td><button id="get-still" style="display:none">Get Still</button></td><td><button id="toggle-stream" style="display:none"></td></tr>
</table>
</section>
<div id="logo">
<label for="nav-toggle-cb" id="nav-toggle">&#9776;&nbsp;&nbsp;Toggle settings</label>
</div>
<div id="content">
<div id="sidebar">
<input type="checkbox" id="nav-toggle-cb">
<nav id="menu">
<nav id="menu">
<div class="input-group">
<label for="modelPath">Model Path</label>
<input type="text" id="modelPath" value="">
</div>
<div class="input-group">
<label for="btnModel"></label>
<button type="button" id="btnModel" onclick="LoadModel();">Start Recognition</button>
</div>
<div class="input-group" id="flash-group">
<label for="flash">Flash</label>
<div class="range-min">0</div>
Expand Down

0 comments on commit 5e16c12

Please sign in to comment.