Giter Site home page Giter Site logo

video_place_recognition's Introduction

video_place_recognition

VTT 3rd year

Place recognition software for Friends video based on scene change detector

This repository contains codes and pre-trained checkpoints of a place recognition model and scene change detector for Friend video.

Requirements

  • Ubuntu(Tested on v16.04)
  • Python 2.7
  • Pytorch(Tested on v1.2.0)
  • NumPy
  • PIL
  • opencv-python
  • matplotlib
  • jsonl

Download pre-trained checkpoint

Pre-trained checkpoint should be placed in the root directory. You can download the checkpoint at here : https://drive.google.com/open?id=1kmbdXIj9YkH_XYehaozdhwsRcAyCpadN

How to use

Input : video file (e.g. *.avi, *.mkv) Output : jsonl file (predicted class of video frames for every second, 1fps)

Below is an example of output jsonl file.

{"second": 0.0, "type": "location", "class": "none"}
{"second": 0.0, "type": "location", "class": "none"}
...
{"second": 52.0, "type": "location", "class": "cafe"}
{"second": 53.0, "type": "location", "class": "cafe"}
...
{"second": 314.0, "type": "location", "class": "home-livingroom-Monica"}
{"second": 315.0, "type": "location", "class": "home-livingroom-Monica"}

You can run following command on a terminal,

python demo.py --input_filename <video-file> --output_filename <output-file-name>

For example

python demo.py --input_filename input.mkv --output_filename output

Then output.jsonl file will be saved in the root directory

Acknowledgements

This project 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)

video_place_recognition's People

Contributors

dcholee avatar kkjh0723 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

vtt-project

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.