I am writing a cpp app which has multiple options for the device to run the inference on e.g. hailo, orin, .... Thus, I want to implement hailo inference as a class and call its "infer" method to run the inference. All the examples I see have the configuration in the main function but do not implement it as a class. I tried an implementation like the following code but I get the following when I try to run inference:
Failed to write data to the device
[HailoRT] [error] CHECK failed - Trying to write to vstream efnet0/input_layer1 before its network group is activated
Hello,
I am writing a cpp app which has multiple options for the device to run the inference on e.g. hailo, orin, .... Thus, I want to implement hailo inference as a class and call its "infer" method to run the inference. All the examples I see have the configuration in the main function but do not implement it as a class. I tried an implementation like the following code but I get the following when I try to run inference:
My code is: hailoRT.h
hailoRT.cpp
It would be great if you can refer me to such an example or guide me on how I can do it.
Thanks!