Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

int concatenate issue #35

Closed
wuxiaohua1011 opened this issue Jul 1, 2019 · 1 comment
Closed

int concatenate issue #35

wuxiaohua1011 opened this issue Jul 1, 2019 · 1 comment

Comments

@wuxiaohua1011
Copy link

on line 86 and 87 in stereo_camera.py, the code
left_frame = frame[:, : width/2, :] and right_frame = frame[:, width/2:, :] should be
left_frame = frame[:, :int(width/2), :] and right_frame = frame[:, int(width/2):, :]

i have Macbook Pro and its reporting
TypeError: slice indices must be integers or None or have an __index__ method without those

@erget
Copy link
Owner

erget commented Jul 3, 2019

Seems reasonable. Would you like to send a PR that implements this? This might also be a Python2 vs Python3 issue, as Python2 probably implicitly casts floats...

@erget erget closed this as completed Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants