The thickness of the indium tin oxide (ITO) layer is a critical parameter affecting the performance of solar cells. Traditional measurement methods require sample collection, leading to manufacturing interruptions and potential quality issues. In this paper, we propose a real-time, non-contact approach using deep learning and optical interference phenomena to estimate the thickness of ITO layers in solar cells. We develop a convolutional neural network (CNN) model that processes microscopic images of solar cells and predicts the ITO layer thickness. In addition, mean absolute error (MAE) and mean squared error (MSE) loss functions are combined to train the model. Experimental results demonstrate the effectiveness of our approach in accurately estimating the ITO layer thickness. The integration of computer vision and deep learning techniques provides a valuable tool for non-destructive testing and quality control in the manufacturing of solar cells. The loss of the model after training is reduced to 0.83, and the slope of the test value in the scatter plot with the true value of the ellipsometer is approximately equal to 1, indicating the high reliability of the model.