Skip to content

Incorrect type for minMaxLoc #21

@pbowyer

Description

@pbowyer

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions