added logic in ocr for capture

This commit is contained in:
dhanabalan
2025-10-17 10:34:52 +05:30
parent cf7a123a58
commit d486c4cdfb

View File

@@ -50,7 +50,8 @@ document.addEventListener('DOMContentLoaded', () => {
<x-filament::button color="gray" @click="switchCamera" x-show="!photoTaken">Switch Camera</x-filament::button>
</div>
<input type="hidden" name="{{ $getName() }}" x-ref="hiddenInput">
{{-- <input type="hidden" name="{{ $getName() }}" x-ref="hiddenInput"> --}}
<input type="hidden" x-ref="hiddenInput" x-model="photo1">
</div>
<script>
@@ -101,7 +102,8 @@ function cameraCapture() {
video.classList.add('hidden');
this.photoTaken = true;
this.$refs.hiddenInput.value = dataUrl;
// this.$refs.hiddenInput.value = dataUrl;
@this.set('photo1', dataUrl);
},
async retakePhoto() {