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

documentation's code snippet doesn't work #6453

Open
nice-bicycle opened this issue Dec 5, 2023 · 0 comments
Open

documentation's code snippet doesn't work #6453

nice-bicycle opened this issue Dec 5, 2023 · 0 comments

Comments

@nice-bicycle
Copy link

nice-bicycle commented Dec 5, 2023

cameraData = camera.getImage()

# get the gray component of the pixel (5,10)
gray = Camera.imageGetGray(cameraData, camera.getWidth(), 5, 10)

This crashes. You should also give a better example, since the fact that getImage returns a 1d byte array is not easy to find in the documentation. I would have been happy if there were helper functions so I didn't have to know getImage returns a 1d byte array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant