Ask Your Question
1

want to know MSER example

asked 2017-04-10 05:17:21 -0500

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-04-10 05:25:46 -0500

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
 |
 ...
edit flag offensive delete link more

Comments

Thanks.I get it : )

vimgg gravatar imagevimgg ( 2017-04-10 06:23:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-10 05:17:21 -0500

Seen: 1,516 times

Last updated: Apr 10 '17