Skip to main content

pycvt is a Python package designed for computer vision utilities, including YOLO annotation handling, image manipulation, bounding box plotting, and data conversion tools.

Project description

pycvt

Install

pip install pycvt --upgrade

dev

uv sync

Usage

from pycvt import (
    load_yolo_annotations,
    save_yolo_annotations,
    load_yolo_names,
    draw_bounding_boxes,
    xyxy2xywh,
    xywh2xyxy,
    xyxy2xywhn,
    xywhn2xyxy,
    box_iou,
    generate_sliding_windows,
    sliding_crop,
    getcolor,
    test_file,
)

"load_yolo_annotations", # to load yolo format annotations from a file
"save_yolo_annotations", # to save yolo format annotations to a file
"load_yolo_names",      # to load class names from a yolo names file
"draw_bounding_boxes",  # to draw bounding boxes on an image
"xyxy2xywh",            # convert bounding box from (x1, y1, x2, y2) to (x_center, y_center, width, height)
"xywh2xyxy",            # convert bounding box from (x_center, y_center, width, height) to (x1, y1, x2, y2)
"xyxy2xywhn",           # convert bounding box from (x1, y1, x2, y2) to normalized (x_center, y_center, width, height)
"xywhn2xyxy",           # convert bounding box from normalized (x_center, y_center, width, height) to (x1, y1, x2, y2)
"box_iou",              # calculate Intersection over Union (IoU) between two sets of boxes
"generate_sliding_windows",  # generate sliding window coordinates for an image
"sliding_crop",         # crop an image using sliding windows
"getcolor",             # get a color for a given class id
"test_file",            # one test file for testing purposes  

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

pycvt-0.0.1.post202512261959.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

pycvt-0.0.1.post202512261959-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file pycvt-0.0.1.post202512261959.tar.gz.

File metadata

  • Download URL: pycvt-0.0.1.post202512261959.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycvt-0.0.1.post202512261959.tar.gz
Algorithm Hash digest
SHA256 4dd5ba2455fd0f33cb2ce82624a3b44a96d16571a29bcdb3b14d482d9a79ea3f
MD5 4ea7ee90a9bbd1970158446c9f76c014
BLAKE2b-256 6f20898b7205db2afd0d65c92ddb542bf9861edce51e3597f4d568617b307730

See more details on using hashes here.

File details

Details for the file pycvt-0.0.1.post202512261959-py3-none-any.whl.

File metadata

  • Download URL: pycvt-0.0.1.post202512261959-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycvt-0.0.1.post202512261959-py3-none-any.whl
Algorithm Hash digest
SHA256 f4057ea3b33428ffd8657bfea7175d8f1f3f894f4b9ad341eb10d5e7264fa505
MD5 e8b184537a26a824b9809781527a67f6
BLAKE2b-256 9b87558bba9e1ee82f7709e52d00b96cc4e2a0e075bc88ecc5f626c98ae682a5

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