1 | initial version |
You can also look the hierarchy of the contours.
If one contour is inside of another: 1. It could be an empty circle 2. It could an empty circle
If it isn't inside: 1. It could be a circle 2. It could a cross
Then you can also use approxPolyDP (approximate a curve or a polygon with another curve/polygon with less vertices) to distinguish between the two options.
2 | No.2 Revision |
You can also look the hierarchy of the contours.
If one contour is inside of another:
1. It could be an empty circle
2. It could an empty circletriangle
If it isn't inside: 1. It could be a circle 2. It could a cross
Then you can also use approxPolyDP (approximate a curve or a polygon with another curve/polygon with less vertices) to distinguish between the two options.
3 | No.3 Revision |
You can also look the hierarchy of the contours.
If one contour is inside of another:
1. another:
It could an empty triangle
If it isn't inside:
1. inside:
Then you can also use approxPolyDP (approximate a curve or a polygon with another curve/polygon with less vertices) to distinguish between the two options.
4 | No.4 Revision |
You can also look the hierarchy of the contours.
If one contour is inside of another:
It could an empty triangle
If it isn't inside:
Then you can also use approxPolyDP (approximate a curve or a polygon with another curve/polygon with less vertices) to distinguish between the two options.