c++ - Segment A Picture In Opencv -



c++ - Segment A Picture In Opencv -

i using c++ opencv, can't segment pictures this:

(sorry english)

picture 1 picture 2

i want segment sheet, removing background located @ edges. trying utilize "watershed" locate position of sheet, had problem image format, don't know if there algorithm work me.

the thought crop white sheet, removing background, unknow size , position of sheet. in center of image looks sheet, can help me?

thanks!!

you can thing like,

threshold image, here assume image white sheet.

now find contour , select largest contour.

now bounding box largest contour , crop sheet.

c++ opencv segment

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -