Abstract: In a method of analyzing and sorting eggs which are advanced and rolled on a conveyor belt, a plurality of images en of each egg are recorded by a plurality of cameras, and it is analyzed for each egg whether there are any areas in the image which may be an indication of whether the egg is cracked, contains impurities or the like. The analysis takes place in that each image is subjected to a line scan, and if the line includes an edge defined by two adjacent pixels where the intensity value between the two adjacent pixels is numerically greater than a certain value, e.g. 15, a discriminant analysis is provided around the edge in a subarea 3 of the image of 25×25 pixels. The analysis establishes a class which defines characteristic features around the edge. When all the edges of the egg have been analyzed, it is determined by a calculation of the classes, including whether the classes define clusters, whether the egg has a crack, an impurity or the like, which means that it is removed by means of a robot.