fix none result
Browse files
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)
|