The invention is suitable for the field of image processing, and provides a method and device for smoothening a disparity map and electronic equipment. The method comprises the following steps: initializing A(z, y), B(x, y) and F(x, y) into all-zero matrixes; acquiring all pixel points (x<k>, y<k>) satisfying S(x, y)=k in S(x, y); making A(x<k>, y<k>)=M(x<k>, y<k>), B(x<k>, y<k>)=1; computing all A(x<k>-i, y<k>-i) and T(x<k>, y<k>) taking x<k>, y<k> as a center; computing the sum of all B(x<k>-i, y<k>-i) taking x<k>, y<k> as a center to obtain the quantity T(x<k>, y<k>) of all the pixel points satisfying S(x, y); and computing F(x<k>, y<k>) according to T(x<k>, y<k>) and T(x<k>, y<k>). Through adoption of the method and device for smoothening the disparity map and the electronic equipment, the smoothness or continuity of disparity is realized, and the sudden change or discontinuity of an object edge is kept.