# Applying filter on image stored on PYNQ board

**URL:** <https://discuss.pynq.io/t/applying-filter-on-image-stored-on-pynq-board/1243>\
**Category:** Support\
**Created:** [May 9, 2020, 1:35pm UTC](https://discuss.pynq.io/t/applying-filter-on-image-stored-on-pynq-board/1243 "2020-05-09T13:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoir\_nechi](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anoir\_nechi](https://discuss.pynq.io/u/anoir_nechi)\
**Post date:** [May 9, 2020, 1:35pm UTC](https://discuss.pynq.io/t/applying-filter-on-image-stored-on-pynq-board/1243/1 "2020-05-09T13:35:56Z")

</div>

I am using a PYNQ-z1 ver 2.5 board  
I made an IP that takes an image and converts it from RGB to HSV. most of the examples take an HDMI streaming, access it frame by frame …  
in my case, I want to have a video that is already stored on the PYNQ board read it with OpenCV and do the process with an IP.  
should I also use the HDMI streaming like the published demos or use something else to make the IP read the images.

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [May 12, 2020, 8:15am UTC](https://discuss.pynq.io/t/applying-filter-on-image-stored-on-pynq-board/1243/2 "2020-05-12T08:15:16Z")

</div>

Hello @anoir_nechi,

I would recommend you to use a DMA engine to move the data from the PS to the PL, stitch your IP after the DMA and move back the result to the PS (assuming you want the result in PS).

This example could be of help [PYNQ\_Workshop/6\_dma\_tutorial.ipynb at master · Xilinx/PYNQ\_Workshop · GitHub](https://github.com/Xilinx/PYNQ_Workshop/blob/master/Session_4/6_dma_tutorial.ipynb)

This other one is quite similar to what you are trying to achieve [PYNQ-HelloWorld/resizer\_pl.ipynb at master · Xilinx/PYNQ-HelloWorld · GitHub](https://github.com/Xilinx/PYNQ-HelloWorld/blob/master/pynq_helloworld/notebooks/edge/resizer_pl.ipynb)

Mario
