davidelahoz

Results 7 comments of davidelahoz

After testing the generated module, it seems that cv.Mat objects cannot be received by c++ methods

I can make one. How can I send it to you? Should I attach it to this thread?

I provide below the required files and system configuration to reproduce this: # Steps to reproduce the warnings 1. Setup the folder structure provided below 2. Run the following commands:...

It seems that this can be solved by adding `defined` keyword to those preprocessor commands that where failing. For example, changing `#if !_CV_NUMPY_##type##_` to `#if !defined(_CV_NUMPY_##type##_)` in line 37 of...

Adding `defined` solved all warnings provided above, yet the resulting module is still unable to receive cv::Mat objetcs. Is the following swig interface correct? # example.i *(copied from https://github.com/renatoGarcia/opencv-swig/issues/31#issuecomment-2065932116)* ```...

If I generate an image from my module using the following function other functions are able to read it: ``` cv::Mat testReturn(){ cv::Mat img1(500, 1000, CV_8UC3, cv::Scalar(10, 100, 150)); return...

**Solved:** Opencv-swig requires converting opencv objects to an internal class of the generated module. This can be achieved by using `module_name.Mat.from_array(OpenCV_image)`. Then, the result needs to be converted to an...