public function extractTextFromUrl($url, $language, $useDefaultDictionaries)
    {
        $strURI = Product::$baseProductUri . '/ocr/recognize?url=' . $url . '&language=' . $language . '&useDefaultDictionaries=' . $useDefaultDictionaries;
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI);
        $json = json_decode($responseStream);
        return $json;
    }
public function extractTextFromUrl($url, $language, $useDefaultDictionaries)
    {
        $strURI = Product::$baseProductUri . '/ocr/recognize?url=' . $url . '&language=' . $language . '&useDefaultDictionaries=' . $useDefaultDictionaries;
        $signedURI = Utils::sign($strURI);
        $responseStream = Utils::processCommand($signedURI);
        $json = json_decode($responseStream);
        return $json;
    }
public function extractTextFromUrl ( $ url , $ language , $ useDefaultDictionaries ) { $ strURI = Product :: $ baseProductUri . '/ocr/recognize?url=' . $ url . '&language=' . $ language . '&useDefaultDictionaries=' . $ useDefaultDictionaries ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI ) ; $ json = json_decode ( $ responseStream ) ; return $ json ; }
Extract OCR or HOCR Text from image url.

@param string $url URL of the image.
@param string $language Language of document to recogniize.
@param string $useDefaultDictionaries Allows to correct text after
recognition using default dictionaries.

@return object
Extract OCR or HOCR Text from image url .