erget / StereoVision

Library and utilities for 3d reconstruction from stereo cameras.
http://erget.github.io/StereoVision
GNU General Public License v3.0
648 stars 268 forks source link

Error when the width of single image is not even #33

Closed civp closed 5 years ago

civp commented 5 years ago

stereo_cameras.py line 86 left_frame = frame[:, :width/2, :] should be left_frame = frame[:, :width//2, :] to avoid TypeError when the width is not even

erget commented 5 years ago

Makes sense to me. Would you be willing to put this into a PR?