Pallavi Pundir

Results 4 comments of Pallavi Pundir

Just initialize with one more variable in front of other two on L.H.S.For example:- _,conts,h=cv2.findContours(maskFinal.copy(),cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_NONE) I've used _(Underscore) here.You can give any name or simply use it as underscore only.

Ofcourse it is.Don't worry, it is safe to say this.

Use like this:- (_, cnts, h)= cv2.findContours(closed.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

Because you cannot unpack 3 values from the tuple and place them in a tuple of two,which you are doing.