Bionic polarization compass is a fascinating subject in the navigation domain. However, the polarization navigation accuracy is severely degraded by the influence of city glow at dusk. Therefore, we proposed an ultraviolet bionic compass method based on non-ideality correction and statistical guidance. A non-ideal polarization imaging model was established to correct the system detection error. A meridian extraction algorithm based on the statistical properties of solar direction vectors was proposed for accurate heading calculation. The proposed algorithm was demonstrated experimentally and reduced the heading error to approximately 1°, which shows strong anti-interference performance against urban glare.