Ask Your Question
0

extract a contour out of an image

asked 2015-06-04 07:58:29 -0600

ziad10a gravatar image

updated 2017-08-22 06:54:29 -0600

Hey

I'm new to OpenCV, still learning the different functions and libraries. I'm trying to achieve something but still I can't find the proper method for it. I have an Image and I want to select a specific contour of four points (polygon) and then extract it. I managed to find a way to get the four points according to screen x,y but I can't find the method which extracts this contour and makes it a new image. and the new image must be square/rectangle shaped ....

Any help ?

edit retag flag offensive close merge delete

Comments

2

Do you mean something like this?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-06-04 10:24:50 -0600 )edit

thdrksdfthmn thanks for the link ... I haven't read it yet but I've seen the picture and it's exactly what I want. Thanks mate

ziad10a gravatar imageziad10a ( 2015-06-07 10:25:15 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-08 05:13:18 -0600

ziad10a gravatar image

Thanks thdrksdfthmn It served the purpose

this solution is in this link

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-04 07:58:29 -0600

Seen: 303 times

Last updated: Jun 08 '15