Skip to main content

Context Image Search Utility

Project description

[!WARNING] This package is in development

Context Image Search

This utility provides you with advanced context to image search.

How it works

  1. Decomposes given text (context) into search querries using gemini-2.5-flash-lite
  2. Searches the querries on curated list of cc licensed images using google images
  3. Analyzes the images for visual match using ML
  4. Returns the best matching images

Requiered variablas

  1. GEMINI_API_KEY - google gemini API key
  2. GOOGLE_API_KEY - google custom search api key
  3. GOOGLE_CX programmable search engine id

to aquire visit:

Demo

You can check out the provided demo in ./demo. To get started:

  1. cd into demo dir
  2. run python -m venv .venv
  3. run source .venv/bin/activate or venv\Scripts\activate if on windows
  4. run pip install -r requierments.txt
  5. populate .env.example and rename to .env
  6. run streamlit run demo.py

Example

context: Rheinmetall to Acquire German Naval Shipbuilder NVL

resulting images: image image

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

m1_cis-0.0.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m1_cis-0.0.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: m1_cis-0.0.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for m1_cis-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fcb852be24759a063aae6cda34f80c418490b4358de8ea8bbf6a03ad7c21f210
MD5 3ffca756e8d6cb2b0eab6f81d49c6549
BLAKE2b-256 dd643885a7e0e6cfd63436df31308187facaad9cbdb735e4b8ab7623ba6f26a6

See more details on using hashes here.

File details

Details for the file m1_cis-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: m1_cis-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for m1_cis-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac49d6bd804dc1db9b671f1ebe9439763979b6bb98b5e3ed88f9a89db6a1cb22
MD5 4e0335c5b1a2f8b8a152e3bf315c2283
BLAKE2b-256 f646372ad5b55b6176f8755b1af47538c13ea6a6bd3434bb8d73f98aec3f907c

See more details on using hashes here.

Supported by

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