The Following 4 Users Say Thank You to klen For This Useful Post: | ||
|
2010-06-02
, 10:15
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
|
2010-06-02
, 19:21
|
Posts: 8 |
Thanked: 1 time |
Joined on May 2010
|
#3
|
|
2010-06-07
, 06:45
|
Posts: 8 |
Thanked: 1 time |
Joined on May 2010
|
#4
|
Files to deploy: /scratchbox/users/maemo/home/maemo/OwnProjects/AWESOME/DistanceQT-build/DistanceQT. Deployment finished. Starting remote application. chmod u+x /home/developer/DistanceQT; source /etc/profile; /h ome/developer/DistanceQT Pipline initialized! GST error: v4l2camsrc_calls.c(686): gst_v4l2camsrc_open (): /GstPipeline:test-camera/GstV4l2CamSrc:camera_src: system error: Permission denied Aborted
/scratchbox/tools/bin/misc_runner: /targets/links/scratchbox.config: No such file or directory
|
2010-06-10
, 15:14
|
Posts: 8 |
Thanked: 1 time |
Joined on May 2010
|
#5
|
gst-launch v4l2camsrc device=/dev/video0 ! video/x-raw-yuv,width=480,height=272 ! videorate ! capsfilter caps="video/x-raw-yuv,width=480,height=272,framerate=(fraction)12/1" ! queue ! ffmpegcolorspace ! faceblur ! ffmpegcolorspace ! xvimagesink
WARNING: erroneus pipeline: no element "faceblur"
|
2010-08-27
, 09:43
|
Posts: 61 |
Thanked: 77 times |
Joined on Dec 2009
@ Lancaster
|
#6
|
Hi,
EDIT:
There are simply no OpenCV-GStreamer plugins available according to Daniil (thanks!), which is the reason why the pipeline doesn't work.
Dorfmeister
IplImage *frame; frame = cvCreateImageHeader(cvSize(CameraN900::buffer_width,CameraN900::buffer_hight), IPL_DEPTH_8U, 3);
cvSetData(tracker->frame ,data,CameraN900::buffer_width*3);
cvResize(tracker->frame,tracker->frameBGR);
|
2010-12-29
, 13:03
|
Posts: 7 |
Thanked: 3 times |
Joined on Jan 2009
|
#7
|
Just to make life easier to anyone who wants to do AR on N900 i have a few suggestions.
1.) Use openCV library for any tracking and image manipulation. It is an amazing library that is available in the repo.
M900:
$ apt-get install libcv4 libcvaux4 libhighgui4
Scratchbox:
$ apt-get install libcv4 libcv-dev opencv-doc libcvaux-dev libcvaux4 python-opencv libhighgui-dev libhighgui4
2.) For capturing video use openCV library calls or go through the hassle of GStreamer (appsink element) which can be integrated with QT using QGLWidget object. I attached source code of a project GstOpenGL that demonstrates how this can be done. Make sure you have qt 4.6 on your N900 or scratchbox. The GstOoenGL does not use openCV.
The code has not been cleaned and optimized but should save you time.
Klen
Last edited by klen; 2010-06-02 at 11:15.