Change to video capture (which solves bad scaledPrediction)
This commit is contained in:
parent
0df34c33d2
commit
1783b00d2c
2 changed files with 90 additions and 33 deletions
|
|
@ -2,7 +2,8 @@
|
|||
<html>
|
||||
<head><meta charset="utf-8" /></head>
|
||||
<body>
|
||||
<img id="example-pic" src="example.jpg" alt="Example webcam picture" />
|
||||
<canvas id="result" style="position: absolute; z-index: 10; transform: scale(-1, 1)"></canvas>
|
||||
<video id="capture" playsinline style="transform: scale(-1, 1);"></video>
|
||||
</body>
|
||||
<script src="js/main.js"></script>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue