Essentially, my suggestion of a camera module of the type that is used for cellphones, was the suggested close distance, which in a way indicates that we are in somewhat crammed quarters. The dentist's camera, that is used for imaging within the oral cavity does exactly what you are asking for, and its imaging device is the same as in many cellphones. Those imaging devices come with various pixel densities, from low resolution ones to extremely high resolution. Often they have a lens that is in the region of about 2 mm focal length and an aperture of about f/2. Most of them are a single unit with serial output.
An ordinary camera lens of more than about 25 mm focal length cannot be brought so close to the subject, and the camera itself adds substantial bulk. It is feasible, but I would prefer a simple module, as those that sit in cellphones.
Could you elaborate a bit upon the idea, as to why it has to be so close to the subject, and what kind of resolution that might be needed, and also what imaging errors that could be accepted. At a wide angle, you should expect both optical errors and vignetting. Both can be corrected.
The device in thie link is connected to USB of the computer and has its own light source. The lens is in the middle of the light source.
http://www.ildentistaveneto.com/lang...eo-camera.html