Skip to content

Encountered an error while trying text detection with url link #1767

Discussion options

You must be logged in to vote

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])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stiffmeister923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant