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

Missing python binding, stitcher API

Stitcher high level API, using Python I want to use setExposureCompensator(), but it's missing the python binding :/...

View Article


can't run HoughCircles on image

I am trying to count objects in an image. To do that this is the approach I am using; 1. Open an image file 2. Convert the image file to HSV 3. Extract S channel 4. Run Gaussian Filter 5. Otsu...

View Article


Laser pointer ideas?

Good day, With the help of google and knowledgeable people on this forum I have managed to slap together a crude laser pointer detection script (Thank You). The code I used can be found...

View Article

Attributeerror on the jetson nano, after opencv 4.1.1 build

Hi I followed this tutorial to build opencv 4.1 on my jetson nano: https://github.com/JetsonHacksNano/buildOpenCV. When I test with importing cv2 in python it works, but when I try and use...

View Article

Help geeting OpenCV to output a videostream using gstreamer.

List, I am having a problem running gstreamer pipeline from Python 3 via OpenCv. I do not know gstreamer very well although I am somewhat comfortable with opencv. My issues stem from my ignorance not...

View Article


How to determine the length of contours?

Hello, I'm actually working on a webcam software with which I will control a UR co-bot to pick and place objects about forms and colors. I'm working with Python and OpenCV, I managed to recognize the...

View Article

Python-openCV: Extracting (x,y) coordinates of point features on an image

Hi all, I am trying to extract the (x,y) coordinates of the the four corners of a wooden rectangular plank image and apply that to a real-time video feed. What I have in mind is: 1) read image and...

View Article

What does the history of this function “createBackgroundSubtractorMOG2” means?

I only see this description in this [link](https://docs.opencv.org/master/de/de1/group__video__motion.html#ga2beb2dee7a073809ccec60f145b6b29c), it hasn't a very detailed explanation, so I'd like to...

View Article


Why are the coordinates of each crack not steady

I am trying to get the coordinates to keep still but when measure the x distance from the reference point (0,0) to the centroid of the crack (or contour) it would decrease as it is moving from left to...

View Article


how to get duration/length video.webm video file ..

hey , this is murugan . i am not getting video duration/length for my .webm file. its gives negative number pls help me: video = cv2.VideoCapture("TEST000008.webm") duration =...

View Article

what does this warning mean? warning : field of class type without a DLL...

- visual studio 2019 - cmake latest version - opencv zip from master branch today (7/10/20) - python 3.7 - cuda 10.2/cudnn - windows 64bit win10 I built with no errors in cmake, then I opened the...

View Article

cv2 imshow displaying black images sometimes

I am trying out cv2 on ubuntu 20.04, python 3.7. I have run the following script: import cv2 img = cv2.imread('butterfly.jpg') cv2.imshow('ImageWindow', img) cv2.waitKey() Sometimes I would get the...

View Article

smooth edges in binary images

![image description](/upfiles/15946519869135339.png) I tried with guassian blur, erode/dilate concept but not suitable for the type of image shown in sample.

View Article


samples.findfile for loading photos

Hello, I've downloaded openCV for python and am using it on Microsoft Visual Studio and am trying to use the tutorials. Often, they fetch a picture, src2 =...

View Article

import cv2 error on windows: missing configuration files

OpenCV = from master branch 7/10/20 Operating System / Platform => Windows 64 Bit Win10 Compiler => Visual Studio 2019 **problem:** I successfully built opencv in the latest cmake, and then built...

View Article


Change a particular color in an Image Python

Hi there, I have an image and I would like to change a particular colour on that. Particularly, the image contains a set of colours I have used a means algorithm in order to obtain the whole set of...

View Article

VideoCapture.read() freezing when reading from gstreamer

Hello, I've recently encountered an issue where the cv2.VideoCapture.read() function seems to freeze when reading a gstreamer pipeline. The stream seems to work in a glitchy manner for a few seconds,...

View Article


DNN face detection in UWP/C++: strange output

Hello, I'm using OpenCV and Cafe to perform face detection on some images I receive from a stream. First, I tried with python: prototxt_file = 'deploy.prototxt' weights_file =...

View Article

show video and texts on single window

Hi, I would like to show a video stream and sensors data to same window. But video should be displayed in Left half of the LCD and Sensors data should be displayed on right half of the LCD. I am using...

View Article

What's the ETA for 4.4.0 python bindings?

I see that version 4.4.0 released today - awesome! Really excited to dig into it. Anyone have an idea on the ETA for the python bindings? > pip install opencv-contrib-python==4.4 shows that 4.3.0.36...

View Article
Browsing all 2088 articles
Browse latest View live