I have converted a pdf into a image and converting into arrays.
However its taking too much time or almost kernel dead during this process and at the end getting empty o/p.
How to handle this issue. kindly suggest.
Code:
images = convert_from_path('abc.pdf',poppler_path= r'C:\Program Files (x86)\poppler-0.68.0\bin')
final=[]
for i in range(len(images)): bounds=reader.readtext(np.array(images[i]),min_size=0,slope_ths=0.2,ycenter_ths=0.7,height_ths=0.6,width_ths=0.8,decoder='beamsearch')
final.append(bounds)
Here the o/p of the above code is empty : []
What I've tried:
Without using a loop , if I just give image[0]
or image[1]
etc, then I see the desired o/p result.