Go to advanced search

by wibble82
Sun Oct 27, 2013 4:53 pm
Forum: Camera board
Topic: GPU Accelerated Processing Of The Camera Feed
Replies: 10
Views: 9191

GPU Accelerated Processing Of The Camera Feed

Hey there! I've just finished my latest bit of hackery - accelerating image processing using the GPU. The idea is to do lots of expensive preprocessing of images (such as edge detection) on the cpu before handing off the results to opencv to do the more cpu suited work. http://www.cheerfulprogrammer...
by wibble82
Sun Oct 27, 2013 9:21 am
Forum: Camera board
Topic: egl_render, eglimage and MMAL_ENCODING_EGL_IMAGE
Replies: 4
Views: 1245

egl_render, eglimage and MMAL_ENCODING_EGL_IMAGE

Hi I've been doing some diggin trying to work out if it's possible to get from mmal into opengl somehow. Along my travels I discovered that there is an omx component that writes to an egl image that can then be used to render (as per the video_cube example). However this uses all OMX components, whi...
by wibble82
Sun Oct 27, 2013 8:22 am
Forum: C/C++
Topic: How to control camera module from C++
Replies: 9
Views: 20553

Re: How to control camera module from C++

Just added this to my blog:

http://robotblogging.blogspot.co.uk/201 ... i-for.html

It's a much simpler system for reading the camera in c++. Enjoy!
by wibble82
Sat Oct 26, 2013 10:59 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 14871

is there a way to get from mmal to opengl texture

Hey I've been tinkering with the innards of mmal to make a little camera api, but want to mess with accelerating it using opengl. Currently I have to take the buffer from mmal, into cpu accesible memory, then hand it to opengl to put in a texture. It strikes me though that mmal probably already has ...
by wibble82
Sat Oct 26, 2013 9:58 pm
Forum: Camera board
Topic: Raw Video
Replies: 11
Views: 5340

Re: Raw Video

I guess, but it depends what you want to do with it. A good example of something I intend to do is: - output a full res version and a quarter res version (using the resize component) - do face detection with a low threshold in the quarter res version - verify the results of the detected faces in th...
by wibble82
Sat Oct 26, 2013 9:35 pm
Forum: Camera board
Topic: An efficient and simple camera API - ready for use!
Replies: 18
Views: 5836

An efficient and simple camera API - ready for use!

Hey I've just finished version one of a nice and simple c++ api for the camera. It allows you to get at the raw data coming out of the camera (in RGB or YUV) and supports giving you multiple downsamples for image processing. Performance varies on what you do with it, but is generally good (you can f...
by wibble82
Sat Oct 26, 2013 9:47 am
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

Now with a syncronous camera api, at 15hz at 720p now. Getting multiple levels of detail in next...

http://robotblogging.blogspot.co.uk/201 ... age-5.html
by wibble82
Sat Oct 26, 2013 9:46 am
Forum: Camera board
Topic: Raw Video
Replies: 11
Views: 5340

Re: Raw Video

I guess, but it depends what you want to do with it. A good example of something I intend to do is: - output a full res version and a quarter res version (using the resize component) - do face detection with a low threshold in the quarter res version - verify the results of the detected faces in the...
by wibble82
Fri Oct 25, 2013 10:32 pm
Forum: Camera board
Topic: Raw Video
Replies: 11
Views: 5340

Re: Raw Video

Hey Gotta disagree with Jamesh there - I've got the system providing the raw YUV data at full frame rate - whether you can do anything with it at 30hz is a different question! In my latest update I've got RGB data now being generating at full frame rate, although it stops being possible to render it...
by wibble82
Fri Oct 25, 2013 9:51 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

Update: image resizer works! pretty slow though - seems to be chomping up lots of the gpu time. http://robotblogging.blogspot.co.uk/2013/10/pi-eyes-stage-4.html Still, that alone opens up a fair few doors :) I'm going to look at making an easier api (syncronous 'getframe' style calls), and generatin...
by wibble82
Fri Oct 25, 2013 7:08 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

Latest update: http://robotblogging.blogspot.co.uk/2013/10/pi-eyes-stage-3.html Got it rendering the results through opengl. No rgb conversion yet, but very promising. This basically means I can now create a pipeline which is camera -> memory -> opencv -> opengl -> screen. First attempt has the 720p...
by wibble82
Thu Oct 24, 2013 9:43 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

Interesting - I'll have a look at the image converter. The documentation does suggest it'll happily convert formats while resizing. Just getting my outputs actually rendering on screen first though so I can see what's going on :)
by wibble82
Thu Oct 24, 2013 8:47 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

Do you know if there's a converter component in mmal to get into the RGB space? Documentation on it seems minimal at best!
by wibble82
Thu Oct 24, 2013 8:23 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

Re: A c++ camera api

@jamesh - thought I'd tried that but gave it another go. I think the still port must support colour conversions that the video port doesn't, as setting to BGR24 (like the yuv app does) results in a fail-to-set video port format error. @jbeale. while I've not tried it, I see no reason why you couldn'...
by wibble82
Thu Oct 24, 2013 6:43 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 24734

A c++ camera api

Hey Update: New and better version of the api, along with instructions is here: http://robotblogging.blogspot.co.uk/2013/10/an-efficient-and-simple-c-api-for.html In case it's useful for anyone, I've started work on a basic api to easily get the camera data in c++ (primarily for my own purposes). Ba...
by wibble82
Sun Jan 27, 2013 5:08 pm
Forum: Graphics, sound and multimedia
Topic: Webcam stream
Replies: 38
Views: 67405

Re: Webcam stream

Hi I just posted this tutorial on getting a basic web cam working - might be helpful: http://robotblogging.blogspot.co.uk/2013/01/pi-vision-10.html Then again, it might just repeat the same things as below and have the same issues. Will be following it up with reading the stream in code and renderin...

Go to advanced search