Patent ID: 8738173

Claim:
A sewing machine comprising: an imaging device configured to capture an image of a sewing target object held by an embroidery frame; a notification device configured to notify information; a processor; and a memory storing computer-readable instructions therein, wherein the computer-readable instructions instruct the sewing machine to execute steps comprising: acquiring settings related to a layout of a second pattern with respect to a first pattern, the first pattern being a pattern that is sewn in a first holding position of the sewing target object by the embroidery frame, and the second pattern being a pattern that is sewn subsequently to the first pattern in a second holding position of the sewing target object by the embroidery frame, the second holding position being different from the first holding position; identifying, based on the acquired settings, a position which is located within a sewable area of the sewing target object in the first holding position and which is also located within an estimated range in which the second pattern is to be sewn, as a marker layout position; causing the notification device to notify the identified marker layout position; acquiring first image data indicating a first image including a marker arranged on the sewing target object, the first image being captured by the imaging device in the first holding position after the marker layout position has been notified by the notification device; acquiring second image data indicating a second image including the marker, the second image being captured by the imaging device in the second holding position after the first image data has been acquired; and determining a layout of the second pattern with respect to the sewing target object in the second holding position, based on the acquired settings, the first image data and the second image data.