Encountered an error while trying text detection with url link #1767
-
Hello, I encountered an error when I was trying the text detection with a url link of a picture The code where its going wrong:
The thing that confuses me is that I took these methods from the python notebooks and it worked fine. Can anyone please help me with this ? I am just so confused as to why its working with google colab and then not working in a python file on my device. I never encountered this error before when I was just passing file paths on it and just decided to try URL links. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
God, I am so ashamed it was just a variable name, just in case people are going to read for the answer. Should be image file instead of image_data image_file = requests.get(section_url).content |
Beta Was this translation helpful? Give feedback.
God, I am so ashamed it was just a variable name, just in case people are going to read for the answer. Should be image file instead of image_data
image_file = requests.get(section_url).content
single_img_doc = DocumentFile.from_images([image_file])