Hi,
this is related to my previous question, I think: AFAIK gst-opencv (
http://github.com/Elleo/gst-opencv) is the way to go. I haven't had time to try to port it, yet, but I would also be highly interested in having this package, since it would allow me to try opencv directly with gst-launch (which is a mighty tool). We could be barefaced and ask the maintainer of opencv whether he could include the gst-opencv package as well due to its importance of gstreamer to Maemo. I would REALLY appreciate that. The other variant would be to use OpenCV to retrieve the image. I tried that (
http://discussion.forum.nokia.com/fo...-in-Qt-example) by simply porting (
http://qt-apps.org/content/show.php/...?content=89995) - basically creating a .pro file and recompiling, but the performance was much worse than using GStreamer directly. I didn't fully understand why the performance was worse and haven't solved the issue, though.
I'm very busy right now, but if all else fails, I could try to port it myself next week. Furthermore, I'm obviously no expert in this, so I would appreciate it if someone with deeper insight could share his knowledge on the matter as well.
Best regards,
Dorfmeister
EDIT/PS:
OK, I tried
Code:
git clone git://github.com/Elleo/gst-opencv.git
/scratchbox/login
./autogen
Then I removed all -Werror flags and did
which seems to have worked out just fine. As previously stated, I unfortunately won't have time to look into it right now, but with this you can probably do what you intended to.
Oh, and you're right: The code you quoted is the one, which gets the camera image. I tapped into this part as well, even though the OpenGL stuff is obviously overlayed in other parts (where FPS is drawn).
EDIT/PPS:
I tried building the .deb package for you.
fakeroot apt-get install automake autoconf debhelper libtool
Since I still got:
Code:
dpkg-buildpackage: source package is gst-opencv
dpkg-buildpackage: source version is 0.1+git20100301ubuntu2
dpkg-buildpackage: source changed by Mike Sheldon <mike@mikeasoft.com>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 0.1+git20100301ubuntu2
: Using Scratchbox tools to satisfy builddeps
: Scratchbox has unsatisfying version: debhelper 5.0.42
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
I removed (>=7) from debhelper entry in debian/control. But I still get no .deb file:
Code:
[sbox-FREMANTLE_ARMEL: ~/OwnProjects/gst-launch/gst-opencv] > dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is gst-opencv
dpkg-buildpackage: source version is 0.1+git20100301ubuntu2
dpkg-buildpackage: source changed by Mike Sheldon <mike@mikeasoft.com>
dpkg-buildpackage: host architecture armel
dpkg-buildpackage: source version without epoch 0.1+git20100301ubuntu2
: Using Scratchbox tools to satisfy builddeps
fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
#/scratchbox/tools/bin/make clean
dh_clean
dh_clean: Sorry, but 5 is the highest compatibility level supported by this debhelper.
make: *** [clean] Error 1
Why?! Does anybody have any suggestions? Can I somehow easily install debhelper 7.0 or do I have to download and build it manually? How do I compile and install a package manually in scratchbox? From what I read I have to install packages in scratchbox in ARMEL and(!) x86 separately. If I build it in ARMEL, however, I build it for ARMEL, even though I'm on x86. How can I upgrade debhelper? (Probably trivial, but I already spent too much time on this - there are excercises and exams I have to prepare for.) Shouldn't be too difficult to get it working now, I hope. If anyone succeeds, please post the last steps. Thank you.