KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an OpenCV project mixing Python and C. After changing to OpenCV 2.1, my calls to C code are not working any more, probably because OpenCV is no more using SWIG bindings. From Python, I was used to call a C function with the following prototype: int fast_support_transform(CvMat * I, CvMat * N,...); Now, I get the following error: TypeError: in method 'fast_support_transform', argument 1 of type 'CvMat *' The C code is from a library created by me that uses SWIG to produces the Python interface. I'm not sure, but I think OpenCV is using ctypes now and this code is unable to send a CvMat pointer to my native code. Do you know about a fast fix to this problem? Any tips are welcome. UPDATE : Visitors, note this question is outdated . Python support in OpenCV is very mature now. CvMat is being represented as a Numpy array by default now.
Tags (comma-separated)
Save Edits
Cancel