This document describes an algorithm to identify cigarette butts in images. The algorithm uses color segmentation, edge detection, and enhancement techniques in Matlab. It turns the original image into a binary image segmented by the color of cigarette butts. Color and edge detection are used to create a binary mask. Enhancement techniques like dilation and hole filling are applied to smooth edges before labeling objects with random colors for visualization. While the algorithm identifies most cigarette butts, it does not fully eliminate background noise.