Skip to main content

Image Similarity Toolkit in Python

Project description

SimiKit: Image Similarity Toolkit in Python

English | 中文

Overview

SimiKit is a toolkit for commonly used image similarity algorithms. This project provides various tools to help developers quickly compare the effects of multiple image similarity algorithms, and assist developers in selecting an image similarity algorithm that best meets their needs.

Installation

pip instal simikit

Basic Usage

1. extract image features

from simikit.features import AHash, Vit, DinoV2

print(DinoV2().encode('./t1.png'))
print(Vit().encode('./t1.png'))
print(AHash().encode('./t1.png'))

2. use comparator by multiple algorithms

from simikit.api import Comparator
from simikit.features import AHash, DHash
from simikit.metrics import hamming_distance

comparator = Comparator([
    (DHash(16, vertical=True), hamming_distance),
    (AHash(16), hamming_distance),
    (AHash(8), hamming_distance),
])

print(comparator.compare_image(
    './t1.png',
    './t2.png',
))

Supported Algorithms

  • HASH
    • Average hashing
    • Difference hashing
    • Perceptual hashing
    • Wavelet hashing
  • Transformer
    • VIT
    • DINOv2

Contribution

Thank you for your interest in simikit. Submissions in all aspects are welcome. Let's work together to make simikit better!

Future Plans

  • Add more image similarity algorithms

If there is any similarity algorithm that you want but is not currently available in the simikit, you are welcome to raise it in the Issues section!

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

simikit-0.1.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

simikit-0.1.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file simikit-0.1.1.tar.gz.

File metadata

  • Download URL: simikit-0.1.1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for simikit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d3d2e14a1de00430c8de6192c8fea2df99f876abdd6d8e0e1213036a4d8517e9
MD5 f4c1359572c0da823ae570332db293de
BLAKE2b-256 7840c1ce027d244cd24b0b43a0217c68b1b6aebf4bc5b531afb14a2678fbdb71

See more details on using hashes here.

File details

Details for the file simikit-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: simikit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for simikit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8aeaae7dca6a76c9fa8c46fda3773d049c70e49f35d47d32a9c64dc0ba4d080
MD5 f8c8024e413840b76c774dc29b0613c5
BLAKE2b-256 f13de2ea3828cc7f25dfc7681e995e4681564014f2ca3066bec5795c748f79d1

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