Right now, Kandy only supports Android, iOS and JS. So what we can do is,
Use Android on Raspberry Pi and pray that camera is already integrated into the OS, just like on a phone. Though it’s a hack around a problem, the resulting solution is still IoT.
Create a Node.js local server, load the Kandy script on a page and serve it to the browser when requested, and pray that browser can access the webcam.
Both options need a lot of hope.