Coding Activities by Bhargav Venkat

Gesture-Based Volume and Brightness Control

Students will build a real-time gesture control system that adjusts the system volume and screen brightness using hand gestures. By calculating the distance between the thumb and index finger, students will manipulate the volume and brightness on their computer in real-time.

Real-Time Gesture Control with OpenCV

Students will build a simple application where they can control the actions (like moving a shape or drawing lines) on the screen using hand gestures in real-time. This activity will help them learn the basic steps of gesture tracking and control.

Real-Time Color Filters and Edge Detection

Students will experiment with applying real-time color filters and edge detection effects to a sample image or webcam feed. They will toggle between filters and edge detection techniques using keyboard input and observe the effects instantly.

Real-Time Face Tracking and Counting People

Students will implement real-time face tracking and counting using their webcam. They will detect faces, count the number of people in the frame, and display the count dynamically.

Face detection with open CV

This activity will guide students through accessing their computer’s camera and performing real-time face detection using OpenCV’s pre-trained Haar Cascade classifier.

Interactive Color Filters on Static Image

Students will manipulate color channels of a static image in real-time by pressing specific keys to apply different color filters, including color tints and intensity adjustments. The image will be updated instantly with each key press.

Interactive Edge Detection & Filtering

Explore edge detection techniques (Sobel, Canny, Laplacian) and apply noise reduction filters (Gaussian, Median) interactively. Students will experiment with parameters and observe their effects on real images.

Image Annotation with Shapes and Measurements

This activity involves annotating an image using OpenCV by drawing rectangles and circles to highlight regions of interest, connecting them with a line, and visualizing the image height using bi-directional arrows. Text annotations are added for clarity, making the image informative and visually structured.

Rotating and Adjusting Image Brightness

Rotate an image by 45 degrees and adjust its brightness to see the effects of basic arithmetic operations on images.

Color Conversions and Cropping

Convert an image from BGR to RGB and grayscale, then crop a region of interest.

Save & grayscale with OpenCv

In this activity, students will load an image, convert it to grayscale, resize it to a standard size (224x224), display the processed image, and optionally save it based on key press.

Display & resize image with OpenCV

In this activity, students will learn how to load an image using OpenCV, display it in a resizable window, and adjust the window size. They will also explore the properties of an image such as dimensions and channels.