Ask Your Question

Radha's profile - activity

2015-05-14 22:52:58 -0600 commented answer How do I correct this code?

Thanks I got it :)

2015-05-14 12:48:57 -0600 received badge  Supporter (source)
2015-05-14 12:48:54 -0600 received badge  Critic (source)
2015-05-14 12:15:02 -0600 commented answer How do I correct this code?

Thank You. Is there a way to download only cv2.pyd?

2015-05-14 11:48:55 -0600 asked a question How do I correct this code?

This is my code.

 import cv
 import numpy as np
 img=cv.imread("D:\OpenCV2.2\doc\logo.png",1)
 hsv=cv.CreateImage(cv.GetSize(img),8,3)
 cv.CvtColor(img,hsv,cv.CV_BGR2HSV)
 mas=cv.CreateImage(cv.GetSize(img),8,1)
 cv.InRangeS(hsv,(110,50,50),(130,255,255),mas)
 res=cv.CreateImage(cv.GetSize(img),8,1)
 cv.bitwise_and(img,img,res,mask=mas)

This is the error I get: Traceback (most recent call last): File "<pyshell#10>", line 1, in <module> cv.bitwise_and(img,img,res,mask=mas) TypeError: Scalar value for argument '<unknown>' is longer than 4