Skip to content

Commit

Permalink
Import video-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
huningxin committed Aug 11, 2017
1 parent 9913be6 commit bf22fe4
Show file tree
Hide file tree
Showing 5 changed files with 625 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/video-processing/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A Pen created at CodePen.io. You can find this one at http://codepen.io/huningxin/pen/wqBvRo.


22 changes: 22 additions & 0 deletions samples/video-processing/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
canvas {
border: 1px solid black;
}
.invisible {
display: none;
}
.text-center {
text-align: center;
}
.center-block {
display: block;
margin: auto;
}
.row {
margin: 10px;
}
tr td {
padding-right: 10px;
width: 25%;
vertical-align: top;
font: 14px 'Lucida Grande', sans-serif;
}
55 changes: 55 additions & 0 deletions samples/video-processing/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>OpenCV.js Video Processing</title>



<link rel="stylesheet" href="css/style.css">


</head>

<body>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<body>
<div id="container">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td></td>
<td>
<div class="text-center">
<span>Current Filter: </span><span id="filterName">Pass Through</span>
</div>
</td>
<td>
<div>Select Filter:</div>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<canvas class="center-block" id="canvasOutput" width=320 height=240></canvas>
</td>
<td>
<div id="guiContainer"></div>
</td>
<td></td>
</tr>
</table>
<div class="invisible">
<video id="video" class="hidden">Your browser does not support the video tag.</video>
</div>
</div>
</body>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="https://threejs.org/examples/js/libs/stats.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.5/dat.gui.min.js"></script>
<script async src="https://huningxin.github.io/opencv.js/build/asm.js/opencv.js" onload="opencvIsReady()"></script>

<script src="js/index.js"></script>

</body>
</html>
Loading

0 comments on commit bf22fe4

Please sign in to comment.