Hello,
Thank you for contacting us.
There are two problems in the code that you have shared with us:
For more details on the Web APIs use, please refer to https://developer.myscript.com/docs/interactive-ink/4.0/web/overview/introduction/
Best regards,
Gwenaëlle
Adewale. oladiti28
I gave been trying to integrate the ocr soltution to my django project. Below are my codes snippet and the error it's returning
from django.conf import settings
import io
def extract_text_from_image(image_path):
payload = {
"data": image_path, # Example data from the request
"apiKey": settings.MYSCRIPT_API_KEY
}
with io.open(image_path, 'rb') as f:
response = requests.post(
'https://api.myscript.com/v1/endpoint', files={image_path: f}, data=payload)
return response.content.decode()
raise ConnectionError(e, request=request)
How do I resolve this? What am I doing wrong?