A method for reading a two-dimensional code included in a bearing component which is an annular member with the two-dimensional code which has a shape with a maximum circumferential dimension longer than a maximum radial dimensional, wherein the two dimensional code is provided on a flat part of the annular member, and at least one dot row among a plurality of dot rows arranged in a longitudinal direction of the two-dimensional code has a line pattern in which all dots are marked, the method comprising the steps of:
- first, imaging the bearing component;
- second, detecting a circumferential position of the bearing component in which the two-dimensional code is arranged from a captured image of the bearing component;
- third, capturing the circumferential position of the bearing component and acquiring a captured image of the two-dimensional code;
- and
- fourth, reading information of the two-dimensional code from the captured image of the two-dimensional code, wherein
- in the first step, the bearing component is rotated to image a plurality of different locations in a circumferential direction of the bearing component, and
- in the second step, the circumferential position of the two-dimensional code is detected from one of the captured images in a captured image group obtained by imaging the plurality of locations.