0

The solutions on this question do not work with the opencv python version 3.3.1. cv2.__version__ prints 3.3.1-dev, and even import cv2.cv returns the no module error.

On reading this answer it seems like both the cv2 and cv interfaces were maintained, at least for a while but that doesn't seem the case any more.

So...

  1. Does the cv module exist any more?
  2. If not, then from which opencv version was this lost? And where can we find old cv functions? For instance cv.StereoRectify

Thank you

simplename
  • 717
  • 7
  • 15

2 Answers2

1

It seems that the old cv module has been completely removed from OpenCV in version 3.

Old functions should have been ported to the current cv2 module. In your case, it seems cv.StereoRectify is now cv2.stereoRectify

Pierre C.
  • 1,426
  • 1
  • 11
  • 20
  • Yeah, I saw that. Was wondering if there were any notes released regarding this port. I found some documentation but it's not always got python notes [like here](https://docs.opencv.org/3.0-beta/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html?highlight=stereocalibrate#stereocalibrate) – simplename Aug 12 '18 at 21:24
1

In OpenCV 3.x cv was deprecated. Some old cv modules can be found in cv2, as cv2.stereoRectify, others are not in opencv installation anymore due to legal concerns.

You may need to pip install opencv-contrib-python --user

Fred Guth
  • 1,537
  • 1
  • 15
  • 27