Skip to main content

Demo library

Project description

PromptTrack

A library for tracking based on your prompt

Installation

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.15.tar.gz (12.1 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.15-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PromptTrack-0.1.15.tar.gz
  • Upload date:
  • Size: 12.1 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.15.tar.gz
Algorithm Hash digest
SHA256 7905c267ac4f538e616d6fa6f7d4426ffcf7f9975ed4cbd9853faeaa288bb90e
MD5 212ec7d1f7582894d38fce3565f88e45
BLAKE2b-256 f49fca0d0c462b32f6f6e5edb6c6241ae4dbf00dd01ebee6d7b4dfb2010fe3c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PromptTrack-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 bdbb02a0f968065cb336ef63624f086e59f2f6ca9ff26b6001ded4fbdc3ec968
MD5 7d07cff11e98a678b87502f40b4d0e99
BLAKE2b-256 143f0e0b9220285ed90f5852c04181a9718a714de71284637f5bb91004502658

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