Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (30 sloc) 930 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tensor Flow Object Detection from getUserMedia</title>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<style>
video {
position: absolute;
top: 0;
left: 0;
z-index: -1;
/* Mirror the local video */
transform: scale(-1, 1); /*For Firefox (& IE) */
-webkit-transform: scale(-1, 1); /*for Chrome & Opera (& Safari) */
}
canvas{
position: absolute;
top: 0;
left: 0;
z-index:1
}
</style>
</head>
<body>
<video id="myVideo" autoplay></video>
<script src="/static/local.js"></script>
<script id="objDetect" src="/static/objDetect.js" data-source="myVideo" data-mirror="true" data-uploadWidth="1280" data-scoreThreshold="0.40"></script>
</body>
</html>