Skip to main content

Find images similar to a given source image

Project description


Expandex

Expandex is a Python library designed to find images similar to a given source image. It utilizes online image searches, feature extraction, and image deduplication to retrieve unique and usable images.

Installation

You can install Expandex via pip:

pip install expandex

Usage

from expandex import Locator

# Initialize Locator object
locator = Locator()

# Scout for similar images
similar_images = locator.scout('path_to_source_image.jpg')

# Display similar images
for image_url in similar_images:
    print(image_url)

Features

  • Feature Extraction: Employs feature extraction techniques to analyze and compare image features.
  • Image Deduplication: Prevents the retrieval of duplicate images to ensure diversity in search results.
  • Multi-threaded Processing: Utilizes multi-threading to enhance performance and speed up the image retrieval process.

Configuration

You can configure Expandex by specifying parameters such as save folder location, deduplication method, and weights for similarity metrics.

# Example Configuration
locator = Locator(
    save_folder='images',
    deduplicate='cpu',
    weights={
        'ih': 0.1,  # Image Hash similarity
        'ssim': 0.15,  # Structural similarity index measurement
        'cs': 0.1,  # NumPy cosine similarity
        'cnn': 0.15,  # EfficientNet feature extraction
        'dedup': 0.1  # Mobilenet cosine similarities
    },
    debug=True
)

License

Expandex is licensed under the Apache License 2.0. See LICENSE for more details.


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

expandex-0.0.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

expandex-0.0.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file expandex-0.0.1.tar.gz.

File metadata

  • Download URL: expandex-0.0.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for expandex-0.0.1.tar.gz
Algorithm Hash digest
SHA256 db1ca17e96f44231b8a49f02e0adb6ae0a96bf492c5d8bb266c50a608aa0b320
MD5 3ce495849ea0da9c9074dfaac84b3a5e
BLAKE2b-256 87ee8f3087ea885a6f7f6f9fddae0d950bbd08939215e07538c5bb38ee9b849c

See more details on using hashes here.

File details

Details for the file expandex-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: expandex-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for expandex-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26698526ca98320aa4c63afd9a3decb4068b642ce4edbce051ac5bd89d7b45c2
MD5 3c3a3a654e2ec8c86ff98a2109fa2991
BLAKE2b-256 5f822399d3ed7a7339933dba74ffbc2bced94b576c901ed1bcbc9d3efc57c669

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