When I try to execute this sketch that is based on a face recognition algorithm it really lags on raspberry, whereas when run on different devices (macbook pro and notebook), it runs smoothly. You can test it using chrome or chromium as a browser.
I am not sure what is the best way to optimise this code so It can run faster. I use it with a local node server directly on the pi. I ran a profiler on chrome with it, and clmtrck.js script seems to be the main bottleneck. I would like to run it around 25/30fps.
I am wondering if any of you have experience optimising code for raspberry and if this kind of hardware acceleration might be an option. Or if there is any cheap method to "boost" a raspberry.
Any pointer is welcome. Thanks!