I have gotten excellent results with the 16MP Arducam! But you also must have a lens locking ring and a specific varifocal lens to make good use of the available pixels and essential for OpenCV to be able to flatten the image correctly. Image quality is awesome. Lid is surprisingly repeatable.
Thread here, with links for the necessary equipment: