Friday, September 18, 2009

Mona Lisa is watching you (Processing Project) - Haunted Portraits, Good for Halloween!



Halloween is coming, it is time to prepare a halloween project. There is an urban myth that when you enter a castle or old house, the portrait painting on the wall would have one scary effect, the eyes are always following you! it tracks your movement. How about using a big LCD monitor and a web camera to make one "Following-Eye" portrait to scare people:)

I used Processing with Opencv to make this "Following-eye" portrait project, and the famous painting "Mona Lisa" is used for demonstration.

The demonstration goes here:


To make it more real, I suggest you can put the monitor in vertical orientation and run the project in full screen. Of course, if you can add a wooden frame on top of the monitor would be prefect! Send me a photo if you make one!

The processing project can be downloaded here: mona_lisa.zip (source codes)

Have Fun!

17 comments:

Jason said...

wow this is great! nice work :)

naus3a said...

face tracking is always fun:) did you see my peek-a-boo sketch? http://www.youtube.com/watch?v=q-PIG9I9Sgk

Kyle McDonald said...

Wow, I feel like her eyes are pointing at a great angle than parallel. That makes the whole thing kind of creepy!

Anonymous said...

How do i fix the error: 'Package "hypermedia" does not exist.'

:(

mirko said...

Nice job!
Can you help me to run this in my linux box? I've already installed openCV, but i don't know how use it, documentation is too hard for me :(

(xcuse me for my bad english...)

Bitartist said...

Package hypermedia, you will need opencv installed on your machine.
Please check the link here:
http://ubaa.net/shared/processing/opencv/

Bitartist said...

hi, Mirko, please open my skethbook (pde file) with processing, and press the button '>" play. If your opencv is install properly on your linux box, it should run fine. I used Linux and Mac OS X for this project.

Bitartist said...

Hey naus3a, I saw your peek-a-boo project before! I just started processing, while studying opencv and processing, I come across your project. It is really interesting.

Anonymous said...

>How do i fix the error: 'Package "hypermedia" does not exist.'

You'll probably never see this but for others that search..

On Mac I've found that just installing http://ubaa.net/shared/processing/opencv/download/opencv-framework.1.1.dmg is not enough. You also need to download http://ubaa.net/shared/processing/opencv/download/opencv_01.zip and place the contents in your sketchbook folder's library.

It will look like this after you are done:

{sketchbook folder}/libraries/OpenCV

daniela said...

Hi
I am trying run it on processing but i can't make it work.

i am in windows vista and i get this error:


!!! required library not found : C:\Users\normadlm\Desktop\processing-1.2.1\processing-1.2.1\libraries\OpenCV\library\OpenCV.dll: Can't find dependent libraries
Verify that the java.library.path property is correctly set and the '\path\to\OpenCV\bin' exists in your system PATH

can you help me?

Bitartist said...

Do u install opencv:
http://ubaa.net/shared/processing/opencv/download

please download and install it to your system.

daniela said...

yes i have install that directory of opencv in the processing 1.2.1 libraries directory.

and i have the same error... :(

Bitartist said...

Did you try the comment here:
http://processing.org/discourse/yabb2/YaBB.pl?num=1238338691/15

I think you just have to set the correct system path to your opencv path.

Chris said...

I have been trying on and off for a year to get
OpenCV working with Processing sketches.

I always get:
The package “Hypermedia” does not exist etc etc warnings on compile.

Many others have had similar problems – there’s a thread that has been discussing the problem for over a year, with no solution apparent:
http://processing.org/discourse/yabb2/YaBB.pl?num=1238338691/0

I have tried all the suggestions on this thread, and many others, on four different Windows XP machines, with every version of OpenCV ever released.
I can’t get the darn thing to work.

Is anyone clever enough to have a solution?

Chris said...

I have been trying on and off for a year to get
OpenCV working with Processing sketches.

I always get:
The package “Hypermedia” does not exist etc etc warnings on compile.

Many others have had similar problems – there’s a thread that has been discussing the problem for over a year, with no solution apparent:
http://processing.org/discourse/yabb2/YaBB.pl?num=1238338691/0

I have tried all the suggestions on this thread, and many others, on four different Windows XP machines, with every version of OpenCV ever released.
I can’t get the darn thing to work.

Is anyone clever enough to have a solution?

Fawei Zhang said...

Hello!

The above download link(http://labs.bitartist.org/mona_lisa.zip) is not working.

could you please update the new download link or could you please send me the mona lisa code for this project to faweiz@gmail.com??

Thank you for your sharing!
Fawei

Fawei Zhang said...

Hello!

The above download link(http://labs.bitartist.org/mona_lisa.zip) is not working.

could you please update the new download link or could you please send me the mona lisa code for this project to faweiz@gmail.com??

Thank you for your sharing!
Tony