Solar panels detection needs high resolution imagery. Typically aerial or drone imagery. It is very difficult to achieve with 50 cm imagery.

This is an article about using machine learning for solar panel detection: https://new.engineering.com/story/how-do-you-count-every-solar-panel-in-the-us-machine-learning-and-a-billion-satellite-images