JansenFelipe\OMR\Maps\MapJson::create PHP Method

create() public static method

public static create ( $pathJson )
    public static function create($pathJson)
    {
        $mapJson = new MapJson();
        $mapJson->setPathJson($pathJson);
        return $mapJson;
    }

Usage Example

Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $imagePath = $input->getArgument('imageJPG');
     $mapJsonPath = $input->getArgument('mapJSON');
     $debug = $input->getOption('debug');
     /*
      * Setup scanner
      */
     $scanner = new ImagickScanner();
     $scanner->setDebug($debug);
     $scanner->setImagePath($imagePath);
     /*
      * Setup map
      */
     $map = MapJson::create($mapJsonPath);
     /*
      * Scan
      */
     $result = $scanner->scan($map, 28);
 }