Hi, I am using ocr.space for one my undergrad course project work where I need to scan multi page pdf, maximum 3. I put this as payload,
def ocr_space_file(filename, overlay=False, api_key='my_key', language='ger'):
payload = {'isOverlayRequired': overlay,
'detectOrientation': True,
'isTable': True,
'scale': True,
'apikey': api_key,
'language': language, }
with open(filename, 'rb') as f:
r = [requests.post](http://requests.post/)
('https://api.ocr.space/parse/image',
files={filename: f},
data=payload, )
return r.content.decode()
and saving the response from the ocrspace as r.content.decode()
But I am just getting first page scan report instead of all 3. So what I am doing wrong here?