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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| expandex-0.0.1.tar.gz | 11.3 kB | Without provenance | Details for expandex-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| expandex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for expandex-0.0.1-py3-none-any.whl |
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
|
Security for expandex 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.