It's a bit absurd to have an article about this and not include any screenshots of the actual white blocks used by the lightgun to detect targets. This is a better explanation with visuals; it actually used two screens to do the detection:
https://www.scienceabc.com/innovation/how-did-the-nintendo-g...