opencv_contrib | Repository for OpenCV 's extra modules | Command Line Interface library
kandi X-RAY | opencv_contrib Summary
kandi X-RAY | opencv_contrib Summary
This repository is intended for the development of so-called "extra" modules, contributed functionality. New modules quite often do not have stable API, and they are not well-tested. Thus, they shouldn't be released as a part of official OpenCV distribution, since the library maintains binary compatibility, and tries to provide decent performance and stability. So, all the new modules should be developed separately, and published in the opencv_contrib repository at first. Later, when the module matures and gains popularity, it is moved to the central OpenCV repository, and the development team provides production-quality support for this module.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of opencv_contrib
opencv_contrib Key Features
opencv_contrib Examples and Code Snippets
Community Discussions
Trending Discussions on opencv_contrib
QUESTION
I'm using the following Make to build OpenCV from source,
...ANSWER
Answered 2022-Feb-10 at 18:05I think that you've installed ffmpeg 5 and OpenCV is not yet compatible with it. Please try the following:
QUESTION
I am trying to speed up some multi-camera system that relies on calculation of fundamental matrices between each camera pair.
Please notice the following is pseudocode. @
means matrix multiplication, |
means concatenation.
I have code to calculate F
for each pair calculate_f(camera_matrix1_3x4, camera_matrix1_3x4)
, and the naiive solution is
ANSWER
Answered 2022-Jan-03 at 13:58Numpy is clearly not optimized for working on small matrices. The parsing of CPython input objects, internal checks and function calls introduce a significant overhead which is far bigger than the execution time need to perform the actual computation. Not to mention the creation of many temporary arrays is also expensive. One solution to solve this problem is to use Numba or Cython.
Moreover, the computation of the determinant can be optimized a lot since you know the exact size of the matrix and a part of the matrix does not always change. Indeed, using a basic algebraic expression for the 4x4 determinant help compilers to optimize a lot the overall computation thanks to the common sub-expression elimination (not performed by the CPython interpreter) and the removal of complex loops/conditionals in np.linalg.det
.
Here is the resulting code:
QUESTION
I'm starting a project with OpenCV with ROS and i need to use xfeatures2d that is in opencv_contrib. I follow this instructions and modify my CMake File in this way:
...ANSWER
Answered 2021-Dec-02 at 14:19I found a solution in Github:
In catkin_ws/src:
QUESTION
I am trying to optimize my detector created with OpenCV in python using the GPU. The error I am encountering is the following:
cv2.error: OpenCV(4.5.1) c:\opencv_build\opencv_contrib-4.5.1\modules\cudalegacy\src\cuda\ncvhaarobjectdetection.cu:2079: error: (-215:Assertion failed) haar.ClassifierSize.height > 0 && haar.ClassifierSize.width > 0 in function 'loadFromXML'
The error arises when calling this function:
...ANSWER
Answered 2021-Nov-17 at 09:50the CUDA cascade classifier cannot read the output from the traincascade tool properly.
you either need to train an LBP cascade (instead of HAAR), or fall back to the 2.x haartraining tool.
QUESTION
A Linux newbie here. On Linux Mint, python 3.8, under Anaconda, trying to install opencv-contrib-python by
...ANSWER
Answered 2021-Nov-04 at 16:11Removing Anaconda and working with the python supplied with my Linux distro solved the issue.
QUESTION
In docker multi-stage build, How do I prevent other stages running in parallel to a specific stage?
I have a multistage Dockerfile. one of the stages builds opencv stack.
...ANSWER
Answered 2021-Nov-02 at 12:42Concurrency limits were recently added to buildkit in PR #2049. With docker buildx create
you can pass a config file that includes the max-parallelism
option to limit concurrent steps.
QUESTION
I am making a cross platform Java application that uses Computer Vision (OpenCV). I need to receive video from a webcam. Currently using standard OpenCV methods:
...ANSWER
Answered 2021-Oct-10 at 22:07Again I answer my own question...
Thanks @ChristophRackwitz! After your question whether the camera works in python, I checked it (I don't know why I didn't do it before). And so, the camera in python (with opencv-contrib-python) works without problems, so I realized that the problem was with Java (JDK) itself.
I have JDK 8 installed with this commands:
QUESTION
I'm trying to run this code but it did not because I am not able to download this file from GitHub. Is there anyone who knows how I can download this file?
This is the link to the file with the filename face-trainner.yml
: https://github.com/codingforentrepreneurs/OpenCV-Python-Series/tree/…
I'm getting this error when running my program:
...ANSWER
Answered 2021-Jun-12 at 21:14Go to the main section of the GitHub repository: https://github.com/codingforentrepreneurs/OpenCV-Python-Series
- Press the code button and then download as zip.
- Unzip the file in your downloads.
- Navigate to
src/recognisers
and the fileface-trainner.yml
should be there. - Use that file how you want in your project (discard of the rest if you have no need for it).
Also make sure that you have typed the correct file name in your program with the two 'n's (face-trainner.yml
not face-trainer.yml
)
QUESTION
I am trying to build OpenCV with external modules, but haven't been able to come up with a clean solution.
I have successfully built OpenCV using CMake (rules_foreign_cc). But to be able to build with external modules I need to download a separate repo (opencv_contrib) and then build using the path to the second repo as a build argument.
Is there a way I can do this without having to create a git repo of my own that combines these two git repos?
...ANSWER
Answered 2021-Jun-01 at 18:34You can use git_repository
rule in your WORKSPACE
file to have bazel automatically clone a git repo before building.
Once you add it to the WORKSPACE
file, then you can reference build targets of the remote repo inside your own repo.
Check this repo for an example.
QUESTION
I'm currently working on opencv vers. 4.5.1
and I want to use SIFT and SURF but I run into the well known problem that they're patented. I already know that under 4.5.1
there is the possibility to use the flags DOPENCV_ENABLE_NONFREE=ON
and DBUILD_opencv_xfeatures2d=ON
. But when I use the following command for cmake
ANSWER
Answered 2021-May-14 at 19:15Build OpenCV with the following command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install opencv_contrib
Start cmake-gui.
Select the opencv source code folder and the folder where binaries will be built (the 2 upper forms of the interface).
Press the configure button. You will see all the opencv build parameters in the central interface.
Browse the parameters and look for the form called OPENCV_EXTRA_MODULES_PATH (use the search form to focus rapidly on it).
Complete this OPENCV_EXTRA_MODULES_PATH by the proper pathname to the <opencv_contrib>/modules value using its browse button.
Press the configure button followed by the generate button (the first time, you will be asked which makefile style to use).
Build the opencv core with the method you chose (make and make install if you chose Unix makefile at step 6).
To run, linker flags to contrib modules will need to be added to use them in your code/IDE. For example to use the aruco module, "-lopencv_aruco" flag will be added.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page