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

create_image_from_numpy() should support 'BGR' color channel ordering #247

Closed
hx2A opened this issue Mar 7, 2023 · 0 comments
Closed

create_image_from_numpy() should support 'BGR' color channel ordering #247

hx2A opened this issue Mar 7, 2023 · 0 comments

Comments

@hx2A
Copy link
Collaborator

hx2A commented Mar 7, 2023

create_image_from_numpy() should support 'BGR' color channel ordering to facilitate using opencv with webcams. Otherwise, one needs to add [:, :, ::-1] to reverse the last dimension, and that's kind of weird and hard on beginners.

Adding this feature means adding it to set_np_pixels() in the pixels.py mixin.

https://py5coding.org/reference/sketch_create_image_from_numpy.html
https://py5coding.org/reference/sketch_set_np_pixels.html

@hx2A hx2A added the good first issue Good for newcomers label Mar 7, 2023
@hx2A hx2A removed the good first issue Good for newcomers label Mar 10, 2023
@hx2A hx2A closed this as completed Mar 10, 2023
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

1 participant