Forming machine for producing bent parts from insulated elongate material in the form of wire material or flat material, wherein an electrically conductive metal is clad with an electrically insulating insulation layer, wherein the forming machine comprises: - an intake device for feeding the insulated material in an intake direction, - a bending station with a bending tool for forming the material into a bent part, - a stripping device, arranged upstream of the bending station in the intake direction, for stripping sections of the insulated material, - a cutting device, arranged between the stripping device and the bending station, for severing the elongate material in the stripped sections and separating the bent part from the material that has been fed in, wherein the cutting device comprises a cutter and a guiding device, which stabilizes the elongate material transversely to the intake direction when the cutter severs the stripped section, and - a measurement device for ascertaining the position of the stripped sections of the elongate material, and - a control device connected to the measurement device, characterized in that - the measurement device comprises a camera and an illumination device, wherein an optical viewing axis of the camera is substantially at a right angle to the intake direction and an optical illumination axis of the illumination device is directed onto the elongate material obliquely both in relation to the intake direction and in relation to the optical viewing axis such that the camera and/or the control device detects the stripped sections on the basis of their reflection properties, - wherein the optical illumination axis is optionally at an angle of 20 to 70 degrees, preferably 30 to 60 degrees, with particular preference 40 to 50 degrees, in relation to the optical viewing axis and/or the intake direction. - an intake device for feeding the insulated material in an intake direction, - a bending station with a bending tool for forming the material into a bent part, - a stripping device, arranged upstream of the bending station in the intake direction, for stripping sections of the insulated material, - a cutting device, arranged between the stripping device and the bending station, for severing the elongate material in the stripped sections and separating the bent part from the material that has been fed in, wherein the cutting device comprises a cutter and a guiding device, which stabilizes the elongate material transversely to the intake direction when the cutter severs the stripped section, and - a measurement device for ascertaining the position of the stripped sections of the elongate material, and - a control device connected to the measurement device, - the measurement device comprises a camera and an illumination device, wherein an optical viewing axis of the camera is substantially at a right angle to the intake direction and an optical illumination axis of the illumination device is directed onto the elongate material obliquely both in relation to the intake direction and in relation to the optical viewing axis such that the camera and/or the control device detects the stripped sections on the basis of their reflection properties, - wherein the optical illumination axis is optionally at an angle of 20 to 70 degrees, preferably 30 to 60 degrees, with particular preference 40 to 50 degrees, in relation to the optical viewing axis and/or the intake direction.