A block-dependent semi-fragile watermarking scheme based on Hash function and Hamming code is proposed to authenticate the integrity of the image and localize the image tampers.The original image is firstly divided into non-overlapping blocks.Then the related blocks are localized by iterating the Logistic mapping,and then the bit string is got for Hamming code.Experimental results show that the proposed scheme has satisfactory protection ability and can detect and locate various malicious tampering,such as image insertion,burring,sharpening,contrast modification,and even though burst bits.Additionally,this scheme can successfully resist VQ attacks.