This application discloses a digital object unique identifier (DOI) recognition method and device, to resolve a problem in the existing technology that when a code scanning image includes both a DOI image and a non-DOI image, time consumed in recognizing the DOI image in the code scanning image is relatively long. The method includes: 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.
展开▼