Skip to content

Support newer versions of OpenCV built from source #35

@psyhtest

Description

@psyhtest

The versions of OpenCV we currently support are quite old:

$ ck search package --tags=lib,opencv,channel-stable
ck-math:package:lib-opencv-3.4.5
ck-math:package:lib-opencv-3.3.0
ck-math:package:lib-opencv-2.4.13.2
ck-math:package:lib-opencv-3.4.3
ck-math:package:lib-opencv-3.2.0

The latest releases are 3.4.10 and 4.3.0. (Intel used 4.1.2 in the MLPerf Inference v0.5 submission.)

Adding support for 3.4.10 should be quite easy:

  1. Test you can build OpenCV 3.4.3 on your system:
$ ck install package --tags=lib,opencv,v3.4.3
  1. Fork repo:ck-math to your GitHub account e.g. i_want_to_help.

  2. Switch your local repo:ck-math to your new remote fork and create a branch there: e.g.

$ cd `ck find repo:ck-math`
$ git remote set-url origin git@github.com:i_want_to_help/ck-math
$ git checkout -b opencv-3.4.10
  1. Create a copy of the OpenCV 3.4.3 package:
$ ck cp ck-math:package:lib-opencv-3.4.3 ck-math:package:lib-opencv-3.4.10
  1. Modify the copy to replace "3.4.3" with "3.4.10" everywhere in meta.json.

  2. Test you can build the new package:

$ ck install package --tags=lib,opencv,v3.4.10
  1. Commit the change and push your branch to your remote.

  2. Issue a Pull Request from your remote to https://github.com/ctuning/ck-math.

  3. Repeat on another system (Windows, MacOS?)

  4. Try the same with the latest OpenCV 4.x version.

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