clovaai / deep-text-recognition-benchmark

Text recognition (optical character recognition) with deep learning methods, ICCV 2019
Apache License 2.0
3.77k stars 1.11k forks source link

How could i run demo if input-image as cv2_image format? #245

Closed hungtooc closed 1 year ago

hungtooc commented 4 years ago

in demo.py, they import input images as file: demo_data = RawDataset(root=opt.image_folder, opt=opt) # use RawDataset demo_loader = torch.utils.data.DataLoader( demo_data, batch_size=opt.batch_size, shuffle=False, num_workers=int(opt.workers), collate_fn=AlignCollate_demo, pin_memory=True) how can i input cv2_image? Thank for a great project.