added ocr in canvas

This commit is contained in:
dhanabalan
2025-10-25 08:57:47 +05:30
parent 0aefc5d4ba
commit ffc742914f

View File

@@ -321,6 +321,8 @@ function cameraCapture() {
try { try {
if (this.stream) this.stream.getTracks().forEach(track => track.stop()); if (this.stream) this.stream.getTracks().forEach(track => track.stop());
const video = this.$refs.video;
this.stream = await navigator.mediaDevices.getUserMedia({ this.stream = await navigator.mediaDevices.getUserMedia({
video: { facingMode: this.currentFacingMode } video: { facingMode: this.currentFacingMode }
}); });