Git Product home page Git Product logo

opencv_theta_s's Introduction

Theta S用のEquirectangular変換(C++)

概要

Theta Sで撮影したDual Fisheye画像をVRデバイスで再生できるEquirectangular形式に変換する。 また、Theta Sカメラが横方向に回転した時に、画像を解析しその回転を除去する。

使い方

$ ec_thetas <input file> <output file>

"input file"にTheta Sで録画したDual Fisheye形式の動画ファイル、"output file"に変換後のファイル名を指定して実行すると、 Equirectangular形式に変換されて出力される。音声には対応していない。

実行例

$ ec_thetas in720p.mp4 out720p.mp4
Input file  : in720p.mp4
Output file : out720p.mp4
size = 1280x720
frame count = 240
fps = 29.97
........

解説

  • リアルタイムで処理ができるように、初めにEquirectangular → Dual Fisheyeの写像行列を作成しておいて、OpenCVのremap()関数を使用することにより高速に変換を行うようにした。
  • Kurento Media Serverのフィルタとして取り込んで動作させるため、OpenCV 2.4を使用している。

opencv_theta_s's People

Contributors

kozokomiya avatar

Stargazers

mktn avatar  avatar mikkame avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

renfukatsu

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.