Webcam image distorted
I am running a simple webcam check coding in python and this is the result and after that python crash. The problem didnt occur before this but...
View ArticleConnect several cameras openCV python
Hi, I want to connect to 30 cameras at the same time in my python program. If I execute 30 times a simple python script which connects to a rtsp camera and do .read(), I have no problem. But, if I...
View ArticleExtract data from a scoreboard
Hi all, It's the first time that I use OpenCV and I need to understand if this is the right technology to do this thing. I want to extract some data from this scoreboard:...
View ArticleNeed to convert from python to cpp
mask = np.zeros(thresh.shape, dtype="uint8") (x, y, w, h) = cv2.boundingRect(c) cv2.rectangle(mask, (x, y), (x + w, y + h), 255, -1) minRect = mask.copy() sub = mask.copy() while cv2.countNonZero(sub)...
View Articlecv2.stereoCalibrate: objectPoints-error (-210:Unsupported format or...
Hey guys! I'm trying to get a disparity images from a stereo camera but I'm getting this error message in cv2.stereoCalibrate: error: OpenCV(3.4.2)...
View Articleimport 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 ArticleFinding corresponding pixel coordinate of a single point before and after...
Let's begin by saying that i have a static image, called it `leftFrame.` This frame is passed to method `cv2.remap(leftFrame, map1, map2, cv2.INTER_LANCZ0S4,0)`, so that every pixel from original...
View ArticleHelp 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 ArticleLoad and compare ground truth disparity maps with python
How to use readGT, computeBadPixelPercent, and computeMSE from cv2.ximgproc in Python?
View ArticleWebcam generated image distorted and python stop working
import cv2 import sys faceCascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') video_capture = cv2.VideoCapture(0) img_counter = 0 while True: # Capture frame-by-frame ret, frame =...
View ArticleHow Can I use CUDA in Python for fastNlMeanDenosingColored?
Hello, I have compiled OpenCV 4.5.0-pre with CUDA and I would like to convert my cv2 code to CUDA code. I couldn't find a python CUDA tutorial on here but I have searched Q&A and it seems like I...
View ArticleHelp to choose an opencv module/method
Hi, I have gone a long way with tutorials and simple manipulations like 'blur', 'threshold', 'bitwise_and' with masks but I am just a monkey following along. When it comes to something new I cant even...
View ArticleWhere to find opencv_createsamples.exe in windows
Hi, I am new to opencv. I am using pycharm IDE to practice opencv using python. I have installed dlib, cmake and opencv-python in the IDE. Now, I am trying use haar cascade classifier to detect custom...
View ArticleAttributeError: 'module' object has no attribute 'xfeatures2d'
what happen with `cv2.xfeatures2d.SIFT_create()` ?
View Articleworld coordinates from object detection
I have stereo camera system and I am running a object detection agoritham in one of the camera. I get the centroids of each detected objects. My question is how to compute their world coordinates? Thanks.
View ArticleOpenCV Video Masking
Is there a way to utilize this mask to view a region of interest of a video in python openCV? Mask:  Video Frame:  When I get to...
View ArticleHaar cascade detector with non-maxima suppression
Dear all, I know the Haar-cascade detectors are kind of old-fashioned and that it's challenging to train a cascade with good detection capacities. I still like it though because you can train on CPU...
View ArticleDifferent ways to detect LED Screen from the image.
 I want to extract the LED screen from the image above. Some approaches that I have tried include: 1. I first converted the image to HSV and made a trackbar...
View ArticleFoot Measurement [Python]
Hi Everyone, I have to find the length and the width of a foot placed on a A4 Sheet. First i tried with some object, like a business card or flyer then it works. I detect the contours of the A4 sheet...
View Article