Skip to main content

Augment images with Patrick imprints.

Project description

LePatrick

Augment your images with Patrick Star!
LePatrick is a Python package that applies fun and creative Patrick imprints to images using OpenCV.


What It Does

LePatrick enhances images by pasting Patrick Star's figure onto your input image — great for data augmentation, or just plain fun.

Features

  • Add Patrick imprints with a single function
  • Uses OpenCV and NumPy for high-performance image processing
  • Installable via PyPI

Installation

Install from PyPI:

pip install LePatrick

Example Usage

import cv2
from LePatrick import Patrick

# Apply to your dataset
Patrick(
    source_dir = "data/train",
    num_outputs = 1000,
    num_patricks = 5
)

[!NOTE] The patrick.png asset is bundled within the package and loaded internally.

Requirements

  • Python 3.10 or newer
  • OpenCV 4.9.0.80
  • NumPy 1.26.4

These are installed automatically when you install the package.

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

lepatrick-0.1.0.tar.gz (154.4 kB view details)

Uploaded Source

Built Distribution

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

lepatrick-0.1.0-py3-none-any.whl (153.8 kB view details)

Uploaded Python 3

File details

Details for the file lepatrick-0.1.0.tar.gz.

File metadata

  • Download URL: lepatrick-0.1.0.tar.gz
  • Upload date:
  • Size: 154.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for lepatrick-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52df9cd9de0c6f7cc4ab51b667db05468dd012393311b657572a22b85b3afea2
MD5 b8e33e42ebd3f0f1aab7a79b2eac80a5
BLAKE2b-256 68a27205f545b80502f6fe147d8912f5ac5ed89d049ebcee1e2fee549d523c09

See more details on using hashes here.

File details

Details for the file lepatrick-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lepatrick-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for lepatrick-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb07ad03856c5cc2b02b5210b0f27a5a65c69147d02114be1e2c5b60356840b
MD5 88b7be0ba96315396a2d3223d086b708
BLAKE2b-256 50516fc757566e4364bab8ff22453cfd98d1a5225ac17afa038cee90a330baec

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