I have a folder containing multiple image files. I want to extract text from these files and have the output saved as csv file with 2 columns, 1st column: Image_no., 2nd column: Text.
TIA
I have tried this code on Python:
img_dir = "MyFolder" # Folder name containing image files
data_path = os.path.join(img_dir,'*g')
files = glob.glob(data_path)
data = []
for f1 in files:
img = cv2.imread(f1)
x=data.append(img)
Q1: How can I see the text that is extracted from each image? Q2: How can I export the image name & the corresponding text to csv?