A component mounting machine comprising: a camera configured to capture an image of a component held by a suction nozzle; an image processing section configured to process the image captured by the camera, recognize a shape of the component, and measure shape data of the component; and a control section configured to control operation of mounting the component on a circuit board in a case of determining that the component is normal based on whether a deviation amount, which is an absolute value of a difference between a measurement value of the shape data of the component and an image-processing-use component shape data, is within a specified allowable value by comparing the measurement value of the shape data of the component measured by the image processing section with image-processing-use component shape data, wherein the control section is configured to compare the deviation amount of the measurement value of the shape data of the component when the deviation amount of the measurement value of the shape data of the component exceeds the allowable value to a retry determination value that is larger than the allowable value, and determine the component is abnormal and discard the component to a specified discard location if the deviation amount of the measurement value of the shape data of the component exceeds the retry determination value, and if the deviation amount of the measurement value of the shape data of the component is equal to or less than the retry determination value, perform retry image processing of capturing an image of the component held by the suction nozzle again using the camera, remeasuring the shape data of the component, and determining whether the component is normal based on whether the deviation of the new measurement value is equal to or less than the allowable value, and the control section is configured to, when performing retry image processing, make the conditions for imaging the component the same as conditions when imaging was performed initially characterized in that: the control section is configured such that in a case that retry image processing is carried out twice or more on the component, the retry determination value is changed every time the number of times retry image processing is performed increases such that a difference with the allowable value is smaller, and return the retry determination value to its original value after completing determination of whether the component is normal or abnormal. a camera configured to capture an image of a component held by a suction nozzle; an image processing section configured to process the image captured by the camera, recognize a shape of the component, and measure shape data of the component; and a control section configured to control operation of mounting the component on a circuit board in a case of determining that the component is normal based on whether a deviation amount, which is an absolute value of a difference between a measurement value of the shape data of the component and an image-processing-use component shape data, is within a specified allowable value by comparing the measurement value of the shape data of the component measured by the image processing section with image-processing-use component shape data, wherein the control section is configured to compare the deviation amount of the measurement value of the shape data of the component when the deviation amount of the measurement value of the shape data of the component exceeds the allowable value to a retry determination value that is larger than the allowable value, and determine the component is abnormal and discard the component to a specified discard location if the deviation amount of the measurement value of the shape data of the component exceeds the retry determination value, and if the deviation amount of the measurement value of the shape data of the component is equal to or less than the retry determination value, perform retry image processing of capturing an image of the component held by the suction nozzle again using the camera, remeasuring the shape data of the component, and determining whether the component is normal based on whether the deviation of the new measurement value is equal to or less than the allowable value, and the control section is configured to, when performing retry image processing, make the conditions for imaging the component the same as conditions when imaging was performed initially characterized in that: the control section is configured such that in a case that retry image processing is carried out twice or more on the component, the retry determination value is changed every time the number of times retry image processing is performed increases such that a difference with the allowable value is smaller, and return the retry determination value to its original value after completing determination of whether the component is normal or abnormal.