Video Processing with a Rasperry Pi

Omg… I know why…

You did not load the pixels so the pixel array is never updated: https://processing.org/reference/loadPixels_.html

If you don’t want to do that you can still use the get() function but it will be slower: