How do I use OpenCV to get the angle of a rotated steel plate that is approximately square or rectangular?

I tried using PCA, but from this angle, the steel plate looks very similar to a square, and the results from PCA are not good.