Skip to main content

CV Toolkit

A comprehensive computer vision toolkit providing functionalities for image processing, geometric transformations, feature detection, and more.

Features

  • Image Processing: Load, resize, convert, and filter images
  • Geometric Transformations: Translation, rotation, scaling, reflection, shearing
  • Homography Computation: Compute and apply homography matrices
  • Perspective Transformation: Perspective warping of images
  • Camera Calibration: Calibrate cameras and undistort images
  • Fundamental Matrix: Compute fundamental matrix from stereo images
  • Edge, Line & Corner Detection: Canny, Hough, Harris, Shi-Tomasi
  • SIFT Features: Scale-Invariant Feature Transform
  • SURF & HOG: Feature descriptors for object detection

Installation

From PyPI (when published)

pip install cv-toolkit

From Source (Local Development)

# Navigate to the directory containing setup.py
cd path/to/CV

# Install in editable mode
pip install -e .

# Or install normally
pip install .

Quick Start

Example 1: Image Processing

from cv_toolkit import image_processing

# Run demo with sample image
image_processing.demo()

# Or use individual functions
img = image_processing.load_sample_image()
img_gray = image_processing.convert_to_grayscale(img)
img_blur = image_processing.apply_gaussian_blur(img, sigma=2)

Example 2: Geometric Transformations

from cv_toolkit import geometric_transforms

# Run demo
geometric_transforms.demo()

# Or use specific transformations
img = geometric_transforms.data.astronaut()
img_rotated = geometric_transforms.rotate_image(img, angle_deg=45)
img_scaled = geometric_transforms.scale_image(img, scale_x=0.5, scale_y=0.5)

Example 3: Feature Detection (SIFT)

from cv_toolkit import sift_descriptor

# Run demo
sift_descriptor.demo()

# Or use the pipeline
keypoints, descriptors, img_kp = sift_descriptor.sift_pipeline(
    img=your_image, 
    save_results=True
)

Example 4: Edge and Corner Detection

from cv_toolkit import edge_line_corner_detection

# Run full detection pipeline
results = edge_line_corner_detection.detection_pipeline(save_results=True)

# Or use individual functions
edges = edge_line_corner_detection.detect_edges(img)
lines_img = edge_line_corner_detection.detect_lines(img)
corners = edge_line_corner_detection.detect_shi_tomasi_corners(img)

Example 5: Fundamental Matrix

from cv_toolkit import fundamental_matrix

# Run demo with sample stereo images
F, matches, epi1, epi2 = fundamental_matrix.fundamental_matrix_pipeline(
    save_results=True
)

Module Overview

Module Description
image_processing Basic image operations (load, resize, filter)
geometric_transforms Geometric transformations (rotate, scale, etc.)
homography Homography matrix computation
perspective_transform Perspective transformations
camera_calibration Camera calibration and undistortion
fundamental_matrix Fundamental matrix from stereo pairs
edge_line_corner_detection Edge, line, and corner detection
sift_descriptor SIFT feature detection
surf_hog_descriptor SURF and HOG descriptors

Requirements

  • Python >= 3.7
  • NumPy >= 1.19.0
  • OpenCV >= 4.5.0
  • scikit-image >= 0.18.0
  • matplotlib >= 3.3.0

Usage Examples

Import All Modules

from cv_toolkit import (
    image_processing,
    geometric_transforms,
    homography,
    perspective_transform,
    camera_calibration,
    fundamental_matrix,
    edge_line_corner_detection,
    sift_descriptor,
    surf_hog_descriptor
)

Run All Demos

import cv_toolkit.image_processing as ip
import cv_toolkit.geometric_transforms as gt
import cv_toolkit.sift_descriptor as sift

ip.demo()
gt.demo()
sift.demo()

Development

Install in Development Mode

pip install -e .[dev]

Run Tests (when implemented)

pytest

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

Your Name - your.email@example.com

Acknowledgments

  • Built using OpenCV, scikit-image, and NumPy
  • Based on classical computer vision algorithms and techniques

Metadata

Release files for cv-toolkit-takaw 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv-toolkit-takaw 0.1.1
File Size Uploaded Provenance
cv_toolkit_takaw-0.1.1.tar.gz 15.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cv-toolkit-takaw 0.1.1
File Interpreter ABI Platform
cv_toolkit_takaw-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / cv_toolkit_takaw-0.1.1.tar.gz

Download URL cv_toolkit_takaw-0.1.1.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3ca51dc0eff17671b8d75d1b4262ce0fd5c31374f74aefe54b4d0774cdef0727
BLAKE2b-256 checksum
How to use checksums
ebd5c620f779da8d31f52dad6a1d5c5e389aacc1814f4ab74327543faf5a8867
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / cv_toolkit_takaw-0.1.1-py3-none-any.whl

Download URL cv_toolkit_takaw-0.1.1-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd86215cf0f3d9e42fbd39b46ce5ef87efe24005ecd9656ac7b717960e35ea7f
BLAKE2b-256 checksum
How to use checksums
106a001d23021b5a87b9e77a50c17fd723d7adf9a552b10629f55fa4e693f846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for cv-toolkit-takaw 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page