(Project architecture) - C++ GUI calling Python application. How to?

Viewed 47

My project is composed of two sections:

  • A GUI - programmed in C++ with QT
  • A Python application - doing some image processing (AI)

My problem is that I want my GUI to be able to call the Python app to process an image and then, receive the result. My project should be multi-platform.

My question is, what is the best solution to my situation based on your experience?

My hypothesis:

  1. A python web API <---> C++ GUI. (Easiest solution but I would need a physical server...)
  2. A Cython .so library embedded in the c++ GUI application. (Seems possible but not enough documentation on internet to do so)
  3. A Python program communicating with my GUI using MPI (Message Passing library). So, having two processes running on the system and communicating with each other.
0 Answers
Related