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

how to solve cv2.error(-215:Assertion failed)

when i run the programme, it reveals cv2.error: OpenCV(4.0.0) C:\projects\opencv-python\opencv\modules\objdetect\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function...

View Article


Split number touching each other with openCV

Hi, i'm looking to split number on image. My main problem is that the number may touch each other. so all technique with contour found online doesn't work. Here an exemple of image i'm trying to work...

View Article


Install gstreamer support for opencv python package

I am having trouble enabling gstreamer support for the opencv python package (cv2). gstreamer1.0 is running fine as a standalone and I have manually built the cv2 python package from the OpenCV...

View Article

Why is the order of color channels in funtion copyMakeBorder in Python...

As we all know, OpenCV uses a differnt order of color channels (b, r, g,) not (r, b, g) for a historical reason. But I find that in python version, the second parameter of cv.copyMakeBorder, namely...

View Article

Use of LBPHFaceRecognizer (python)

I am testing the python version of LBPHFaceRecognizer and results seems not bad, but I noted something strange. Making the prediction, let's say: label= face_recognizer.predict(gray)...

View Article


Extrinsic landmarks detection from images ?

I am working on a problem of registration of a particular type of medical imaging. To do this, I have to extract extrinsic markers automatically from the images. Take this image as an example: ![image...

View Article

There is no cv2 module in apk

Good afternoon, there is a small application written using python, kivy and opencv. The buildozer builds without errors, but when I launch the application on the phone it crashes with the following...

View Article

Enable non-free algorythms (SIFT, SURF) of OpenCV for Python

I compiled the opencv-master by adding extra modules from opencv_contrib-master with CMake based on the following guide by @zoldaten:...

View Article


Recording video file with gstreamer and python script

Hello Trying to use ROS+OpenCV+Gstreamer to write to a file. I am using the compressedImage message from a USB Camera in order to record a mp4 file. Some reason python script is not able to run...

View Article


Building OpenCV with CUDA support

I tried compiling OpenCV from source with added CUDA support with CMake, and while I'm building it, it says "CUDA: YES" but after it's done if I test it, it doesn't have CUDA support. Also it doesn't...

View Article

Drawing a rectangle and masking the outside area

![image description](/upfiles/1555331815676657.png) I wrote some code that uses background subtraction to measure movement. The above image shows the first frame (1), Original video (2), and movement...

View Article

Writing multiple videos from webcam stream

Hey Everyone, so I've been working on my senior project and it's meant to write out the video recorded from a webcam connected to a raspberry pi and function as a motion detector. I'm having trouble...

View Article

IP Cam change Exposure

For my Project i like to buy this cam: [Foscam...

View Article


is there any way to debug a false dll load failed error

I built opencv 4.1.0 with gstreamer and python bindings. Everything has built correctly and works in my anaconda environments except in the environment I need it to work in. It is the strangest thing I...

View Article

Identify all values that are close to zero

I have a numpy array and I am minusing a constant value from the array. I want the values to go negative if necessary (and not wrap around or floor to zero). I then need to extract all array values...

View Article


parking with opencv and python

Hello I need to make a program for the recognition of vehicles in a parking lot, the idea is to do it by detecting the frames of the spaces when they are occupied by cars, through the raspberry...

View Article

Remove white noise between white horizontal line

I currently have an image with white horizontal lines. between those lines, there is some noise that I would like to remove. I've already done Morphological Opening on the original image and the...

View Article


Do facial landmark detectors work across different languages?

Hi everyone, I am currently using a dlib facial landmark detector designed by Dr. Adrian Rosebrock in his tutorial [here](https://www.pyimagesearch.com/2017/04/03/facial-landmarks-dlib-opencv-python/)...

View Article

python requests mjpeg url

frame = cv2.imdecode(np.asarray(bytearray(jpg), dtype=np.uint8), cv2.IMREAD_COLOR) this line error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:726: error:...

View Article

Interlaced frame - Presence of odd field's data in even fields

I am trying to isolate the odd fields and even field from a interlaced frame. The algorithm that I use is simply matrix slicing. When I display the images, I see that there are remanants of odd field...

View Article
Browsing all 2088 articles
Browse latest View live