This document presents research on developing an image processing algorithm to identify mango fruits. It compares edge-based and color-based segmentation methods. The color-based method uses k-means clustering, binarization, and morphological operations to segment mango fruits from images. It achieves 85-90% accuracy. Edge detection was less reliable due to complex backgrounds. While color-based segmentation performed better, it still struggled with illumination conditions and occlusion. The research aims to help automate fruit harvesting by detecting fruits accurately in outdoor conditions.