Added capture photo in ocr
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user