If anyone has any interest I made a small library that helps p5 work with Chrome’s Shape Detection API. The API is still experimental so it only works on Windows 10, Android, and macOS. You also have to enable a chrome flag (instructions in repo). I also haven’t handled a number of use cases in the code base. I don’t want to work on it too much until the API stabilizes but contributions are welcome.
As is, if your hardware/browser is compatible it gives you hardware-accelerated text and face detection. It currently lives on this github repo with some links to examples.https://github.com/stalgiag/p5.detect