|
@@ -233,9 +233,12 @@ export default {
|
|
|
this.isCamera = true;
|
|
|
let video = this.$refs["video"];
|
|
|
var that = this;
|
|
|
- window.requestAnimationFrame(function () {
|
|
|
- that.handsFind(video);
|
|
|
- that.start();
|
|
|
+ var f = window.requestAnimationFrame(function () {
|
|
|
+ window.cancelAnimationFrame(f);
|
|
|
+ setTimeout(function () {
|
|
|
+ that.handsFind(video);
|
|
|
+ that.start();
|
|
|
+ }, 1000);
|
|
|
});
|
|
|
|
|
|
// setInterval(() => {
|