This program detects any motion in the frame; thus, it can be used to detect any intruders in the building. The program works on the assumption that the first frame is always the motionless background.
There are three files included in this project:
- To detect motion from a live camera stream and to output it the display.
- To detect motion from an existing video file and to output it the display.
- To detect motion from a file or live camera and to store the output frames into a video file.
Python3, OpenCV, numpy, imutils, argparse
This program essentially finds and counts the number of blocks or shapes in an image. As an example, i have provided a tetris block image here, on which this program was able to successfully execute, identify and display the number of tetris blocks present in the image.
Python3, OpenCV, imutils, argparse
This program identifies blocks or shapes in the image based on their color and marks a red rectangular box around the same. As an exapmle, i have provided a lego block image here, on which this program was able to successfully execute, identify and mark the chosen colored lego blocks in the image.
Python3, OpenCV, numpy, imutils, argparse
The main motive behind this project is to find the objects which are within a certain proximity limit (pixel distance). The objects which are in the close proximity, themselves and the link between them are marked red (indicating danger). The objects which are in a safe distance away from other objects are marked green (indicating safe). As an example, i have provided an image with many circles in it, which is essentially a bird eye view of a street and the circles indicates people in the street. Thus on that image this program was able to successfully execute, identify and mark the people who are social distancing and not.
Python3, OpenCV, numpy, imutils, scipy, argparse
This program identifies shapes in the image, draws outline around it and displays what shape it is.
Python3, OpenCV, numpy, imutils, argparse