Skip to content
Advertisement

Tag: functional-programming

Filter contour area with smaller area

I would like to filter out cnts with small area. But I got the an error. What is the proper way to use filter? code error Answer The filter function returns a generator but the drawContours function expects a list. To fix this, use the list command. Another solution is to use a list comprehension to build the list, like

Advertisement