示例#1
0
 def evaluate_with_official_code(self, result_path, gt_path):
     if "icdar2015" in self.dataset_name:
         return text_eval_script_ic15.text_eval_main_ic15(
             det_file=result_path,
             gt_file=gt_path,
             is_word_spotting=self._word_spotting)
     else:
         return text_eval_script.text_eval_main(
             det_file=result_path,
             gt_file=gt_path,
             is_word_spotting=self._word_spotting)
示例#2
0
 def evaluate_with_official_code(self, result_path, gt_path):
     return text_eval_script.text_eval_main(
         det_file=result_path,
         gt_file=gt_path,
         is_word_spotting=self._word_spotting)