Added api logic in ocr
This commit is contained in:
@@ -49,7 +49,7 @@ use thiagoalessio\TesseractOCR\TesseractOCR;
|
|||||||
->executable('/usr/bin/tesseract')
|
->executable('/usr/bin/tesseract')
|
||||||
->lang('eng')
|
->lang('eng')
|
||||||
->psm(6) // treats the image as a block of text
|
->psm(6) // treats the image as a block of text
|
||||||
->config(['tessedit_char_whitelist' => '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'])
|
//->config(['tessedit_char_whitelist' => '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'])
|
||||||
->run();
|
->run();
|
||||||
|
|
||||||
return response()->json(['success' => true, 'text' => $text]);
|
return response()->json(['success' => true, 'text' => $text]);
|
||||||
|
|||||||
Reference in New Issue
Block a user