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.2.tar.gz (17.0 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.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for simikit-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d0a79ad6d65981cb353db655e1877718f4500299e095ddf1df72366bacd05146
MD5 fc2e41c0de642f38ba62028aaf34e6d0
BLAKE2b-256 6a38a183be273451697be97d6b81db701183492d5a15426afaec16000e011210

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simikit-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3493b777362126ba0ba835bc5dd7935f092e881345b6c36950a1483d9d3ca6e4
MD5 6d2221f1c959485897764c66e67bbad0
BLAKE2b-256 d570a036f507a796c52073d87a529ed45931014b6378500b42e396d48f8bf46c

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