Patent ID: 8522701

Claim:
A sewing machine comprising: an embroidery frame moving device that is configured to accommodate any one of a plurality of embroidery frames that are different in at least one of size and shape and that moves an embroidery frame holding a work cloth; an image pickup device that can pick up an image of an upper surface of a bed portion of the sewing machine; a position information storage device that stores position information for each of the plurality of embroidery frames, the position information indicating predetermined positions to which each of the plurality of embroidery frames is to be moved; a partial image acquisition device that: causes the embroidery frame moving device to move the embroidery frame to the respective predetermined positions indicated by the position information corresponding to a type of the embroidery frame detected from the plurality of embroidery frames, causes the image pickup device to pick up images at the respective predetermined positions, and acquires the images picked up by the image pickup device as partial images; and a composite image generation device that generates a composite image by correcting, based on a thickness of the work cloth, the partial images acquired by the partial image acquisition device and combining the partial images that have been corrected.