Ask Your Question

Ayush_Sharma's profile - activity

2016-12-27 12:11:21 -0600 received badge  Necromancer (source)
2015-11-09 19:46:13 -0600 answered a question How to use MSER in Python
import cv2
img = cv2.imread('bed.jpg', 0);
vis = img.copy()
mser = cv2.MSER_create()
regions = mser.detectRegions(img, None)
hulls = [cv2.convexHull(p.reshape(-1, 1, 2)) for p in regions]
cv2.polylines(vis, hulls, 1, (0, 255, 0))
cv2.imshow('img', vis)
cv2.waitKey(0)
cv2.destroyAllWindows()

SOURCE : https://fossies.org/dox/opencv-3.0.0/...

The post above is old. This is how now MSER is used.