changed logic in ocr
This commit is contained in:
@@ -741,7 +741,9 @@ function cameraCapture() {
|
||||
</div>
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@2.1.5/dist/tesseract.min.js"></script>
|
||||
{{-- <script src="https://cdn.jsdelivr.net/npm/tesseract.js@2.1.5/dist/tesseract.min.js"></script> --}}
|
||||
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@4/dist/tesseract.min.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
function cameraCapture() {
|
||||
@@ -751,6 +753,8 @@ function cameraCapture() {
|
||||
textDetectionInterval: null,
|
||||
capturedPhoto: null, // store captured image
|
||||
serialNumbers: [],
|
||||
ocrWorker: null,
|
||||
isWorkerReady: false,
|
||||
|
||||
async initCamera() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user