public function extractTextFromLocalFile($localFile, $language, $useDefaultDictionaries)
    {
        $strURI = Product::$baseProductUri . '/ocr/recognize?language=' . $language . '&useDefaultDictionaries=';
        $strURI .= ($useDefaultDictionaries) ? 'true' : 'false';
        $signedURI = Utils::sign($strURI);
        $stream = file_get_contents($localFile);
        $responseStream = Utils::processCommand($signedURI, 'POST', 'json', $stream);
        $json = json_decode($responseStream);
        return $json;
    }