CPP-Call-Tensorflow icon indicating copy to clipboard operation
CPP-Call-Tensorflow copied to clipboard

adding a function to pass (image as cv::Mat format from cpp) and receive numpy variable in python script

Open kerolos opened this issue 7 years ago • 1 comments

Dear Mr Wei Li(Lee); i would like to ask you if it is possible to add a function to convert cv::mat to numpy and path this numpy variable to a python script, and then return the output to cpp code.

i tried using this link https://github.com/yati-sagade/opencv-ndarray-conversion for converting the formate between cpp and python, but it seems it will take a long time.

thanks in advance

kerolos avatar Jul 09 '18 11:07 kerolos

maybe you can use pybind11?

BIGBALLON avatar Jul 30 '18 09:07 BIGBALLON