Solar energy is a costless and readily available form of energy that has shown to be one of the cleanest and most plentiful renewable energy sources. Various large-scale solar photovoltaic (PV) facilities are being utilized to minimize pollution and carbon emissions generated by fossil energy in many nations across the world. The power sequence of PV is influenced by a variety of diverse variables, and it is very unpredictable and volatile. Unlike the distributed PVs, the centralized PVs have the same intensity and location. The obstruction of clouds causes minor variations in the output power of the PV, making the power forecasting more difficult. To solve the aforementioned difficulties, this article provides a new neural network-based technique for PV power optimization and forecasting. The first stage is to create a cloud trajectory tracking system based on cloud photos taken from the ground. Second, a cloud trajectory tracking-based irradiance coefficient prediction model was built. Then, to increase forecast accuracy, build an error correcting model. For verification, data from a centralized solar power station was used. The results show that the proposed algorithm has technological applications and may greatly improve prediction accuracy.