A device for orienting objects in which a main axis can be identified, comprising: first and second rotation means (11, 12, 21), configured respectively to bring about the rotation of an object around a first axis and configured to bring about the rotation of the object around a second axis perpendicular to the first axis; an optical detection device (31, 32), configured to capture images and/or a video of the object during the rotation around the first axis; control means, configured to control the actuation of the rotation means (11, 12, 21), and configured to: - recognize, during the rotation of the object around the first axis, a first position in which a main axis of the object lies in a given plane of orientation; - after the first position is achieved, trigger the activation of the second rotation means so as to rotate the object around the second axis in order to orient the main axis parallel to the first rotation axis in the plane of orientation; said control means being further configured to receive and process the images and/or videos captured by the optical detection device (31,32), the optical detection device (31, 32) comprises a profile detector (31, 32), the control means being configured to recognize at least one area of the surface of the object in which the profile exhibits a given conformation; wherein the profile detector (31, 32) comprises a laser light source which projects a beam of light distributed over a plane and which is positioned in such a way that the laser beam strikes the surface of the object on a profile of the object which lies in the plane of orientation; wherein the profile detector (31, 32) is positioned in such a way as to detect the profile of the object lying in the plane of orientation; wherein the control means are configured to receive, in real time, during the rotation of the object around the first axis, the images of the profile of the object in the plane of orientation; wherein the control means are provided with a recognition algorithm by means of which they are capable of detecting the change in the profile of the object in the plane of orientation during the rotation of the object around the first axis; wherein by means of said recognition algorithm the control means are further capable of recognizing when a pre-established area of the surface of the object, whose profile is illuminated by the light source, comes to lie in the plane of orientation during the rotation of the object around the first axis; characterised in that the control means are further capable of measuring, by means of said recognition algorithm, the angle of inclination of the main axis of the product relative to the first axis in said first position, and wherein said rotation around the second axis is performed for an angle which is equal to the angle between the main axis of the product and the first axis as measured by control means. - recognize, during the rotation of the object around the first axis, a first position in which a main axis of the object lies in a given plane of orientation; - after the first position is achieved, trigger the activation of the second rotation means so as to rotate the object around the second axis in order to orient the main axis parallel to the first rotation axis in the plane of orientation;