barniekim / cpp-face-morph-server

A server-side (TCP server) face morphing engine implemented by Delaunay Triangulation in C++ with OpenFace, OpenCV, and Boost.
MIT License
10 stars 4 forks source link

Update to recent OpenCV #3

Open paulocoutinhox opened 5 months ago

paulocoutinhox commented 5 months ago

Hi,

Can you pls update to recent opencv 4.9?

Some errors:

/Users/paulo/Developer/workspaces/cpp/cpp-face-morph-server/server/lib/local/fld-core/src/Patch_experts.cpp:230:11: error: no viable conversion from 'cv::Mat_<float>' to 'CvMat'
                                CvMat area_of_interest_o = area_of_interest;

/Users/paulo/Developer/workspaces/cpp/cpp-face-morph-server/server/lib/local/fld-core/src/Patch_experts.cpp:231:11: error: no viable conversion from 'cv::Mat' to 'CvMat'
                                CvMat sim_o = sim;

/Users/paulo/Developer/workspaces/cpp/cpp-face-morph-server/server/lib/local/fld-core/src/Patch_experts.cpp:232:14: error: no viable conversion from 'const cv::Mat_<uchar>' (aka 'const Mat_<unsigned char>') to 'IplImage' (aka '_IplImage')
                                IplImage im_o = grayscale_image;  

/Users/paulo/Developer/workspaces/cpp/cpp-face-morph-server/server/lib/local/fld-core/src/Patch_experts.cpp:257:12: error: no viable conversion from 'cv::Mat_<float>' to 'CvMat'
                                        CvMat dimg_o = depthWindow;
                                              ^        ~~~~~~~~~~~

/Users/paulo/Developer/workspaces/cpp/cpp-face-morph-server/server/lib/local/fld-core/src/Patch_experts.cpp:259:12: error: no viable conversion from 'cv::Mat' to 'CvMat'
                                        CvMat mimg_o = maskWindow;

[...]