Skip to main content

Tools for the competition

Project description

Forgeryscope

A Python package for panel detection, embedding, and matching using deep learning.

A simplified and refactored version of my winning solution for the Kaggle Scientific Image Forgery Detection competition.

Features

  • Panel Detection - Extract panels from images using YOLO-based detection
  • Image Embedding - Generate embeddings using PyTorch models
  • Panel Matching - Match corresponding panels using LightGlue

Installation

pip install forgeryscope

Quick Start

from forgeryscope import PanelExtractor, Embedder, LightGlueOverlap

# Extract panels from an image
extractor = PanelExtractor()
panels = extractor.extract("image.jpg")

# Generate embeddings
embedder = Embedder()
embeddings = embedder.embed(panels)

# Match panels across images
matcher = LightGlueOverlap()
matches = matcher.match(embeddings1, embeddings2)

Requirements

  • Python >= 3.8
  • PyTorch >= 1.9.0
  • torchvision >= 0.10.0
  • OpenCV >= 4.5.0
  • And other dependencies listed in pyproject.toml

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Uladzislau Leketush (vlad.leketush@gmail.com)

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

forgeryscope-0.0.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

forgeryscope-0.0.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: forgeryscope-0.0.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for forgeryscope-0.0.1.tar.gz
Algorithm Hash digest
SHA256 426609bfbdb3c27c6a12d42dc0f8e3d6a16361375312e1afe3fa7faf0c5bcf2c
MD5 f32e4c473efd850337793c70b1358ad4
BLAKE2b-256 e128ba616f27e0fb4c12c97a20810ff377a701d97ad4581215e33416ac0fccc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: forgeryscope-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for forgeryscope-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bf375f756d7eade7ec613c86332e4847f3d4db2057168d2a604405b4ade8e74
MD5 1050e147b8bb041153b8fb9653945cea
BLAKE2b-256 a58d2cc4a3fc86c46b0c252b758da07148d2d4cc9e75b11520e61058a92d3ff1

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