UNPKG

scrawl-canvas

Version:
50 lines (38 loc) 1.67 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Demo Mediapipe 002</title> <link href="css/normalize.css" rel="stylesheet" /> <link href="css/tests.css" rel="stylesheet" /> </head> <body> <h1><a href="index.html">Scrawl-canvas v8</a> - Mediapipe test 002</h1> <h2>MediaPipe Face Mesh - model image output</h2> <canvas id="mycanvas" width="600" height="400" data-scrawl-canvas ></canvas> <p id="reportmessage"></p> <div class="testinfo"> <h4>Test purpose</h4> <ul> <li>Check that the media stream loads (if browser/device supports it)</li> <li>Check that we can load and use both Mediapipe (from a CDN) and its selfie segmentation model</li> <li>Apply the model to a live camera feed</li> <li>Apply filters to both the identified bodies, and to the background</li> </ul> <p><b>Touch test:</b> not required</p> <p><a href="../docs/demo/mediapipe-002.html">Annotated code</a></p> </div> <script src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@mediapipe/control_utils/control_utils.js" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/@mediapipe/face_mesh/face_mesh.js" crossorigin="anonymous"></script> <script src="mediapipe-002.js" type="module"></script> </body> </html>