A method for cleaning washware in a dishwasher, in particular commercial dishwasher, which is in the form of a box-type dishwasher and has a treatment chamber which can be closed and in which washware can be treated in accordance with a predefined or predefinable treatment program, wherein the method comprises the following method steps: i) the type of washware to be treated is automatically detected; ii) a predefined or predefinable treatment program for treating the washware is automatically selected depending on the detected type of washware; and iii) the process parameters associated with the selected treatment program are automatically adjusted, wherein, in method step i), data, in the form of a 2-dimensional image, relating to the washware to be cleaned is recorded and digitized with the aid of an optical identification system, and patterns are obtained from the data, which patterns serve to classify and/or detect the type of washware to be treated, wherein a reflection of light on the washware to be treated is used as at least one measure for detecting the type of washware to be treated, characterized in that method step i) comprises the following substeps: a) recording a 2-dimensional grayscale value or color image with the aid of the optical identification system; b) optionally preprocessing the recorded image, wherein the optional preprocessing comprises, in particular, filtering and/or converting a color image recorded in method step a) into a grayscale value image, and c1) detecting whether there are reflections in the recorded 2-dimensional image by a corresponding grayscale value histogram generated on the basis of the grayscale value image generated in method step b) or recorded in method step a), wherein, when corresponding reflections are detected in method step c1), washware is categorized into the "cutlery" type of washware or into the "pots/pans" type of washware, depending on the degree of the detected reflection and/or the size of a detected, average reflection surface area; wherein, when no corresponding reflections are detected in method step c1), glass rack detection preferably takes place, and wherein, when it is identified during the course of glass rack detection that a glass rack is present, washware is preferably categorized into the "glass" type of washware, wherein, however, when a glass rack is not identified during the course of glass rack detection, washware is categorized into the "porcelain" type of washware. i) the type of washware to be treated is automatically detected; ii) a predefined or predefinable treatment program for treating the washware is automatically selected depending on the detected type of washware; and iii) the process parameters associated with the selected treatment program are automatically adjusted, wherein, in method step i), data, in the form of a 2-dimensional image, relating to the washware to be cleaned is recorded and digitized with the aid of an optical identification system, and patterns are obtained from the data, which patterns serve to classify and/or detect the type of washware to be treated, wherein a reflection of light on the washware to be treated is used as at least one measure for detecting the type of washware to be treated, characterized in that method step i) comprises the following substeps: a) recording a 2-dimensional grayscale value or color image with the aid of the optical identification system; b) optionally preprocessing the recorded image, wherein the optional preprocessing comprises, in particular, filtering and/or converting a color image recorded in method step a) into a grayscale value image, and c1) detecting whether there are reflections in the recorded 2-dimensional image by a corresponding grayscale value histogram generated on the basis of the grayscale value image generated in method step b) or recorded in method step a), a) recording a 2-dimensional grayscale value or color image with the aid of the optical identification system; b) optionally preprocessing the recorded image, wherein the optional preprocessing comprises, in particular, filtering and/or converting a color image recorded in method step a) into a grayscale value image, and c1) detecting whether there are reflections in the recorded 2-dimensional image by a corresponding grayscale value histogram generated on the basis of the grayscale value image generated in method step b) or recorded in method step a), wherein, when corresponding reflections are detected in method step c1), washware is categorized into the "cutlery" type of washware or into the "pots/pans" type of washware, depending on the degree of the detected reflection and/or the size of a detected, average reflection surface area; wherein, when no corresponding reflections are detected in method step c1), glass rack detection preferably takes place, and wherein, when it is identified during the course of glass rack detection that a glass rack is present, washware is preferably categorized into the "glass" type of washware, wherein, however, when a glass rack is not identified during the course of glass rack detection, washware is categorized into the "porcelain" type of washware.