1. Method in a banknote detector device for an automatic teller machine, to be used to differentiate non-accepted banknotes from accepted banknotes, the device comprises a banknote image sensor to receive and scan at least one face of an input banknote and to store a banknote image (BI) of each scanned face in a storage in dependence of said scanning, said banknote image comprises image data in the form of a number of pixels; and a reference banknote image (RBI) storage where one reference banknote image (RBI), being processed from a predetermined number of banknote images from accepted street-quality banknotes, is stored for each face of each relevant banknote, the banknote detector device further comprises an IR image sensor that is arranged to scan an input banknote and to store an IR-image of said banknote in said storage such that the IR-image being linked to the corresponding banknote image, wherein said method comprises: A) an alignment step where one side of the banknote image is aligned in relation to the respective side of the RBI by use of said IR-image, and that the banknote size is determined, B) a banknote face classification step where the face and orientation of the banknote image are determined, C) a printed pattern positioning step where the printed pattern of the banknote image (BI) is determined in order to exactly position the BI printed pattern in relation to the printed pattern of a reference banknote image (RBI), D) a comparison step where, for at least one face of the banknote, the BI and RBI, being in exact pattern position in relation to each other, are compared pixel per pixel according to a predefined comparison procedure resulting in that the input banknote is classified as accepted or non-accepted,