Inheritance: implements JansenFelipe\OMR\Contracts\Map
示例#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);
 }
示例#2
0
 public static function create($pathJson)
 {
     $mapJson = new MapJson();
     $mapJson->setPathJson($pathJson);
     return $mapJson;
 }