Skip to main content

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.


Metadata

Release files for expandex 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for expandex 0.0.1
File Size Uploaded
expandex-0.0.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for expandex 0.0.1
File Interpreter ABI Platform
expandex-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / expandex-0.0.1.tar.gz

Download URL expandex-0.0.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
db1ca17e96f44231b8a49f02e0adb6ae0a96bf492c5d8bb266c50a608aa0b320
BLAKE2b-256 checksum
How to use checksums
87ee8f3087ea885a6f7f6f9fddae0d950bbd08939215e07538c5bb38ee9b849c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / expandex-0.0.1-py3-none-any.whl

Download URL expandex-0.0.1-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26698526ca98320aa4c63afd9a3decb4068b642ce4edbce051ac5bd89d7b45c2
BLAKE2b-256 checksum
How to use checksums
5f822399d3ed7a7339933dba74ffbc2bced94b576c901ed1bcbc9d3efc57c669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page