纯js实现人脸识别眨眨眼张张嘴案例——index.html

<!DOCTYPE html>
<html>
    <meta charset="GBK">
    <style>
        #container {
            position: relative;
        }

        #canvas {
            position: absolute;
            left: 0;
            top: 0;
        }
    </style>
    <script src="js/utils.js"></script>
    <script src="js/clmtrackr.js"></script>
    <script src="js/model_pca_20_svm.js"></script>
    <script src="js/numeric.js"></script>
    <script src="js/ccv.js"></script>
    <script src="js/jquery-1.8.3.js" type="text/javascript" charset="utf-8"></script>
    <div id="container">
        <video id="video" width="400" height="200" autoplay>
            您的浏览器不支持video标签
        </video>
        <canvas id="canvas" width="300" height="200"></canvas>
    </div>

    <button id="mouse">张嘴验证</button>
    <button id="head">摇头验证</button>
    <button id="eye">眨眼验证</button>

    <div id="tip" style="display: none;">
    </div>
    <input type="hidden" id="result" />
    <div id="msg" style="display: none;">
    </div>

    <div id="positions">
    </div>

    <script src="js/alive_face.js" type="text/javascript" charset="utf-8"></script>

</html>
posted @ 2018-07-16 09:57  穆雄雄  阅读(1260)  评论(1编辑  收藏  举报