Oh hell yeah I did that! 16MP Arducam.
Lesson learned- for max performance, you need to a specific varifocal lens because you want to zoom in so the FOV reaches to the bed corners but doesn’t waste pixels of the FOV outside that.
And you can 3D print an adjustable mount that is essentially the same as a mirror mount with a pivot corner and two fine-pitch adjustment screws to get the angle perfect.
Varifocals come in different sizes that need to match the size of the imager chip. And you need an M12 ring locking nut. More here:
I got AMAZINGLY good resolution and accuracy on a 1.6m x 1m bed, with the camera mounted inside the lid. It was much more repeatable than I thought when closing and opening again. But overall was limited by gain probs. The imager auto-adjusts its gain by the average light level in its FOV. When that was mostly well-used honeycomb, it was very black in like 80% of the FOV so it turns up the gain and the 20% I wanted to look at was pretty washed out.