10up / classifai

Supercharge WordPress Content Workflows and Engagement with Artificial Intelligence.
https://classifaiplugin.com
GNU General Public License v2.0
573 stars 53 forks source link

Add ability to pass raw image for Azure AI Vision requests #755

Open dkotter opened 6 months ago

dkotter commented 6 months ago

Is your enhancement related to a problem? Please describe.

I bring this up for discussion and not something we need to take action on immediately.

But looking at the API docs for the Azure AI Vision Analyze Image API, you can either send in an image URL (which is what we're doing currently) or you can send in the raw image binary.

The main benefit I see for that second approach is that this API would then work for locally hosted images. Right now if you want to test things, you need a publicly accessible URL, which means either a fully public site or a local environment using something like ngrok.

I don't know if there's any performance concerns with sending the raw image data (maybe it takes longer for that to be downloaded) but probably worth testing out.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct