function recognize($originalImage) { $tifImage = TesseractOCR::convertImageToTif($originalImage); $configFile = TesseractOCR::generateConfigFile(func_get_args()); $outputFile = TesseractOCR::executeTesseract($tifImage, $configFile); $recognizedText = TesseractOCR::readOutputFile($outputFile); TesseractOCR::removeTempFiles($tifImage, $outputFile, $configFile); return $recognizedText; }