Close

Upgrading Camera to Raspberry Pi NoIR V2

A project log for LoRa + Neural Network Security System

Spot trespassers with a neural network and transmit basic results via LoRa

Tegwyn☠TwmffatTegwyn☠Twmffat 12/14/2018 at 17:560 Comments

Obviously, we're going to want to use this gadget in the dark with infra red lights, so we need a decent camera with IR capabilities ie no IR filter. Fortunately, these cameras are a lot cheaper an more compact than the Logitech USB and they're also very easy to install:

Firstly, check that camera is enabled in the RPi settings and then, after plugging it into the board, check it works with:

$ raspistill -o image.jpg

Next install the following Python dependencies

$ sudo apt-get install python3-picamera
$ pip3 install "picamera[array]"
$ pip3 install imutils

 Lastly, use the Pi cam version of the security_cam file, downloadable from here: https://cdn.hackaday.io/files/1626676959544928/security_camPiCam.py

Run the file using the following command:

$ cd && cd /home/pi/ncappzoo/apps/securityCam && python3 security_camPiCam.py

The security camera is now ready to test out in the wild, although obviously not in the rain! It'll be interesting to see what the transmitter range will be with a decent antenna :) 

Other than waterproofing, another issue is where to collect the captured photos produced when the device spots a person - maybe a USB stick, to prevent filling up the raspberry Pi SD card?

Discussions