Some years ago I experimented with several webcam apps. See https://mydemoversion8-sandbox.mxapps.io/p/webcam, which might give you some helpful demos. You can download the code here https://github.com/TimvanSteenbergen/MyDemoVersion8
Hi you can try the below Widget . it might be helpful
https://marketplace.mendix.com/link/component/116262