Add ability to pass raw image for Azure AI Vision requests

Open
#755 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, php

Research direction

Review the current Azure AI Vision request path and the linked Analyze Image API documentation first; no repository file or test is identified in the issue. Compare URL and raw-binary request requirements, then define and test support for locally hosted image data while evaluating the noted performance trade-offs.

Written by the indexing model from the issue text.

Description

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
  • I agree to follow this project's Code of Conduct
Dominant language
PHP
Stars
714
Forks
68
Avg merge
4h 32m
Merged PRs (30d)
23

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/classifai

All issues in 10up/classifai

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.