Unconstrained face images are interfered by many factors such as illumination, posture, expression, occlusion, age, accessories and so on, resulting in the randomness of the noise pollution implied in the original samples. In order to improve the sample quality, a weighted block cooperative sparse representation algorithm is proposed based on visual saliency dictionary. First, the algorithm uses the biological visual attention mechanism to quickly and accurately obtain the face salient target and constructs the visual salient dictionary. Then, a block cooperation framework is presented to perform sparse coding for different local structures of human face, and the weighted regular term is introduced in the sparse representation process to enhance the identification of information hidden in the coding coefficients. Finally, by synthesising the sparse representation results of all visual salient block dictionaries, the global coding residual is obtained and the class label is given. The experimental results on four databases, that is, AR, extended Yale B, LFW and PubFig, indicate that the combination of visual saliency dictionary, block cooperative sparse representation and weighted constraint coding can effectively enhance the accuracy of sparse representation of the samples to be tested and improve the performance of unconstrained face recognition.