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

Inconsistent return type from CascadeClassifier.detectMultiScale #61

Closed
orenht opened this issue Dec 29, 2017 · 1 comment
Closed

Inconsistent return type from CascadeClassifier.detectMultiScale #61

orenht opened this issue Dec 29, 2017 · 1 comment

Comments

@orenht
Copy link

orenht commented Dec 29, 2017

Expected behaviour

I expected the library to return an empty ndarray when there is no detection.

Actual behaviour

The library returns a single empty tuple when there is NO detection, and a numpy.ndarray when there are detections.

  • operating system : Windows 10
  • opencv-python version: 3.3.1

Is this a problem with the package or with the opencv library?

@skvark
Copy link
Member

skvark commented Dec 29, 2017

The bindings are generated automatically, please report the issue to OpenCV repository https://github.com/opencv/opencv/issues. Also note that the issue might be already fixed in 3.4.0.

@skvark skvark closed this as completed Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants