Coding Activities by Kieran

Inpainting and Restoration Challenge(discontinued)

In this activity, you’ll explore the power of image inpainting to transform or repair images. Instead of generating an image solely from text, you’ll provide an existing image and a corresponding mask (where white areas indicate regions to be modified or restored). By supplying a textual prompt that describes the desired change, the AI model fills in the masked regions to create a seamless, restored, or altered image. This exercise is perfect for learning how to guide the creative process beyond full image synthesis—enabling detailed editing and repair of existing visuals.

Post-Processing Magic Workshop

In this activity, you'll generate an image using a text-to-image model (Stable Diffusion) and then enhance it with post-processing techniques. The session focuses on applying practical image adjustments such as increasing brightness, boosting contrast, and adding a soft-focus effect with Gaussian blur. Using Python libraries like Pillow, you'll learn how to transform raw AI-generated images into polished artworks, highlighting the impact of subtle adjustments on the overall visual quality. Enjoy exploring how post-processing can refine and elevate your creative output!

Sentiment Analysis Application

Sentiment Analysis Application

Setting Up Your Hugging Face API Key

This activity guides you through the process of integrating a Hugging Face API key into your Python project in a secure manner. You'll start by creating a Hugging Face account, completing your profile, and verifying your email. Once your account is set up, you'll generate a read-only access token and securely store it in a config.py file. To protect your sensitive information, you'll also learn how to configure Git to ignore the file containing your API key. Finally, you'll integrate the API key into your main Python script, ensuring a smooth and secure connection to Hugging Face services.

Fetching Trivia Questions and Displaying Them

Students will use a Trivia API to fetch trivia questions and create an interactive quiz where they can answer the questions and receive feedback.

Fetching Data from Public APIs

Students will use the requests library to fetch data from public APIs (e.g., joke API, trivia API) and display the results in a user-friendly way.

Gesture-Controlled Photo App with Filters

In this activity, students will build a real-time gesture-controlled photo app that allows them to apply different filters (grayscale, sepia, negative, blur) and take screenshots using hand gestures.

Gesture-Based Scrolling Control

Students will build a gesture-controlled scroll system that detects hand gestures in real-time and controls the system’s scrolling behavior based on whether the hand is open or closed.

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 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.