Giter Site home page Giter Site logo

viz-graph's Introduction

Video Knowledge Builder and Graph

This is an application that takes JSONLines formatted video label dataset as input and builds context dependent knowledge base.

requirements

kivy for visualization of frames and recognition results

Ensure you have the latest pip, wheel, and virtualenv:

$python -m pip install --upgrade pip wheel setuptools virtualenv

Optionally create a new virtual environment for your Kivy project. Highly recommended:

First create the environment named kivy_venv in your current directory:

$python -m virtualenv kivy_venv

Activate the virtual environment or on windows CMD do:

$kivy_venv\Scripts\activate

Install the dependencies and kivy

$python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew

visualization of video

Input frames :

Downloads the following video frames, outputs(json), and subtitles

Input format

Input data must be JSONLines that contains multiple JSON objects in one of the formats below.

Object

  • {"type": "object", "class": "person", "label": "Person A", "seconds": 15.0, "coordinates": [100, 200, 20, 30]}
  • {"type": "object", "id": "person_ross_geller", "class": "person", "label": "Ross Geller", "seconds": 15.0, "coordinates": [100, 200, 20, 30]}
  • https://github.com/vtt-project/DRCaptioning

Behavior

Emotion

Relation

Place

Sound event

Person re-id

RelationalClass

  • "behavior" for subclass "wear", "hold", "hug", …
  • "emotion" for subclass "love", "like", …
  • "position" for subclass "above", "below", "next_to", …
  • "social" for subclass "son_of", "father_of", "lover_of", "friend_of", …

How to use

kivyVideoOpencvLabel.py takes input data from several modules and visualize the results on video frames.

$ python kivyVideoOpencvLabel.py

main.py takes input data as standard input, and prints result knowledge base as standard output as a JSONLines formatted string. For example:

video-knowledge-builder $ python main.py < test_input.jsonlines > output.jsonlines

The shell command above will provide the contents of test_input.jsonlines as input for the application and save the result in a file output.jsonlines.

Acknowledgements

This work was supported by Institute for Information & communications Technology Promotion(IITP) grant funded by the Korea government(MSIT) (2017-0-01780, The technology development for event recognition/relational reasoning and learning knowledge based system for video understanding)

viz-graph's People

Contributors

ihaeyong avatar jmbyun avatar

Stargazers

 avatar Yu Bin, Kim avatar  avatar  avatar  avatar Nikolaos Dionelis avatar  avatar

Watchers

Nikolaos Dionelis avatar  avatar

viz-graph's Issues

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.