Deciphering the Patterns of Oriental Rugs