Skip to main content

Demo library

Project description

Medium multiply

A library for tracking based on your prompt

Installation

pip install numpy timm==0.4.5 transformers==4.6 matplotlib scikit-image opencv-python nms==0.1.6 bytetracker pip install PromptTrack The package has been implemented for python 3.9 and later might work on 3.8 and 3.7

Usage

from PromptTrack import PromptTracker

tracker = PromptTracker()

video_file = "path_to_your_video"

tracker.detect_objects(video_file, prompt="i am interested in pigs, cats and men") #"you can put in comma separated instances you are interested in"

tracker.process_mot (video_file) #"Default values fixed_parc=True, nbr_items=15, track_thresh=0, match_thresh=1, frame_rate=6, track_buffer=10000, max_time_lost=20000)"

tracker.read_video_with_mot(video_file)

Result

It will provide you in the video folder, a video with the track and a json file with track in the format {frame_id:{pig_id:{x:"", y:"",width:"",height:""}}}

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

PromptTrack-0.1.7.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

PromptTrack-0.1.7-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file PromptTrack-0.1.7.tar.gz.

File metadata

  • Download URL: PromptTrack-0.1.7.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for PromptTrack-0.1.7.tar.gz
Algorithm Hash digest
SHA256 489e96745070cdd26dae5023f1be0d5e115dfc1212858c8cfbd0b5e871f7efcc
MD5 df6eb9e75d9abf54fd1ad222ba5ef005
BLAKE2b-256 7955eeb08014f23f239e9489b9f69e50198f4ab68cafdf2a4ae5bfe20de7408c

See more details on using hashes here.

File details

Details for the file PromptTrack-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: PromptTrack-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for PromptTrack-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 49da648b8d2fe72579439cfe125d2f756ac2a40956763f04b0064b6d93f0a467
MD5 f58c4221e05dcca411049248cf1af8e5
BLAKE2b-256 e4689f2b5b2c217e8fc652ed70c8bf8975b38a5c139a71191cc695fe28c26fec

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