The basic idea is that each wand has a reflector in the tip, which coupled with strong IR illumination makes them glow on camera. This allows for easy gesture recognition using computer vision ...
It’s all but impossible to reach the end of the Harry Potter books or movies without secretly pining for a wand of your own, but it’s probably best for humanity that we’re not all flailing magical ...