How to implement Array in python Swig.?
问题 I am wrote sample C++ application. Now I am going communicate with Python through Swig. What I did Generated interface file for my function classify.i %module example %{ #include "Facdetect.h" %} %include "typemaps.i" %include "cstring.i" %include "cdata.i" %include <std_string.i> %apply unsigned char *{unsigned char *x}; %apply double *INOUT{double *y}; %include "Facdetect.h" Facdetect.h #include <iostream> class facedetect { public: void display(unsigned char *x,double *y); }; sample.cpp