Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedghanem00 committed Jun 1, 2023
1 parent 6c9c85d commit d51b26e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ To specify the Page-Segmentation-Model (PSM):
use ahmedghanem00\TesseractOCR\Enum\PSM;

# using PSM enum
$result = $tesseract->recognize("test.png", PSM: PSM::SINGLE_BLOCK);
$result = $tesseract->recognize("test.png", psm: PSM::SINGLE_BLOCK);
# OR by using id directly
$result = $tesseract->recognize("test.png", PSM: 3);
$result = $tesseract->recognize("test.png", psm: 3);
````

To specify the OCR-Engine-Mode (OEM):
Expand All @@ -103,9 +103,9 @@ To specify the OCR-Engine-Mode (OEM):
use ahmedghanem00\TesseractOCR\Enum\OEM;

# using OEM enum
$result = $tesseract->recognize("test.png", OEM: OEM::LEGACY_WITH_LSTM);
$result = $tesseract->recognize("test.png", oem: OEM::LEGACY_WITH_LSTM);
# OR by using id directly
$result = $tesseract->recognize("test.png", OEM: 3);
$result = $tesseract->recognize("test.png", oem: 3);
````

To specify the DPI of the input image:
Expand Down

0 comments on commit d51b26e

Please sign in to comment.