The scan type magnetic camera is proposed to improve the limited spatial resolution due to the size of the packaged magnetic sensor. The ∂B/∂x images of the cracks of different shapes and sizes are calculated by using the improved dipole model proposed in this paper. The improved dipole model uses small divided dipole models, the rotation and relocation of each dipole model and the principle of superposition. The improved dipole model can be used to simulate the LMF and ∂B/∂x image of a specimen with complex cracks, and to evaluate the cracks quantitatively using magnetic flux leakage testing.