Skip to main content

A general python framework for visual object tracking.

Project description

PyTrackX

A general python framework for visual object tracking. PyTrackX is a Python package that serves as an automated tool which tracks different objects and body movements as per user requirement and returns the real-time coordinates with very less steps and a simple video input.

Functions

track_object(yolo_path,video_path,object,min_conf)

* yolo_path: folder path for the download yolo model files (STRING)
* video_path: file path of video input feed
* object: any object name from list of objects YOLO can detect. 
* min_conf (default parameter): confidence level for an object detected (default value is 0.5)

Returns a text file with coordinates of each object detected per frame as tracked frame to frame. image

track_posture(width,height,video_path,min_dconf,min_tconf)

* width (default parameter): frame width
* height (default parameter): frame height
* video_path (default parameter): file path of video input feed (default value (0)- Live webcam video feed as input)
* min_dconf: confidence level for an object detected
* min_tconf: confidence level for an object tracking

Returns a text file with corrdinates of all landmarks detected by Mediapipe per frame as tracked frame to frame with respect to the frame width and height.
image

User Installation

Install Package

pip install PyTrackX

Download yolo-coco folder from here into your current working directory. Rename the folder yolo-coco if otherwise. The folder contains the following files:

* coco.name
* yolo3.cfg
* yolo3.weights

Another option is to download via git:

Git Install

pip install git+https://github.com/swetha4444/PyTrackX.git

You can also clone the repository:

Clone Repository

git clone https://github.com/swetha4444/PyTrackX.git
pip install -r requirements.txt
python setup.py install

Dependencies:

* 'numpy>=1.11'
* 'matplotlib>=1.5'
* 'pandas'
* cv2'
* 'scipy'
* 'mediapipe'
* 'time'

Usage

YOLO Object Tracking

from PyTrackX import *
yolo_path = "./yolo-coco"
video_path = "input.mp4"
object = "person"
track_object(yolo_path,video_path,object)

Mediapipe Posture Tracking

from PyTrackX import *
track_posture()

Author

Sriram Kannan
Swetha Saseendran

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

PytrackX-0.6.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

PytrackX-0.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file PytrackX-0.6.tar.gz.

File metadata

  • Download URL: PytrackX-0.6.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for PytrackX-0.6.tar.gz
Algorithm Hash digest
SHA256 1e4b2749a9717f84cb7883ea8ff4e0cf67d2a1f064657de4450bd8fa98685b88
MD5 0e8c7e066ec3be96589e6d67d68b0eb2
BLAKE2b-256 786fc2ded6464a83f08fb673a414d7bf1340f6a5c92de81307f2f8da34d39df9

See more details on using hashes here.

File details

Details for the file PytrackX-0.6-py3-none-any.whl.

File metadata

  • Download URL: PytrackX-0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for PytrackX-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9147a943fb21daccf2b6ceee2c74ed555b12a6efff3dfc4e05e9ed621a35c292
MD5 a0c6cb5aabc6a43ec8263d23d8600249
BLAKE2b-256 ae0a33df90b5fecaa26285b65e3f1473fa3812408edfb71fac1404d081a90f75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page