Hi,
technically this is possible, though I'm not sure how widely supported that is across different browsers. However I don't know an existing Mendix widget for that functionality. Thus you'd need to build that yourself based on some existing JS code (e.g. https://github.com/schmich/instascan)
Building native apps with Mendix is not that difficult. So if this is an option for you it's probably easier to use a native app.
regards, Fabian