First time here? Check out the FAQ!

Ask Your Question
1

want to know MSER example

asked Apr 10 '17

vimgg gravatar image

I have some question about using opencv in python. I don't know how to use MSER. I only know is that : mser = cv2.MSER_create() regions = mser.detectRegions(imgGrayscaleScene, None)

what is the second param in detectRegions? Why none? can I add other things? I had search on goolge but can not find some API doc about this function in python. Anyone can help?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Apr 10 '17

berak gravatar image

please have a look at the mser python sample

there is no second parameter, but a second return value, bboxes (the bounding boxes for the detected regions)

>>> m = cv2.MSER_create()
>>> help(m)
Help on MSER object:
 ...
 |
 |  detectRegions(...)
 |      detectRegions(image) -> msers, bboxes
 |
 ...
Preview: (hide)

Comments

Thanks.I get it : )

vimgg gravatar imagevimgg (Apr 10 '17)edit

Question Tools

1 follower

Stats

Asked: Apr 10 '17

Seen: 1,715 times

Last updated: Apr 10 '17