Final Project Update – Gambling Lamp

Prototyping Update – 20190425

I’m fascinated by gambling concept, which depends on luck and we do not have control over it. Though most of the time it is a random event that it is theoretically equal possibility to get any result which might be good or bad. Some people believe that they are born with good or bad luck. So I start my idea with a gambling lamp, which is a lamp plus camera and three dices. If you want to change the brightness of the lamp, you have to roll the dice and the camera will pick up the number you get and sum them up to set the brightness of the lamp.

Original Sketch -> Determine brightness based on gambling dice!

Use open CV to detect signals and send to Max through osc
Detecting dices with openCV


Rolling dice testing
Sending signal in max through OSC
Building simulation model in c4d

0503 Update – Multi-dice detection

After demoing in expo 74 science fair, I found that if I can only get total amount of the dice dots, it will be very boring and less control ability. Thus I play with contour detection. I grab out all the contours, make a masked image for each of them and count the dots inside each masked image. The result is great! There are some points worth mentioning – zero-dot areas and white area that are too big (over 1/20 of screen are width) e.g. the desk is hidden from the screen and data, which makes the dice control more stable.

Update at 5/3 – individual dices recognition