It is possible to use Tensorflow C++ API in QT project?

Viewed 5425

I trained a Tensorflow model for image classification using the Python API, then i saved the model checkpoint.

Now I want to load this model in a QT(C++) project.

After looking into documentations, I found that to use Tensorflow C++ API you need to create a project inside a clone of the TensorFlow github repository, then build it with Bazel, who is not possible in my case.

Is there a way to include tensorflow library in my QT project ?

3 Answers

It is also possible to use make instead of bazel to build the TensorFlow library for your target platforms.

You can find more information on building TensorFlow with a Makefile at the TensorFlow GitHub project.

You can also have a look at this guide and open-source example project for Image Classification and Object Recognition with Qt and TensorFlow. It describes how to build TensorFlow using make and integrates it to your Qt project using the QMAKE build system.

Related