For OCR detection and recognition model, the model will be applied in various/uncertain scenerios which users is uncertain. So it is necessary for the OCR model (similiar to ppocr) with dynamic shape. And the ppocr onnx model is dynamic shape too. But it seems that `hailo parser` in the 1st step only supports the certain shape (fixed W and H).
Is there any other ways to allow this kind of dynamic shape for OCR to be converted in Hailo NPU?
Regarding dynamic shapes: The Hailo Dataflow Compiler (Hailo DFC) currently does not support dynamic input shapes during the parsing phase. Only fixed input dimensions are supported at this time."
@omria Get it. Dynamic shape not supported. It means that most of the OCR model cannot be flexibly deployed with Hailo. It is a pity.
I’ve seen this demo before. It is a fixed input shape model which cannot be applied in uncertain shape scenerios.
Thanks anyway.
Hi @Kevin_Chen
Hailo does not support dynamic resolution for the network.
But you can definitely use it in an application with different input sizes. You’ll just have to resize the image before sending it to hailo. Do an aspect ratio preserving resize.
We will release an OCR example soon.
I can assure you it is possible