Image processing performance improvements

firmware.zip (1.3 MB)

Hi, here’s a firmare with the new lineops PR here: modules/py_image: Optimize and cleanup all math and binary line ops. by kwagyeman · Pull Request #2061 · openmv/openmv (github.com) compiled for the RT1062.

You should see a 4x speedup with difference(). The PR switches support to use cortex-simd.

As for dealing with the blobs in that image.

This is simple. Ignore blobs that are too big. You can still use the merge=True argument by the way with find_blobs(). Just add the callback to a python method to look at the blob and then filter it if it’s too large. See the callback arg that find_blobs() supports.