Skip to content

Vision Service: Add support for data URLs so that no HTTPS file server is required #4

Open
@lastzero

Description

@lastzero

As a user, I want to be able to add captions to my images by sending them to the service as data URLs, so that it also works behind a firewall or from the command line.

In addition, the images for which captions (or later other data) are to be generated should be read from an images array rather than from a single url field in the request, for example:

{
  "id": "d2684be3-1a80-4137-980e-07a2cbe2a96f",
  "model": "",
  "images": [
    "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAA8CAAAAAALAhhPAAAFfUlEQVRYw62XeWwUVRzHf2"
  ]
}

See the Vision API request and unit tests in our main repository for reference:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    aiArtificial Intelligence, Machine Learning (ML)captionsCaption Generationhelp wantedHelp with this would be much appreciated!mergedChanges are merged, but may require further testingplease-testReady for acceptance testpython 🐍Python experience required

    Type

    Projects

    Status

    Test 🕵

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions