Skip to content
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

crash and Unknown C++ exception when I invoke cv2.validateDisparity #25367

Open
4 tasks done
beanduan22 opened this issue Apr 8, 2024 · 2 comments
Open
4 tasks done
Labels

Comments

@beanduan22
Copy link

System Information

Python version: 3.8.18
OpenCV python version: 4.9.0
Operating System / Platform: Windows-10-10.0.19045-SP0

Detailed description

It will report different crash or bug report, please try it several times!
1.

Process finished with exit code -1073740940 (0xC0000374)
Unknown C++ exception from OpenCV code

of course, it will be successful sometimes, but I meet a lot of times crash or unknown exceoption

Steps to reproduce

import numpy as np
import cv2
disparity = (np.random.rand(100, 100, 1) * 256).astype(np.int16)
cost = (np.random.rand(100, 100, 1) * 256).astype(np.int16)
minDisparity = 3
numberOfDisparities = 7
disp12MaxDisp = 1

output = cv2.validateDisparity(disparity, cost, minDisparity, numberOfDisparities, disp12MaxDisp)

print(output)

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)
@beanduan22 beanduan22 added the bug label Apr 8, 2024
@LaurentBerger
Copy link
Contributor

doc validates disparity using the left-right check. The matrix "cost" should be computed by the stereo correspondence algorithm

@beanduan22
Copy link
Author

Why do multiple runs show different results? There will be crashes and unknown exceptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants