Device for containers classification, suitable for classifying containers which are piled on a platform or pallet, the device comprising a conveying belt for transporting the pallet; a first structure for pallet analysis, a second structure configured to slide along a portion of the first structure, comprising a plurality of first radiation means suitable for emitting light in the infrared spectrum, a plurality of first image acquisition means suitable for obtaining images and/or data in the infrared spectrum, a plurality of second radiation means suitable for emitting light in the visible spectrum and a plurality of second image acquisition means suitable for obtaining images in the visible spectrum; and data analysis means adapted to analyze the images and/or data obtained by the first image acquisition means and by the second image acquisition means and providing a classification of the containers piled on the pallet; wherein the second structure comprises a first group of four faces orthogonal two by two, each of the faces of this group of four faces comprising a plurality of first radiation means and a plurality of second radiation means; wherein the second structure comprises a second group of four faces orthogonal two by two which form 45° with the faces of the first group, wherein faces with radiation means and faces with image acquisition means alternate, wherein each face of the second group comprises a group of first image acquisition means and at least a second image acquisition means; and wherein the second structure comprises motion means configured to move the second structure along a rail of the first structure from a first position where the second structure allows the platform or pallet to enter the first structure and a second position where the second structure surrounds the containers. a conveying belt for transporting the pallet; a first structure for pallet analysis, a second structure configured to slide along a portion of the first structure, comprising a plurality of first radiation means suitable for emitting light in the infrared spectrum, a plurality of first image acquisition means suitable for obtaining images and/or data in the infrared spectrum, a plurality of second radiation means suitable for emitting light in the visible spectrum and a plurality of second image acquisition means suitable for obtaining images in the visible spectrum; and data analysis means adapted to analyze the images and/or data obtained by the first image acquisition means and by the second image acquisition means and providing a classification of the containers piled on the pallet; wherein the second structure comprises a first group of four faces orthogonal two by two, each of the faces of this group of four faces comprising a plurality of first radiation means and a plurality of second radiation means; wherein the second structure comprises a second group of four faces orthogonal two by two which form 45° with the faces of the first group, wherein faces with radiation means and faces with image acquisition means alternate, wherein each face of the second group comprises a group of first image acquisition means and at least a second image acquisition means; and wherein the second structure comprises motion means configured to move the second structure along a rail of the first structure from a first position where the second structure allows the platform or pallet to enter the first structure and a second position where the second structure surrounds the containers.