added logic in ocr for capture
This commit is contained in:
@@ -50,7 +50,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
<x-filament::button color="gray" @click="switchCamera" x-show="!photoTaken">Switch Camera</x-filament::button>
|
<x-filament::button color="gray" @click="switchCamera" x-show="!photoTaken">Switch Camera</x-filament::button>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -101,7 +102,8 @@ function cameraCapture() {
|
|||||||
video.classList.add('hidden');
|
video.classList.add('hidden');
|
||||||
this.photoTaken = true;
|
this.photoTaken = true;
|
||||||
|
|
||||||
this.$refs.hiddenInput.value = dataUrl;
|
// this.$refs.hiddenInput.value = dataUrl;
|
||||||
|
@this.set('photo1', dataUrl);
|
||||||
},
|
},
|
||||||
|
|
||||||
async retakePhoto() {
|
async retakePhoto() {
|
||||||
|
|||||||
Reference in New Issue
Block a user