Processing & Computer Vision

Assignment 1

Write a program that draws three (or more) ellipses at various locations, with various colors various widths and heights with and without borders (of various colors).

Screenshot of working application
Screenshot of code

Assignment 2

Write a program that draws at least four different shapes (not circles), in various colors, at various locations.

‍Screenshot of working application
‍Screenshot of code

Assignment 3

Write a program that draws at least two different shapes, with various colors and make them interactive.

 
Screenshot of code

Assignment CV1

Now it's time to start experimenting. Take a good look at the LiveCamTest code you just opened.

Can you discover which line causes a rectangle to be drawn around a recognized face? (Tip: rect = rectangle). Adjust the code so that a circle is drawn instead of a rectangle.

Screenshot of application
Screenshot of code

Assignment CV2

Adjust the code so that every recognised face gets an 'anonymous' black bar in front of his eyes or a red clown nose instead of his/her nose.

Screenshot of appliaction

I decided to add red nose so I was looking like Rudolph the Red-Nosed Reindeer

Screenshot of code

Assignment CV3

Adjust the code of one of the examples so that something cool happens.

 

In this assignment I used the application for color detection. User can select up to 4 colors and software will draw rectangles around shapes/things that are in this specific color. The goal was to change something in code so something cool happens.

As can be seen on the video. I changed the code so if you scan the color that hue is between 50 and 90 you will see big red screen with text "looser". It's a kind of game where you need not to scan colors that's hue is between 50 and 90.

On the video you can actually see that if I scan my notepad which has blue color and it's hue is 114 application used as previously. However, when I scanned lighter which is green and it's hue is 65 the red screen appeared.

In the code I only added a couple of lines with if statement and change of screen.