2020-03-22 02:02 AM
Hi,
I'm working on a project involving using NN with cube ai to track objects from images coming from a camera sensor.
I would like to find a way to downsample an image in the fastest / less cpu intensive way possible (the video feed is approximately 8fps and i'd like to leave the cpu unused most of the time to have more computing power for the ai library).
Downsampling from dcmi directly is not an option (need to show the full resolution, full framerate image on an lcd).
How could i go about it? I looked ad the dma2d documentation and didn't find anything regarding downsampling, what is the usual way to solve this problem?
2020-03-22 06:46 AM
Just an idea, not sure if it works.
Blend even numbered horizontal lines with odd numbered ones to halve the vertical resolution, repeat if necessary.
Then do the same with vertical lines.
After each pass, prepare the next one in the transfer complete interrupt.