Tag number recognition