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

How to find distance between centers of two green boxes?

Hi , I am still beginner in opencv and I have this task : find the distance between the centers of two green boxes using camera. I could be able to find the centers of the boxes but how to find the...

View Article


How can I use UMat in Python?

How can I use UMat in Python?

View Article


How to threshold 3 colors using trackbars ?

Hi, I have a task says " Threshold three colours using trackbars. Paint the blobs to corresponding colors." I have created the track bars and they work fine but how can I do this task ? unfortunately ,...

View Article

Face recognition with opencv and python

I am trying to implement the real-time face recognition using opencv and python. Each time i open my detector it gets stuck and gives error, could please help ? import cv2 import numpy as np...

View Article

Real-Time video stitch (moving cameras)

Hi, I have just started to use openCV and I am very new to image/video processing and stitching so please bear with me while I explain what I am trying to accomplish. 1. I plan to purchase **3 HERO5...

View Article


Optimization for screen grab, thresholding, and houghcircles

So I've been working on a project to make a bot visually play [One Finger Death Punch](https://youtu.be/I6LLyXAcEfc). I'm looking for ways to improve and optimize it and need advice. Here is the code...

View Article

opencv3 with Python 3, imshow() displaying no image

cv2.imshow seems to not work correctly when running on Python3 but no errors are logged and it works correctly when I use opencv3 with python 2.7. running this: import cv2 cap = cv2.VideoCapture(0)...

View Article

createStereoBM, does it or does it not exist?

The usual drill, I downloaded and installed OpenCV 3.2 on windows, moved the python hooks into site-packages, ran a few simple examples to find reports such as: Traceback (most recent call last): File...

View Article


Why do I get an interaction between different cameras?

Code is: import numpy as np import cv2 cam1 = cv2.VideoCapture(1) cam2 = cv2.VideoCapture(2) cv2.namedWindow( "Left", cv2.WINDOW_AUTOSIZE ); cv2.namedWindow( "Right", cv2.WINDOW_AUTOSIZE );...

View Article


Why does faceCascade.detectMultiScale abort on call?

The code is: import cv2 import sys cascPath = sys.argv[1] faceCascade = cv2.CascadeClassifier(cascPath) video_capture = cv2.VideoCapture(1) while True: # Capture frame-by-frame ret, frame =...

View Article

How do I convert uint8 to CV_8UC1 in OpenCV 3.2 Python?

The code is the following: import numpy as np import cv2 import time from matplotlib import pyplot as plt cv2.namedWindow( "Left", cv2.WINDOW_AUTOSIZE ); cv2.namedWindow( "Right", cv2.WINDOW_AUTOSIZE...

View Article

Segfault: 11 using FlannBasedMatcher

I'm trying to run a simple example of FlannBasedMatcher to match features between two pictures. However, sometimes when I instantiate a Flann object I get the following error message:...

View Article

How to use cv2.omnidir.calibrate()

Hi, I am trying to use python functions from [omnidir namespace](http://docs.opencv.org/trunk/db/dd2/namespacecv_1_1omnidir.html) in **opencv 3.1.0** for calibrating a Fisheye camera and undistorting...

View Article


Loading a pre-trained KNN classifier - python

I know there is a save command for the KNN classifier, that outputs the model in XML. Is there any corresponding load command to load that model back into python I am using cv2 3.0.0 and Python 2.7

View Article

Binary Descriptor and Keyline

I'm trying to use the [createBinaryDescriptor](http://docs.opencv.org/3.0-beta/modules/line_descriptor/doc/binary_descriptor.html?highlight=createbinarydescriptor) class along with the...

View Article


How to install OpenCV on Arch

How can I get opencv to work on Arch (Antergos)? I can install opecv from the extra-repository, but when I use "import cv2" in python I get the error "libhdf5.so.100 cannot open shared object file"....

View Article

OpenCV Import Error After macOS/Homebrew Update (Reason: image not found)

I am still a beginner in programming and have a poor troubleshooting skill in Python packages. Currently, I have been approach an issue in loading OpenCV packages within Python 3.6. The error log is...

View Article


Training and Test images must be of equal size

I'm trying to do face recognition for my project similar to this. But I need to detect it in a video. So I'm taking a video ([Friends](https://www.youtube.com/watch?v=t0BFOi5o0YY) Video) and take some...

View Article

Storing ORB Keypoints in file

I need to store ORB keypoints and descriptors inside some file, and am currently using Pickle but it is slow (~10-15 seconds to load). Is there another way that would allow for faster saving and...

View Article

I am getting Badwindow error?

The program 'test' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 5635 error_code 3 request_code...

View Article
Browsing all 2088 articles
Browse latest View live