Hello,
I am using the DMA to stream some rgb images to an accelerator following:
in_buffer[:] = np.frombuffer(data.data, dtype=np.uint8)
dma.recvchannel.transfer(out_buffer)
dma.sendchannel.transfer(in_buffer)
dma.sendchannel.wait()
dma.recvchannel.wait()
image_message.data = out_buffer.tolist()
I receive a list in data.data, which I have to convert to a PynqBuffer to send from PS to PL which I get back in another PynqBuffer but I need to convert that into a list back to send it somewhere else. That works fine, but the issue is that out_buffer.tolist()
is slower than doing the img processing on software.
Is there any better way to convert from PynqBuffer back to a list, faster?
Thanks for the help.