|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta |
| 6 | + name="viewport" |
| 7 | + content="width=device-width, initial-scale=1, shrink-to-fit=no" |
| 8 | + /> |
| 9 | + <meta name="description" content="" /> |
| 10 | + <meta name="author" content="" /> |
| 11 | + |
| 12 | + <title>HTN - TensorFlow.js Workshop</title> |
| 13 | + |
| 14 | + <link href="./main.css" rel="stylesheet" type="text/css" /> |
| 15 | + <link |
| 16 | + href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" |
| 17 | + rel="stylesheet" |
| 18 | + type="text/css" |
| 19 | + /> |
| 20 | + |
| 21 | + <!--= CDN Tags here --> |
| 22 | + <script src="https://code.iconify.design/1/1.0.7/iconify.min.js"></script> |
| 23 | + </head> |
| 24 | + |
| 25 | + <body> |
| 26 | + <div class="navbar"> |
| 27 | + <div style="text-align: center"> |
| 28 | + <span |
| 29 | + height="5%" |
| 30 | + class="iconify" |
| 31 | + data-icon="logos-tensorflow" |
| 32 | + data-inline="false" |
| 33 | + ></span> |
| 34 | + <a class="navbar-brand" href="index.html" |
| 35 | + >TensorFlow.js COCO-SSD Object Detection for HackTheNorth Hackathon</a |
| 36 | + > |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + <center> |
| 40 | + <img |
| 41 | + src="https://hackthenorth.com/preview_img_twitter.jpg" |
| 42 | + height="20%" |
| 43 | + width="70%" |
| 44 | + /> |
| 45 | + <header style="background-color: white"> |
| 46 | + <input |
| 47 | + style="display: none" |
| 48 | + id="upload-btn" |
| 49 | + type="file" |
| 50 | + onchange="upload_image()" |
| 51 | + /><br /> |
| 52 | + <div class="result-div" id="result"> |
| 53 | + <img |
| 54 | + style="width: 100%; display: none" |
| 55 | + id="img" |
| 56 | + src="" |
| 57 | + alt="Image Preview ..." |
| 58 | + /> |
| 59 | + <canvas id="canvas"></canvas> |
| 60 | + </div> |
| 61 | + </header> |
| 62 | + </center> |
| 63 | + |
| 64 | + <div class="button-container"> |
| 65 | + <div |
| 66 | + id="upload_btn_div" |
| 67 | + class="clearfix float-right" |
| 68 | + title="Please wait 5-10 secs as the tf model downloads intially" |
| 69 | + > |
| 70 | + <a onclick="invoke_upload_image()" class="upload-btn" href="#" |
| 71 | + >Upload Image →</a |
| 72 | + > |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + <!-- Script tag here --> |
| 76 | + </body> |
| 77 | +</html> |
0 commit comments