Transportation Detection and Tracking CLI
This Python package, track_transportation, provides functionalities for detecting and tracking objects related to transportation in videos.
Installation To install track_transportation, you can use pip:
bash pip install track_transportation
Usage: Once installed, you can use the provided command-line interface (CLI) to detect and track transportation objects in a video.
Detection Function: The detect_objects function in the detection.py module allows you to detect transportation objects in an image. Here’s how you can use it in your Python script:
python
from transportation.detection import detect_objects import cv2
<!– Load image –>
image = cv2.imread(‘image.jpg’)
<!– Perform object detection –>
detections = detect_objects(image)
<!– Process detections as needed –>
print(“Detected objects:”) print(detections)
Requirements This package requires the following dependencies:
numpy
opencv-python
torch
matplotlib
ultralytics
cvzone
sort
tqdm
These dependencies will be automatically installed when you install track_transportation.
Notes 1. Ensure that you have a compatible version of Python installed on your system. 2. It’s recommended to use a virtual environment to manage your Python dependencies. 3. Make sure that the input video file exists and is accessible to the CLI.
Metadata
Release files for track-transportation 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| track_transportation-0.0.8.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| track_transportation-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / track_transportation-0.0.8.tar.gz
| Download URL | track_transportation-0.0.8.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afec871e89262c31c8073bab9f4d812b58d7d8eabff16a7f54211f2d4aec6223
|
|
BLAKE2b-256 checksum How to use checksums |
8022320e29b694831fa5bebd472a059047392c737db2235be3c6f99dd029829d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / track_transportation-0.0.8-py3-none-any.whl
| Download URL | track_transportation-0.0.8-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b01a9637a46f5813bb8876c66dbae40a4b0600e0d9e30cc967ce0e24b2f054d8
|
|
BLAKE2b-256 checksum How to use checksums |
400cf0aff2db0b2045189f4ea654cdf460a95b5b044297579adc73500347982b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|