Ask Your Question

ghltshubh's profile - activity

2020-11-09 09:22:47 -0500 received badge  Self-Learner (source)
2020-11-09 03:44:40 -0500 received badge  Popular Question (source)
2017-11-15 23:25:43 -0500 commented question What wrong with the color manipulation?

doesn't let me answer my own question.

2017-11-14 18:01:47 -0500 edited question What wrong with the color manipulation?

What wrong with the color manipulation? I am doing the erosion example from the OpenCV3 documentation but the color of t

2017-11-14 18:00:50 -0500 edited question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 18:00:29 -0500 edited question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 17:59:36 -0500 edited question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 17:58:22 -0500 edited question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 17:53:50 -0500 edited question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 17:53:32 -0500 asked a question Not getting expected output on morphologically transforming images.

Not getting expected output on morphologically transforming images. I am trying to do top hat morphological transformati

2017-11-14 16:14:16 -0500 edited question What wrong with the color manipulation?

What wrong with the color manipulation? I am doing the erosion example from the OpenCV3 documentation but the color of t

2017-11-14 16:14:00 -0500 edited question What wrong with the color manipulation?

What wrong with the color manipulation? I am doing the erosion example from the OpenCV3 documentation but the color of t

2017-11-14 16:01:06 -0500 asked a question What wrong with the color manipulation?

What wrong with the color manipulation? I am doing the erosion example from the OpenCV3 documentation but the color of t

2017-11-12 01:04:49 -0500 received badge  Enthusiast
2017-11-11 23:54:46 -0500 commented question OpenCV 3: Why does the UI render incorrectly?

There is some issue with Qt the base rendering library.

2017-11-11 23:53:46 -0500 commented answer What's the issue with Perspective Transformation?

The pts1 was different for the actual image than the one given in the example. I checked the points manually in GIMP and

2017-11-06 00:24:25 -0500 commented answer What's the issue with Perspective Transformation?

I don't get it what you said. The pts1 do fit on the image where the green dots are.

2017-11-06 00:24:03 -0500 commented answer What's the issue with Perspective Transformation?

I don't get it what are you saying. The pts1 do fit on the image where the green dots are.

2017-11-06 00:22:16 -0500 marked best answer What's the issue with Perspective Transformation?

I am trying perspective transformation example from the documentation but I am getting different result than the example.

import cv2
import matplotlib.pyplot as plt
import numpy as np
img = cv2.imread('sudoku.png')
rows,cols,ch = img.shape
pts1 = np.float32([[56,65],[368,52],[28,387],[389,390]])
pts2 = np.float32([[0,0],[300,0],[0,300],[300,300]])
M = cv2.getPerspectiveTransform(pts1,pts2)
dst = cv2.warpPerspective(img,M,(300,300))
plt.subplot(121),plt.imshow(img),plt.title('Input')
plt.subplot(122),plt.imshow(dst),plt.title('Output')
plt.show()

The result according to the example should look like this(ignore the green lines): image description

whereas what I got looks like this:

image description

Any ideas what's going on here? I am on macOS 10.13, openCV 3.3.1 and using python 3.6

2017-11-06 00:22:16 -0500 received badge  Scholar (source)
2017-11-05 22:53:26 -0500 edited question What's the issue with Perspective Transformation?

What's the issue with Perspective Transformation? I am trying perspective transformation example from the documentation

2017-11-05 22:25:37 -0500 edited question What's the issue with Perspective Transformation?

What's the issue with Perspective Transformation? I am trying perspective transformation example from the documentation

2017-11-05 22:24:59 -0500 asked a question What's the issue with Perspective Transformation?

What's the issue with Perspective Transformation? I am trying perspective transformation example from the documentation

2017-11-05 22:17:39 -0500 commented question OpenCV 3: Why does the UI render incorrectly?

On windows or macOS?

2017-11-05 13:15:07 -0500 commented question How to use waitKey()

Oh ok. Thanks.

2017-11-05 13:14:40 -0500 commented question How to use waitKey()

Why this behavior even when its not required?

2017-11-05 13:09:00 -0500 commented question How to use waitKey()

so it's not mandatory. right?

2017-11-05 13:08:55 -0500 commented question How to use waitKey()

so it'd not mandatory. right?

2017-11-05 13:08:37 -0500 commented question How to use waitKey()

so is it mandatory?

2017-11-05 13:01:11 -0500 commented question How to use waitKey()

yeah waitKey(10) worked. So correct me if I am wrong, what it does is it holds the loop for that amount of time and allo

2017-11-05 13:00:39 -0500 commented question How to use waitKey()

yeah waitKey(10) worked. So correct me if I am wrong, what it does is it holds the loop for that amount of time and allo

2017-11-05 12:17:02 -0500 asked a question How to use waitKey()

How to use waitKey() I am writing a program to read images from a folder and transition between them using addWeighted()

2017-11-05 12:08:50 -0500 commented question OpenCV 3: Why does the UI render incorrectly?

It's a known issue in opencv which is still open: here

2017-11-05 12:08:39 -0500 commented question OpenCV 3: Why does the UI render incorrectly?

It's an known issue in opencv which is still open: here

2017-11-05 12:08:00 -0500 commented question OpenCV 3: Why does the UI render incorrectly?

It's an open issue in opencv since 2015: here

2017-11-04 21:57:51 -0500 edited question OpenCV 3: Why does the UI render incorrectly?

OpenCV 3: Why does the UI render incorrectly? 0 down vote favorite I am a new to openCV and trying its examples from doc

2017-11-03 21:46:54 -0500 received badge  Editor (source)
2017-11-03 21:46:54 -0500 edited question OpenCV 3: Why does the UI render incorrectly?

OpenCV 3: Why does the UI render incorrectly? 0 down vote favorite I am a new to openCV and trying its examples from doc

2017-11-03 12:00:25 -0500 asked a question OpenCV 3: Why does the UI render incorrectly?

OpenCV 3: Why does the UI render incorrectly? 0 down vote favorite I am a new to openCV and trying its examples from doc

2017-10-15 20:24:14 -0500 asked a question Reading video from a video file not working.

Reading video from a video file not working. import cv2 cap = cv2.VideoCapture('vtest.avi') while(cap.isOpened()): re