public function predictPath($path, $modelType, $language = null)
    {
        if (!file_exists($path)) {
            throw new FileNotFoundException($path);
        }

        return $this->predict(
            [
                'base64' => base64_encode(file_get_contents($path)),
            ],
            $modelType,
            $language
        );
    }
public function predictPath($path, $modelType, $language = null)
    {
        if (!file_exists($path)) {
            throw new FileNotFoundException($path);
        }

        return $this->predict(
            [
                'base64' => base64_encode(file_get_contents($path)),
            ],
            $modelType,
            $language
        );
    }
public function predictPath ( $ path , $ modelType , $ language = null ) { if ( ! file_exists ( $ path ) ) { throw new FileNotFoundException ( $ path ) ; } return $ this -> predict ( [ 'base64' => base64_encode ( file_get_contents ( $ path ) ) , ] , $ modelType , $ language ) ; }
Predict by image path

@param string $path Path to image
@param string $modelType Type of model to predict
@param string|null $language Language to return results in

@return array
Predict by image path