A digital object unique identifier, DOI, recognition method, comprising: obtaining a code scanning image; graying the code scanning image, to obtain a grayscale value of each pixel in the code scanning image; determining a DOI image in the code scanning image according to the grayscale value of each pixel in the code scanning image; and recognizing the DOI image, the method being characterized in that the determining a DOI image in the code scanning image specifically comprises: determining an average grayscale value of all of the pixels in the code scanning image; for grayscale values that are not smaller than the average grayscale value or for grayscale values that are not greater than the average grayscale value determined according to the average grayscale value, determining a correspondence between each of the grayscale values and a quantity of pixels having the grayscale value; determining , according to the correspondence, one or more grayscale values corresponding to a maximum quantity of pixels in the correspondence, to be maximum grayscale values; for each of the maximum grayscale values, determining a sub image boundary according to pixels whose grayscale values are the maximum grayscale value, and determining one or more sub images within the sub image boundary in the code scanning image; and determining the DOI image in the sub images. obtaining a code scanning image; graying the code scanning image, to obtain a grayscale value of each pixel in the code scanning image; determining a DOI image in the code scanning image according to the grayscale value of each pixel in the code scanning image; and recognizing the DOI image, the method being characterized in that the determining a DOI image in the code scanning image specifically comprises: determining an average grayscale value of all of the pixels in the code scanning image; for grayscale values that are not smaller than the average grayscale value or for grayscale values that are not greater than the average grayscale value determined according to the average grayscale value, determining a correspondence between each of the grayscale values and a quantity of pixels having the grayscale value; determining , according to the correspondence, one or more grayscale values corresponding to a maximum quantity of pixels in the correspondence, to be maximum grayscale values; for each of the maximum grayscale values, determining a sub image boundary according to pixels whose grayscale values are the maximum grayscale value, and determining one or more sub images within the sub image boundary in the code scanning image; and determining the DOI image in the sub images. determining an average grayscale value of all of the pixels in the code scanning image; for grayscale values that are not smaller than the average grayscale value or for grayscale values that are not greater than the average grayscale value determined according to the average grayscale value, determining a correspondence between each of the grayscale values and a quantity of pixels having the grayscale value; determining , according to the correspondence, one or more grayscale values corresponding to a maximum quantity of pixels in the correspondence, to be maximum grayscale values; for each of the maximum grayscale values, determining a sub image boundary according to pixels whose grayscale values are the maximum grayscale value, and determining one or more sub images within the sub image boundary in the code scanning image; and determining the DOI image in the sub images. <EOS>