Code Blocks OpenCV build failed - opencv

Having an issue with trying to build any opencv version with code::blocks.
I've have built opencv successfully before and have no idea what the issue is.
I've tried following many different tutorials on building opencv using mingw 4.9.2 and CMake. I have also tried using mingw32 and mingw64.
But I continue to receive the errors shown in the image above.
My question is; What is the issue? How can I fix this? And, lastly, what am I doing wrong?

Found that the version of OpenCV I was using had issues with MinGW. Tested a whole bunch of OpenCV versions (3.3, 3.2, 3.1, 2.4.13, 2.4.13.3).
I found that OpenCV version 2.4.9 with the latest version of CMake and MinGW worked.
Thought I'd leave this here to help anyone else having issues with creating OpenCV to work with MinGW/Code::Blocks

Related

Updating opencv to version 4.5.1

I need to update opencv to version 4.5.1 because there is a function that is not implemented in my current version 3.4.2. (I need to use the SIFT_create function, when I google a bit it seems that they removed it from 3.4.2 because of a patent. However, I have also heard from someone that this function has a different name in 3.4.2, so if you know this different name this is fine as well. I googled it but couldn't find anything about it.)
I tried updating opencv in the anaconda navigator but that didn't work. I tried typing
pip install opencv-python==4.0.0.21
(if I replaced 4.0.0.21 by 4.5.1 it couldn't find the version), but when I type
cv2.__version__
afterwards it still says I'm using version 3.4.2. I found this post: How to upgrade OpenCV in Anaconda (windows)? which says I should use
conda install -c conda-forge opencv=4.3.0
I do this, both the exact same command and the command with 4.3.0 replaced by 4.5.1 but in both cases I only get version 4.0.0 (which apparently also doesn't have the SIFT_create function).
Any idea what I could do?
In the meanwhile I found the answer myself (or rather: with the help of non-internet people).
The problem was that while trying to update opencv, I ended up having two versions of opencv at once. I had opencv 4.5.1 and at the same time I had opencv-python 4.0.0.21 installed. When importing opencv, it chose to import opencv-python in stead of just opencv. When I deleted the opencv-python this fixed the problem.

Trouble with setting up OpenCV CUDA

Righto, I'm getting this issue... cv::cuda::getDeviceEnabledCount() == 0
Platform Specifications:
-Jetson TX2
-Ubuntu 16.04
-OpenCV 3.4.2
I have a usr/local/cuda folder. I just reinstalled OpenCV by grabbing the newest release from GitHub, cmaking and then making it.
If I manage to figure it out, I'll be sure to update this.
Any tips would be greatly appreciated.
I set the cmake "WITH_CUDA" flag to on in the opencv folder I DL'd. Fixed me up m880s

OpenCV on Raspbery pi error: HIGHGUI ERROR: v4l/v4l2: VIDIOC_CROPCAP

I have started to work on Rpi. I have worked on opencv on windows and ubuntu. Now I want to do Image porcessing on Rpi. I have installed latest version 2.4.8 on my Rpi. And I am able to open and display an image. However when I am trying to open webcam and display, it gives me error: HIGHGUI ERROR: v4l/v4l2: VIDIOC_CROPCAP.
Can anyone tell whats the problem ?
I haved the some error when trying to execute a code that does facedetection , i solved it by adding the files needed in my working folder (source folder).
you can show us the code to find out what exactly you need
If you are using prebuilt binaries, they may be built without v4l support. Try to build your own OpenCV with v4l checked. And of course before that install v4l with development files. You can follow this tutorial with how to install required dependicies explanied.

OpenCV 2.4.4 and QT5

Is the new OpenCV version supporting QT5 or is still using QT4?
I was looking in the OpenCV changelog to check if the code is compatible with QT5 but could not find any information.
Did someone compiled OpenCV with QT5?
No, OpenCV 2.4.4 doesn't support Qt 5 yet.
However, this answer shows how to build OpenCV 2.4.3 with Qt 5. I believe you'll need to do minor changes to make it work for 2.4.4.

How do I successfully install sikuly on fedora 16?

I have a problem installing sikuli on fedora 16 its a 64 bits architecture, my main problem comes with the compilation of opencv, sikuli requires the 2.1 version of opencv and in the cmake step it tells me it can not find some libraries. I have tried installing the libraries and creating symbolic links but it still will not work, does anybody knows a good tutorial or some good ideas to solve my problem?
I'd recommend you to raise a question on Sikuli bug tracker https://answers.launchpad.net/sikuli because it's quicker to get the response from developers there.
Here is a question similar to your issue: https://answers.launchpad.net/sikuli/+question/198796

Resources