These are the code examples from my Computer Vision Power Hour.
Demos based on the stream:
- find_cars_harr.py: Reads a live video from YouTube and attempts to locate cars in feed.
- bodydetect.py: Reads in an image file and detects full bodies in the image using a Haar Cascade classifier.
- edge-canny.py: Reads in an image file and applies the Canny edge detection algorithm to the image.
- blurring.py: Reads in an image file, resizes it to fit within a specified output size, and displays the original and resized images.
- sobel-edge-detection.py: Reads in an image file and applies the Sobel edge detection algorithm to the image.
- facedetect.py: Reads in an image file and detects faces in the image using a Haar Cascade classifier.
Each of these scripts demonstrates a different image processing technique using OpenCV.
Stay Tuned for more, and follow me if you want to view the weekly stream.
Have Python installed on your machine.
Create a new Python environment.
run:
pip install -r requirements.txt
Enjoy!
All content is CC (copyright free), use it however you like.
Images generated by Dall-E or downloaded from Pexels
Classifiers courtesy of OpenCV