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 ArticleSplit 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 ArticleInstall 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 ArticleWhy 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 ArticleUse 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 ArticleExtrinsic 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:  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 ArticleWriting 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 Articleis 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 ArticleIdentify 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 Articleparking 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 ArticleRemove 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 ArticleDo 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 Articlepython 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 ArticleInterlaced 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