There are 2 ways of my inference the model on HAILO 8L with Raspberry PI5.
1 - using Raspberry PI as degirum server - all logic and all preparations are done on my PC. In this case I have inference speed 44-45 fps.
2 - using Raspberry for running all code. In this case the inference speed is 24-25 fps.
I belive this is due PRE and POST processes, running on RAspberry.
In my case I have video from IP camera, I transform this video via ffmpeg to grayscale and resize it to 640x640.
My question is - may I avoid PRE and POST processes by prepearing video by ffmpeg to appropreate format. For my work I need just Object ID and its bbox (on each frame).
My goal is to increase fps.
As the ffmpeg is the nessesary step - I want to do by this step all works for image preparation - to make inference task as light and fast as possible.
Thank you for advance!