eragonruan / text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
MIT License
3.43k stars 1.34k forks source link

im_fns = os.listdir(os.path.join(DATA_FOLDER, "image")) #450

Open sevany opened 4 years ago

sevany commented 4 years ago

please help i do have issue when i try to write path. example: DATA_FOLDER = '/home/myra/Documents/Testing_Ocr/text-detection/data/dataset/image' OUTPUT = '/home/myra/Documents/Testing_Ocr/text-detection/data/dataset/label'

im_fns = os.listdir(os.path.join(DATA_FOLDER, "image")) im_fns.sort() if not os.path.exists(os.path.join(OUTPUT, "image")): os.makedirs(os.path.join(OUTPUT, "image")) if not os.path.exists(os.path.join(OUTPUT, "label")): os.makedirs(os.path.join(OUTPUT, "label"))

FileNotFoundError: [Errno 2] No such file or directory: '/home/myra/Documents/Testing_Ocr/text-detection/data/dataset/image/image'