A collection of Python scripts for various computer vision tasks using the OpenCV library.
This script utilizes OpenCV to interact with the webcam, providing functionalities such as zooming the camera feed and capturing images with a timestamp. It also supports video recording with start and stop options.
- Run the script.
- Use the trackbar to adjust zoom levels.
- Press 'c' to capture an image with a timestamp.
- Press 'v' to start or stop recording a video with a timestamp.
- Press 'Esc' to exit the program.
This script demonstrates various ways to interact with a webcam, providing various features such as zooming, image capture, video recording, and image processing.
- Run the script.
- Adjust the zoom level using the 'Zoom' trackbar.
- Press 'c' to capture a still image.
- Press 'e' to extract yellow color from the frame.
- Press 'r' to rotate the frame by 10 degrees.
- Press 't' to apply a threshold. 7.Press 'b' to apply Gaussian blur with customizable parameters.
- Press 's' to apply a sharpening filter.
- Press 'Esc' to exit the program.
- OpenCV: 4.x
- NumPy: Latest
This script overlays the OpenCV logo onto the live webcam feed. It includes a dynamic timestamp and a constant red border around the frame.
- Run the script.
- The OpenCV logo will be blended with the webcam feed.
- Press 's' to toggle Sobel X filter.
- Press 'd' to toggle Canny edge detection.
- Press '4' to toggle the display of multiple processed windows.
- OpenCV: 4.x
- NumPy: Latest
This script utilizes the SIFT algorithm for object recognition in live webcam feed. It matches features between a reference image and the current frame and provides options for capturing images and recording videos.
- Run the script.
- Features between the reference image and webcam feed will be displayed.
- Press 'c' to capture an image with a timestamp.
- Press 'v' to start or stop recording a video with a timestamp.
- Press 'q' or 'Esc' to exit the program.
- OpenCV: 4.x