Skip to content
Discussion options

You must be logged in to vote

I misunderstood the usage of loader.

The UnstructuredImageLoader is used for OCR.
When your image has text in it, it can extract them out and there will not be any "List out of range" error.

I am getting that error because the image had no text in it.
My code is working fine.

To get to what I wanted, the loader I should use is the Salesforce ImageCaptionLoader. It will provide you a description of the image.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nhtkid
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