You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2026. It is now read-only.
After doing that, the only remaining symbols not declared are cvLoadImage and cvSaveImage. This is apparently because they no longer exist, and instead have been replaced by cv::imread and cv::imwrite. Unfortunately, the latter two are different enough from the former two that you'd need more knowledge than I have about OpenCV (namely, zero) to fix them.
I use Linux Mint, and I would simply have worked around the problem by installing OpenCV 2, but unfortunately this seems to be a rather difficult thing to do in recent versions of Linux Mint (and I assume, Ubuntu).
The compiler reports that numerous functions are "not declared in this scope".
Most of the problems are easy to fix — or at least, the error messages from the compiler are easy to eliminate — by adding the following to main.cpp:
After doing that, the only remaining symbols not declared are
cvLoadImageandcvSaveImage. This is apparently because they no longer exist, and instead have been replaced bycv::imreadandcv::imwrite. Unfortunately, the latter two are different enough from the former two that you'd need more knowledge than I have about OpenCV (namely, zero) to fix them.I use Linux Mint, and I would simply have worked around the problem by installing OpenCV 2, but unfortunately this seems to be a rather difficult thing to do in recent versions of Linux Mint (and I assume, Ubuntu).