Interfacing with .eim file in C++?

Is it possible to interface with a .eim file using c++ for object detection? I see where python, go, and nodejs can, but what about c++? If so, how is this done? I want to see if this method produces inference times equivalent to running the edge-impulse-linux-runner in the terminal, which are on par with the predicted times in the studio. The c++ sdk does not produce the best results. Thanks


Yes this is possible. You’ll have to write C++ code that interacts with the EIM. Check out the protocol defined here.

You mention that C++ SDK does not produce similar results as the EIM. Can you provide more details on you generated the C++ SDK, built the application and on which target?

// Raul

@rjames Thank you for the response. Turns out the discrepancy in inferencing times was largely due to not compiling my code with hardware acceleration flags for the RaspberryPi 4. I set EON to off, built a float32 c++ SDK, and now I am getting the advertised times, which are the same as what the .EIM produced. Thankfully, I no longer need to interface with the .eim!

1 Like