yolo12138 commited on
Commit
4bcaf91
·
1 Parent(s): 3f2ef47

fix none result

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -202,7 +202,7 @@ with gr.Blocks(css="""
202
 
203
  def detect_chessboard(image):
204
  if image is None:
205
- return None, None, None, None
206
 
207
  try:
208
  original_image_with_keypoints, transformed_image, cells_labels_str, scores, time_info = detector.pred_detect_board_and_classifier(image)
@@ -218,7 +218,7 @@ with gr.Blocks(css="""
218
 
219
  except Exception as e:
220
  gr.Warning(f"检测失败 图片或者视频布局错误")
221
- return None, None, None, None
222
 
223
 
224
  table_html = gen_table_html(annotation_arr_10_9_short)
 
202
 
203
  def detect_chessboard(image):
204
  if image is None:
205
+ return None, None, None, None, None
206
 
207
  try:
208
  original_image_with_keypoints, transformed_image, cells_labels_str, scores, time_info = detector.pred_detect_board_and_classifier(image)
 
218
 
219
  except Exception as e:
220
  gr.Warning(f"检测失败 图片或者视频布局错误")
221
+ return None, None, None, None, None
222
 
223
 
224
  table_html = gen_table_html(annotation_arr_10_9_short)