Skip to content

Missing contrib (saliency) when setting opencv version to 4.2.0 #40

Description

@jaubourg

I specified the desired opencv version in package.json like so:

"opencv4nodejs": {
  "autoBuildOpencvVersion": "4.2.0"
}

Everything seems to build fine and the version in opencv-build/opencv/auto-build.json is the expected 4.2.0.

Unfortunately, I does not seem opencv_contrib was built (saliency is nowhere to be found).

I did a bit of digging and I'm wondering if this could be due to this line:

https://github.com/justadudewhohacks/npm-opencv-build/blob/master/src/constants.ts#L3

Apparently, the version of opencv_build downloaded is hard coded and autoBuildOpencvVersion is not taken into account.

Can opencv_contrib 3.4.6 be used with opencv 4.2.0 or is the opencv build simply ignoring an incompatible version of opencv_contrib?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions