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

Incorrect type for minMaxLoc #21

Closed
pbowyer opened this issue Nov 17, 2022 · 1 comment
Closed

Incorrect type for minMaxLoc #21

pbowyer opened this issue Nov 17, 2022 · 1 comment

Comments

@pbowyer
Copy link

pbowyer commented Nov 17, 2022

Thanks for putting together this library, it's great to have a version that can be imported and that has type support.

Now I'm using it in a strictly type-checked project I've found an incorrect type. minMaxLoc is reported as

function minMaxLoc(src: cv.Mat, minVal: any, maxVal?: any, minLoc?: any, maxLoc?: any, mask?: cv.Mat | undefined): void (+1 overload)

but when I use it it returns an object

const minMaxLoc = cv.minMaxLoc(grayImage)
ttt43ttt added a commit that referenced this issue Oct 3, 2023
@ttt43ttt
Copy link
Contributor

ttt43ttt commented Oct 3, 2023

Fixed in v4.8.0-release.6

@ttt43ttt ttt43ttt closed this as completed Oct 3, 2023
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