It wouldn’t be simple - The camera needs to be the same distance from the material surface to maintain accuracy, and never move relative to the machine. You would need to mount it to an arm or something that was rigid and attached to the table, with an overhead view of the work surface, and you’d have to calibrate it to the height of your material. If you use multiple thicknesses (which of course you do) you would need to calibrate for each thickness.
The camera feature as written is designed to work with a movable Z bed that raises and lowers, so the material surface is always at the same height. A movable Z head makes it less easy to work with.