How to properly install the OpenCV package in Julia

How to properly install the OpenCv package in Julia.

I want to correctly install the OpenCV package in Julia, but when I install OpenCV, I get this error.

ERROR: The following package names could not be resolved:

  • OpenCV (not found in project, manifest or registry)
    Please specify by known name=uuid.

Can someone help me correct this error so that I can install the OpenCV package in Julia correctly?

1 Like

I’m guessing you are using Julia 1.x? If so, there is no registered OpenCV package for Julia. You can browse available packages for Julia at pkg.julialang.org.

There are two packages that provide OpenCV wrappers ( GitHub - maxruby/OpenCV.jl: The OpenCV (C++) interface for Julia and GitHub - JuliaOpenCV/OpenCV.jl: The Julia wrapper for Open Source Computer Vision library (OpenCV)), but neither has been updated for Julia 1.0. Both seem not to be maintained at the moment.

Depending on what you are trying to do, you might be able to use the Images.jl package (and related packages): https://github.com/JuliaImages/Images.jl

1 Like

Version 1.1.0

It’s great to see OpenCV worked on:

Seems like a package here (phase 1 only? I didn’t look into limitations; phase 3 is also done), I suppose will merge with the old one:
https://github.com/archit120/opencv_contrib/tree/219b278d6a0c48d965c7086d1d7a4825866f0372/modules/julia/package/OpenCV

https://docs.opencv.org/master/d8/da4/tutorial_julia.html

3 Likes