All posts by admin

Calculating Frames Per Second (FPS) In OpenCV and Overlay on Frame

YouTube video playerIn this lesson we show how to instrument our code to calculate the Frames Per Second (FPS) we are achieving with our camera and OpenCV. We show how to display the FPS as an overlay on our video frame.


Using the Raspberry Pi Camera on Bullseye OS and OpenCV

Then the following code will allow you to grab a frame and show a frame in a window. Looking this sequence creates a live video preview on your Raspberry Pi Screen.


Raspberry Pi LESSON 38: Motion Detection Alarm with Multiple Alarms

In this video lesson we show how to create an Alarm System based on a Raspberry Pi, with user input from a keypad, and user prompts on an I2C LCD Display. From the earlier lessons in this series, you must install the LCD1602 Library, and you must install the keypad library. We include the code that we develop in this lesson below for your convenience:


Raspberry Pi LESSON 37: Raspberry Pi Security System


In this lesson we add an audible alarm to our security system. I am connecting to a Bluetooth speaker, and then using the pygame library to play an alarm sound. The pygame library will play any .mp3 file, so search the internet and find a suitable alarm sound for your system. I amusing an air raid siren, and really like it! Below for your convenience is the code we develop in this video:


Raspberry Pi LESSON 36: Motion Detection Alarm System With LCD and Keypad

In this lesson we show the basic framework for an Alarm System with operator control through a keypad, and output to an LCD screen. We incorporate a PIR sensor to detect motion. In the next lesson we will add an audible alarm. For your convenience, the code developed in the above video is included below: