diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 0ac1f2d..60b4cae 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -492,7 +492,7 @@ function cameraCapture() { this.$refs.video.classList.remove('hidden'); this.cropper?.destroy(); await this.initCamera(); - } + }, async detectText() { // Draw video frame to temporary canvas @@ -522,7 +522,7 @@ function cameraCapture() { // ctx.fillText(word.text, x0, y0 - 2); } }); - } + }, // Periodically detect text async startDetection() {