A component mounting machine, comprising: a mounting head; a suction nozzle held on the mounting head, the suction nozzle configured to suck and mount a supplied component to an object, the suction nozzle including a nozzle holder section held on the mounting head, and a nozzle section configured to suck the component and is swingably provided on the nozzle holder section, and an orientation of the nozzle section is configured to be changed by 90° to a downward orientation or a lateral orientation by swinging the nozzle section; a camera configured to image the component from below which is sucked by the nozzle section; an image processing device configured to process the image captured by the camera and configured to recognize the component; and a control device configured to control the nozzle section to suck the component from above in a state in which the orientation of the nozzle section is the downward orientation in a component suction operation, control the nozzle section to swing by 90° to change the orientation of the component sucked by the nozzle section to the lateral orientation, control the camera to image the component in the lateral orientation from below, control the image processing device to process the image of the component in the lateral orientation to calculate an amount of deviation of a component suction position of the nozzle section, and control the suction nozzle to mount the component in the lateral orientation on the object based on the amount of deviation calculated by the image processing device in a component mounting operation. a mounting head; a suction nozzle held on the mounting head, the suction nozzle configured to suck and mount a supplied component to an object, the suction nozzle including a nozzle holder section held on the mounting head, and a nozzle section configured to suck the component and is swingably provided on the nozzle holder section, and an orientation of the nozzle section is configured to be changed by 90° to a downward orientation or a lateral orientation by swinging the nozzle section; a camera configured to image the component from below which is sucked by the nozzle section; an image processing device configured to process the image captured by the camera and configured to recognize the component; and a control device configured to control the nozzle section to suck the component from above in a state in which the orientation of the nozzle section is the downward orientation in a component suction operation, control the nozzle section to swing by 90° to change the orientation of the component sucked by the nozzle section to the lateral orientation, control the camera to image the component in the lateral orientation from below, control the image processing device to process the image of the component in the lateral orientation to calculate an amount of deviation of a component suction position of the nozzle section, and control the suction nozzle to mount the component in the lateral orientation on the object based on the amount of deviation calculated by the image processing device in a component mounting operation. control the nozzle section to suck the component from above in a state in which the orientation of the nozzle section is the downward orientation in a component suction operation, control the nozzle section to swing by 90° to change the orientation of the component sucked by the nozzle section to the lateral orientation, control the camera to image the component in the lateral orientation from below, control the image processing device to process the image of the component in the lateral orientation to calculate an amount of deviation of a component suction position of the nozzle section, and control the suction nozzle to mount the component in the lateral orientation on the object based on the amount of deviation calculated by the image processing device in a component mounting operation.