Computer-implemented method for the automated identification of components (12.1, 12.2, 12.3, 12.4, 17) arranged on a
printed circuit board (11), in which a
label (16) of at least one of the components (12.1, 12.2, 12.3, 12.4, 17) in a raster graphic (14) comprising the component (12.1, 12.2, 12.3, 12.4, 17) is recognized by means of
text recognition in order to identify the component (12.1, 12.2, 12.3, 12.4, 17) based on the
label (16), wherein a contour (18) of the component (12.1, 12.2, 12.3, 12.4, 17) is determined based on pixel-based
image processing operations, an orientation of the component (12.1, 12.2, 12.3, 12.4, 17) is determined on the basis of the determined contour (18) and the raster graphic (14) is rotated by an angle (α) dependent on the determined orientation before the
text recognition is applied to the raster graphic (14); furthermore, a device (10) for this purpose.