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