Page 1 of 1

Can image effects only be applied to the camera component ?

Posted: Thu Jun 20, 2019 10:44 am
by GrubbyHalo
I would like to take advantage of some of the hardware accelerated effects (e.g. blur). Do these effects only apply to the camera component or can they be used by a resizer component for example ?

Re: Can image effects only be applied to the camera component ?

Posted: Thu Jun 20, 2019 11:50 am
by 6by9
They are supported by the camera and image_fx components.
If you wish to apply them to something other than the camera, create a MMAL (or IL if you must) pipeline with image_fx in, and you can then apply the effects.

Re: Can image effects only be applied to the camera component ?

Posted: Thu Jun 20, 2019 12:25 pm
by GrubbyHalo
6by9 wrote:
Thu Jun 20, 2019 11:50 am
They are supported by the camera and image_fx components.
If you wish to apply them to something other than the camera, create a MMAL (or IL if you must) pipeline with image_fx in, and you can then apply the effects.
That's great! I never knew there was an image_fx component. There doesn't seems to be any info on it in the mmal headers. Is there some documentation on it ? e.g. i would like to apply the blur filter to an image but would like to know what kind of blur (box, median, gaussian) and can i set a kernel size ?

Re: Can image effects only be applied to the camera component ?

Posted: Thu Jun 20, 2019 12:33 pm
by 6by9
HTML docs for all the IL / MMAL components are in the firmware repo - https://github.com/raspberrypi/firmware ... components. Someone is directly hosting a version of it at http://www.jvcref.com/files/PI/document ... omponents/ to save you having to download it and point a web browser at the files.

The broad descriptions of the effects is as per the OpenMax IL specifciation.
I previously checked out the parameters that each effect can take, and https://picamera.readthedocs.io/en/late ... ect_params was waveform80 typing those up.

Re: Can image effects only be applied to the camera component ?

Posted: Thu Jun 20, 2019 12:39 pm
by GrubbyHalo
6by9 wrote:
Thu Jun 20, 2019 12:33 pm
HTML docs for all the IL / MMAL components are in the firmware repo - https://github.com/raspberrypi/firmware ... components. Someone is directly hosting a version of it at http://www.jvcref.com/files/PI/document ... omponents/ to save you having to download it and point a web browser at the files.

The broad descriptions of the effects is as per the OpenMax IL specifciation.
I previously checked out the parameters that each effect can take, and https://picamera.readthedocs.io/en/late ... ect_params was waveform80 typing those up.
That's fantastic. Thank you very much.