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

contourArea strange behaviour

I am just starting to play with OpenCV and I have found some very strange behaviour from the contourArea function. See this image. [![Original][1]][1] It has three non connected areas, the left is a...

View Article


How to extract a feature from OpenCV instead of skimage?

I'd like to use `import cv2` instead of `from skimage import feature` with **local_binary_pattern** because GPU doesn't support skimage library and I need to use it in real-time which requires high...

View Article


python code in tutorial "file input and output using xml and yaml files"

Hello, I am new to openCV. I'm following the tutorials ["File Input and Output using XML and YAML files "](https://docs.opencv.org/master/dd/d74/tutorial_file_input_output_with_xml_yml.html). I...

View Article

How do i remove background noise in binary picture?

I am really new to opencv. How can I remove the noise in the background without losing info? https://i.stack.imgur.com/LQ3W3.jpg I started with this: https://i.stack.imgur.com/YHtN6.jpg, and Otsu...

View Article

Opencv-python kivy app running in Android - Camera does not open, issued...

Hello, I have an application developed in Python-Kivy for Android, using buildozer. This application uses Opencv to activate the smartphone's camera, and capture frames from the camera to analyze. The...

View Article


How to add python2 to pre-built OpenCV?

Hello I have built OpenCV from source with Python3 enabled. Now I want to add Python2 as well. Is there any way to avoid re-building the whole Library? I guess there might be a way because only the...

View Article

How to add python2 to pre-built OpenCV?

Hello I have built OpenCV from source with Python3 enabled. Now I want to add Python2 as well. Is there any way to avoid re-building the whole Library? I guess there might be a way because only the...

View Article

Unable to train images using LBPH algorithm OpenCV

I am trying to train images for facial recognition but i am getting error while doing so. I have posted the question in stack overflow at following link: https://stackoverflow.com/q/60756692/12946806 a...

View Article


How can I increase contrast in binary picture?(python)

I'm really new to opencv. This is my picture and as you can see the lines in the bottom left corner are faded. I tried threshholding and dilation but it deformed the lines. ![image...

View Article


Drawing checkerboard's reference frame does not yield correct results...

Greetings, I have followed the tutorial at https://docs.opencv.org/master/d7/d53/tutorial_py_pose.html based on calibration data obtained following the tutorial at...

View Article

How to detect foreign objects on a plane?

Hello! My task is to detect whether table clean or not. My current method is to do some kind of shadow removal using algorithm given in a [SO...

View Article

looping kiosk tkinter app with cv2

I made this app to save cam snapshots whenever the snap shot button is pressed however when i circle back to the welcome page and then to the cam page , i get this error: cv2image =...

View Article

Help with optimization OpenCV Python

Im new to python and im trying to write a simple bot thats do some actions when detect green color mob. Bot is working, but slowly. So i need help with optimization. Bot where simple: detect mobs and...

View Article


what maximum frame rate opencv can handle

Hello. I'm building a color sorter, I used two cameras(opposite), one 120fps 640x360. ELP I want to detect the colors of the seeds on the fly. Unfortunately, my cameras in 120 frames are too slow. I...

View Article

what maximum frame rate opencv can handle

Hello. I'm building a color sorter, I used two cameras(opposite), one 120fps 640x360. ELP I want to detect the colors of the seeds on the fly. Unfortunately, my cameras in 120 frames are too slow. I...

View Article


Complied from source - ubuntu/python - error librsvg-2.so.2: undefined...

I've complied from source with the following cmake setitngs cmake -D CMAKE_BUILD_TYPE=RELEASE -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=OFF -D...

View Article

Finding the exact number of Hough lines

I have read an image and processed an image using Python and OpenCV. I have also obtained the coordinates of the horizontal lines in the image. However, some lines belong to the same set of lines as...

View Article


trying to get 3d depth from stero images to work

So I've been tumbling down a rabbit whole and I'm at a loss. In Python (the code is below) I've been following many tutorials, and trying to convert the C++ examples to python. At first I was getting...

View Article

GpuMat CVWRAP Python bindings

I'm trying to connect up OpenCV and NVIDIA's own libraries in Python as fast as I can, and I've hit a bit of a snag. I'd like to make a GpuMat, using the constructor: ```GpuMat(int rows, int cols, int...

View Article

Trouble with writing video

Hey, I want to create a video from images. Size of images are same. I create video using import cv2 import numpy as np import glob img_array = [] for filename in glob.glob('output/*.jpg'): img =...

View Article
Browsing all 2088 articles
Browse latest View live