User Tools

Site Tools


pi_lens_info_april_2017

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pi_lens_info_april_2017 [2017/04/10 09:42] – created tomglepi_lens_info_april_2017 [2017/04/10 09:55] (current) – [3D V2 M12 lens adapter] tomgle
Line 8: Line 8:
   * http://www.m12lenses.com/CNC-Machined-Raspberry-Pi-M12-Lens-Holder-Metal-p/pt-lh020rpm.htm   * http://www.m12lenses.com/CNC-Machined-Raspberry-Pi-M12-Lens-Holder-Metal-p/pt-lh020rpm.htm
  
-The v1 and v2 sensor sizes are the same, the so-called 1/4-inch format. On V1 the lens focal length is f=3.6mm with Angle of View: 54 x 41 degrees and on V2 it is f=3.0mm with Angle of View: 62.2 x 48.8 degrees [1]. Note the angle of view is quoted at full-frame; remember some video modes use a cropped subset of the full frame. This is a moderately wide angle lens. If you double the focal length, you'll get half the field of view. If you get a 8mm lens that's a moderate telephoto, and a 16mm lens is definitely telephoto. I've tried a number of cheap M12 lenses [3] that work "ok" but don't expect perfectly sharp images with the tiny 1.4 or 1.1 micron pixels these camera sensors use. Lower f-number lenses are "faster" (let in more light) but will have more shallow depth of field and more blurry overall. You will see f/1.4 or lower sold for use in low light, but I have not had good images with those; I would recommend f/2.0 or above if you want decent resolution.+The v1 and v2 sensor sizes are the same, the so-called 1/4-inch format. On V1 the lens focal length is f=3.6mm with Angle of View: 54 x 41 degrees and on V2 it is f=3.0mm with Angle of View: 62.2 x 48.8 degrees. Note the angle of view is quoted at full-frame; remember some video modes use a cropped subset of the full frame. This is a moderately wide angle lens. If you double the focal length, you'll get half the field of view. If you get a 8mm lens that's a moderate telephoto, and a 16mm lens is definitely telephoto. I've tried a number of cheap M12 lenses that work "ok":\\ 
 +  * http://www.m12lenses.com/M12-Mount-Mega-Pixel-Lenses-s/21.htm 
 +  *  
 + but don't expect perfectly sharp images with the tiny 1.4 or 1.1 micron pixels these camera sensors use. Lower f-number lenses are "faster" (let in more light) but will have more shallow depth of field and more blurry overall. You will see f/1.4 or lower sold for use in low light, but I have not had good images with those; I would recommend f/2.0 or above if you want decent resolution.\\
  
-The longest lens I've tried is a reversed 4x microscope objective, about f=27mm delivering 8 degrees horizontal field of view [4]. I made a 3D printed holder for it [5]. That lens is good enough to recognize faces from over 100 feet away. Attached image is a crop from 1640x1232 (full-frame) mp4 video from v2 camera, using that lens.+The longest lens I've tried is a reversed 4x microscope objective, about f=27mm delivering 8 degrees horizontal field of view:\\ 
 +  * https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=148328 
 + 
 + 
 + I made a 3D printed holder for it
 +  * http://www.thingiverse.com/thing:1565909 
 + That lens is good enough to recognize faces from over 100 feet away. Attached image is a crop from 1640x1232 (full-frame) mp4 video from v2 camera, using that lens.\\ 
 +{{::picam-personwalking-4xobj.jpg|person about 140 feet (43 m) away}}\\ 
 +person about 140 feet (43 m) away\\
  
 ===== 3D V2 M12 lens adapter ===== ===== 3D V2 M12 lens adapter =====
Line 16: Line 27:
 I have remixed the existing M12 lens adapter to fit the Pi V2 camera. I have remixed the existing M12 lens adapter to fit the Pi V2 camera.
 Apparently the mini connector on the V1 camera is centered whereas the V2 camera connector is offset.\\ Apparently the mini connector on the V1 camera is centered whereas the V2 camera connector is offset.\\
 +{{::4125eb37d8365f19c5eff7f10bde35f1_preview_featured.jpg?300|}}\\
  
 I printed this and after cleaning up the supports, fits like a glove.\\ I printed this and after cleaning up the supports, fits like a glove.\\
   * {{ ::m12_mount_for_raspberry_pi_v2_camera.zip |M12 mount for V2 Pi Camera}}   * {{ ::m12_mount_for_raspberry_pi_v2_camera.zip |M12 mount for V2 Pi Camera}}
 +
 +===== Zoom factor/angle of view  =====
 +
 +Is there an equation that translates the mm to zoom factor/angle of view (other than doubling focal length halves field of view)?\\ 
 +
 +F= makes sense. When I look at my DSLR's zoom lens (35-70 or 75-300), I can see how much zoom/angle I get just be playing with the zoom. But since my numbers on the DSLR is different than the Raspberry Pi lenses [3] I'm assuming the sensor size is part of the equation dictating what magnification/angle of view I'm going to get (understanding that fish eye lenses are going to add extra angle of view in the calculation but will introduce distortion).\\
 +
 +For now, I'm trying to get a good face/license plate capture on the main roadway access to my residence but I'm hoping to gain information that will allow me to calculate results in advance for Raspberry Pi cameras of the future (v3, v4 etc :) )\\
 +
 +Thanks!\\
 +David\\
 +
 +Reply:\\
 +The RPi v2 camera sensor size is 3.67 x 2.76 mm (1/4" format). The horizontal dimension is almost 10x smaller than a traditional 35 mm film SLR or "full-frame" DSLR with a 36x24 mm image area.\\
 +
 +So if you have a "full-frame" DSLR, the "crop factor" of a 1/4 sensor relative to that is about 10. So a 200 mm lens on a full-frame DSLR gives you very nearly the same horizontal field of view as a 20 mm lens on the Raspberry Pi sensor, and a 50mm SLR lens compares to a 5 mm lens on the RPi.\\
  
  
pi_lens_info_april_2017.1491831745.txt.gz · Last modified: 2017/04/10 09:42 by tomgle