Ask Your Question
0

i cannot use python opencv

asked 2017-04-05 21:39:24 -0600

when i type import cv2,error occurs like this : **

ImportError: /usr/local/lib/python2.7/dist-packages/cv2.so: undefined symbol:_Z13pyopencv_fromIN2cv4MatxIdLi4ELi4EEEEP7_objectRKT_

** but i can see the cv2.so in "/usr/local/lib/python2.7/dist-packages"

  1. opencv version 3.2.0 compile with contrib
  2. ubuntu 16.10
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-06 01:33:14 -0600

berak gravatar image

updated 2017-04-06 03:31:26 -0600

please try to update your main opencv repo to latest github master branch, and rebuild cv2.so

the Matx bindings were added quite recently, and are needed from some contrib module.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-05 21:39:24 -0600

Seen: 190 times

Last updated: Apr 06 '17