Git Product home page Git Product logo

video_segment's Introduction

The Video Segmentation Project

Main repository for the Video Segmentation Project. Online implementation with annotation system available at www.videosegmentation.com

To build you need the following build dependencies:

*We haven't tested it on earlier versions of ffmpeg / opencv yet. Feel free to try and let us know.

We have put together preliminary commands to build and run seg_tree_sample on a fresh installation of Ubuntu 14.04 LTS. You may see those here.

Configuration is done via cmake, outside the main source tree:

Assuming source is checked out under ~/video_segment

mkdir -p bin/seg_tree_sample
cd bin/seg_tree_sample
cmake ~/video_segment/seg_tree_sample
make -j4

This would build the binary seg_tree_sample in bin/seg_tree_sample/seg_tree_sample.

List of current executables:

  • seg_tree_sample:

Runs main segmentation algorithm (over segmentation and hierarchical segmentation). Example (will create INPUT.mp4.pb segmentation result)

./seg_tree_sample --input_file=INPUT.mp4 --logging --write_to_file
  • segment_converter:

Render segmentations to images (randomized color), region images (id stored as 24 bit int) or protobuffers (extract one protobuffer per frame in either binary or text format). Example (will render images at 10% of hierarchy to OUTPUT_DIR/frameXXXXX.png):

./segment_converter --input=INPUT.mp4.pb --bitmap_color=0.1 --output_dir=OUTPUT_DIR
  • segment_renderer:

Renders segmentation to video and images with support to parse project JSON files. Example (to render annotated result to images):

./segment_renderer --input_file=DOWNLOAD_FROM_WEBSITE.pb --output_image_dir=SOME_DIR --json_file=DOWNLOAD_FROM_WEBSITE.json --logging

Example (to render segmentation result at 10% of hierarchy to video):

./segment_renderer --input_file=INPUT.pb --output_video_file=OUTPUT_VIDEO --render_level=0.1
  • segment_viewer: Interactive viewer for segmentation pb files
./segment_viewer --input=INPUT.pb
  • video_example: Example to run video_framework single threaded or as pipeline

Algorithm with many improvements is loosely based on

Matthias Grundmann and Vivek Kwatra and Mei Han and Irfan Essa

Efficient Hierarchical Graph Based Video Segmentation

IEEE CVPR, 2010

http://www.cc.gatech.edu/cpl/projects/videosegmentation/


List of contributors over time:

  • Matthias Grundmann
  • Vivek Kwatra
  • Mei Han
  • Daniel Castro
  • Chris McClanahan
  • Irfan Essa

video_segment's People

Contributors

dcastro9 avatar grundman avatar josephredfern 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.