You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jakob Schwendner edited this page Jul 1, 2015
·
2 revisions
Welcome to the perception-projection wiki!
Howto generate omnidirectional videos
This is a very quick and dirty description on how to generate an equirectangular projection from raw omnidirectional video files taken with rock.
Calibration:
I used the OCamCalib calibration toolbox. I did not get it working with octave.
Take video with calibration target and log camera stream.
Extract single images by using rock-replay, view the camera stream, and export the image.
Convert images to jpg
convert -format jpg *.png using imagemagick.
Perform calibration procedure from OCamCalib
Store the calibration.txt result in a folder.
Reprojection
Take your videos, and log the camera stream.
Export the images of that stream into a folder using:
rock-export cam.0.log --stream /cam.frame --filename "cam_#INDEX.jpg"
Use the reprojection binary from this package to convert the images
reproject --calib calib.txt --output-size 1920 --min-angle -43 --max-angle 35 ../*.jpg
Create a movie with avconv
avconv -r 10 -i omnicam_%05d.jpg -b:v 8000k omnicam.mp4 or, if it is for the web
avconv -r 10 -i omnicam_%05d.jpg -c:v libvpx -b:v 8000k omnicam.webm