I’m working on a project similar to a security camera with a Raspberry Pi NoIR Camera Module v2 and a FLIR Lepton 3.5 on a purethermal 2.
I am somewhat new to this and am not sure how to proceed. I need to have the program trigger from a motion detector (PIR) attached to a GPIO pin and activate either the camera or FLIR depending on the time of day. I also need the system to store 5 jpegs a second of the stream while there is still motion. I am currently attempting to run video and use gstreamer to convert certain frames to jpeg because this seems more reliable than the still features. Any help would be appreciated.
Does anyone know how to capture and switch between these cameras as well as continue the stream while there is motion?
Let me summarize your project.
- You have two cameras, one day camera, another, night camera.
- You have one PIR sensor, connected to Rpi which gets alerted if a naughty cat comes in.
- If it is day time, Rpi switches on camera and starts streaming video, extracts to 5 jegs a second and stops as soon as the thing has left.
- Similarly the night camera at night.
Some time ago I used Rpi, Rpi Camera, and also cheap Logitech web cameras to do similar things and found many open software tools and libraries helpful.
Now I have learnt how to use python to interface real time clock DS3231. Perhaps I can do system integration this time, starting with PIR. Perhaps I can also add Google Tensor Flow cat face detection, …
Edge TPU USB Accelerator (Raspberry Pi, Debian) – USD$74.99https://coral.withgoogle.com/products/accelerator/ https://coral.withgoogle.com/tutorials/accelerator-datasheet/
Adafruit PIR Sensor Tutorial – Introducing PIR https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/overview
Adafruit PIR Sensor Tutorial – Connecting to PIR https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/connecting-to-a-pir
Adafruit PIR Sensor Tutorial – Testing PIR https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/testing-a-pir
PIR BISS00012 Micro Power PIR Motion Detector IC Datasheet – Shanghai JX 2005http://www.ladyada.net/media/sensors/BISS0001.pdf
PIR BISS00012 Micro Power PIR Motion Detector IC Datasheet in Chinese – Shanghai JX 2005http://www.ec66.com/market/sheet/biss0001.pdf
AliExpress PIR sensor module catalog https://www.aliexpress.com/w/wholesale-pir-sensor-module.html
TaoBao HC-SR501 PIR Module CN¥3.60 https://item.taobao.com/item.htm?spm=a312a.7700824.w4002-18130655753.30.569b21fci4bMs6&id=589581993055
/ to continue, …