A device for orienting objects in which a main axis (S) can be identified, comprising: first and second rotation means , configured respectively to bring about the rotation of an object (P) around a first axis (X) and configured to bring about the rotation of the object (P) around a second axis (Y) perpendicular to the first axis (X); an optical detection device , configured to capture images and/or a video of the object (P) during the rotation around the first axis (X); control means , configured to control the actuation of the rotation means , and configured to : - recognize, during the rotation of the object (P) around the first axis (X), a first position in which a main axis (S) of the object (P) lies in a given plane of orientation (A); - after the first position is achieved, trigger the activation of the second rotation means so as to rotate the object (P) around the second axis (Y) in order to orient the main axis (S) parallel to the first rotation axis (X) in the plane of orientation (A); said control means being further configured to receive and process the images and/or videos captured by the optical detection device , the optical detection device comprises a profile detector , the control means being configured to recognize at least one area of the surface of the object (P) in which the profile exhibits a given conformation; wherein the profile detector 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 (P) on a profile of the object (P) which lies in the plane of orientation (A); wherein the profile detector is positioned in such a way as to detect the profile of the object (P) lying in the plane of orientation (A); wherein the control means are configured to receive, in real time, during the rotation of the object (P) around the first axis (X), the images of the profile of the object (P) in the plane of orientation (A); 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 (P) in the plane of orientation (A) during the rotation of the object (P) around the first axis (X); 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 (P), whose profile is illuminated by the light source , comes to lie in the plane of orientation (A) during the rotation of the object (P) around the first axis (X); 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 (S) of the product (P) relative to the first axis (X) in said first position, and wherein said rotation around the second axis (Y) is performed for an angle which is equal to the angle between the main axis (S) of the product and the first axis (X) as measured by control means . - recognize, during the rotation of the object (P) around the first axis (X), a first position in which a main axis (S) of the object (P) lies in a given plane of orientation (A); - after the first position is achieved, trigger the activation of the second rotation means so as to rotate the object (P) around the second axis (Y) in order to orient the main axis (S) parallel to the first rotation axis (X) in the plane of orientation (A); <EOS>