your not thinking like a musk, not if the government pays the subscription and contract for his early warning camera drone balloon swarm thing or something something they could run on ketamine or something.
Part of the reason air defences mostly rely on radar and other parts of the electromagnetic spectrum from at least 3 locations using triangulation to build a precise map of objects in the sky, but just like cameras that doesn't work when the objects in question are too high or hidden behind objects. From there you can send countermeasures to intercept coordinates and then arm them to search for nearby objects via infrared.
Using the visible part of the electromagnetic spectrum is pretty much useless in modern weapons. I remember seeing even a Tank operator's display being totally jank because they don't use normal cameras either, perhaps because they wanted data to train machines to do it instead of human operators? Idk, didn't make sense to me.