maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Have anyone tried n900's face detection using ROS & OpenCV ? (https://talk.maemo.org/showthread.php?t=67375)

AgogData 2010-12-24 00:40

Have anyone tried n900's face detection using ROS & OpenCV ?
 
This looks nice but mind the warning

Quote:

Disclaimer
Careful while tinkering with your N900, you may "brick" it (if you don't know what I mean, close this page). And I wouldn't be responsible if this would occur, or if anything would turn into something bad. You've been warned.

http://sirloon.net/loonaweb/sirblog/...ros-and-opencv

Radicalz38 2010-12-24 00:44

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
I tried downloading it but never successfully installed it... I got lost on a specific step on that a long time ago and I don't see any posts here about ROS suppor so decided to abandon it. :p

AgogData 2010-12-24 10:04

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
i searched the whole community and for youtube video with no results, maybe its trolling

nicolai 2010-12-26 21:54

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
install gst-opencv
download a profile file, for example
from http://code.google.com/p/jviolajones...ce_default.xml
execute gst-launch with the facedetect module:
gst-launch-0.10 v4l2camsrc device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! videobalance brightness=0.3 contrast=2.0 ! gamma gamma=1.5 ! ffmpegcolorspace ! facedetect profile="/home/user/haarcascade_frontalface_default.xml" ! ffmpegcolorspace ! ximagesink

hycraig 2010-12-26 22:22

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
heres some face tracking videos i found
using N900 http://www.youtube.com/watch?v=5TDO9...layer_embedded
using opencv http://www.youtube.com/watch?v=MD7NNCZRVds
it would be great to see this sort of feature used on N900 in some way :)

epitaph 2010-12-26 23:01

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
Quote:

Originally Posted by nicolai (Post 904870)
install gst-opencv
download a profile file, for example
from http://code.google.com/p/jviolajones...ce_default.xml
execute gst-launch with the facedetect module:
gst-launch-0.10 v4l2camsrc device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! videobalance brightness=0.3 contrast=2.0 ! gamma gamma=1.5 ! ffmpegcolorspace ! facedetect profile="/home/user/haarcascade_frontalface_default.xml" ! ffmpegcolorspace ! ximagesink

i did. but all i get is black screen with grey rectangle in the middle.
The program itself prints

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstXImageSink:ximagesink0: Output window was closed
Additional debug info:
ximagesink.c(1112): gst_ximagesink_handle_xevents (): /GstPipeline:pipeline0/GstXImageSink:ximagesink0
Execution ended after 21885589603 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Also the led in the front turns red. Can u help please!

nicolai 2010-12-26 23:09

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
The front camera is pretty bad, be sure
there is enough light.
Or you use the backcamera by
changing the line
"device=/dev/video1"
to
"device=/dev/video0"

nicolai

flipalong 2010-12-26 23:15

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
theres also this REALLY COOL thingo using facetracking :)

http://www.youtube.com/watch?v=yWPNN...layer_embedded

not sure if it uses ros or opencv or anything though. :P

epitaph 2010-12-26 23:16

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
i will try tomorrow. but it is a rectangle totally grey. anything else i need to know?

nicolai 2010-12-26 23:24

Re: Have anyone tried n900's face detection using ROS & OpenCV ?
 
1 Attachment(s)
I hoped that I don't have to do this, but here is a screenshot:-)


All times are GMT. The time now is 18:00.

vBulletin® Version 3.8.8