Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedghanem00 committed May 8, 2024
1 parent d0077a8 commit 7c10a07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tesseract-ocr
# Tesseract-OCR PHP Wrapper

A PHP wrapper for Tesseract-OCR binary.

Expand All @@ -23,7 +23,7 @@ Otherwise, You can do:

````php
$tesseract = new \ahmedghanem00\TesseractOCR\Tesseract("path/to/binary/location");
# OR
# OR, If you already have an initiated instance
$tesseract->setBinaryPath("path/to/binary/location");
````

Expand Down Expand Up @@ -63,8 +63,9 @@ To OCR an Image:

````php
$result = $tesseract->recognize("test.png");
##
## OR
$result = $tesseract->recognize("https://example.com/test.png");
## etc.
````

Thanks to the [Intervention/image](https://github.com/Intervention/image) package. The recognize method can accept
Expand Down Expand Up @@ -146,4 +147,4 @@ You can also run `tesseract --print-parameters` to see the list of available con

# Licence

Package is licensed under the [MIT License](http://opensource.org/licenses/MIT).
Package is licensed under the [MIT License](http://opensource.org/licenses/MIT). For more info, You can take a look at the [License File](LICENSE).

0 comments on commit 7c10a07

Please sign in to comment.