Ask Your Question

ghltshubh's profile - activity

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

doesn't let me answer my own question.

2017-11-14 18:01:47 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 received badge  Enthusiast
2017-11-11 23:54:46 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 received badge  Scholar (source)
2017-11-05 22:53:26 -0600 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 -0600 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 -0600 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 -0600 commented question OpenCV 3: Why does the UI render incorrectly?

On windows or macOS?

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

Oh ok. Thanks.

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

Why this behavior even when its not required?

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

so it's not mandatory. right?

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

so it'd not mandatory. right?

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

so is it mandatory?

2017-11-05 13:01:11 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 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 -0600 received badge  Editor (source)
2017-11-03 21:46:54 -0600 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 -0600 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 -0600 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