Method for determining a dimension (D, H) of a tool (W) with cutting edges (S) by means of a device (V) comprising a first light source , an image sensor and an evaluation unit , wherein light is emitted parallel to a first axis (T) by the light source and a second axis (Y) is assignable to the image sensor , which axis runs orthogonally to the image sensor , wherein the first axis (T) and the second axis (Y) are arranged inclined relative to each other, wherein further the light emitted by the first light source is reflected by the cutting edge (S) of the tool (W) in such a way that the reflected light generates light points (L) arranged in a row on the image sensor , wherein positions (xL, zL) of the light points (L) are determined by the evaluation unit and the dimension (D, H) of the tool (W) is determined based on the positions (xL, zL) of the light points (L), characterized in that - before determining the dimension (D, H) of the tool (W), a reference body is connected to a tool holder of the processing machine and measured using the image sensor , - during the subsequent determination of the dimension (D, H) of the tool (W), the tool (W) is connected to the tool holder of the processing machine and a correction value (Qx, Qy, Qz) is formed based on the results of the measurement of the reference body, with the correction value containing the information about the exact location of the tool holder relative to reference coordinates (Vmx, Vmy, Vmz) of the image sensor , - the dimension (D, H) of the tool (W) is determined based on the positions (xL, zL) of the light points (L), taking into account the correction value (Qx, Qy, Qz). light is emitted parallel to a first axis (T) by the light source and a second axis (Y) is assignable to the image sensor , which axis runs orthogonally to the image sensor , wherein the first axis (T) and the second axis (Y) are arranged inclined relative to each other, wherein further the light emitted by the first light source is reflected by the cutting edge (S) of the tool (W) in such a way that the reflected light generates light points (L) arranged in a row on the image sensor , wherein positions (xL, zL) of the light points (L) are determined by the evaluation unit and the dimension (D, H) of the tool (W) is determined based on the positions (xL, zL) of the light points (L), characterized in that - before determining the dimension (D, H) of the tool (W), a reference body is connected to a tool holder of the processing machine and measured using the image sensor , - during the subsequent determination of the dimension (D, H) of the tool (W), the tool (W) is connected to the tool holder of the processing machine and a correction value (Qx, Qy, Qz) is formed based on the results of the measurement of the reference body, with the correction value containing the information about the exact location of the tool holder relative to reference coordinates (Vmx, Vmy, Vmz) of the image sensor , - the dimension (D, H) of the tool (W) is determined based on the positions (xL, zL) of the light points (L), taking into account the correction value (Qx, Qy, Qz). - before determining the dimension (D, H) of the tool (W), a reference body is connected to a tool holder of the processing machine and measured using the image sensor , - during the subsequent determination of the dimension (D, H) of the tool (W), the tool (W) is connected to the tool holder of the processing machine and a correction value (Qx, Qy, Qz) is formed based on the results of the measurement of the reference body, with the correction value containing the information about the exact location of the tool holder relative to reference coordinates (Vmx, Vmy, Vmz) of the image sensor , - the dimension (D, H) of the tool (W) is determined based on the positions (xL, zL) of the light points (L), taking into account the correction value (Qx, Qy, Qz). <EOS>