Help me with inserting an audio file in this python code for face & eye...
So basically I wanted to make a driver drowsiness alarm system, where an alarm will sound once the system detects that the driver has its eyes closed for more than 3 second. (I'm thinking of using 5...
View Articleopencv configure using cmake::error
when i am compiling cmake to my ubuntu i face this issue /usr/bin/ld: warning: libprotobuf.so.15, needed by ../../lib/libopencv_dnn.so.3.1.0, not found (try using -rpath or -rpath-link)...
View ArticleSkeletonization of the image
Hey, im trying to convert the below image into skeleton using opencv.  By using ---------------------------------------- size = np.size(crop) skel =...
View ArticleHow to display multiple images in one window?
I load 1 image and display them in 2 separate windows , one is normal and other one is grayscale filtered. But i need to display them in 1 window , side by side. I made example image :...
View ArticleProblem in loading the image..
import numpy as np import cv2 img = cv2.imread("mud.jpeg",cv2.IMREAD_COLOR) cv2.imshow("bhatnagar",img) cv2.waitKey(5) This is the error I am getting: I have even tried by giving the path of the image...
View ArticlePython Finding start and end of a line using opencv
Hey i need help with finding the start and end of the line from this image.  Appreciate it if anyone can help me.
View Articletemplate matching videos
here iam having the code for template matching ..how can i change this code for doing template matching on videos import cv2 import numpy as np img_rgb =...
View ArticleHow do I load an OpenCV generated yaml file in python?
It appears that OpenCV is writing yaml 1.0 but PyYaml only wants to read yaml 1.1 (http://pyyaml.org/#Whatimplementationshouldyouuse and...
View ArticlePython faster pixel access
I'm using a double for loop to iterate over an image, and it's very slow: for j in range(0, hsv_frame.shape[0]): for i in range(0, hsv_frame.shape[1]): h = frame[j, i, 0] s = frame[j, i, 1] v =...
View Articletracking with hsv?
New at this so please excuse me if this is something obvious but I dont get it.. I am playing around with tracking something in a video using python opencv. I started with a sample program and my own...
View Articlebuild opencv with ffmpeg support
I read nearly all of the questions about this subject but I didn't solve it. I am working on Linux/Mint. I installed OpenCV in the virtual environment a lot of times when trying to solve this problem....
View ArticleHow many frames is it when I call videoWriter.write?
In constructor function of VideoWriter, I set the fps is 10. But I call videoWriter.write(frame) function more than 10 times per second. So my question is what is the real fps in my saved video and...
View Articlepython-opencv h 265 codec
Hello everyone. I am using python-opencv 3.3.1 and i want to read the stream h.265 via rtsp using ip camera. But it gives an error while reading frames. When i stream my video by h.264 codec it works...
View ArticleInstalling OpenCV Not Working
When I type in the following,> brew tap homebrew/science>> brew install opencv3 --with-contrib> --withpython3 I get the errors > Warning: opencv: this formula has no> --with-contrib...
View ArticleOpencv map predefined GT cordinates to different aspect ratio
I have a dataset of eye gluacoma with predefined ground truths of optic disc and optic cup, but the image size in the dataset is way too large, they are around 2045x1752 so the GT cordinates are also...
View ArticleHow to do skeletonization for this image
Hey guys, im trying to do skeletonization for this image using python 3.6.3 opencv.  I'm hoping to use Guo-hall or Zhang-Suen thinning algorithms to...
View ArticleAny other method similar to template matching?
I am trying to identify the basketball courts in my area, I've tried multiple methods/tutorials from the OpenCV website. E.g. Feature Matching + Homograph, Brute-Force Matching, FLANN Based Matcher,...
View Articleopencv python process(segmentise) non-rectangular region without masking
I have extracted the co-ordinates of the non-rectangular(blob) region from the image, and simply appended it to a list, cup_roi_hull = [] for cord in cup_roi_coordinates:...
View ArticleI am trying to stitch a few images and getting assertion errors.
Image scheme is `W*H*channels`. I have two images of dimensions : 600\*429\*3 and 600\*523\*3 There is a overlap between the two images. On trying to stitch I get the following error: OpenCV Error:...
View ArticleCircle not appearing on my image.
Hey guys, im tried drawing a circle on the midpoint of my line but there's no circle. It created a gap between the lines instead. Please advice thanks! ![image...
View Article