Saturday, July 14, 2018

[Qt5] How to develop Qt5 GUI with TensorFlow C++ library?

Here I give a simple and complete example of how to develop Qt5 GUI with TensorFlow C++ library on Linux platform. Please check out my GitHub's repository as follow:
https://github.com/teyenliu/tf_inference_gui


Please refer to this document to install Qt5
# Install Qt5
https://wiki.qt.io/Install_Qt_5_on_Ubuntu

For building TensorFlow C++ APIs library, you can refer to my previous post:
https://danny270degree.blogspot.com/2018/07/tensorflow-how-to-build-your-c-program.html

I think the key point is how to prepare the CMakeLists.txt and you can refer to mine. If you use Qt Creator to open this project and make it, the GUI will look like this when running.


P.S: The related post for reference
https://blog.csdn.net/elaine_bao/article/details/78702236
https://tebesu.github.io/posts/Training-a-TensorFlow-graph-in-C++-API

No comments: