-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Jakob Schwendner edited this page Jul 1, 2015
·
2 revisions
Welcome to the perception-projection wiki!
This is a very quick and dirty description on how to generate an equirectangular projection from raw omnidirectional video files taken with rock.
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.
- 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 webavconv -r 10 -i omnicam_%05d.jpg -c:v libvpx -b:v 8000k omnicam.webm