Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 322 articles
Browse latest View live

Error building opencv 3.3.0 Windows 10 Cmake 3.10

I was trying to build opencv to use in Code::Blocks following this guide: link: https://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw. While building, I got the...

View Article


for below code I'm getting this error: OpenCV(3.4.1)...

import cv2 import numpy as np facedetect=cv2.CascadeClassifier('haarcascade_frontalface_default.xml'); cam=cv2.VideoCapture(1); while(True): retval,img=cam.read();...

View Article


"opencv\sources\modules\core\src\matrix.cpp:284: error: (-215) 0

Hi, I've faced a problem. Whenever, I let this code be at the end of my program, it executes to the end without any problem. Mat drawing2 = Mat::zeros( drawing.size(), CV_8UC1 ); fill_holes(drawing,...

View Article

I am getting this error please help and I have all the ways to resolve it

![image description](/upfiles/15339231787408422.png) OpenCV(3.4.1) Error: Unknown error code -49 (Input file is empty) in cvOpenFileStorage, file...

View Article

OpenCV 3.3.0 Build error - AVX2 code throwing assembly messages

I am building a baseline OpenCV 3.3.0 for a CentOS 6.9 x86_64 Intel i5 650 @ 3.2GHz. I am not a sudoer. After running:cmake -D CMAKE_INSTALL_PREFIX=/home/user/lib/opencv330/build/install -D...

View Article


Singular Value Decomposition (SVD) with opencv

Hi, I am using SVD for my algorithm and the decomposition is done by this instruction: const int N= 16; Mat x= (Mat_(N, N)<< 23, 24, 24, 23, 22.5, 21.5, 20, 20, 19, 20, 22, 23, 23, 23.5, 24,...

View Article

Error wnen installing OpenCV from source

When I am doing ``make``, I am getting the following error `` /home/srisankethu/Desktop/opencv-3.4.3/modules/videoio/src/cap_dc1394_v2.cpp:58:10: fatal error: dc1394/dc1394.h: No such file or directory...

View Article

error compilation openCV

[ 0%] Built target gen-pkgconfig [ 2%] Built target zlib [ 6%] Built target libjpeg [ 9%] Built target libtiff [ 19%] Built target libwebp [ 22%] Built target libjasper [ 24%] Built target libpng [...

View Article


Suppress, hide or disable the error/warning messages

I was wondering if there was a way to suppress, hide or disable the error or warning messages outputted to the screen? I think they come from FFMpeg and they either show up as follows: CASE 1:...

View Article


installing opencv with visual studio 2017

So, I was attempting to install OpenCV using Pre-built libraries per Bernát Gábor's tutorial. The last step is to set the OpenCV environment variable and add it to the path of the system. I had two...

View Article

Error 'module' object has no attribute 'TrackerMIL_create'

OpenCV 3.4 Python 2.7 My code: import cv2 import numpy as np from datetime import datetime import time now = datetime.now() i=0 cap= cv2.VideoCapture(0); fourcc = cv2.VideoWriter_fourcc(*'XVID') out=...

View Article

Errors when trying to make Samples

Attempting to install OpenCV 3.4.3 on Linux Ubuntu 16.04. When I go to "make" the samples I get the following: Scanning dependencies of target example_tutorial_how_to_use_OpenCV_parallel_for_ [ 25%]...

View Article

when I run the below code, I take below error. Can you help me ?

import cv2 import numpy as np image = cv2.imread('yüz1.jpg') faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') greyImage = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY) faces =...

View Article


libpng warning: Image width is zero in IHDR

Hi, when i run my first OpenCV application in Java i receive that message from compiler: Running DetectFaceDemo Detected 0 faces Writing faceDetection.png *libpng warning: Image width is zero in IHDR...

View Article

Incorrect reading of Jpeg2000 images with unstandard encoding

Hi, I am trying to read Jpeg2000 images with an unstandard 15-bit encoding in Python. More precisely I am trying to read Sentinel-2 L1C satellite images provided by ESA. I am using the following code...

View Article


Tried to compile tracker from tutorial and got error "‘Tracker’ was not...

Tried to compile tracker https://docs.opencv.org/3.1.0/d2/d0a/tutorial_introduction_to_tracker.html and got error "/home/vioh/tracker2/tracker2.cpp: In function ‘int main(int, char**)’:...

View Article

I got a error "Incorrect type of self (must be 'Feature2D' or its...

import cv2 as cv import numpy as np im = cv.imread("mini.jpg", cv.IMREAD_GRAYSCALE) detector = cv.SimpleBlobDetector() keypoints = detector.detect(im) im_with_keypoints = cv.drawKeypoints(im,...

View Article


java.lang.UnsatisfiedLinkError: Cannot find dependent libraries

Some `Windows 7` users cannot use the Java bindings. For more information see the following links: https://github.com/opencv/opencv/issues/13012 https://stackoverflow.com/questions/53100890/ Thank you...

View Article

Error loading image 7656x6619

im trying to load 2 images of 150MB and i cant load it someone can helme please? this is my code, i don´t have errors Mat imageRed = imread("images/OrtoImagenTest/band(3).tif",...

View Article

Neural Network in OpenCV 3.1.0

Hello everyone! I am currently trying to get OpenCV's neural network module running, unluckily so far with less success. Initialization and training works fine (at least as far as I can verify it) but...

View Article
Browsing all 322 articles
Browse latest View live