uiseg.UISeg is a Python library for automatic segmentation of user interface (UI) images into meaningful regions. It leverages adaptive thresholding, morphological operations, and connected components analysis to detect and merge UI blocks, making it useful for UI analysis, automation, and research.