MCPcopy Create free account
hub / github.com/devilsen/CZXing / read_dir

Method read_dir

python/Labeler.py:46–51  ·  view source on GitHub ↗
(self, dir_path)

Source from the content-addressed store, hash-verified

44 self.init_index()
45
46 def read_dir(self, dir_path):
47 print("select path = " + dir_path)
48 # read all images
49 images = os.listdir(dir_path)
50 self.start_label(os.path.abspath(dir_path), images)
51 print("识别完成 Total = " + str(self.total) + " 成功识别 = " + str(self.success) + " 失败 = " + str(self.fail))
52
53 def start_label(self, dir_path, images):
54 self.abs_dir_path = os.path.abspath(dir_path)

Callers 1

test_labelFunction · 0.95

Calls 2

start_labelMethod · 0.95
printFunction · 0.50

Tested by 1

test_labelFunction · 0.76