Added capture photo in ocr

This commit is contained in:
dhanabalan
2025-10-27 09:53:49 +05:30
parent 7c846115d7
commit 0cfe16c203

View File

@@ -796,9 +796,15 @@ function cameraCapture() {
this.$refs.hiddenInput.value = snapshotData;
this.capturedPhoto = snapshotData; // store for verification
// Stop camera stream
if (this.stream) this.stream.getTracks().forEach(track => track.stop());
snapshot.src = dataUrl;
snapshot.classList.remove('hidden');
video.classList.add('hidden');
alert("Photo captured!");
this.stopDetection();
},
async verifyPhoto() {