Skip to content

Small working example of communication between python and c++ code

Notifications You must be signed in to change notification settings

BorderBoy/zmq-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zmq-example

Small working example of communication between python and c++ code. The python client reads images from files and encodes them into base64. These are then sent to OpenFace. OpenFace extracts the action units (AU) and sends them back to the python client.

Python

The python code can be found in py/. When the python client is executed it sends the first image, waits for the reply and sends the next one. This is done with all 6 images. Start the OpenFace extractor first, wait until the models are loaded and then start the python client.

OpenFace

This has only been tested for macOS.

The code can be found in open-face-extractor/. To build the code the contents of open-face-extractor/ must be placed into the exe/OwnExtractor folder of OpenFace. Additionally this line must be added to OpenFace/CMakeLists.txt:
add_subdirectory(exe/OwnExtractor)

To build OpenFace follow the instructions in the wiki.

When the binary is executed it waits for an image and replies. Then it waits for another image.

Used Libraries:

About

Small working example of communication between python and c++ code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages