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

How to give input parameters to triangulatePoints in python?

I want to find out 3D coordinates using stereo cameras. For that, I reached up to rectification of images but get stuck at...

View Article


Identifying marine mammals edges and length

I'm beginning to look into photogrammetry of marine mammals, basically measuring length and width, identifying health, body condition, etc. And as a first step I'm looking to do some basic edge...

View Article


error: (-215) scn == 3 || scn == 4 in function cv::cvtColor

using: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) i get: error: ..\..\..\..\opencv\modules\imgproc\src\color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor here's the whole...

View Article

Tesseract not detecting text

![image description](/upfiles/15053291302121193.png) I cleared the background of the image to the extent that I can possibly do but tesseract only detects the last column here and ignores the rest....

View Article

Extracting A4 sheet out of troubling backgrounds

So, my challenge is to extract a A4 paper document out of a mobile phone photo. I'm currently doing it using by applying gaussian blur and canny, find the contours and then pick the biggest most...

View Article


Python: Running estimateRigidTransform in opencv/python; 8uC1 or 8uC3 error

I currently have two matching point sets built into a numpy array of float32: points1 = [[ 346.70220947 9076.38476562] [ 922.99554443 9096.4921875 ] [ 776.96466064 9108.79101562] [ 449.0173645...

View Article

cv2.fisheye camera calibration (Python)

I am trying to calibrate wide-angle/fisheye lenses in OpenCV using python and the cv2.fisheye functions (mainly cv2.fisheye.calibrate() and cv2.fisheye.undistortImage()). When I use the standard...

View Article

fail reading data from rtsp stream with opencv python

i have problem in useing opencv python when reading rtsp stream, this works fine: cv::VideoCapture video_cap; video_cap.open("rtsp://admin:62283118@10.102.6.65//Streaming/Channels/1?tcp"); but when i...

View Article


How to measure road widths from surveyed photographs

I'm new to OpenCV and haven't been able to find any examples or methodologies to solve the following problem. I've been tasked to find out if it would be possible to determine the road widths from...

View Article


Unable to imort OpenCV in python

I tried these instructions from [Ubuntu Documentation](https://help.ubuntu.com/community/OpenCV) to install OpenCV. I'm using ubuntu 16.04 64 bit. After running the script, OpenCV 3.3.0 is installed....

View Article

Problem linking motion detection value to video frame

Hi everyone and thank you for stopping by, You see, I'm trying to use opencv's tracking blob so that the X and Y position of the moving object in my camera is synced to match the equivalent frame in a...

View Article

face module missing from python cv2 version 3.3.0

I have cv2 version 3.3.0 installed, as verified by printing cv2.__ version __ It is my understanding that version 3.3.0 should have the face module by default, as per this official documentation:...

View Article

How to Draw a box then detect if object just enter on it

Hello just like the title i just want to ask How to Draw a box then detect if object just enter on it. Using opencv and python hopefully some of you guys can help me thanksss

View Article


Video Capture Error A.R Drone 2.0

The following code is trying to stream a video from an A.R Drone using python. When I run the code, I receive error `error reading video feed`. I am using 3.3.0. Is there a way to fix this. I have...

View Article

StereoBM doesn't give proper output

I want to find depth from stereo image. My code is working for one pair of an image but not working for another pair of an image. Later, I want to convert video inputs from two cameras into a stereo...

View Article


Find image from a database of images

Hello everyone, I'm moving my first steps with OpenCV in Python. What I'd wish to do is given an image, find its "original" one from a collection of reference images. Just to be clear, the query image...

View Article

How to draw multiple polygons using opencv in python

Hi i am trying to draw multiple polygons using opencv and python please anyone can help me how to draw multiple polygons using mouse clicks setmousecallback method. class PolygonDrawer(object): def...

View Article


OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor,

I'm trying to run a code that does template matching. I'm getting assertion failed error on cvtColor function. Here is the error. OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor,...

View Article

VideoCapture read non blocking?

I am programming in Python, Pygame from what I understand uses opencv for its webcam functions. There is a query_image() available that polls the camera so you can start fetching a frame only when...

View Article

How to clip an image by extreme points?

Hello, I have found the contours of the object in the image with a cv2.findContours and I want to clip the image in the extreme points. However, the image returned is not correct. Below is the code, I...

View Article
Browsing all 2088 articles
Browse latest View live