Objectives include:
-Adjust focus for a NoIR camera lens by using a specially designed tool. -Test the impact of visible/near infrared lighting conditions on NoIR images -Explore the capability of the NoIR camera w/standard lens to maintain focus across a wide 400 to 900nm spectral bandwidth.
Since the Raspberry Pi NoIR v2camera lens is preset to focus at infinity, this typically restricts quality imaging to ranges > 1 meter. Options for adjusting the focus consist of adding external lenses or refocusing the supplied lens. Each approach has its own benefits and disadvantages – external lenses require a separate mount and additional lens purchase, adjusting the supplied lens risks potentially damaging the camera. A good summary of camera and lens performance is available at: https://elinux.org/Rpi_Camera_Module#cite_note-. and [https://www.spiedigitallibrary.org/journals/journal-of-electronic-imaging/volume-26/issue-01/013014/Laying-the-foundation-to-use-Raspberry-Pi-3-V2-camera/10.1117/1.JEI.26.1.013014.full?SSO=1 and https://raspberrypi.stackexchange.com/questions/34747/camera-board-colors-issue]
The tool method was selected for a series of imaging observations since it permits diverse camera modes ranging from lens-less to multi-lens camera configurations. Three tool designs are depicted below and general instructions are available at: . https://publiclab.org/notes/partsandcrafts/02-15-2018/2-attaching-your-raspberry-pi-camera-to-a-microscope-objective-lens
Note the initial material selected for the lens adjustment tool https://www.thingiverse.com/thing:1574661 did not match the design goals. Picture below shows the importance of selecting the right material for 3d fabrication. Thanks to Treatstock (https://www.treatstock.com/) who provided an upgraded material reprint at no additional cost.
Camera set-up is shown below. In order to observe visible/infrared (IR) imaging performance of the NoIR camera, florescent white light and infrared (IR) lighting (two 850nm Light Emitting Diodes (LEDs)) were used for illumination. 50cm, 25cm and 3cm camera to object distances were selected to provide different fields of view and magnification. A python picamera program was used to help perform video focus adjustments before recording high resolution images. Images are recorded and shown with the same digital format. Code is available at: https://github.com/MargaretAN9/Camera-Test.
Objects were selected to demonstrate different aspects of imaging across the 400 to 900 nm spectral response of the NOIR camera. Objects include: -5 dollar bill -Raspberry Pi camera box -Public lab stickers -Red Filter - From Infragram Plant Analysis Filter Kit (https://publiclab.myshopify.com/collections/diy-infrared-photography/products/infragram-diy-filter-pack?variant=1058088684) -Green Filter – Roscolux Moss Green Filter (520nm center peak) (http://us.rosco.com/en/products/filters/r89-moss-green) -Blue Filter – Supplied with NoIR Camera (https://www.raspberrypi.org/blog/whats-that-blue-thing-doing-here/)
Picture below was taken at 50 cm camera to object distance and show how refocusing the preset NoIR lens permits imaging at < 1m.
Picture below was taken at 25 cm camera to object distance with white and/ or infrared light. The images show how the camera’s overlapping spectral bands provide realistic color (white light), unique infrared features (IR light) and green/yellow color subtraction (IR and white light)
Picture below was taken at 3 cm camera to object distance with white or Infrared (IR) light. The images show that it is difficult to simultaneously focus both the visible and IR images at very close distances with the standard NoIR lens.
8 Comments
This is a great post!!!! 🎉
Am I understanding that at 850nm five dollar bills have blank regions?
Great notes on the lens tool!
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
Would you like to make this part of a series for your SoC work? You could add a tag to any related work like
series:_________
with some unique tagname of your choice, maybeseries:raspberry-pi-imaging
orseries:raspberry-pi-imaging-soc
and then there'll be an overall listing of these collected. Try it!Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
@amirberagain @icarito pretty neat!
Reply to this comment...
Log in to comment
@stevie awards a barnstar to MaggPi for their awesome contribution!
Reply to this comment...
Log in to comment
-warren, yes most bills have ir markings. Believe the bills make a good subject since they have well known spectral features and good detail - -really just getting started, the good news is that i finally got opencv working on raspberry 3b+. I was able to split the images above into RGB channels
Reply to this comment...
Log in to comment
Hi, could you upload the original versions of the color channels you've extracted? So people can see the original data? Thanks!
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
@ warren, Original files attached:
Reply to this comment...
Log in to comment
I also think the white +IR light is an interesting study.
Reply to this comment...
Log in to comment
Login to comment.