public function read($symbology)
    {
        //build URI to read barcode
        $strURI = Product::$baseProductUri . '/barcode/' . $this->getFileName() . '/recognize?' . (!isset($symbology) || trim($symbology) === '' ? 'type=' : 'type=' . $symbology);
        //sign URI
        $signedURI = Utils::sign($strURI);
        //get response stream
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        //returns a list of extracted barcodes
        return $json->Barcodes;
    }
public function read($symbology)
    {
        //build URI to read barcode
        $strURI = Product::$baseProductUri . '/barcode/' . $this->getFileName() . '/recognize?' . (!isset($symbology) || trim($symbology) === '' ? 'type=' : 'type=' . $symbology);
        //sign URI
        $signedURI = Utils::sign($strURI);
        //get response stream
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        //returns a list of extracted barcodes
        return $json->Barcodes;
    }
public function read ( $ symbology ) { //build URI to read barcode $ strURI = Product :: $ baseProductUri . '/barcode/' . $ this -> getFileName ( ) . '/recognize?' . ( ! isset ( $ symbology ) || trim ( $ symbology ) === '' ? 'type=' : 'type=' . $ symbology ) ; //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; //get response stream $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; //returns a list of extracted barcodes return $ json -> Barcodes ; }
Reads all or specific barcodes from images.

@param string $symbology Type of barcode.

@return array
@throws Exception
Reads all or specific barcodes from images .