SkillAgentSearch skills...

Tesseract

PHP Extension for the tesseract OCR library

Install / Use

/learn @phplang/Tesseract
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Tesseract

PHP Wrapper for the libtesseract OCR library.

class PhpLang\Tesseract {
  // Create an OCR processor for the given language
  public function __construct(string $lang = "eng");

  // Specify the image to parse (will load from filesystem, does not support streams)
  public function setImage(string $filename): this;

  // Narrow the area of the image to process to a specified rectangle
  public function setRectangle(int $left, int $top, int $width, int $height);

  // Process the image and return the detected text
  public function getUTF8Text(): string;
}

Example:

echo (new PhpLang\Tesseract)->setImage("/tmp/foo.png")->getUTF8Text();
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated3y ago
Forks4

Languages

C++

Security Score

60/100

Audited on Feb 8, 2023

No findings