Is there a way to precisely focus the CMOS lens?
In that case, there are two alternatives. First, you can try counting threads. The lens is not screwed fully in at peak focus. Rather, there is about a 1 millimeter gap of thread showing. In terms of number of threads, that is about 2 threads showing in the gap between the lens and the lens mount. The second alternative relies on the idea that when an image is sharp, the darks are darkest and the brights are brightest. In other words, the contrast is greatest. When the image becomes defocussed, then the extrema fade away to a more uniform distribution of intensities. So, if you fire up streaming mode using Teraterm or Hyperterm, and then call GM (Get Mean), you can focus in real time. Look at the Red deviation. As you focus sharply on a high-contrast object (such as a piece of paper with lots of writing on it) at the desired distance, there will be a noticeable peak in Red deviation when most sharply focused. Note that this approach to focussing requires you to have the camera and the target quite firmly planted as you turn the lens. |