fbxshit
2016-04-18 20:31:05 +08:00
Example 12: Compute Module: stereoscopic vision
Since stereoscopic vision is disabled by default, to enable it you must specify the --stereoscopic-mode option when loading the driver. Here is a basic example:
raspberrypi ~ $ uv4l --driver raspicam --auto-video_nr --stereoscopic-mode=side_by_side --encoding=mjpeg --width=2360 --height=720
With the stereoscopic mode specified above two 1280x720 image captures will be placed side by side in the final video frame; another mode is top_bottom. Other (not mandatory) options affecting stereoscopic vision are --decimate to enable frame decimation and --camera-number to set the primary and secondary camera ports (please refer to the manual for more details).