Transform Keras .h5 model to model usable by OpenCV (Emgu)

I’m a newbie in image classification. I’ve created a model with the easy-to-use website Teachable Machine

The trained model performs very well with the preview included in the site.

I’ve exported the model to Keras .h5 model (you can download it at

After some time, I’ve managed to use it with TensorFlow 2.4.0 and Keras 2.4.3.

But my goal is to use it with Emgu (OpenCV) in C#; with Emgu.CV.DnnInvoke.ReadNetFromXXX

I’ve tried several scripts found on the internet to transform the .h5 file to another format readable by Emgu with no success.

I would like an easy way to achieve this. Thanks.