|
|
@ -32,9 +32,9 @@
|
|
|
|
</split>
|
|
|
|
</split>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="margin-top: 18px;text-align:center">
|
|
|
|
<div style="margin-top: 18px;text-align:center">
|
|
|
|
<!-- <upload action="/car/distinguish/upload">-->
|
|
|
|
<!-- <upload action="/car/distinguish/upload">-->
|
|
|
|
<!-- <i-button icon="ios-cloud-upload-outline">上传车牌</i-button>-->
|
|
|
|
<!-- <i-button icon="ios-cloud-upload-outline">上传车牌</i-button>-->
|
|
|
|
<!-- </upload>-->
|
|
|
|
<!-- </upload>-->
|
|
|
|
<Upload
|
|
|
|
<Upload
|
|
|
|
multiple
|
|
|
|
multiple
|
|
|
|
type="drag"
|
|
|
|
type="drag"
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div th:replace="common/foot :: foot(script)"></div>
|
|
|
|
<div th:replace="common/foot :: foot(script)"></div>
|
|
|
|
<script th:inline="none">
|
|
|
|
<script th:inline="none">
|
|
|
|
layui.use(["okUtils", "okLayer"], function () {
|
|
|
|
layui.use(["okUtils", "okLayer"], function () {
|
|
|
|
var okUtils = layui.okUtils;
|
|
|
|
var okUtils = layui.okUtils;
|
|
|
|
var okLayer = layui.okLayer;
|
|
|
|
var okLayer = layui.okLayer;
|
|
|
|
var vm = new Vue({
|
|
|
|
var vm = new Vue({
|
|
|
@ -103,8 +103,8 @@ layui.use(["okUtils", "okLayer"], function () {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
var canvas,context;
|
|
|
|
var canvas,context;
|
|
|
|
function init(){
|
|
|
|
function init(){
|
|
|
|
var video = document.querySelector('video');
|
|
|
|
var video = document.querySelector('video');
|
|
|
|
canvas = document.getElementById('qr-canvas');
|
|
|
|
canvas = document.getElementById('qr-canvas');
|
|
|
|
context = canvas.getContext('2d');
|
|
|
|
context = canvas.getContext('2d');
|
|
|
@ -127,8 +127,7 @@ function init(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
openMedia();
|
|
|
|
openMedia();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//摄像头调用配置
|
|
|
|
//摄像头调用配置
|
|
|
|
var mediaOpts = {
|
|
|
|
var mediaOpts = {
|
|
|
@ -157,14 +156,6 @@ function init(){
|
|
|
|
// 正式启动摄像头
|
|
|
|
// 正式启动摄像头
|
|
|
|
function openMedia(){
|
|
|
|
function openMedia(){
|
|
|
|
navigator.mediaDevices.getUserMedia(mediaOpts).then(successFunc).catch(errorFunc);
|
|
|
|
navigator.mediaDevices.getUserMedia(mediaOpts).then(successFunc).catch(errorFunc);
|
|
|
|
// 截屏间隔时间(单位:毫秒)
|
|
|
|
|
|
|
|
var interval = 5000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 开始定时截屏
|
|
|
|
|
|
|
|
setInterval(function() {
|
|
|
|
|
|
|
|
drawMedia();
|
|
|
|
|
|
|
|
}, interval);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//关闭摄像头
|
|
|
|
//关闭摄像头
|
|
|
|