Skip to main content

Image search: image/text => images.

Project description

Get similar images

This tool is a wrapper over an API that returns similar images to a given image.

You can find a demo of the tool here.

The description of the API can be found here.

Installation

pip install -U getsimilar

Get an API token

Usage

You pass:

  • Image in the form of the numpy array or PIL image.
  • URL to the image:
  • Text query, for example: "Girls in weird hats"

All requests have a parameter num_similar that specifies the number of similar images to return. This number is capped at 20. If you would like to get more similar images per request, please contact us at https://www.ternaus.com/#contact.

From image

from getsimilar import from_image

urls = from_image(<numpy or PIL image>, num_similar=<the number of similar images>)

From URL

from getsimilar import from_url

urls = from_url(url, num_similar=<the number of similar images>)

From text

from getsimilar import from_url

urls = from_text(text. num_similar=<the number of similar images>)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getsimilar-0.0.2.tar.gz (8.4 kB view details)

Uploaded Source

File details

Details for the file getsimilar-0.0.2.tar.gz.

File metadata

  • Download URL: getsimilar-0.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for getsimilar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bef7d04a14b9ac0da1759a8fa9d8d7b16c97a789e38cce1701d7f6848de79e86
MD5 6f8565277e5f9a6a404d239f37029831
BLAKE2b-256 9e97c75ae38f2cfe2dac67ef2411f4787037e89c2dd2059511842f62cc6294bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page