Created
June 21, 2020 15:34
-
-
Save risenW/02e3d8173e129b756cf67f2d2e278053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" | |
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> | |
<!-- Load the latest version of TensorFlow.js --> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/knn-classifier"></script> | |
<title>Custom Image Classifier</title> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12 text-center"> | |
<h1>Custom Image Classifier Using Transfer Learning!</h1> | |
</div> | |
</div> | |
<br> | |
<hr> | |
<div class="row"> | |
<div class="col-md-7 text-center"> | |
<video autoplay playsinline muted id="webcam" width="300" height="350"></video> | |
<hr> | |
<p>Click a button to add a single example to each class</p> | |
<button class="btn btn-primary" id="class-up">Control Up</button> | |
<button class="btn btn-primary" id="class-down">Control Down</button> | |
<button class="btn btn-primary" id="class-left">Control Left</button> | |
<button class="btn btn-primary" id="class-right">Control Right</button> | |
<button class="btn btn-primary" id="class-nothing">Doing Nothing</button> | |
</div> | |
<div class="col-md-5 text-center"> | |
<h2 id="output"> </h2> | |
</div> | |
</div> | |
</div> | |
<!-- Load index.js after the content of the page --> | |
<script src="index.js"></script> | |
<!-- Optional JavaScript --> | |
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | |
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" | |
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" | |
crossorigin="anonymous"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" | |
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" | |
crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" | |
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" | |
crossorigin="anonymous"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment