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

Face detection not working on specific image

I am using the haarcascade_frontalface_default.xml classifier to detect faces in python 3 on Windows 7 with OpenCV 3.1.0 using the following code: import cv2 import sys classifier =...

View Article


Robustly crop rotated bounding box on photos

I'm trying to extract the rotated bounding box of contours robustly. I would like to take an image, find the largest contour, get its rotated bounding box, rotate the image to make the bounding box...

View Article


Using HoughLinesP to straighten skewed receipt scans

I am trying to use HoughLinesP with Python to identify lines from text to eventually straighten up a bunch of images. The images are scanned receipts, fairly high DPI, so I scale them down and...

View Article

Can I build OpenCV on my Desktop Computer from source, then transfer the...

Hello, I have built OpenCV 3.1.0 on my Windows computer. I used python 2.7, have numpy installed, and have added a few modules from opencv_contrib. The build works on my computer in the python...

View Article

cv2.imshow 64f?

So I'm just playing around right now with opencv3 and I'm wondering why cv2.imshow renders differently than matplotlib.imshow The code is stupid basic: import cv2 from matplotlib import pyplot as plt...

View Article


Can't play avi video (Anaconda 2)

The code was able to execute. However, it wouldn't play the video. I copied opencv_ffmpeg.dll to C:\Anaconda2\\ and saved it as opencv_ffmpeg2411_64.dll. It didn't resolve my problem. The code below...

View Article

OpenCV Disparity map post-filtering using only one depth image

OpenCV has a tutorial on post-filtering disparity maps [here][1] but it needs the left and right images to function properly. Is there a way to do this using only one depth image which we have acquired...

View Article

mat type = 15 is not supported

I got an error while changing an eigenvector as an image def getEigenVectorsAndEigenValues(covarianceMatx): print("Compute Eigens...") logger.info("Compute Eigens...") eigenSolution =...

View Article


Global Name CV2 is not defined

I am not a coder by any means so if I fail to present enough information for my question to make sense please let me know. I am trying to display images one after the other selected from a directory...

View Article


How to output a mat object as an XYZ file with Python

I am writing a program that will do 3D sensing and I am currently at the last step. I have a grayscale 1280x720 image, and in order to create and visualize a point cloud, I need to convert it to an...

View Article

I am learning Open CV using Python, and after doing some tutorials I found...

Traceback (most recent call last): File "F:\David\Varios\OPENCV\hand gestures.py", line 11, in contours, hierarchy = cv2.findContours(th,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) ValueError: too many...

View Article

Fail to divide circle into 8 equal parts

I was trying to write code which detects circle in a pizza and divide circles into 8 equal parts (i.e 8 equal slices angle of 45 degrees). I try using cv2.line() but it is not working. Can anyone help...

View Article

Is it possible to detect the slope of the ground with real time video...

I've been searching for a way to detect the slope of the ground, e.g: A golf green. Using Python and a Raspberry Pi I was messing around with canny edge detection and houghlines but with no luck. Any...

View Article


Need help with a opencv program written in python

I got a code on the internet which works with raspberry pi 3 and Pi camera. I want to modify a portion of it. I want to display on the camera the distance the colored object the code identifies is...

View Article

why the uninstalling of opencv is abort by terminal?

I am uninstalling OpenCV-2.4.9 from ubuntu and it is giving me abort after asking You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!'. how can i...

View Article


get specific frame from m3u8 stream using opencv

Hello! I'm new to OpenCV and read that it handles streams, videos pretty well. I installed it on my raspberry pi and I'd like to know if I can solve this using OpenCV or are there easier ways? I would...

View Article

how to make make bounding box around object?

I am working on background subtraction using this function cv2.absdiff(img1, img2). I want to make bounding box around the objects obtained in result but i am unable to find any function. my opencv...

View Article


python openCV - Assertion failed (npoints >= 0 && (depth == CV_32F || depth...

I am trying to run the code you see below based on [this C++ code][1]. The goal of this piece of code is to know the orientation of ones head and draw a line from his nose to some arbitrary plane. The...

View Article

Detect fire/flame using HSV filter to contours.

I want to detect fires/flames, in realtime camera stream, is it possible to do this using HSV color space and apply mask and filters to appropriately detect contours in given HSV colorspace, so what...

View Article

Better way to detect 4x4 Matrix

Hi; I need to detect colors of 4x4 matrices. I was doing it with simpleBlobDetector for now, finding blobs, getting coordinates and recognizing color at last in Python. So my question: is there a...

View Article
Browsing all 2088 articles
Browse latest View live