Ask Your Question

hardfish82's profile - activity

2016-12-27 12:11:10 -0600 received badge  Necromancer (source)
2016-11-15 01:31:23 -0600 answered a question How to use MSER in Python

For opencv 2.4:

import cv2
img = cv2.imread('bed.jpg', 0);
vis = img.copy()
mser = cv2.MSER()
regions = mser.detect(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()
2016-11-14 19:49:15 -0600 received badge  Supporter (source)