/cpp-python-communication

Interprocess communication between C++ and Python using ZeroMQ

Primary LanguageC++

C++ <-> Python using ZeroMQ

Interprocess communication between C++ and Python using ZeroMQ

Setup

Prerequisites

  • Windows
  • Visual Studio
  • Python3.6
  • OpenCV
  • Tensorflow and Keras

Getting Started

For C++

  1. Clone ZeroMQ
  2. Use CMake to generate VS solution file
  3. Build the solution file to generate libs and dlls
  4. Download ZeroMQ C++ wrapper cppzmq (zmq.hpp is needed)

For Python

Install zmq

pip install zmq

Run

  1. Compile cpp_python_com.cpp to generate an execution file
  2. Put images in sample directory (JPG only)
  3. Run the execution file
  4. classify.py returns VGG16 classification results for the images