Undefined symbol
Closed this issue · 1 comments
vidheeshapk commented
Hey,
I modified the current working code by adding cvtcolor() to convert image to grayscale and got stuck with the following error.
py_build/pbcvt.so: undefined symbol: _ZN2cv8cvtColorERKNS_11_InputArrayERKNS_12_OutputArrayEii
I couldn't run any of the API's in imgproc module(canny(),threshold()).
vidheeshapk commented
Solved.
Added
set OpenCV directories using find_package.
find_package(OpenCV 3.3.1 REQUIRED)
in CMakeLists.txt