Hidden digital watermark is one of the important means of anti-counterfeiting to maintain copyright. By extracting the hidden digital watermark from images, audio and video through specific codes and algorithms, it can provide very strong and powerful evidence to prove one's copyright ownership. The idea is that the image is regarded as a two-dimensional matrix, and then according to the two-dimensional matrix to expand the corresponding operation, at the same time select the appropriate point, and according to the appropriate point in the digital watermark image, digital watermark embedded operation. In this paper, DCT is used to insert digital watermark data, and DCT reverse transformation method is used to realize the extraction function of digital watermark.