Libraries to identify elements in 2D shapes