From b71fe094986859463f876d5b4fa48856d1ab18e7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 23 Oct 2025 15:32:14 +0530 Subject: [PATCH] Added api logic in ocr --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 2d8ea8c..cbe9bd1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -49,7 +49,7 @@ use thiagoalessio\TesseractOCR\TesseractOCR; ->executable('/usr/bin/tesseract') ->lang('eng') ->psm(6) // treats the image as a block of text - ->config(['tessedit_char_whitelist' => '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz']) + //->config(['tessedit_char_whitelist' => '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz']) ->run(); return response()->json(['success' => true, 'text' => $text]);