Category : opencv-python

I have tried some variations in the parameters, read a detailed description of their meaning, but I can’t seem to detect a simple circle in an image. This is a simplified function I have tried: def get_a_circles(image): gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) circles = cv2.HoughCircles(gray, # input grayscale image cv2.HOUGH_GRADIENT, 2, minDist=5, param1=10, param2=200, minRadius=0, maxRadius=0) ..

Read more

so when you do for example Feature Detection with OpenCV, you will do somethin like this: Detector = cv2.xfeatures2d.SIFT_create(nfeatures=500) features, descriptors = Detector.detectAndCompute(img, None) So according to the documentation for the parameter nfeatures: The number of best features to retain. The features are ranked by their scores (measured in SIFT algorithm as the local contrast) ..

Read more

I want to install opencv-contrib-python on my Raspberry pi4(Raspberry pi os) When I execute this command: sudo pip3 install opencv-contrib-python I get the following error: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting opencv-contrib-python Using cached https://files.pythonhosted.org/packages/88/ed/87ee6dd3f3f578e1120ef38026b93aa4e78d30f0dc86f703b77bc971cd5c/opencv-contrib-python-4.5.3.56.tar.gz Installing build dependencies … error Complete output from command /usr/bin/python3 -m pip install –ignore-installed –no-user –prefix /tmp/pip-build-env-n2u745p4 –no-warn-script-location –no-binary :none: ..

Read more