-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run tune_blockmatcher and image_to_pointcloud #21
Comments
I have the same issue with that and I changed it to this: cv2.STEREO_BM_PREFILTER_NORMALIZED_RESPONSE Here is my latest error after that if you can figure it out: I've been told Douglas Gibbons code works from some reads but I've tried and come across very similar issues: https://github.com/douglas-gibbons/StereoVision/tree/master/stereovision Maybe I have helped you, maybe not. Someone really needs to pull this back to a known fully functional code for every program, version it and state tested version of opencv (I'm using opencv3.1 because I looked at version releases and saw that was the opencv 3 they should be talking about based on release dates when they updated it. |
I just switched these to their respective integers, and it worked nicely: |
Are you able to find these constants as defined in OpenCV? They should be in there somewhere as variables - using magic numbers makes me very nervous. If this is possible, I'd be happy to merge a pull request. |
Yes, all numbers are coming from official OpenCV documentation. Several of the function calls in blockmatcher have changed if you choose to update to CV 3.4.1 and python 3.5, however. On the bright side, it's not super difficult. |
As a followup to yesterday, when you switch to OpenCV 3.4.0+, you have to change some condition names in the _replace_bm function for both classes in the blockmatchers.py file, remove the first condition from the not SGBM class, and need to add _create (ex: cv2.StereoBM_create) to the end of the function call. [Link to StereoBM class] [Link to StereoSGBM class] |
I have the same issue as the first one.But I don't know how to change it ,it's so many.need help.aaa |
Can you tell us how you change the blockmatchers.py file ? Please ! |
@GuillaumeDae if you're lazy and don't want to find it, I have a updated version on my github here |
@sdlouhy Thank you it seems to work. I no longer have 'STEREO_BM_NARROW_PRESET' error. |
@GuillaumeDae Do you have MeshLab installed? That's the only thing i can think of off the top of my head. |
@GuillaumeDae Looks to me like you don't have write permissions to the directory you're trying to write to. |
please find the path of cv.so ,and set the path into python env (/etc/.profile) |
I am able to capture images on webcams and calibrate them well. But, while trying for execution of tune_blockmatcher and images_to_pointcloud, i found below errors as StereoBM and StereoSGBM classes are unable to import.
My OS is Windows7, running OPENCV 3.4.0 and Python2.7
Any solution for this issue ?
The text was updated successfully, but these errors were encountered: