maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   BurgerFace: Face tracking in a game (https://talk.maemo.org/showthread.php?t=45866)

zehjotkah 2010-03-02 07:07

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by jfk (Post 551409)
Yeah, my experiments have also shown that the lighting can be "too" good. The detection doesn't work that well when the light comes from behind you or from the side so that your face is not evenly illuminated.

or if something is in the background.

jfk 2010-03-02 08:48

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by zehjotkah (Post 552075)
or if something is in the background.

I can't confirm that. For me, it also works with cluttered backgrounds. The lighting conditions are more important (which is no surprise with that front camera quality ;)).

If you want to you can send me some screenshots of situations where it doesn't work for you so I can get a clearer picture of the problems.

klen 2010-03-03 12:33

Re: BurgerFace: Face tracking in a game
 
Surprisingly responsive. Works great. Took the survey :).

I am trying to draw over a video stream and came across your application. How did you implement the drawing over a video stream? I guess your application is a GTK+ app. Do you have any suggestions on how to do it in QT? Thread on this topic.

Thanks for help.

Cheers,
Klen

jfk 2010-03-03 14:07

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 553803)
Surprisingly responsive. Works great. Took the survey :).

I am trying to draw over a video stream and came across your application. How did you implement the drawing over a video stream? I guess your application is a GTK+ app. Do you have any suggestions on how to do it in QT? Thread on this topic.

Thanks for help.

Cheers,
Klen

I don't use GTK. I use SDL and copy the image data from the camera manually to the screen. Overlays don't seem to work as they cause flickering.

Hope that helps. :)

klen 2010-03-05 10:01

Re: BurgerFace: Face tracking in a game
 
Is it possibe to find a source code of your project or get any snippets of the part of code where you use SDL to capture an image and draw it to the screen?

I am working on a QT camera tutorial. I plan to capture the image with SDL library and then draw the image on a QWidget.

Thanks for your help.
Klen

jfk 2010-03-05 10:07

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 556629)
Is it possibe to find a source code of your project or get any snippets of the part of code where you use SDL to capture an image and draw it to the screen?

I am working on a QT camera tutorial. I plan to capture the image with SDL library and then draw the image on a QWidget.

Thanks for your help.
Klen

Currently, there is no source code available.

Sorry, if I confused you. I use SDL only to draw to the screen. I use V4L2 for getting camera images. Alternatively, you can use GStreamer which is a little more user-friendly.

F2thaK 2010-03-05 10:11

Re: BurgerFace: Face tracking in a game
 
cool game!!!!!!!!!!!!!!!!!!!!

klen 2010-03-05 11:11

Re: BurgerFace: Face tracking in a game
 
Thanks for clarifying this for me. No worries about the source code. I understand it perfectly. Probably they will become accessible after you finish your phd :).

Just one final thing I want to ask you. What was the main reason for you to use SDL instead of QT libraries?

Is it much easier to process and draw images in SDL compared to QT libraries?

Are they much faster than QT or any other libraries?

Would you use them again if you started from scratch?

Thanks again,
Klen

jfk 2010-03-05 11:34

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 556715)
Thanks for clarifying this for me. No worries about the source code. I understand it perfectly. Probably they will become accessible after you finish your phd :).

Whoops, it's actually only a Diplom. :)

Quote:

Originally Posted by klen (Post 556715)
Just one final thing I want to ask you. What was the main reason for you to use SDL instead of QT libraries?

Is it much easier to process and draw images in SDL compared to QT libraries?

Are they much faster than QT or any other libraries?

Would you use them again if you started from scratch?

Thanks again,
Klen

I'm using SDL because it's made for games, works well and I already knew it. Honestly, I don't really know anything about QT. But, as it is a GUI toolkit it's probably not that well suited for games where you basically just need fast and easy drawing of images. ;)

So, I can't compare SDL and QT because I don't know QT and because they are meant for two completely different things. I'd use SDL again because it works the way I need it to.

klen 2010-03-05 11:39

Re: BurgerFace: Face tracking in a game
 
Thx again and good luck with your diploma :).

Cheers,
Klen

dwould 2010-03-05 12:15

Re: BurgerFace: Face tracking in a game
 
i was very impressed at how well it worked for me, and then surprised how it totally didn't work for my fiancee. turns out it was totally thrown by her glasses. when she took them off it detected her just fine. i suppose i was quiet impressed that the face detection was detecting specifically enough for that to be a problem.

still very cool.

jfk 2010-03-05 12:22

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by dwould (Post 556766)
i was very impressed at how well it worked for me, and then surprised how it totally didn't work for my fiancee. turns out it was totally thrown by her glasses. when she took them off it detected her just fine. i suppose i was quiet impressed that the face detection was detecting specifically enough for that to be a problem.

still very cool.

That's strange. I also wear glasses, which is not a problem at all. Is there anything special about her glasses?

klen 2010-03-05 12:38

Re: BurgerFace: Face tracking in a game
 
Forgot to mention this.

My dark skinned friend tried it. It did bit work. This raises some troubling issues with some people.

There was a big affair recently in US with HP releasing a tracking web cam that worked only on white skinned people. The company got a lot of bad publicity for that.

Article:
http://www.cnn.com/2009/TECH/12/22/h...ams/index.html

Klen

jfk 2010-03-05 12:52

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 556791)
Forgot to mention this.

My dark skinned friend tried it. It did bit work. This raises some troubling issues with some people.

There was a big affair recently in US with HP releasing a tracking web cam that worked only on white skinned people. The company got a lot of bad publicity for that.

Article:
http://www.cnn.com/2009/TECH/12/22/h...ams/index.html

Klen

That's good to know, thanks! I think I'll have to mention that in my thesis.

BaKSo 2010-03-05 13:06

Re: BurgerFace: Face tracking in a game
 
nice one will try soon...

i'am not a developer but imagine moving your head to swipe the desktop... or move your head up and down to scroll... omg..

F2thaK 2010-03-05 13:10

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by BaKSo (Post 556808)
nice one will try soon...

i'am not a developer but imagine moving your head to swipe the desktop... or move your head up and down to scroll... omg..

lighting is important, i had trouble showing a friend outside under verandah..... inside worked better

pta0007 2010-03-05 18:05

Re: BurgerFace: Face tracking in a game
 
Good Job!

I get several questions when doing some similar project. I hope you could offer me the help.

I would like to use opencv on n900 (actually, i dont know whether you were using opencv in your code), but I get no idea how to port and install opencv library and header files to the device. Any idea?

Cheers.

jfk 2010-03-05 18:55

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by pta0007 (Post 557119)
Good Job!

I get several questions when doing some similar project. I hope you could offer me the help.

I would like to use opencv on n900 (actually, i dont know whether you were using opencv in your code), but I get no idea how to port and install opencv library and header files to the device. Any idea?

Cheers.

Sorry, I can't help you. I don't use OpenCV (at least not on the N900). So I've got no clue either. :)

jfk 2010-03-08 09:54

Re: BurgerFace: Face tracking in a game
 
Thanks a lot to everyone who has participated in the survey! :) I just closed it and now it's time to evaluate the results.
The game can still be downloaded though.

pagesix1536 2010-03-08 19:56

Re: BurgerFace: Face tracking in a game
 
Wicked cool game, I didn't have a lot of high hopes for it when I saw the screen shot, but after playing it I have to admit it's quite addicting and amazing to play. Great job on it!

buxz777 2010-03-08 20:12

Re: BurgerFace: Face tracking in a game
 
surely face tracking could be adapated to the camera for face recognition

good work by the way nice game

sachin007 2010-03-08 20:14

Re: BurgerFace: Face tracking in a game
 
This app was mentioned on cnet

http://www.cnet.com.au/face-detected...-339301594.htm

jfk 2010-03-08 20:16

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by sachin007 (Post 560406)

Yeah, I already saw that. :) And I already feel a little like the Ultimate Warrior. ;)

mikebravo 2010-03-11 22:20

Re: BurgerFace: Face tracking in a game
 
It looks like a great game, can't play, is missing installed files. How do i get it installed en if you say something about a code then what application do i need to run to enter en execute the code?

Thanks in advance, can t wait to see the game running

jfk 2010-03-11 22:47

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by mikebravo (Post 564369)
It looks like a great game, can't play, is missing installed files. How do i get it installed en if you say something about a code then what application do i need to run to enter en execute the code?

Thanks in advance, can t wait to see the game running

Uh, what code?
Does this post maybe help you?

mikebravo 2010-03-12 08:35

Re: BurgerFace: Face tracking in a game
 
I installed roots, then opend terminal x, this opend with home / user #
then I entert the text sudo gainroot
apt-get install libsdl-ttf2.0-0

Then its resonse is: could not get lock/var/lib/dpkg/lock - open (resource temporarily unavailable)

What do I do wrong?

Thanks for your help sofar.

zehjotkah 2010-03-12 08:44

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by mikebravo (Post 564765)
I installed roots, then opend terminal x, this opend with home / user #
then I entert the text sudo gainroot
apt-get install libsdl-ttf2.0-0

Then its resonse is: could not get lock/var/lib/dpkg/lock - open (resource temporarily unavailable)

What do I do wrong?

Thanks for your help sofar.

do you have the program manager still open?
If so, then close it first, wait a minute and try again.

mikebravo 2010-03-12 08:52

Re: BurgerFace: Face tracking in a game
 
Thanks, now it works, great help here!!

klen 2010-03-13 10:39

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by jfk (Post 553961)
I don't use GTK. I use SDL and copy the image data from the camera manually to the screen. Overlays don't seem to work as they cause flickering.

Hope that helps. :)


Hello,

It this post you mentioned that overlays caused flickering. I noticed that myself in case of change the size of the window. Did you notice flickering at any other operation as well? If so, can you pleas name those operations (i.e. drawing over the captured stream, catching on click events,...).

Thanks again for your help,
Klen

jfk 2010-03-13 11:10

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 565916)
Hello,

It this post you mentioned that overlays caused flickering. I noticed that myself in case of change the size of the window. Did you notice flickering at any other operation as well? If so, can you pleas name those operations (i.e. drawing over the captured stream, catching on click events,...).

Thanks again for your help,
Klen

No, I've only been drawing on top of the camera image. I haven't checked any other operations.

klen 2010-03-13 11:33

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by jfk (Post 565935)
No, I've only been drawing on top of the camera image. I haven't checked any other operations.

I guess this means that when you tried to draw something on top of the camera stream, this caused flickering?

jfk 2010-03-13 11:37

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by klen (Post 565955)
I guess this means that when you tried to draw something on top of the camera stream, this caused flickering?

Yes, right. I thought I had already said so. :)

pta0007 2010-03-29 18:05

Re: BurgerFace: Face tracking in a game
 
Hi jfk,

I hope you could remember me. I commended your post of "burger face" a couple of weeks ago. I downloaded your app

and tried it on the device, to find out that it's really running very fast, which is the issue I want to ask about.

I am using opencv to do the hand detecting with N900. It could work. However, the problem is opencv's function such

as color segmetation, is very very expensive that the app running on the device is too slow to be shown as a demo.

I know you are not using opencv for the burgerface, but I hope you could share with me some skilful methods to

improve the speed of the app, if you have any. :)

It would be kind of you if you could offer me your email address, since I think we are doing some research very

similar. Anyway, I hope to keep contacted with you.

Cheers.

neboja 2010-04-10 20:59

BurgerFace XD
 
http://johanneskuhlmann.de/blog/2010...he-nokia-n900/



AHAHAHAHAHAHAHAHAHAHAHAHAHA!!!!!!!!!!
ok..... that is the best game i had ever seen for n900!!!!!!!!!!!!!
:D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

noobmonkey 2010-04-10 21:45

Re: BurgerFace XD
 
Or you could look at the authors post :) - Here :D

edit - Pretty redundant post now..... :D

Flandry 2010-04-10 21:55

Re: BurgerFace: Face tracking in a game
 
The thread Burgerface XD with 2 posts has been merged. The search box is in the upper right corner.

Since i am posting here, let me ask the OP a couple questions:
Did you make your own implementation of the Viola-Jones algorithm?
Did you compare the performance of multiple approaches?
What kind of framerate can this algorithm get?

Thanks for the interesting tech demo. :).

neboja 2010-04-10 22:42

Re: BurgerFace XD
 
Quote:

Originally Posted by noobmonkey (Post 604666)
Or you could look at the authors post :) - Here :D

edit - Pretty redundant post now..... :D

oh, i have seen it just now! phenomenal!!!!!! :D

jfk 2010-04-22 21:57

Re: BurgerFace: Face tracking in a game
 
Quote:

Originally Posted by Flandry (Post 604682)
The thread Burgerface XD with 2 posts has been merged. The search box is in the upper right corner.

Since i am posting here, let me ask the OP a couple questions:
Did you make your own implementation of the Viola-Jones algorithm?
Did you compare the performance of multiple approaches?
What kind of framerate can this algorithm get?

Thanks for the interesting tech demo. :).

Sorry for the slow answer, but I didn't get an e-mail probably because of the thread merging (or I don't know).

Yes, I implemented the Viola-Jones algorithm myself, including the trainer. It's pretty much the version of the algorithm they described in their original paper(s).

I compared it to a completely different approach which didn't work out that well. That is also why I selected Viola-Jones for the game. There is some additional information in the abstract of the thesis.

The framerate depends vastly on the window selection parameters and the cascade that is used. My cascade is pretty small. While it's quality is not that good, it can be executed very quickly. The demo, which can be downloaded, runs at around 20 FPS. It can be tuned to run faster or slower and thus I can either sacrifice detection rate or speed.

mornage 2010-04-23 16:29

Re: BurgerFace: Face tracking in a game
 
I like it! pretty simple gameplay wise but damn good fun! I have my house mates playing it now though and they wont give my ohone back :(

GameboyRMH 2010-04-30 15:29

Re: BurgerFace: Face tracking in a game
 
I got it working after installing the missing package. I'll have to try it at home, where the lighting's better and I won't look insane :D nice work though!


All times are GMT. The time now is 09:44.

vBulletin® Version 3.8.8