def _do_matlab_eval(self, comp_id, output_dir='output'):
    rm_results = self.config['cleanup']
    path = os.path.join(os.path.dirname(__file__), 'VOCdevkit-matlab-wrapper')
    cmd = 'cd {} && '.format(path)
    cmd += '{:s} -nodisplay -nodesktop '.format(MATLAB)
    cmd += '-r "dbstop if error; '
    cmd += 'voc_eval(\'{:s}\',\'{:s}\',\'{:s}\',\'{:s}\',{:d}); quit;"'.format(((self._pascal_path + '/VOCdevkit') + self._year), comp_id, self._image_set, output_dir, int(rm_results))
    print('Running:\n{}'.format(cmd))
    status = subprocess.call(cmd, shell=True)
def _do_matlab_eval(self, comp_id, output_dir='output'):
    rm_results = self.config['cleanup']
    path = os.path.join(os.path.dirname(__file__), 'VOCdevkit-matlab-wrapper')
    cmd = 'cd {} && '.format(path)
    cmd += '{:s} -nodisplay -nodesktop '.format(MATLAB)
    cmd += '-r "dbstop if error; '
    cmd += 'voc_eval(\'{:s}\',\'{:s}\',\'{:s}\',\'{:s}\',{:d}); quit;"'.format(((self._pascal_path + '/VOCdevkit') + self._year), comp_id, self._image_set, output_dir, int(rm_results))
    print('Running:\n{}'.format(cmd))
    status = subprocess.call(cmd, shell=True)