This document presents a shape recognition method using morphological operations. It aims to address the issue of over-segmentation between different objects in an image. The method extracts object boundaries to segment touching or overlapping objects. It then recognizes shapes by matching their mathematical features to a training set. The algorithm was tested on various image datasets and achieved a 95% recognition rate. It can identify shapes even when objects are touching, overlapping, or contained within each other in the input image.