I have no idea to create a python wrapper file for my source code, Any one of the expert can provide me a solution
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int my(Mat image)
{
cv::Mat out;
int z1=10;
if(! image.data ) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl ;
}
cvtColor(image, out,COLOR_BGR2GRAY);
imshow( "Display window", out); // Show our image inside it.
waitKey(0); // Wait for a keystroke in the window
return z1;
}