This should be good enough:Allocate — Python productivity for Zynq (Pynq)
The above doc explains how ot use the API. For the complete example, either use Cathal’s example, or something like: https://github.com/Xilinx/PYNQ-HelloWorld/blob/master/boards/Pynq-Z1/resizer/notebooks/resizer_PL.ipynb
You just have to replace the xlnk calls;
xlnk = Xlnk()
in_buffer = xlnk.cma_array(shape=(old_height, old_width, 3),
dtype=np.uint8, cacheable=1)
out_buffer = xlnk.cma_array(shape=(new_height, new_width, 3),
dtype=np.uint8, cacheable=1)
to the API mentioned at the beginning.