Category "opencv3.0"

Crop colour image according to OTSU threshold

I have a colour image which I have sucessfully applied the OTSU thresholding method on its greyscale form to obtain the outline of the biscuit: Original Colour

opencv_traincascade -numStages 1 How many stages do I need?

I am tracking one particular dog and nothing else. What is the maximum stage, number of positive and negative samples that makes sense? With: ./opencv_trainc

OpenCV C++ Sorting a vector of contour point in decending order

I'm trying to sort vector of contours point in decending order but whenever I used: sort(contours.begin(), contours.end() , greater<>()), It is poping

OpenCV AttributeError module 'cv2.cv2' has no attribute 'Tracker_create'

I have tried to run this code but get an Attribute Error. Any help would be greatly appreciated. import cv2 import sys (major_ver, minor_ver, subm

Filling contour won't work using drawContours() thickness=-1 [duplicate]

I am trying to fill a contour which was obtained by separately thresholding 3 color channels. image_original = cv2.imread(original_image_pat

Importing OpenCV - import cv2 or cv3, and why does the directory matter?

I am trying to use OpenCV for Python 3 for the first time. To install, I simply typed "pip3 install opencv-python" into the terminal. When I do this, I see in F

OpenCV Python - No module named cv2 (again)

I know that this question has already been asked here a few times, but since no answer helped me so far, I'm posting it here again. What I did: I cloned the r

cannot unpack non-iterable numpy.float64 object python3 opencv

I am getting this error and cant understand why the issue is appearing. Below will be the code and error. The result of the last printable workout [-8.545822

Frame from video is upside down after extracting

My problem here is that when I extracting a video into a frame using opencv, sometimes the frame that I get will flip up which happened to me for both my machin

check IPP is enabled or not in opencv

I have system with installed opencv-3.0. I need to check whether IPP is enabled or not in the opencv. How can I check that ?