Questions tagged [opencv-contrib]

OpenCV is an open source computer vision library, free for commercial and research use. opencv-contrib is a repository containing extra OpenCV modules and contributed functionality.

Documenation for opencv_contrib can be found at http://docs.opencv.org/3.1.0/d3/d81/tutorial_contrib_root.html

82 questions
2
votes
0 answers

libopencv_java342.dll: Can't find dependent libraries?

I am trying to run a face recognition project which uses opencv and its contrib function. I have imported the opencv_342.jar as user libraries. and give the native library location to the folder where all the dll files are. It is still program…
user3751794
2
votes
3 answers

Unable to install/run docker with opencv

I'm using the code below in Dockerfile and it builds successfully but it does not run. How can I get it to work? FROM python:3.5-slim COPY . /app WORKDIR /app RUN apt-get update RUN apt-get -y upgrade RUN pip install -r requirements.txt ENTRYPOINT…
jason
  • 3,932
  • 11
  • 52
  • 123
2
votes
0 answers

Getting motion coefficient with updateMotionHistory and MOG2

I am currently working on a project for human fall detection (basing on this article and this). I am doing this with C++ and OpenCV. I've stuck with calculating the motion coefficient, I do not fully understand how it suppose to be produced: In…
rafmat24
  • 83
  • 2
  • 8
2
votes
1 answer

Unable to add extra modules to OpenCV (even with matching versions of opencv/opencv_contrib)

I'm trying to install OpenCV with extra modules on a computer running Ubuntu 14.04.2 (I need this specific version of Ubuntu as I'm using some other hardware that requires it). I was able to do it on a Raspberry Pi 3 just last week (running Ubuntu…
bendikiv
  • 83
  • 1
  • 8
2
votes
1 answer

Fatal error: opencv2/sfm.hpp: no such file or directory #include

I'm a beginner with opencv library. I've installed it on Ubuntu 17.04 and everything during the installation was perfect, no error at all. I've installed the Opencv-master, builded it, then I downloaded the opencv_contrib-master and added it to the…
Simone Colnaghi
  • 123
  • 2
  • 10
1
vote
1 answer

Unable to install opencv-contrib-python deprecation Python 3.5

I'm running Python in a virtual environment and within that I do: python -V Which returns: Python 3.9.5 I then run: pip install opencv-contrib-python And get: DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please…
KevinUK
  • 5,053
  • 5
  • 33
  • 49
1
vote
1 answer

Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags - both are detected

I am not able to compile the sfm module for opencv using cmake. The following log shows that cmake finds both glog and gflags, but compilation fails. Glog: YES freetype2: NO harfbuzz: NO Julia not found. Not compiling Julia Bindings. Module…
kyle
  • 126
  • 1
  • 8
1
vote
0 answers

How to add and use new build of OpenCV that includes OpenCV-Contrib in IDE (PyCharm)?

I followed this tutorial https://www.youtube.com/watch?v=x5EWlNQ6z5w&ab_channel=AdamHacks that describes how to build opencv to include in that the features from non-free opencv-contrib and got no errors with doing that. The problem is that I don't…
catalin20
  • 33
  • 5
1
vote
1 answer

ERROR: No matching distribution found for opencv-contrib-python-nonfree

I am trying to install opencv nonfree on windows version to run the sift. PS F:\DKE\CV\cvfinal> pip install opencv-contrib-python-nonfree > ERROR: Could not find a version that satisfies the requirement opencv-contrib-python-nonfree (from versions:…
Time
  • 97
  • 8
1
vote
0 answers

Make does not detect opencv_contrib even though I have it installed

I am trying to get this running https://github.com/Katou2/Optical_Flow_GPU_Opencv3 but am facing an issue where make does not detect my opencv_contrib module. Here are the steps that I have done up till cmake. conda create -n opticalflow python=3.6…
Kong
  • 2,202
  • 8
  • 28
  • 56
1
vote
1 answer

Can't install newer (latest) version of opencv-contrib-python in Raspberry Pi 4

I have been trying to install the latest version of "opencv-contrib-python" package in the new Raspberry Pi (RPi 4). At the time of this writing, the latest version is 4.2.0.34. When I do not specify the version with command pip install…
skyaakash
  • 161
  • 2
  • 9
1
vote
1 answer

AttributeError: 'int' object has no attribute 'read'

Using opencv-contrib-python, while reading this line: cam = cv2.FONT_HERSHEY_SIMPLEX ret,img= cam.read() I'm getting an error: ret,trackImg= cam.read() AttributeError: 'int' object has no attribute 'read'** My source code: def TrackImages(): …
Livin
  • 166
  • 3
  • 8
1
vote
1 answer

OpenCv is pre-installed in google Colab, but i want to add one extra module from opencv_contrib. how to achieve this?

I am working on google Colab and for the pre-installed opencv the functionality works fine, but i want to use "BRISQUE" which is not fully released but can be installed with opencv-contrib. There are methods which are followed but they are not for…
ColabAli
  • 21
  • 1
  • 3
1
vote
1 answer

OpenCV-contrib/Python/Windows: Tracker.write() raises error in matrix_wrap.cpp, Tracker.read() crashes Python

I've posted this as an issue on GitHub opencv_contrib and had no response yet. System information (version) OpenCV => 4.2.0 Operating System / Platform => Windows 10, 64 Bit Compiler => Visual Studio 16 2019 Python => 3.7.6, using…
1
vote
1 answer

C++ cannot open source file "opencv2/tracking.hpp"

I am trying to use OpenCV multi-tracker, but it doesn't find tracking.hpp. I have built OpenCV with OpenCV-contrib modules based on these instructions. Now in Visual Studio, I have done this: where $OPENCV_DIR is a user variable: I also…
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58