Ask Your Question

GPrathap's profile - activity

2018-05-06 10:03:28 -0600 commented answer How to provide mask to cv2.accumulateWeighted() method

Hi @berak, noo when I remove mask it worked, when I add mask it is trowing above exception. I am using opencv - 3.4.0 a

2018-05-06 09:27:34 -0600 commented answer How to provide mask to cv2.accumulateWeighted() method

Noo this does not work, I tried both of them. Neither of them didn't work. This is the error it is being got, OpenCV E

2018-04-02 01:31:43 -0600 received badge  Editor (source)
2018-04-02 01:31:43 -0600 edited question How to provide mask to cv2.accumulateWeighted() method

How to provide mask to cv2.accumulateWeighted() method I want to provide mask into the cv2.accumulateWeighted() method.

2018-04-02 01:29:57 -0600 asked a question How to provide mask to cv2.accumulateWeighted() method

How to provide mask to cv2.accumulateWeighted() method I want to provide mask into the cv2.accumulateWeighted() method.

2018-01-30 14:05:48 -0600 received badge  Student (source)
2018-01-30 14:03:55 -0600 commented answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

Yeap, It worked. Thanks for the prompt response.

2018-01-30 14:03:43 -0600 received badge  Supporter (source)
2018-01-30 14:02:41 -0600 marked best answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

I want to explicitly specify the output size of the image when applying cv2.pyrDown() on images.

def gaussian_pyramid(image, scale=1.5, minSize=(30, 30)):
    yield image
    while True:
        w = int(image.shape[1] / scale)
        h = int(image.shape[0] / scale)
        image = cv2.pyrDown(image, dstsize=(w, h))
        if image.shape[0] < minSize[1] or image.shape[1] < minSize[0]:
            break
        yield image

But it is throwing an error something similar to this.

OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0 && std::abs(dsize.width*2 - ssize.width) <= 2 && std::abs(dsize.height*2 - ssize.height) <= 2) in pyrDown_, file /io/opencv/modules/imgproc/src/pyramids.cpp, line 873

Any idea how to specify the output size of the image as a method argument?

2018-01-30 14:02:41 -0600 received badge  Scholar (source)
2018-01-30 14:02:29 -0600 commented answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

Yeap, It worked. Thanks for the prompt response. Please upvote my question because I want to accept your answer :) I don

2018-01-30 14:02:07 -0600 commented answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

Yeap, It worked. Thanks for the prompt response. Please upvote my question because I want to accept your answer :)

2018-01-30 14:01:19 -0600 commented answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

Yeap, It worked. Thanks for the prompt response.

2018-01-30 13:37:29 -0600 commented answer How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

Please provide an example how should be dstsize is provided. cv2.pyrDown(image, dstsize=(-1,-1)) nothing seems to be wo

2018-01-30 13:04:17 -0600 asked a question How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method

How to specify a custom output size in cv2.pyrDown() or cv2.pyrUp() method I want to explicitly specify the output size