I saw this example: OpenCV MSER detect text areas - Python
and I tried to use that code but it's not working. The error is:
hulls = [cv2.convexHull(p.reshape(-1, 1, 2)) for p in regions]
AttributeError: 'list' object has no attribute 'reshape'
Where does the variable p
come from?