I play in a rec soccer league and had a similar idea, except to also have everyone on the team wear a smartwatch that could intelligently buzz at you to sub out based on your heartrate and how long you've been in.
Trace and hudl use shirt number and person tracking. I bet they could add skin color and gait analysis to do this as well.