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 You can check our github repo

Usage

from PromptTrack import PromptTracker

tracker = PromptTracker()

video_file = "path_to_your_video" #video example

tracker.detect_objects(video_file, prompt="i am interested in penguin",nms_threshold=0.8)

#you can replace the prompt value by a caption of what you are interested in

tracker.process_mot (video_file, fixed_parc=False, track_thresh=0.2, match_thresh=0.8, frame_rate=25,)

#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.18.tar.gz (12.2 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.18-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PromptTrack-0.1.18.tar.gz
  • Upload date:
  • Size: 12.2 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.18.tar.gz
Algorithm Hash digest
SHA256 cdc3d3abb01909e7593ae871d9a1bd9bee48577a193bb5bcee868ebd2da887b3
MD5 9bc3053f4833245fc2ad381f289f938d
BLAKE2b-256 0ac474da4c93482d79a6a98bb237bfc2189b88c9fa5742c4e2d4cd5c0e029ccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PromptTrack-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 8fe203e4b3d7665e89e56a47d6250fa33541a67b042c808592d85f5f18a0270e
MD5 b46c52d555a7d5cfd00cb1945a02a4c3
BLAKE2b-256 1258ab250539abb57c6bd651594929b8fc4cfd935743f88e2e7f3501f42d622a

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