Patent ID: 8738170

Claim:
A sewing machine comprising: a mounting adaptor configured to be mounted with an embroidery frame, the embroidery frame including: a frame configured to hold a work cloth; an outer frame configured to be detachable outside in a radial direction of the frame and rotatably support the frame; and a driver configured to drive rotationally the frame with respect to the outer frame; a memory configured to store frame rotation data, the frame rotation data indicating a setting angle, the setting angle being a predetermined rotation angle of the frame with respect to the outer frame; an imager configured to image an area including the embroidery frame mounted on the mounting adaptor; and a processor configured to control the sewing machine to: detect a marker provided on at least one of the embroidery frame and the work cloth based on the image; determine a rotation angle of the frame with respect to the outer frame based on the detected marker; and control the driver to adjust a rotation of the frame based on the determined rotation angle and the frame rotation data.