GithubHelp home page GithubHelp logo

ippen / point-tracker Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 15.52 MB

Interactive point tracking in videos, with options to export tracked points as JSON and create output videos.

Python 100.00%

point-tracker's Introduction

Point Tracker

This repository contains a Python script for point tracking in videos using the Lucas-Kanade method. Users can select points interactively on the first frame of a video, and the script tracks these points across subsequent frames, visualizing them on the video. It also provides options to save the tracked points data to a JSON file and create an output video with tracked points.

Demo

langeoog_bimmelbahn_demo.mp4

Features

  • Interactive point selection: Users can select points on the first frame of the video by clicking with the mouse.
  • Visualization: Tracked points are visualized on each frame of the video.
  • Output options: The script can create an output video with tracked points and save the tracked points data to a JSON file.
  • Command-line interface: Easy-to-use command-line interface with options to specify input and output files.

Requirements

  • Python 3.x
  • OpenCV (cv2)
  • NumPy

Usage

  1. Clone the repository

    git clone https://github.com/ippen/point-tracker.git
    
  2. Install the required dependencies using pip:

    pip install opencv-python numpy
    
  3. Run the script with the following command:

    python point_tracker.py <video_path> [options]
    

    Replace <video_path> with the path to your input video file.

Command-line Options

  • video_path: Path to the input video file.
  • -s, --save: Optional. If set, saves tracked points to a JSON file (<video_name>_points.json) and the output video with tracked points to an MP4 file (<video_name>_tracked.mp4).

Example

python point_tracker.py input_video.mp4 --save

This command will track points in input_video.mp4 and save the tracked points data and the output video with tracked points if the --save flag is set.

point-tracker's People

Contributors

ippen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.