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


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

vBulletin® Version 3.8.8