Top "Cv2" questions

THIS TAG IS PENDING REMOVAL.

What should be the arguments of cv2.setMouseCallback()

I have been working on opencv and have passed through cv2.setMouseCallback() . Following is the code for drawing circles on …

python numpy opencv cv2
Convert a black and white image to array of numbers?

Like the image above suggests, how can I convert the image to the left into an array that represent the …

python image numpy image-processing cv2
Simple method to extract specific color range from an image in Python?

I'm trying to extract a specific color from an image within a defined RGB range using the cv2 module. In …

python-3.x opencv image-processing cv2
cv2.imshow() giving black screen

I'm converting a image (numpy array) into a string. Then I'm converting this string back to a numpy array of …

python arrays numpy cv2
How to merge lines after HoughLinesP?

My task is to find coordinates of lines (startX, startY, endX, endY) and rectangles (4 lines). Here is input file: I …

python opencv computer-vision hough-transform cv2
Python OpenCV Error: Current thread is not the object's thread

I'm having an error running simple code using cv2 module. It's just: import cv2 img = cv2.imread('sudoku.png',0) cv2.…

python opencv cv2
Error while resizing image: "error: (-215:Assertion failed) func != 0 in function 'resize'"

I'm trying to preprocess images dataset, represented in numpy array with images of shape (28, 28) by rescaling them to (10, 10). I wrote …

python cv2 image-preprocessing
Convert Numpy array to image by using CV2 or PIL

I am trying to convert my array to image using CV2 or PIL libraries, In both of libraries, I am …

python-3.x numpy opencv python-imaging-library cv2
cv2.cvtcolor bgr2gray seems get an error image

# the code is as follows, implemented, but the result is possibly wrong, it is not the grayscale i wanted, someone …

python cv2 bgr
How to crop the biggest object in image with python opencv?

I want to crop the biggest object in the image (Characters). This code only works if there is no line (…

python opencv image-processing cv2 opencv-contour