There are many differences between Python2.x and Python3.x.
Also, OpenCV has many changes from opencv2.x to opencv3.x.
Detect ORB feature and matching (Python3,Opencv3)
Following code may be valid in opencv2
kp1,des1 = detector.detect(img1) kp2,des2 = detector.detect(img2)
But it results in the error:
"too many values to unpack (expected 2)".
In opencv3, you should write as following:
kp1,des1 = detector.detectAndCompute(img1) kp2,des2 = detector.detectAndCompute(img2)
The other famous difference between opencv2 and 3 is the place of the package SIFT and SURF.
Hope this article will solve your problem.