Guest User

index.html

a guest
Apr 21st, 2021
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>MLK tensorflow.js tutorial</title>
  6. <script src="https://unpkg.com/@tensorflow/tfjs-core@2.1.0/dist/tf-core.js"></script>
  7. <script src="https://unpkg.com/@tensorflow/tfjs-converter@2.1.0/dist/tf-converter.js"></script>
  8. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  9. <!-- You must explicitly require a TF.js backend if you're not using the tfs union bundle. -->
  10. <script src="https://unpkg.com/@tensorflow/tfjs-backend-webgl@2.1.0/dist/tf-backend-webgl.js"></script>
  11. <!-- Alternatively you can use the WASM backend: <script src="https://unpkg.com/@tensorflow/tfjs-backend-wasm@2.1.0/dist/tf-backend-wasm.js"></script> -->
  12.  
  13. <script src="https://unpkg.com/@tensorflow-models/handpose@0.0.6/dist/handpose.js"></script>
  14. <script src="script.js" type="module"></script>
  15. <link rel="stylesheet" href="main.css">
  16. </head>
  17.  
  18. <body>
  19.     <div class="jumbotron">
  20.         <h3 class="display-4">Hand pose detection using tensorflow.js</h1>
  21.         <hr class="my-4">
  22.         <p>By MLK</p>
  23.     </div>
  24.    
  25.    <div id="videoContainer">
  26.         <video autoplay="true" id="videoElement" style="display:none"></video>
  27.         <canvas id="canvas" width="640" height="520"></canvas>
  28.    </div>
  29. </body>
  30. </html>
  31.  
RAW Paste Data