Segmentation fault when check OpenCV version.

asked 2019-09-20 09:11:18 -0600

aruncv gravatar image

I Installed OpenCV on my Virtual Machine Ubuntu18.04 and using the following tutorial

https://linuxize.com/post/how-to-inst...

When I do, pkg-config --modversion opencv4 I get the OpenCV version: 4.1.2

But when I do: python3 -c "\ import cv2 print(cv2.__version__)"

I get Segmentation fault. Segmentation fault (core dumped)

LD_DEBUG=files python -c "import cv2" gives the failure logs as:

ImportError: /usr/local/lib/libopencv_text.so.4.1: undefined symbol: _ZN2cv3dnn14dnn4_v201909023Net8setInputERKNS_11_InputArrayERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdRKNS_7Scalar_IdEE

Please help

Thanks Kind Regards Arun

edit retag flag offensive close merge delete