Skip to content

Commit

Permalink
0422
Browse files Browse the repository at this point in the history
  • Loading branch information
YouHui1 committed Apr 22, 2023
1 parent c2bc679 commit e2a4fa2
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions segmentation/blankSegmentation/blank_segmentation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import functools
import sys

import cv2
import os
import numpy as np
Expand Down Expand Up @@ -154,10 +156,19 @@ def __cmp_rect_r(a, b):


if __name__ == '__main__':
path = 'img' # 文件夹名
path = input('输入识别的文件夹路径\n')
debug = input('是否为Debug模式:T/F\n')
if debug == 'T':
debug = True
elif debug == 'F':
debug = False
else:
print('输入错误')
sys.exit()
# path = 'img' # 文件夹名
folder = os.listdir(path)
count = 0
model = Model(debug=True)
model = Model(debug=debug)
# model = Model()
for i in folder:
pic_path = os.path.join(path, i)
Expand Down
Binary file removed segmentation/blankSegmentation/debug/1972.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/2262.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/2642.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/3185.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/3521.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/3883.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/5274.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/5935.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/6529.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/6631.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/8262.png
Binary file not shown.
Binary file removed segmentation/blankSegmentation/debug/9558.png
Binary file not shown.

0 comments on commit e2a4fa2

Please sign in to comment.