Coding Activities by Bhargav

Living Painting

Build a live camera that paints your room in the style of a famous painting while you stay real. You write the code that starts two AIs in background threads, runs a one-style network and an any-style network with 100 style numbers, and blends you back in with the cut-out.

Strike a Pose

Build a camera game where you copy poses with your body and hold them to score. You write the code that gets 17 body points from the AI, turns your arms into angles, scores how close you are and turns a 1-second hold into a point.

3D Photo

Build a live camera app that shows how far away the AI thinks every pixel is, and turns one photo into a wobbling 3D picture. You write the code that gets the AI's depth answer, turns it into 0 to 1, slides near and far pixels opposite ways, and runs the AI in the background.

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.

Clone Me

Build a live camera app that freezes cut-out copies of you and saves one photo with all of them. You write the code that gets the AI's matte, blends you onto the picture, keeps the live you in front and builds the saved photo.

Live Object Detector

Finish a live object detector: write the code that scores the model's guesses, picks a name for each, keeps the sure boxes and draws them on everything your camera sees. Change how sure it must be, then take a screenshot to show your parent.

Language Detective

A program that learns a "fingerprint" for each of 7 languages (English, Spanish, Italian, French, German, Hindi and Hinglish) from one paragraph each. Then it reads a mystery message, finds the fingerprint that matches best, and says which language it is, with the clues to prove it. At the end you play against it: can you guess as well as the detective? Google Translate's "Detect language" and keyboard apps that switch language by themselves use the same idea.

Mini Search Engine

A program that reads 12 short articles once, builds an index of every word (like the index at the back of a book), and then answers a search instantly. You will write three rankers: COUNT, TF and TF-IDF, and watch them compete on 10 searches. Google, library catalogues and website search bars all start from the same idea.

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.

Did You Mean?

A program that compares what a person typed with every dish on a menu, counts how many single-letter fixes it would take, and suggests the closest dish. You will then upgrade it twice: neighbouring keys on the keyboard count as a smaller mistake, and two swapped letters count as one mistake. Food apps and search engines do the same job all day long.

Review Mood Meter

A program that reads a review, gives every feeling word points (good adds, terrible takes away), and adds them up into a mood score. It handles "not good" (a negation) and "very slow" (an intensifier), and it shows which words decided the result. Shopping sites and food apps do the same job on thousands of reviews.

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.