Find all rectangle(or another shape like circle, square, and triangle) in image
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi.
I want to fine corners of rectangle in images for tracking changing coordination. For this, i think that find edge and corners of rectangle first.
How to find all rectangle's outline.
I attached 2 images. The attached image have 40 rectangles. I want to get "40". However, the image have noise. How to i get target's exactly number.
Please, help me.
Thanks.
.
Noise Rectangle 1
Noise Rectangle 2
댓글 수: 0
채택된 답변
Image Analyst
2018년 6월 15일
Find the red stuff using color segmentation. Then erode the mask to separate the squares. Then examine each blob to see how many vertices it has and determine if it's a square, triangle, pentagon, or whatever. See attached demo.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!