-
Notifications
You must be signed in to change notification settings - Fork 9
Image processing #16
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
Image processing #16
Conversation
This is memory efficient enough to operate on 240x208 pixel images. (An earlier iteration which used float32s was not) Typically an algorithm takes 1 to 4 seconds to run on an image. Channel operations such as solarize are faster, while convolution operations like sharpen are slower. A range of algorithms are provided and there are building blocks to create others.
Effects demo. The video is sped up. PXL_20240105_012411687.2.mp4 |
an idea of the timings involved:
|
np.minimum / maximum are surprisingly slow!
👋 Thanks for this pull request! Unfortunately, it looks like the automated continuous integration (CI) test(s) failed. These can be tricky to fix so we've written a guide on how to fix them locally. It has pages about running pre-commit locally and another about building the docs locally with sphinx. Thanks for contributing to CircuitPython! If you have more questions, feel free to join the Adafruit Discord and post in #circuitpython-dev. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic! I'll release this as a minor up-rev unless you think it warrants a major up-rev due to either compatibility, memory, or other reason(s).
a non-default mock of displayio.Bitmap is provided for doc building
Updating https://github.com/adafruit/Adafruit_CircuitPython_PyCamera to 0.0.8 from 0.0.7: > Merge pull request adafruit/Adafruit_CircuitPython_PyCamera#16 from adafruit/image-processing Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA: > Updated download stats for the libraries
Now image wizards can do operations like sharpen & edge detect on image data in RAM. It only takes seconds and seconds.