Ask Your Question

riya1405's profile - activity

2019-12-30 10:44:09 -0600 received badge  Famous Question (source)
2019-06-05 02:02:15 -0600 received badge  Famous Question (source)
2018-08-30 06:46:30 -0600 received badge  Notable Question (source)
2018-07-18 09:26:34 -0600 received badge  Notable Question (source)
2018-04-18 10:19:18 -0600 received badge  Popular Question (source)
2017-12-10 01:35:36 -0600 received badge  Popular Question (source)
2016-12-16 00:13:39 -0600 received badge  Enthusiast
2016-09-01 05:21:37 -0600 commented answer Merging HSV planes to get modified S plane

Yeah it helped. Thanks a lot!

2016-09-01 05:19:34 -0600 commented question Merging HSV planes to get modified S plane

I need to superimpose another 3 channel image with this one.

2016-08-31 09:51:50 -0600 asked a question Merging HSV planes to get modified S plane

I separated the HSV planes and modified the s plane.I need the merged image to look exactly like the modified s plane. How should I do that?

Modified s plane image: modified s plane

Output obtained after setting other layers to 0 and merging: output obtained after merging

2016-08-22 13:41:09 -0600 received badge  Supporter (source)
2016-08-22 11:21:28 -0600 commented answer How to remove green color i.e. to set it to 0 in an image?

Others are working too I think ;)

2016-08-22 10:38:35 -0600 commented answer How to remove green color i.e. to set it to 0 in an image?

Thanks a lot!

2016-08-22 08:51:42 -0600 commented answer How to remove green color i.e. to set it to 0 in an image?

Thank you! And i just wanted to ask that what is the equivalent of setTo() in python?

2016-08-21 03:29:19 -0600 commented question How to remove green color i.e. to set it to 0 in an image?

Yeah, I'll add the image

2016-08-20 07:32:17 -0600 commented question How to remove green color i.e. to set it to 0 in an image?

I dont want to remove green channel. That would give me some sort of pinkish image. I need to remove green from the entire image. The original image with green turned to black in it. The input is image containing trees and bushes. And i wish to set the regions as black.

2016-08-20 04:42:52 -0600 commented answer In the Shi-Tomasi method, is it possible to get the area where the frequency of detected corners is high?

I'll try it out. Thanks for your help! :)

2016-08-20 04:08:08 -0600 asked a question How to remove green color i.e. to set it to 0 in an image?

I am having an image and wish to remove the green color in it i.e. to set it to value 0. How to do that? https://dditec.miraheze.org/wiki/File...

2016-08-16 03:55:59 -0600 received badge  Student (source)
2016-08-13 06:34:14 -0600 asked a question In the Shi-Tomasi method, is it possible to get the area where the frequency of detected corners is high?

I am trying to find the area in image where there are maximum corners detected. Is there any possible way to do this?

2016-07-24 11:33:07 -0600 commented answer simple blob Detection

I don't want to use contours on this one. I'm trying to detect cars in an image, so this is the basic blob test.

2016-07-24 11:26:31 -0600 commented answer simple blob Detection

So what should I do to detect these blobs?

2016-07-24 11:20:21 -0600 commented answer simple blob Detection

If I don't use parameters at all, then it is supposed to give me all the blobs that are detected right?

2016-07-23 13:09:10 -0600 asked a question simple blob Detection

Hi, I am trying to detect simple blobs in an image but while running code, I get the image without any keypoints plotted. Why am I not able to detect the blobs?

import cv2
import numpy as np;
im = cv2.imread('blob1.jpeg', cv2.IMREAD_GRAYSCALE)

# Setup SimpleBlobDetector parameters.
params = cv2.SimpleBlobDetector_Params()

# Change thresholds
params.minThreshold = 50
params.maxThreshold = 150
# Filter by Area.
params.filterByArea = True
params.minArea = 150
detector = cv2.SimpleBlobDetector_create(params)

# Detect blobs.
keypoints = detector.detect(im)

# Draw detected blobs as red circles.
# cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS ensures
# the size of the circle corresponds to the size of blob

im_with_keypoints = cv2.drawKeypoints(im, keypoints, np.array([]), (255,0,0), cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)

# Show blobs
cv2.imshow("Keypoints", im_with_keypoints)
cv2.waitKey(0)
cv2.destroyAllWindows()

image description

image description

2016-06-28 05:05:42 -0600 commented answer Trouble detecting hand drawn shapes

Okay Thanks a lot!

2016-06-28 04:54:20 -0600 commented question Trouble detecting hand drawn shapes

I had copied the code here but there were some identation problems. I have corrected it.

2016-06-28 04:52:59 -0600 received badge  Editor (source)
2016-06-28 04:34:00 -0600 commented question Trouble detecting hand drawn shapes

yes. it works perfectly on a paint image.

2016-06-28 04:18:18 -0600 asked a question Trouble detecting hand drawn shapes

I have written a basic code to detect hand drawn shapes i.e. drawn on paper and captured with a camera.[p1.png] and this is the output that i am getting.

import numpy as np
import cv2

im = cv2.imread('c:/p1.png')
cv2.imshow('original image',im)
cv2.waitKey()

imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
cv2.imshow('gray image',imgray)
cv2.waitKey()

ret,thresh = cv2.threshold(imgray,80,255,0)
cv2.imshow('thresh image',thresh)
cv2.waitKey()

image, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
cv2.imshow('cont image',image)
cv2.waitKey()
ctt=0
for cnt in contours:
     approx = cv2.approxPolyDP(cnt,0.01*cv2.arcLength(cnt,True),True)
     print len(approx)
     if len(approx)==5:
         print "pentagon"
         cv2.drawContours(im,[cnt],0,255,-1)
         ctt+=1
     elif len(approx)==3:
         print "triangle"
         cv2.drawContours(im,[cnt],0,(0,255,0),-1)
         ctt+=1
     elif len(approx)==4:
         print "square"
         cv2.drawContours(im,[cnt],0,(0,0,255),-1)
         ctt+=1
     elif len(approx) == 9:
         print "half-circle"
         cv2.drawContours(im,[cnt],0,(255,255,0),-1)
         ctt+=1
     elif len(approx) > 15:
         print "circle"
         cv2.drawContours(im,[cnt],0,(0,255,255),-1)
         ctt+=1

cv2.imshow('img',im)
cv2.waitKey(0)
cv2.destroyAllWindows()
print "Total no.= ",ctt