Shameless plug: take a look to our embedded computer vision library SOD: https://sod.pixlab.io.
It's a lightweight OpenCV alternative targeting embedded devices with most of the modern image processing algorithms already implemented including an experimental Stable Diffusion implementation.