JP2021074075A - Image processing device, sewing machine and image processing method - Google Patents

Image processing device, sewing machine and image processing method Download PDF

Info

Publication number
JP2021074075A
JP2021074075A JP2019201419A JP2019201419A JP2021074075A JP 2021074075 A JP2021074075 A JP 2021074075A JP 2019201419 A JP2019201419 A JP 2019201419A JP 2019201419 A JP2019201419 A JP 2019201419A JP 2021074075 A JP2021074075 A JP 2021074075A
Authority
JP
Japan
Prior art keywords
sewing
region
image
stitch
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019201419A
Other languages
Japanese (ja)
Other versions
JP7405565B2 (en
Inventor
塚田 豊
Yutaka Tsukada
豊 塚田
山田 和範
Kazunori Yamada
山田  和範
仁彦 横瀬
Yoshihiko Yokose
仁彦 横瀬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Juki Corp
Original Assignee
Juki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Juki Corp filed Critical Juki Corp
Priority to JP2019201419A priority Critical patent/JP7405565B2/en
Priority to CN202011224095.7A priority patent/CN112779679B/en
Publication of JP2021074075A publication Critical patent/JP2021074075A/en
Application granted granted Critical
Publication of JP7405565B2 publication Critical patent/JP7405565B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/04Sewing machines having electronic memory or microprocessor control unit characterised by memory aspects
    • D05B19/10Arrangements for selecting combinations of stitch or pattern data from memory ; Handling data in order to control stitch format, e.g. size, direction, mirror image

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Textile Engineering (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

To discriminate between a region in which a hole pattern is provided and a region in which a hole pattern is not provided.SOLUTION: An image processing device includes: an object image acquisition part for acquiring an object image showing the image related to a sewing object; a scan part for scanning the object image in a specified search region, and for determining whether or not a target pixel is a specified color pixel; and a region division part for dividing the surface of the sewing object into a texture region and a stitch region based on the determination result, and for calculating a boundary between the texture region and the stitch region.SELECTED DRAWING: Figure 1

Description

本発明は、画像処理装置、ミシン、及び画像処理方法に関する。 The present invention relates to an image processing apparatus, a sewing machine, and an image processing method.

縫製対象物の意匠性を高めるために、縫製対象物にステッチが形成される場合がある。特許文献1には、車両用シートに使用される表皮材にステッチを形成する技術が開示されている。 Stitches may be formed on the sewing object in order to enhance the design of the sewing object. Patent Document 1 discloses a technique for forming stitches on a skin material used for a vehicle seat.

特開2013−162957号公報Japanese Unexamined Patent Publication No. 2013-162957

車両用シートに使用される表皮材に孔が設けられる。孔が模様を形成することにより、車両用シートの意匠性がより高められる。ステッチは、孔の模様が設けられていない領域に形成される。ステッチを形成する場合、孔の模様が設けられている領域と孔の模様が設けられていない領域とを識別する必要がある。 Holes are provided in the skin material used for vehicle seats. By forming the pattern of the holes, the design of the vehicle seat is further enhanced. Stitches are formed in areas where there is no pattern of holes. When forming a stitch, it is necessary to distinguish between the area where the hole pattern is provided and the area where the hole pattern is not provided.

本発明の態様は、孔の模様が設けられている領域と孔の模様が設けられていない領域とを識別することを目的とする。 An aspect of the present invention is to distinguish between a region where a hole pattern is provided and a region where the hole pattern is not provided.

本発明の態様に従えば、縫製対象物に係る画像を示す対象物画像を取得する対象物画像取得部と、前記対象物画像を規定のサーチ領域で走査して、注目画素が規定色画素か否かを判定する走査部と、判定結果に基づいて、前記縫製対象物の表面をテクスチャ領域とステッチ領域とに分割して、前記テクスチャ領域と前記ステッチ領域との境界線を算出する領域分割部と、を備える、画像処理装置が提供される。 According to the aspect of the present invention, the object image acquisition unit that acquires the object image showing the image related to the sewing object and the object image are scanned in the specified search area to determine whether the pixel of interest is the specified color pixel. A scanning unit that determines whether or not the image is used, and an area dividing unit that divides the surface of the sewing object into a texture area and a stitch area based on the determination result, and calculates a boundary line between the texture area and the stitch area. And, an image processing apparatus is provided.

本発明の態様によれば、孔の模様が設けられている領域と孔の模様が設けられていない領域とを識別することを識別することができる。 According to the aspect of the present invention, it is possible to distinguish between the region where the hole pattern is provided and the region where the hole pattern is not provided.

図1は、本実施形態に係るミシンを示す斜視図である。FIG. 1 is a perspective view showing a sewing machine according to the present embodiment. 図2は、本実施形態に係るミシンの一部を示す斜視図である。FIG. 2 is a perspective view showing a part of the sewing machine according to the present embodiment. 図3は、本実施形態に係る縫製対象物の一部を示す断面図である。FIG. 3 is a cross-sectional view showing a part of the sewing object according to the present embodiment. 図4は、本実施形態に係る縫製対象物を示す平面図である。FIG. 4 is a plan view showing a sewing object according to the present embodiment. 図5は、本実施形態に係る縫製対象物の一部を示す断面図である。FIG. 5 is a cross-sectional view showing a part of the sewing object according to the present embodiment. 図6は、本実施形態に係る縫製対象物の一部を示す平面図である。FIG. 6 is a plan view showing a part of the sewing object according to the present embodiment. 図7は、本実施形態に係る縫製対象物の一部を示す平面図である。FIG. 7 is a plan view showing a part of the sewing object according to the present embodiment. 図8は、本実施形態に係るミシンを示す機能ブロック図である。FIG. 8 is a functional block diagram showing a sewing machine according to the present embodiment. 図9は、本実施形態に係る撮像装置の動作を説明するための図である。FIG. 9 is a diagram for explaining the operation of the image pickup apparatus according to the present embodiment. 図10は、本実施形態に係る境界線の算出方法を説明するための図である。FIG. 10 is a diagram for explaining a method of calculating a boundary line according to the present embodiment. 図11は、本実施形態に係る境界線を説明するための図である。FIG. 11 is a diagram for explaining a boundary line according to the present embodiment. 図12は、本実施形態に係る補正点を説明するための図である。FIG. 12 is a diagram for explaining correction points according to the present embodiment. 図13は、本実施形態に係る特徴点の算出方法の一例を説明するための図である。FIG. 13 is a diagram for explaining an example of a method of calculating feature points according to the present embodiment. 図14は、本実施形態に係る特徴点の算出方法の一例を説明するための図である。FIG. 14 is a diagram for explaining an example of a method of calculating feature points according to the present embodiment. 図15は、本実施形態に係る基準ベクトルを説明するための図である。FIG. 15 is a diagram for explaining a reference vector according to the present embodiment. 図16は、本実施形態に係る基準ベクトルを説明するための図である。FIG. 16 is a diagram for explaining a reference vector according to the present embodiment. 図17は、本実施形態に係る補正点の算出方法の一例を説明するための図である。FIG. 17 is a diagram for explaining an example of a method of calculating correction points according to the present embodiment. 図18は、本実施形態に係る補正点の算出方法の一例を説明するための図である。FIG. 18 is a diagram for explaining an example of a method of calculating correction points according to the present embodiment. 図19は、本実施形態に係る補正点の算出方法の一例を説明するための図である。FIG. 19 is a diagram for explaining an example of a method of calculating correction points according to the present embodiment. 図20は、本実施形態に係る縫製方法を示すフローチャートである。FIG. 20 is a flowchart showing a sewing method according to the present embodiment. 図21は、本実施形態に係る領域分割処理を示すフローチャートである。FIG. 21 is a flowchart showing the area division process according to the present embodiment. 図22は、本実施形態に係る補正点算出処理を示すフローチャートである。FIG. 22 is a flowchart showing a correction point calculation process according to the present embodiment. 図23は、本実施形態に係るコンピュータシステムを示すブロック図である。FIG. 23 is a block diagram showing a computer system according to the present embodiment.

以下、本発明に係る実施形態について図面を参照しながら説明するが、本発明はこれに限定されない。以下で説明する実施形態の構成要素は、適宜組み合わせることができる。また、一部の構成要素を用いない場合もある。 Hereinafter, embodiments according to the present invention will be described with reference to the drawings, but the present invention is not limited thereto. The components of the embodiments described below can be combined as appropriate. In addition, some components may not be used.

本実施形態においては、ミシン1についてローカル座標系が規定される。以下の説明においては、ミシン1について規定されるローカル座標系を適宜、ミシン座標系、と称する。ミシン座標系は、XYZ直交座標系により規定される。本実施形態においては、ミシン座標系に基づいて各部の位置関係について説明する。所定面内のX軸と平行な方向をX軸方向とする。X軸と直交する所定面内のY軸と平行な方向をY軸方向とする。所定面と直交するZ軸と平行な方向をZ軸方向とする。また、X軸を中心とする回転方向又は傾斜方向をθX方向とする。Y軸を中心とする回転方向又は傾斜方向をθY方向とする。Z軸を中心とする回転方向又は傾斜方向をθZ方向とする。また、本実施形態においては、X軸及びY軸を含む平面を適宜、XY平面、と称する。X軸及びZ軸を含む平面を適宜、XZ平面、と称する。Y軸及びZ軸を含む平面を適宜、YZ平面、と称する。XY平面は、所定面と平行である。XY平面とXZ平面とYZ平面とは直交する。また、本実施形態においては、XY平面と水平面とが平行であることとする。Z軸方向は上下方向である。+Z方向は上方向であり−Z方向は下方向である。なお、XY平面が水平面に対して傾斜していてもよい。 In this embodiment, a local coordinate system is defined for the sewing machine 1. In the following description, the local coordinate system defined for the sewing machine 1 is appropriately referred to as a sewing machine coordinate system. The sewing machine coordinate system is defined by the XYZ Cartesian coordinate system. In this embodiment, the positional relationship of each part will be described based on the sewing machine coordinate system. The direction parallel to the X-axis in the predetermined plane is defined as the X-axis direction. The direction parallel to the Y-axis in a predetermined plane orthogonal to the X-axis is defined as the Y-axis direction. The direction parallel to the Z-axis orthogonal to the predetermined surface is defined as the Z-axis direction. Further, the rotation direction or the inclination direction about the X axis is defined as the θX direction. The rotation direction or inclination direction centered on the Y axis is defined as the θY direction. The direction of rotation or inclination about the Z axis is defined as the θZ direction. Further, in the present embodiment, the plane including the X-axis and the Y-axis is appropriately referred to as an XY plane. The plane including the X-axis and the Z-axis is appropriately referred to as an XZ plane. The plane including the Y-axis and the Z-axis is appropriately referred to as a YZ plane. The XY plane is parallel to the predetermined plane. The XY plane, the XZ plane, and the YZ plane are orthogonal to each other. Further, in the present embodiment, it is assumed that the XY plane and the horizontal plane are parallel. The Z-axis direction is the vertical direction. The + Z direction is upward and the −Z direction is downward. The XY plane may be inclined with respect to the horizontal plane.

[ミシン]
図1は、本実施形態に係るミシン1を示す斜視図である。図2は、本実施形態に係るミシン1の一部を示す斜視図である。本実施形態において、ミシン1は、電子サイクルミシンである。ミシン1は、ミシン本体10と、作業者によって操作される操作装置20と、縫製対象物Sを撮像可能な撮像装置30とを備える。
[sewing machine]
FIG. 1 is a perspective view showing a sewing machine 1 according to the present embodiment. FIG. 2 is a perspective view showing a part of the sewing machine 1 according to the present embodiment. In the present embodiment, the sewing machine 1 is an electronic cycle sewing machine. The sewing machine 1 includes a sewing machine main body 10, an operating device 20 operated by an operator, and an imaging device 30 capable of capturing an image of a sewing object S.

ミシン本体10は、テーブル2の上面に搭載される。ミシン本体10は、ミシンフレーム11と、ミシンフレーム11に支持される針棒12と、ミシンフレーム11に支持される針板13と、支持部材14を介してミシンフレーム11に支持される保持部材15と、針棒12を移動させる動力を発生するアクチュエータ16と、保持部材15を移動させる動力を発生するアクチュエータ17と、保持部材15の少なくとも一部を移動させる動力を発生するアクチュエータ18とを有する。 The sewing machine body 10 is mounted on the upper surface of the table 2. The sewing machine main body 10 includes a sewing machine frame 11, a needle rod 12 supported by the sewing machine frame 11, a needle plate 13 supported by the sewing machine frame 11, and a holding member 15 supported by the sewing machine frame 11 via a support member 14. It has an actuator 16 that generates a power to move the needle bar 12, an actuator 17 that generates a power to move the holding member 15, and an actuator 18 that generates a power to move at least a part of the holding member 15.

ミシンフレーム11は、Y軸方向に延在する水平アーム11Aと、水平アーム11Aよりも下方に配置されたベッド11Bと、水平アーム11Aの+Y側の端部とベッド11Bとを繋ぐ垂直アーム11Cと、水平アーム11Aの−Y側に配置されたヘッド11Dとを有する。 The sewing machine frame 11 includes a horizontal arm 11A extending in the Y-axis direction, a bed 11B arranged below the horizontal arm 11A, and a vertical arm 11C connecting the + Y side end of the horizontal arm 11A and the bed 11B. It has a head 11D arranged on the −Y side of the horizontal arm 11A.

針棒12は、ミシン針3を保持する。針棒12は、ミシン針3とZ軸とが平行になるようにミシン針3を保持する。針棒12は、Z軸方向に移動可能にヘッド11Dに支持される。 The needle bar 12 holds the sewing machine needle 3. The needle bar 12 holds the sewing machine needle 3 so that the sewing machine needle 3 and the Z axis are parallel to each other. The needle bar 12 is supported by the head 11D so as to be movable in the Z-axis direction.

針板13は、縫製対象物Sを支持する。針板13は、保持部材15を支持する。針板13は、ベッド11Bに支持される。針板13は、保持部材15よりも下方に配置される。 The needle plate 13 supports the sewing object S. The needle plate 13 supports the holding member 15. The needle plate 13 is supported by the bed 11B. The needle plate 13 is arranged below the holding member 15.

保持部材15は、縫製対象物Sを保持する。保持部材15は、ミシン針3の直下の縫製位置Psを含むXY平面内において縫製対象物Sを保持して移動可能である。保持部材15は、撮像装置30の直下の撮像位置Pfを含むXY平面内において縫製対象物Sを保持して移動可能である。保持部材15が縫製対象物Sを保持した状態で、縫製データに基づいて縫製位置Psを含むXY平面内において移動することにより、縫製対象物SにステッチCHが形成される。保持部材15は、支持部材14を介して水平アーム11Aに支持される。 The holding member 15 holds the sewing object S. The holding member 15 can hold and move the sewing object S in the XY plane including the sewing position Ps directly below the sewing machine needle 3. The holding member 15 can hold and move the sewing object S in the XY plane including the imaging position Pf directly below the imaging device 30. A stitch CH is formed on the sewing object S by moving in the XY plane including the sewing position Ps based on the sewing data while the holding member 15 holds the sewing object S. The holding member 15 is supported by the horizontal arm 11A via the supporting member 14.

保持部材15は、押え部材15Aと、押え部材15Aに対向する下板15Bとを有する。押え部材15Aは、枠状の部材である。押え部材15Aは、Z軸方向に移動可能である。下板15Bは、押え部材15Aの下方に配置される。保持部材15は、押え部材15Aと下板15Bとで縫製対象物Sを挟むことによって縫製対象物Sを保持する。 The holding member 15 has a pressing member 15A and a lower plate 15B facing the pressing member 15A. The pressing member 15A is a frame-shaped member. The pressing member 15A is movable in the Z-axis direction. The lower plate 15B is arranged below the pressing member 15A. The holding member 15 holds the sewing object S by sandwiching the sewing object S between the pressing member 15A and the lower plate 15B.

押え部材15Aが+Z方向に移動すると、押え部材15Aと下板15Bとが離れる。これにより、作業者は、押え部材15Aと下板15Bとの間に縫製対象物Sを配置することができる。押え部材15Aと下板15Bとの間に縫製対象物Sが配置された状態で押え部材15Aが−Z方向に移動すると、縫製対象物Sは押え部材15Aと下板15Bとで挟まれる。これにより、縫製対象物Sは保持部材15によって保持される。また、押え部材15Aが+Z方向に移動することにより、保持部材15による縫製対象物Sの保持が解除される。これにより、作業者は、押え部材15Aと下板15Bとの間から縫製対象物Sを取り出すことができる。 When the pressing member 15A moves in the + Z direction, the pressing member 15A and the lower plate 15B are separated from each other. As a result, the operator can arrange the sewing object S between the pressing member 15A and the lower plate 15B. When the pressing member 15A moves in the −Z direction while the sewing object S is arranged between the pressing member 15A and the lower plate 15B, the sewing object S is sandwiched between the pressing member 15A and the lower plate 15B. As a result, the sewing object S is held by the holding member 15. Further, when the pressing member 15A moves in the + Z direction, the holding member 15 releases the holding of the sewing object S. As a result, the operator can take out the sewing object S from between the pressing member 15A and the lower plate 15B.

アクチュエータ16は、針棒12をZ軸方向に移動させる動力を発生する。アクチュエータ16は、パルスモータを含む。アクチュエータ16は、水平アーム11Aに配置される。 The actuator 16 generates a power to move the needle bar 12 in the Z-axis direction. The actuator 16 includes a pulse motor. The actuator 16 is arranged on the horizontal arm 11A.

水平アーム11Aの内部には、Y軸方向に延在する水平アームシャフトが配置される。アクチュエータ16は、水平アームシャフトの+Y側の端部に連結される。水平アームシャフトの−Y側の端部は、ヘッド11Dの内部に配置されている動力伝達機構を介して針棒12に連結される。アクチュエータ16の作動により、水平アームシャフトが回転する。アクチュエータ16で発生した動力は、水平アームシャフト及び動力伝達機構を介して針棒12に伝達される。これにより、針棒12に保持されているミシン針3は、Z軸方向に往復移動する。 Inside the horizontal arm 11A, a horizontal arm shaft extending in the Y-axis direction is arranged. The actuator 16 is connected to the + Y side end of the horizontal arm shaft. The −Y end of the horizontal arm shaft is connected to the needle bar 12 via a power transmission mechanism arranged inside the head 11D. The operation of the actuator 16 causes the horizontal arm shaft to rotate. The power generated by the actuator 16 is transmitted to the needle bar 12 via the horizontal arm shaft and the power transmission mechanism. As a result, the sewing machine needle 3 held by the needle bar 12 reciprocates in the Z-axis direction.

垂直アーム11Cの内部には、Z軸方向に延在するタイミングベルトが配置される。また、ベッド11Bの内部には、Y軸方向に延在するベッドシャフトが配置される。水平アームシャフト及びベッドシャフトのそれぞれにプーリが配置される。タイミングベルトは、水平アームシャフトに配置されているプーリ及びベッドシャフトに配置されているプーリのそれぞれに架けられる。水平アームシャフトとベッドシャフトとは、タイミングベルトを含む動力伝達機構を介して連結される。 Inside the vertical arm 11C, a timing belt extending in the Z-axis direction is arranged. Further, inside the bed 11B, a bed shaft extending in the Y-axis direction is arranged. Pulleys are placed on each of the horizontal arm shaft and the bed shaft. The timing belt is hung on each of the pulley arranged on the horizontal arm shaft and the pulley arranged on the bed shaft. The horizontal arm shaft and the bed shaft are connected via a power transmission mechanism including a timing belt.

ベッド11Bの内部には、釜が配置される。釜には、ボビンケースに入れられたボビンが収容される。アクチュエータ16の作動により、水平アームシャフト及びベッドシャフトのそれぞれが回転する。アクチュエータ16で発生した動力は、水平アームシャフト、タイミングベルト、及びベッドシャフトを介して釜に伝達される。これにより、釜は、針棒12のZ軸方向の往復移動と同期して回転する。 A kettle is arranged inside the bed 11B. The bobbin contained in the bobbin case is housed in the kettle. By the operation of the actuator 16, each of the horizontal arm shaft and the bed shaft is rotated. The power generated by the actuator 16 is transmitted to the hook via the horizontal arm shaft, the timing belt, and the bed shaft. As a result, the hook rotates in synchronization with the reciprocating movement of the needle bar 12 in the Z-axis direction.

アクチュエータ17は、保持部材15をXY平面内で移動させる動力を発生する。アクチュエータ17は、パルスモータを含む。アクチュエータ17は、保持部材15をX軸方向に移動させる動力を発生するX軸モータ17Xと、保持部材15をY軸方向に移動させる動力を発生するY軸モータ17Yとを含む。アクチュエータ17は、ベッド11Bの内部に配置される。 The actuator 17 generates power to move the holding member 15 in the XY plane. The actuator 17 includes a pulse motor. The actuator 17 includes an X-axis motor 17X that generates power to move the holding member 15 in the X-axis direction, and a Y-axis motor 17Y that generates power to move the holding member 15 in the Y-axis direction. The actuator 17 is arranged inside the bed 11B.

アクチュエータ17で発生した動力は、支持部材14を介して保持部材15に伝達される。これにより、保持部材15は、ミシン針3と針板13との間においてX軸方向及びY軸方向のそれぞれに移動可能である。アクチュエータ17の作動により、保持部材15は、ミシン針3の直下の縫製位置Psを含むXY平面内において縫製対象物Sを保持して移動可能である。 The power generated by the actuator 17 is transmitted to the holding member 15 via the support member 14. As a result, the holding member 15 can move between the sewing machine needle 3 and the needle plate 13 in the X-axis direction and the Y-axis direction, respectively. By operating the actuator 17, the holding member 15 can hold and move the sewing object S in the XY plane including the sewing position Ps directly below the sewing machine needle 3.

アクチュエータ18は、保持部材15の押え部材15AをZ軸方向に移動させる動力を発生する。アクチュエータ18は、パルスモータを含む。押え部材15Aが+Z方向に移動することにより、押え部材15Aと下板15Bとが離れる。押え部材15Aが−Z方向に移動することにより、押え部材15Aと下板15Bとで縫製対象物Sが挟まれる。 The actuator 18 generates power to move the holding member 15A of the holding member 15 in the Z-axis direction. The actuator 18 includes a pulse motor. As the pressing member 15A moves in the + Z direction, the pressing member 15A and the lower plate 15B are separated from each other. As the pressing member 15A moves in the −Z direction, the sewing object S is sandwiched between the pressing member 15A and the lower plate 15B.

図2に示すように、ミシン本体10は、ミシン針3の周囲に配置される中押え部材19を有する。中押え部材19は、ミシン針3の周囲の縫製対象物Sを押える。中押え部材19は、Z軸方向に移動可能にヘッド11Dに支持される。ヘッド11Dの内部には、中押え部材19をZ軸方向に移動させる動力を発生する中押えモータが配置される。中押えモータの作動により、中押え部材19は、針棒12と同期してZ軸方向に移動する。中押え部材19により、ミシン針3の移動による縫製対象物Sの浮き上がりが抑制される。 As shown in FIG. 2, the sewing machine main body 10 has a center pressing member 19 arranged around the sewing machine needle 3. The middle pressing member 19 presses the sewing object S around the sewing machine needle 3. The middle pressing member 19 is supported by the head 11D so as to be movable in the Z-axis direction. Inside the head 11D, a middle presser motor that generates power to move the middle presser member 19 in the Z-axis direction is arranged. By the operation of the center presser motor, the center presser member 19 moves in the Z-axis direction in synchronization with the needle bar 12. The middle presser member 19 suppresses the lifting of the sewing object S due to the movement of the sewing machine needle 3.

操作装置20は、作業者に操作される。操作装置20が操作されることにより、ミシン1が作動する。本実施形態において、操作装置20は、操作パネル21と、操作ペダル22とを含む。操作パネル21は、テーブル2の上面に搭載される。操作ペダル22は、テーブル2の下方に配置される。作業者は、足で操作ペダル22を操作する。作業者により操作パネル21及び操作ペダル22の少なくとも一方が操作されることにより、ミシン1は作動する。 The operating device 20 is operated by an operator. The sewing machine 1 is operated by operating the operating device 20. In the present embodiment, the operation device 20 includes an operation panel 21 and an operation pedal 22. The operation panel 21 is mounted on the upper surface of the table 2. The operation pedal 22 is arranged below the table 2. The operator operates the operation pedal 22 with his / her foot. The sewing machine 1 operates when at least one of the operation panel 21 and the operation pedal 22 is operated by the operator.

撮像装置30は、保持部材15に保持されている縫製対象物Sを撮像する。撮像装置30は、光学系と、光学系を介して入射する光を受光するイメージセンサとを有する。イメージセンサは、CCD(Couple Charged Device)イメージセンサ又はCMOS(Complementary Metal Oxide Semiconductor)イメージセンサを含む。 The image pickup apparatus 30 takes an image of the sewing object S held by the holding member 15. The image pickup apparatus 30 has an optical system and an image sensor that receives light incident through the optical system. The image sensor includes a CCD (Couple Charged Device) image sensor or a CMOS (Complementary Metal Oxide Semiconductor) image sensor.

撮像装置30は、針板13及び保持部材15よりも上方に配置される。撮像位置Pfは、撮像装置30の光学系の光軸AXの位置を含む。撮像装置30に撮像領域FAが規定される。撮像領域FAは、撮像装置30の光学系の視野領域を含む。撮像領域FAは、撮像位置Pfを含む。撮像装置30は、撮像領域FAに配置された縫製対象物Sの少なくとも一部の画像を取得する。撮像装置30は、押え部材15Aの内側に配置されている縫製対象物Sの少なくとも一部を上方から撮像する。 The image pickup apparatus 30 is arranged above the needle plate 13 and the holding member 15. The imaging position Pf includes the position of the optical axis AX of the optical system of the imaging device 30. The image pickup region FA is defined in the image pickup apparatus 30. The imaging region FA includes the visual field region of the optical system of the imaging device 30. The imaging region FA includes the imaging position Pf. The image pickup apparatus 30 acquires an image of at least a part of the sewing object S arranged in the image pickup region FA. The image pickup apparatus 30 images at least a part of the sewing object S arranged inside the pressing member 15A from above.

撮像装置30の位置は、固定される。撮像装置30とミシンフレーム11との相対位置は、固定される。XY平面内における撮像装置30の光学系の光軸AXとミシン針3との相対位置は、固定される。XY平面内における撮像装置30の光学系の光軸AXとミシン針3との相対位置を示す相対位置データは、ミシン1の設計データから導出可能な既知データである。 The position of the image pickup apparatus 30 is fixed. The relative positions of the image pickup apparatus 30 and the sewing machine frame 11 are fixed. The relative positions of the optical axis AX of the optical system of the image pickup apparatus 30 and the sewing machine needle 3 in the XY plane are fixed. The relative position data indicating the relative positions of the optical axis AX of the optical system of the image pickup apparatus 30 and the sewing machine needle 3 in the XY plane is known data that can be derived from the design data of the sewing machine 1.

撮像装置30により取得される画像の位置は、カメラ座標系において規定される。規定の変換式又は変換行列により、カメラ座標系において規定される画像の位置がミシン座標系において規定される画像の位置に変換される。 The position of the image acquired by the image pickup apparatus 30 is defined in the camera coordinate system. The position of the image specified in the camera coordinate system is converted to the position of the image specified in the sewing machine coordinate system by the specified conversion formula or transformation matrix.

なお、撮像装置30の取付け誤差に起因して、撮像装置30の実際の位置と設計データにおける位置とに差異が生じる場合、撮像装置30の取付け後において、XY平面内におけるミシン針3の位置を計測し、計測されたミシン針3の位置を撮像装置30に向かって既知データ分だけ移動し、XY平面内における撮像装置30の実際の位置と移動後のミシン針3の位置との差分を算出することにより、その差分に基づいて、撮像装置30の光学系の光軸AXとミシン針3との正確な相対位置を算出することができる。 If there is a difference between the actual position of the image pickup device 30 and the position in the design data due to the mounting error of the image pickup device 30, the position of the sewing machine needle 3 in the XY plane after mounting the image pickup device 30 is changed. The measurement is performed, the measured position of the sewing machine needle 3 is moved toward the image pickup device 30 by the known data, and the difference between the actual position of the image pickup device 30 in the XY plane and the position of the sewing machine needle 3 after the movement is calculated. By doing so, it is possible to calculate an accurate relative position between the optical axis AX of the optical system of the image pickup apparatus 30 and the sewing machine needle 3 based on the difference.

[縫製対象物]
図3は、本実施形態に係る縫製対象物Sの一部を示す断面図である。図4は、本実施形態に係る縫製対象物Sを示す平面図である。図3及び図4は、縫製処理前の縫製対象物Sを示す。本実施形態において、縫製対象物Sは、車両用シートに使用される表皮材である。
[Items to be sewn]
FIG. 3 is a cross-sectional view showing a part of the sewing object S according to the present embodiment. FIG. 4 is a plan view showing the sewing object S according to the present embodiment. 3 and 4 show the sewing object S before the sewing process. In the present embodiment, the sewing object S is a skin material used for a vehicle seat.

図3に示すように、縫製対象物Sは、表材4と、パッド材5と、裏材6とを有する。表材4に孔7が設けられる。 As shown in FIG. 3, the sewing object S has a front material 4, a pad material 5, and a back material 6. A hole 7 is provided in the surface material 4.

表材4の表面は、車両用シートに搭乗者が着座したときに搭乗者と接触する着座面である。表材4は、織布、不織布、及び皮革の少なくとも一つを含む。パッド材5は、弾力性を有する。パッド材5は、例えばウレタン樹脂を含む。裏材6は、織布、不織布、及び皮革の少なくとも一つを含む。 The surface of the surface material 4 is a seating surface that comes into contact with the occupant when the occupant is seated on the vehicle seat. The surface material 4 includes at least one of a woven fabric, a non-woven fabric, and leather. The pad material 5 has elasticity. The pad material 5 contains, for example, urethane resin. The lining 6 includes at least one of woven fabric, non-woven fabric, and leather.

図4に示すように、孔7は、表材4に複数設けられる。孔7は、規定パターンRSで配置される。規定パターンRSは、複数の基準パターンUSを含む。複数の孔7により、基準パターンUSが形成される。本実施形態において、基準パターンUSは、25個の孔7で構成される。 As shown in FIG. 4, a plurality of holes 7 are provided in the surface material 4. The holes 7 are arranged in the specified pattern RS. The defined pattern RS includes a plurality of reference patterns US. The reference pattern US is formed by the plurality of holes 7. In this embodiment, the reference pattern US is composed of 25 holes 7.

図4に示すように、基準パターンUSは、間隔をあけて表材4に配置される。基準パターンUSは、X軸方向及びY軸方向のそれぞれに等間隔で配置される。X軸方向に隣り合う基準パターンUSの間に、Y軸方向の位置が異なる基準パターンUSが配置される。隣り合う基準パターンUSの間に孔7は形成されない。 As shown in FIG. 4, the reference pattern US is arranged on the surface material 4 at intervals. The reference pattern US is arranged at equal intervals in each of the X-axis direction and the Y-axis direction. Reference patterns US having different positions in the Y-axis direction are arranged between reference patterns US adjacent to each other in the X-axis direction. No holes 7 are formed between adjacent reference patterns US.

以下の説明においては、表材4の表面において基準パターンUSが設けられる領域を適宜、テクスチャ領域TA、と称し、表材4の表面において基準パターンUSの間の基準パターンUSが設けられない領域を適宜、ステッチ領域SA、と称する。 In the following description, the region where the reference pattern US is provided on the surface of the surface material 4 is appropriately referred to as a texture region TA, and the region on the surface of the surface material 4 where the reference pattern US is not provided between the reference patterns US is referred to as a texture region TA. As appropriate, it is referred to as a stitch region SA.

ステッチ領域SAには、縫製対象物Sに形成されるステッチCHの目標ステッチラインRLが規定される。 The target stitch line RL of the stitch CH formed on the sewing object S is defined in the stitch region SA.

[縫製対象物の表面の変位]
図5は、本実施形態に係る縫製対象物Sの一部を示す断面図である。図5は、縫製処理後の縫製対象物Sを示す。縫製対象物Sは、厚みがあり弾力性を有する。厚みがあり弾力性を有する縫製対象物SにステッチCHが形成されることにより、図5に示すように、縫製対象物Sが縮む。
[Displacement of the surface of the object to be sewn]
FIG. 5 is a cross-sectional view showing a part of the sewing object S according to the present embodiment. FIG. 5 shows the sewing object S after the sewing process. The sewing object S is thick and has elasticity. As the stitch CH is formed on the sewn object S having thickness and elasticity, the sewn object S shrinks as shown in FIG.

図6及び図7のそれぞれは、本実施形態に係る縫製対象物Sの一部を示す平面図である。図6は、縫製処理前の縫製対象物Sを示す。図7は、縫製処理後の縫製対象物Sを示す。 Each of FIG. 6 and FIG. 7 is a plan view showing a part of the sewing object S according to the present embodiment. FIG. 6 shows the sewing object S before the sewing process. FIG. 7 shows the sewing object S after the sewing process.

図6に示すように、ステッチ領域SAに目標ステッチラインRLが規定される。縫製対象物SにステッチCHが形成されると、縫製対象物Sが縮む。縫製対象物Sが縮むと、縫製対象物Sの表面が変位する。図7に示すように、縫製対象物SにステッチCHが形成されると、目標ステッチラインRLに対して縫製対象物Sの表面がXY平面内において変位する。 As shown in FIG. 6, a target stitch line RL is defined in the stitch region SA. When the stitch CH is formed on the sewing object S, the sewing object S shrinks. When the sewing object S shrinks, the surface of the sewing object S is displaced. As shown in FIG. 7, when the stitch CH is formed on the sewing object S, the surface of the sewing object S is displaced with respect to the target stitch line RL in the XY plane.

目標ステッチラインRLに対して縫製対象物Sの表面がXY平面内において変位した場合、目標ステッチラインRLに従って保持部材15を移動させると、ステッチCHを縫製対象物Sの表面の所望位置に形成することが困難となる。 When the surface of the sewing object S is displaced with respect to the target stitch line RL in the XY plane, when the holding member 15 is moved according to the target stitch line RL, the stitch CH is formed at a desired position on the surface of the sewing object S. Becomes difficult.

本実施形態においては、ステッチCHの形成により縫製対象物Sが縮んで縫製対象物Sの表面が変位した場合、縫製対象物Sの表面の変位量に基づいて、目標ステッチラインRLの位置が補正される。保持部材15は、補正された目標ステッチラインRLに基づいて移動される。 In the present embodiment, when the sewing object S shrinks due to the formation of the stitch CH and the surface of the sewing object S is displaced, the position of the target stitch line RL is corrected based on the displacement amount of the surface of the sewing object S. Will be done. The holding member 15 is moved based on the corrected target stitch line RL.

[画像処理装置]
図8は、本実施形態に係るミシン1を示す機能ブロック図である。ミシン1は、画像処理装置40と、制御装置50と、記憶装置60とを備える。
[Image processing device]
FIG. 8 is a functional block diagram showing the sewing machine 1 according to the present embodiment. The sewing machine 1 includes an image processing device 40, a control device 50, and a storage device 60.

画像処理装置40は、コンピュータシステムを含む。図8に示すように、画像処理装置40は、撮像装置30、制御装置50、記憶装置60、入力装置70、及び出力装置80のそれぞれと接続される。画像処理装置40は、縫製対象物Sに係る画像を処理する。 The image processing device 40 includes a computer system. As shown in FIG. 8, the image processing device 40 is connected to each of the image pickup device 30, the control device 50, the storage device 60, the input device 70, and the output device 80. The image processing device 40 processes an image related to the sewing object S.

入力装置70は、作業者に操作されることにより入力データを生成する。入力装置70として、コンピュータ用キーボード、マウス、及びタッチパネルが例示される。 The input device 70 generates input data by being operated by an operator. Examples of the input device 70 include a computer keyboard, a mouse, and a touch panel.

出力装置80は、出力データを出力する。出力装置80として、表示装置及び印刷装置が例示される。表示装置は、出力データとして表示データを出力する。印刷装置は、出力データとして印刷データを出力する。表示装置として、液晶ディスプレイ(LCD:Liquid Crystal Display)又は有機ELディスプレイ(OELD:Organic Electroluminescence Display)のようなフラットパネルディスプレイが例示される。印刷装置として、インクジェットプリンタが例示される。 The output device 80 outputs output data. As the output device 80, a display device and a printing device are exemplified. The display device outputs display data as output data. The printing device outputs print data as output data. Examples of the display device include a flat panel display such as a liquid crystal display (LCD) or an organic electroluminescence display (OELD). An inkjet printer is exemplified as a printing device.

制御装置50は、コンピュータシステムを含む。図8に示すように、制御装置50は、ミシン針3をZ軸方向に移動させるアクチュエータ16、保持部材15をXY平面内において移動させるアクチュエータ17、保持部材15の押え部材15AをZ軸方向に移動させるアクチュエータ18、操作装置20、画像処理装置40、及び記憶装置60のそれぞれと接続される。制御装置50は、画像処理装置40の処理結果に基づいて、保持部材15を移動させるアクチュエータ17を制御する制御指令を出力する。 The control device 50 includes a computer system. As shown in FIG. 8, the control device 50 moves the actuator 16 that moves the sewing machine needle 3 in the Z-axis direction, the actuator 17 that moves the holding member 15 in the XY plane, and the holding member 15A of the holding member 15 in the Z-axis direction. It is connected to each of the moving actuator 18, the operating device 20, the image processing device 40, and the storage device 60. The control device 50 outputs a control command for controlling the actuator 17 that moves the holding member 15 based on the processing result of the image processing device 40.

また、制御装置50は、アクチュエータ16の駆動量を検出する駆動量センサ31、及びアクチュエータ17の駆動量を検出する駆動量センサ32と接続される。 Further, the control device 50 is connected to a drive amount sensor 31 that detects the drive amount of the actuator 16 and a drive amount sensor 32 that detects the drive amount of the actuator 17.

駆動量センサ31は、アクチュエータ16であるパルスモータの回転量を検出するエンコーダを含む。駆動量センサ31の検出データは、制御装置50に出力される。 The drive amount sensor 31 includes an encoder that detects the amount of rotation of the pulse motor, which is the actuator 16. The detection data of the drive amount sensor 31 is output to the control device 50.

駆動量センサ32は、X軸モータ17Xの回転量を検出するX軸センサ32Xと、Y軸モータ17Yの回転量を検出するY軸センサ32Yとを含む。X軸センサ32Xは、X軸モータ17Xの回転量を検出するエンコーダを含む。Y軸センサ32Yは、Y軸モータ17Yの回転量を検出するエンコーダを含む。駆動量センサ32の検出データは、制御装置50に出力される。 The drive amount sensor 32 includes an X-axis sensor 32X that detects the rotation amount of the X-axis motor 17X and a Y-axis sensor 32Y that detects the rotation amount of the Y-axis motor 17Y. The X-axis sensor 32X includes an encoder that detects the amount of rotation of the X-axis motor 17X. The Y-axis sensor 32Y includes an encoder that detects the amount of rotation of the Y-axis motor 17Y. The detection data of the drive amount sensor 32 is output to the control device 50.

駆動量センサ32は、XY平面内における保持部材15の位置を検出する位置センサとして機能する。アクチュエータ17の駆動量と保持部材15の移動量とは1対1で対応する。 The drive amount sensor 32 functions as a position sensor that detects the position of the holding member 15 in the XY plane. There is a one-to-one correspondence between the driving amount of the actuator 17 and the moving amount of the holding member 15.

X軸センサ32Xは、X軸モータ17Xの回転量を検出することにより、ミシン座標系における原点からの保持部材15のX軸方向の移動量を検出可能である。Y軸センサ32Yは、Y軸モータ17Yの回転量を検出することにより、ミシン座標系における原点からの保持部材15のY軸方向の移動量を検出可能である。 The X-axis sensor 32X can detect the amount of movement of the holding member 15 from the origin in the sewing machine coordinate system in the X-axis direction by detecting the amount of rotation of the X-axis motor 17X. The Y-axis sensor 32Y can detect the amount of movement of the holding member 15 in the Y-axis direction from the origin in the sewing machine coordinate system by detecting the amount of rotation of the Y-axis motor 17Y.

制御装置50は、駆動量センサ31の検出データに基づいて、アクチュエータ16を制御する。制御装置50は、駆動量センサ31の検出データに基づいて、例えばアクチュエータ16の作動タイミングを決定する。 The control device 50 controls the actuator 16 based on the detection data of the drive amount sensor 31. The control device 50 determines, for example, the operation timing of the actuator 16 based on the detection data of the drive amount sensor 31.

制御装置50は、駆動量センサ32の検出データに基づいて、アクチュエータ17を制御する。制御装置50は、駆動量センサ32の検出データに基づいて、保持部材15が所望位置に移動するようにアクチュエータ17をフィードバック制御する。 The control device 50 controls the actuator 17 based on the detection data of the drive amount sensor 32. The control device 50 feedback-controls the actuator 17 so that the holding member 15 moves to a desired position based on the detection data of the drive amount sensor 32.

制御装置50は、駆動量センサ32の検出データに基づいて、XY平面内における保持部材15の位置を算出する。駆動量センサ32の検出データに基づいて、XY平面内における原点からの保持部材15の移動量が検出される。制御装置50は、検出された保持部材15の移動量に基づいて、XY平面内における保持部材15の位置を算出する。 The control device 50 calculates the position of the holding member 15 in the XY plane based on the detection data of the drive amount sensor 32. Based on the detection data of the drive amount sensor 32, the amount of movement of the holding member 15 from the origin in the XY plane is detected. The control device 50 calculates the position of the holding member 15 in the XY plane based on the detected movement amount of the holding member 15.

記憶装置60は、ROM(Read Only Memory)又はストレージのような不揮発性メモリ及びRAM(Random Access Memory)のような揮発性メモリを含む。図8に示すように、記憶装置60は、画像処理装置40及び制御装置50のそれぞれと接続される。 The storage device 60 includes a non-volatile memory such as ROM (Read Only Memory) or storage and a volatile memory such as RAM (Random Access Memory). As shown in FIG. 8, the storage device 60 is connected to each of the image processing device 40 and the control device 50.

記憶装置60は、縫製データ記憶部61と、設計データ記憶部62と、プログラム記憶部63とを有する。 The storage device 60 includes a sewing data storage unit 61, a design data storage unit 62, and a program storage unit 63.

縫製データ記憶部61は、縫製処理において参照される縫製データを記憶する。 The sewing data storage unit 61 stores sewing data referred to in the sewing process.

縫製処理とは、縫製対象物SにステッチCHを形成する処理をいう。本実施形態において、縫製処理は、第1ステッチCH1を形成するための第1縫製処理、及び第2ステッチCH2を形成するための第2縫製処理を含む。同様に、縫製処理は、第3ステッチCH3から第14ステッチCH14のそれぞれを形成するための第3縫製処理から第14縫製処理を含む。 The sewing process refers to a process of forming a stitch CH on the sewing object S. In the present embodiment, the sewing process includes a first sewing process for forming the first stitch CH1 and a second sewing process for forming the second stitch CH2. Similarly, the sewing process includes a third sewing process to a 14th sewing process for forming each of the third stitch CH3 to the 14th stitch CH14.

縫製データは、縫製対象物Sに形成されるステッチCHの目標ステッチラインRL、及び保持部材15の移動条件を含む。 The sewing data includes the target stitch line RL of the stitch CH formed on the sewing object S and the movement condition of the holding member 15.

目標ステッチラインRLは、縫製対象物Sに形成されるステッチCHの目標形状及びミシン座標系におけるステッチCHの目標位置を規定する。 The target stitch line RL defines the target shape of the stitch CH formed on the sewing object S and the target position of the stitch CH in the sewing machine coordinate system.

図4に示すように、目標ステッチラインRLは、第1ステッチCH1を形成するための第1目標ステッチラインRL1、及び第2ステッチCH2を形成するための第2目標ステッチラインRL2を含む。同様に、目標ステッチラインRLは、第3ステッチCH3から第14ステッチCH14のそれぞれを形成するための第3目標ステッチラインRL3から第14目標ステッチラインRL14を含む。 As shown in FIG. 4, the target stitch line RL includes a first target stitch line RL1 for forming the first stitch CH1 and a second target stitch line RL2 for forming the second stitch CH2. Similarly, the target stitch line RL includes a third target stitch line RL3 to a 14th target stitch line RL14 for forming each of the third stitch CH3 to the 14th stitch CH14.

保持部材15の移動条件は、ミシン座標系において規定される保持部材15の移動軌跡を含む。保持部材15の移動軌跡は、XY平面内における保持部材15の移動軌跡を含む。保持部材15の移動条件は、目標ステッチラインRLに基づいて定められる。 The movement condition of the holding member 15 includes the movement locus of the holding member 15 defined in the sewing machine coordinate system. The movement locus of the holding member 15 includes the movement locus of the holding member 15 in the XY plane. The movement conditions of the holding member 15 are determined based on the target stitch line RL.

第1縫製処理は、第1目標ステッチラインRL1に基づいて縫製対象物Sに第1ステッチCH1を形成する処理を含む。第1縫製処理は、縫製対象物Sが保持部材15に保持された後に最初に実施される。 The first sewing process includes a process of forming the first stitch CH1 on the sewing object S based on the first target stitch line RL1. The first sewing process is performed first after the sewing object S is held by the holding member 15.

第2縫製処理は、第2目標ステッチラインRL2に基づいて縫製対象物Sに第2ステッチCH2を形成する処理を含む。第2縫製処理は、第1縫製処理の次に実施される。 The second sewing process includes a process of forming the second stitch CH2 on the sewing object S based on the second target stitch line RL2. The second sewing process is performed after the first sewing process.

同様に、第3縫製処理から第14縫製処理のそれぞれは、第3目標ステッチラインRL3から第14目標ステッチラインRL14のそれぞれに基づいて縫製対象物Sに第3ステッチCH3から第14ステッチCH14のそれぞれを形成する処理を含む。第3縫製処理から第14縫製処理は、順次実施される。 Similarly, each of the third sewing process to the 14th sewing process has the third stitch CH3 to the 14th stitch CH14 on the sewing object S based on each of the third target stitch line RL3 to the 14th target stitch line RL14. Includes processing to form. The third sewing process to the 14th sewing process are sequentially carried out.

設計データ記憶部62は、縫製対象物Sの設計データを記憶する。縫製対象物Sの設計データは、縫製対象物Sの表面におけるテクスチャ領域TAの位置及び範囲と、ステッチ領域SAの位置及び範囲と、基準パターンUSの形状及び寸法とを含む。縫製対象物SがCAD(Computer Aided Design)により設計される場合、縫製対象物Sの設計データは、CADデータを含む。 The design data storage unit 62 stores the design data of the sewing object S. The design data of the sewing object S includes the position and range of the texture region TA on the surface of the sewing object S, the position and range of the stitch area SA, and the shape and dimensions of the reference pattern US. When the sewing object S is designed by CAD (Computer Aided Design), the design data of the sewing object S includes the CAD data.

縫製対象物Sの設計データは、初期状態における縫製対象物Sの設計データである。縫製対象物Sの初期状態とは、第1縫製処理前の状態をいう。すなわち、縫製対象物Sの初期状態とは、縫製対象物SにステッチCHが未だ形成されていない状態をいう。 The design data of the sewing object S is the design data of the sewing object S in the initial state. The initial state of the sewing object S means a state before the first sewing process. That is, the initial state of the sewing object S means a state in which the stitch CH is not yet formed on the sewing object S.

プログラム記憶部63は、ミシン1を制御するためのコンピュータプログラムを記憶する。コンピュータプログラムは、制御装置50に読み込まれる。制御装置50は、プログラム記憶部63に記憶されているコンピュータプログラムに従ってミシン1を制御する。 The program storage unit 63 stores a computer program for controlling the sewing machine 1. The computer program is read into the control device 50. The control device 50 controls the sewing machine 1 according to a computer program stored in the program storage unit 63.

画像処理装置40は、対象物画像取得部41と、走査部42と、領域分割部43と、補正点設定部44と、特徴点抽出部45と、基準ベクトル算出部46と、基準ベクトル記憶部47と、補正量算出部48と、領域分割画像出力部49とを有する。 The image processing device 40 includes an object image acquisition unit 41, a scanning unit 42, an area division unit 43, a correction point setting unit 44, a feature point extraction unit 45, a reference vector calculation unit 46, and a reference vector storage unit. It has 47, a correction amount calculation unit 48, and a region-divided image output unit 49.

対象物画像取得部41は、縫製対象物Sに係る画像を示す対象物画像SMを取得する。撮像装置30は、縫製対象物Sを撮像して、対象物画像SMを画像処理装置40に出力する。対象物画像取得部41は、撮像装置30から対象物画像SMを取得する。 The object image acquisition unit 41 acquires an object image SM showing an image related to the sewing object S. The image pickup device 30 takes an image of the sewing object S and outputs the object image SM to the image processing device 40. The object image acquisition unit 41 acquires the object image SM from the image pickup apparatus 30.

図9は、本実施形態に係る撮像装置30の動作を説明するための図である。撮像装置30は、保持部材15に保持されている縫製対象物Sを撮像する。図9に示すように、撮像装置30の撮像領域FAは、縫製対象物Sよりも小さい。縫製対象物Sと撮像装置30の撮像領域FAとの相対移動により、対象物画像SMが複数取得される。縫製対象物Sを保持した保持部材15は、撮像装置30の撮像位置Pfを含むXY平面内において移動する。撮像装置30は、撮像領域FAに配置された縫製対象物Sの一部を撮像する。XY平面内における保持部材15の移動と撮像領域FAに配置された縫製対象物Sの一部の撮像処理とが繰り返されることにより、複数の対象物画像SMが順次取得される。 FIG. 9 is a diagram for explaining the operation of the image pickup apparatus 30 according to the present embodiment. The image pickup apparatus 30 takes an image of the sewing object S held by the holding member 15. As shown in FIG. 9, the image pickup region FA of the image pickup apparatus 30 is smaller than the sewing object S. A plurality of object images SM are acquired by the relative movement between the sewing object S and the imaging region FA of the imaging device 30. The holding member 15 holding the sewing object S moves in the XY plane including the imaging position Pf of the imaging device 30. The image pickup apparatus 30 images a part of the sewing object S arranged in the image pickup region FA. By repeating the movement of the holding member 15 in the XY plane and the imaging process of a part of the sewing object S arranged in the imaging region FA, a plurality of object images SM are sequentially acquired.

図9に示すように、撮像装置30の第1の撮像処理における撮像領域FAと第2の撮像処理における撮像領域FAの一部とが重複するように、縫製対象物Sと撮像装置30とが相対移動しながら、複数の対象物画像SMが順次取得される。複数の撮像処理のそれぞれにおいて取得された対象物画像SMが繋ぎ合わせられることにより、縫製対象物S全体の対象物画像SMが生成される。 As shown in FIG. 9, the sewing object S and the image pickup device 30 overlap so that the image pickup region FA in the first image pickup process of the image pickup device 30 and a part of the image pickup area FA in the second image pickup process overlap. A plurality of object images SM are sequentially acquired while moving relative to each other. By joining the object image SMs acquired in each of the plurality of imaging processes, the object image SM of the entire sewing object S is generated.

撮像装置30は、縫製処理前において、縫製対象物Sを撮像する。すなわち、撮像装置30は、第1縫製処理前及び第2縫製処理前のそれぞれにおいて、縫製対象物Sを撮像する。同様に、撮像装置30は、第3縫製処理前から第14縫製処理前のそれぞれにおいて、縫製対象物Sを撮像する。対象物画像取得部41は、第1縫製処理前から第14縫製処理前のそれぞれにおいて撮像された縫製対象物Sの対象物画像SMを撮像装置30から取得する。 The image pickup apparatus 30 takes an image of the sewing object S before the sewing process. That is, the image pickup apparatus 30 images the sewing object S before the first sewing process and before the second sewing process, respectively. Similarly, the image pickup apparatus 30 images the sewing object S before the third sewing process and before the 14th sewing process. The object image acquisition unit 41 acquires the object image SM of the sewing object S captured before each of the first sewing process and the 14th sewing process from the image pickup apparatus 30.

なお、第1縫製処理前において撮像装置30により取得される対象物画像SMと、設計データ記憶部62に記憶されている初期状態における縫製対象物Sの設計データとが同一である場合、対象物画像取得部41は、第1縫製処理前の対象物画像SMとして、初期状態における縫製対象物Sの設計データ記憶部62から取得してもよい。 When the object image SM acquired by the image pickup apparatus 30 before the first sewing process and the design data of the sewing object S in the initial state stored in the design data storage unit 62 are the same, the object. The image acquisition unit 41 may acquire the object image SM before the first sewing process from the design data storage unit 62 of the sewing object S in the initial state.

走査部42は、対象物画像SMを規定のサーチ領域HAで走査して、対象物画像SMを構成する複数の画素のそれぞれの状態を判定する。 The scanning unit 42 scans the object image SM in the specified search area HA to determine the state of each of the plurality of pixels constituting the object image SM.

領域分割部43は、対象物画像SMに基づいて、縫製対象物Sの表面をテクスチャ領域TAとステッチ領域SAとに分割して、テクスチャ領域TAとステッチ領域SAとの境界線BLを算出する。 Based on the object image SM, the region dividing unit 43 divides the surface of the sewing object S into the texture region TA and the stitch region SA, and calculates the boundary line BL between the texture region TA and the stitch region SA.

図10は、本実施形態に係る境界線BLの算出方法を説明するための図である。図10に示すように、走査部42は、対象物画像SMを規定のサーチ領域HAで走査して、対象物画像SMを構成する複数の画素のそれぞれの状態を取得する。 FIG. 10 is a diagram for explaining a method of calculating the boundary line BL according to the present embodiment. As shown in FIG. 10, the scanning unit 42 scans the object image SM in the specified search area HA to acquire the states of the plurality of pixels constituting the object image SM.

なお、対象物画像SMを走査する前に、対象物画像SMの前処理が実施されてもよい。前処理として、平滑化フィルタ処理及び最大値フィルタ処理が例示される。前処理が実施されることにより、画素の状態の判定が円滑に実施される。 Before scanning the object image SM, preprocessing of the object image SM may be performed. Examples of preprocessing include smoothing filtering and maximum value filtering. By performing the preprocessing, the determination of the pixel state is smoothly performed.

走査部42は、複数の画素のそれぞれが規定色画素か否かを判定する。本実施形態において、規定色が黒色であり、規定色画素が黒画素であることとする。走査部42は、複数の画素のそれぞれが黒画素か否かを判定する。以下の説明においては、黒画素か否かの判定対象の画素を適宜、注目画素AP、と称する。 The scanning unit 42 determines whether or not each of the plurality of pixels is a specified color pixel. In the present embodiment, it is assumed that the specified color is black and the specified color pixel is a black pixel. The scanning unit 42 determines whether or not each of the plurality of pixels is a black pixel. In the following description, the pixel to be determined whether it is a black pixel or not is appropriately referred to as a pixel of interest AP.

図10に示すように、走査部42は、孔7の画像を構成する注目画素APbは黒画素であると判定する。走査部42は、表材4の画像を構成する注目画素APt及び注目画素APsは黒画素でないと判定する。 As shown in FIG. 10, the scanning unit 42 determines that the pixel of interest APb constituting the image of the hole 7 is a black pixel. The scanning unit 42 determines that the attention pixel Apt and the attention pixel APs constituting the image of the surface material 4 are not black pixels.

領域分割部43は、走査部42の判定結果に基づいて、縫製対象物Sの表面をテクスチャ領域TAとステッチ領域SAとに分割する。 The region dividing unit 43 divides the surface of the sewing object S into a texture region TA and a stitch region SA based on the determination result of the scanning unit 42.

領域分割部43は、黒画素であると判定された注目画素APをテクスチャ領域TAに分類する。図10に示す例において、領域分割部43は、黒画素であると判定された注目画素APbをテクスチャ領域TAに分類する。 The area division unit 43 classifies the attention pixel AP determined to be a black pixel into the texture area TA. In the example shown in FIG. 10, the region dividing unit 43 classifies the attention pixel APb determined to be a black pixel into the texture region TA.

領域分割部43は、黒画素でないと判定された注目画素APとその注目画素APの周囲の黒画素との相対位置が規定条件を満足するか否かを判定する。規定条件は、注目画素APと黒画素との相対距離が予め定められた閾値以下である条件を含む。閾値は、テクスチャ領域TAにおいて隣り合う孔7の間隔と、ステッチ領域SAの寸法(幅)とに基づいて定められる。 The area division unit 43 determines whether or not the relative position between the attention pixel AP determined not to be a black pixel and the black pixel around the attention pixel AP satisfies the specified condition. The defined condition includes a condition that the relative distance between the pixel of interest AP and the black pixel is equal to or less than a predetermined threshold value. The threshold value is determined based on the distance between adjacent holes 7 in the texture region TA and the dimension (width) of the stitch region SA.

図10に示す例において、注目画素APtは、表材4の画像を構成するものの、テクスチャ領域TAの画像を構成する。注目画素APsは、ステッチ領域SAの画像を構成する。テクスチャ領域TAの画像を構成する注目画素APtとその注目画素APtの周囲の孔7の画像を構成する黒画素との距離は、短い。一方、ステッチ領域SAの画像を構成する注目画素APsとその注目画素APsの周囲の孔7の画像を構成する黒画素との距離は、長い。注目画素APtとその注目画素APtの周囲の黒画素との距離は、閾値以下である。注目画素APsとその注目画素APsの周囲の黒画素との距離は、閾値よりも長い。 In the example shown in FIG. 10, the pixel of interest Apt constitutes the image of the surface material 4, but constitutes the image of the texture region TA. The pixels of interest APs constitute an image of the stitch region SA. The distance between the attention pixel Apt forming the image of the texture region TA and the black pixel forming the image of the hole 7 around the attention pixel Apt is short. On the other hand, the distance between the attention pixel APs forming the image of the stitch region SA and the black pixels forming the image of the holes 7 around the attention pixels APs is long. The distance between the pixel of interest Apt and the black pixels around the pixel of interest Apt is less than or equal to the threshold value. The distance between the attention pixel APs and the black pixels around the attention pixel APs is longer than the threshold value.

領域分割部43は、黒画素でないと判定された注目画素APtと注目画素APtの周囲の黒画素との距離が閾値以下であると判定した場合、注目画素APtをテクスチャ領域TAに分類する。領域分割部43は、黒画素でないと判定された注目画素APsと注目画素APsの周囲の黒画素との距離が閾値よりも長いと判定した場合、注目画素APsをステッチ領域SAに分類する。 When the region division unit 43 determines that the distance between the attention pixel Apt determined not to be a black pixel and the black pixel around the attention pixel Apt is equal to or less than the threshold value, the region division unit 43 classifies the attention pixel Apt into the texture region TA. When the area division unit 43 determines that the distance between the attention pixel APs determined not to be black pixels and the black pixels around the attention pixel APs is longer than the threshold value, the area division unit 43 classifies the attention pixels APs into the stitch region SA.

領域分割部43は、対象物画像SMの全ての画素をテクスチャ領域TAとステッチ領域SAとに分類する。領域分割部43は、対象物画像SMの複数の画素をテクスチャ領域TAとステッチ領域SAとに分類することにより、テクスチャ領域TAとステッチ領域SAとの境界線BLを算出することができる。 The area division unit 43 classifies all the pixels of the object image SM into a texture area TA and a stitch area SA. The region division unit 43 can calculate the boundary line BL between the texture region TA and the stitch region SA by classifying the plurality of pixels of the object image SM into the texture region TA and the stitch region SA.

なお、注目画素APの分類が終了した後、対象物画像SMの後処理が実施されてもよい。対象物画像SMの後処理が実施された後に、境界線BLが算出されてもよい。後処理として、オープニング処理、クロージング処理、ノイズ除去処理、及び穴埋め処理が例示される。後処理が実施された後、ラベリング処理、及び輪郭トレース処理が実施されることにより、テクスチャ領域TAとステッチ領域SAとの境界を示す複数の基準点が算出される。領域分割部43は、複数の基準点から最小二乗曲線を算出する。領域分割部43は、算出した最小二乗曲線を境界線BLとしてもよい。 After the classification of the pixel of interest AP is completed, the post-processing of the object image SM may be performed. The boundary line BL may be calculated after the post-processing of the object image SM is performed. Examples of the post-processing include an opening process, a closing process, a noise removal process, and a fill-in-the-blank process. After the post-processing is performed, the labeling process and the contour tracing process are performed to calculate a plurality of reference points indicating the boundary between the texture region TA and the stitch region SA. The region division unit 43 calculates the least squares curve from a plurality of reference points. The region division unit 43 may use the calculated least squares curve as the boundary line BL.

図11は、本実施形態に係る境界線BLを説明するための図である。図11に示すように、境界線BLは、テクスチャ領域TAのエッジを通る線である。テクスチャ領域TAが孔7を含む場合、境界線BLは、テクスチャ領域TAにおいて最も外側に配置されている孔7の外側のエッジを結ぶように生成される。 FIG. 11 is a diagram for explaining the boundary line BL according to the present embodiment. As shown in FIG. 11, the boundary line BL is a line passing through the edge of the texture region TA. When the texture region TA includes the holes 7, the boundary line BL is generated so as to connect the outer edges of the outermost holes 7 in the texture region TA.

補正点設定部44は、ステッチ領域SAに規定された目標ステッチラインRLを補正するための補正点CPを設定する。第1縫製処理前に、第1目標ステッチラインRL1から第14目標ステッチラインRL14のそれぞれを補正するための補正点CPが設定される。 The correction point setting unit 44 sets a correction point CP for correcting the target stitch line RL defined in the stitch area SA. Before the first sewing process, a correction point CP for correcting each of the first target stitch line RL1 to the 14th target stitch line RL14 is set.

図12は、本実施形態に係る補正点CPを説明するための図である。図12に示すように、縫製対象物Sに補正点CPが設定される。補正点CPは、目標ステッチラインRLの補正に使用される。補正点CPは、作業者により任意の位置に設定される。作業者は、入力装置70を操作して、縫製対象物Sの任意の位置に補正点CPを設定することができる。補正点設定部44は、入力装置70の操作により生成された入力データに基づいて、補正点CPを設定する。図12に示す例では、補正点CPは、ステッチ領域SAにおいて、補正対象の目標ステッチラインRLに重複するように設定される。なお、補正点CPは、補正対象の目標ステッチラインRLの近傍に設定されていればよく、目標ステッチラインRLから外れた位置に設定されてもよいし、テクスチャ領域TAに設定されてもよい。補正点CPの位置は、ミシン座標系において規定される。 FIG. 12 is a diagram for explaining the correction point CP according to the present embodiment. As shown in FIG. 12, a correction point CP is set on the sewing object S. The correction point CP is used to correct the target stitch line RL. The correction point CP is set at an arbitrary position by the operator. The operator can operate the input device 70 to set the correction point CP at an arbitrary position of the sewing object S. The correction point setting unit 44 sets the correction point CP based on the input data generated by the operation of the input device 70. In the example shown in FIG. 12, the correction point CP is set so as to overlap the target stitch line RL to be corrected in the stitch region SA. The correction point CP may be set near the target stitch line RL to be corrected, may be set at a position outside the target stitch line RL, or may be set in the texture area TA. The position of the correction point CP is defined in the sewing machine coordinate system.

ステッチCHが形成されると、補正点CP及び目標ステッチラインRLに対して縫製対象物Sの表面が変位する。 When the stitch CH is formed, the surface of the sewing object S is displaced with respect to the correction point CP and the target stitch line RL.

特徴点抽出部45は、領域分割部43により算出された境界線BLに基づいて、テクスチャ領域TAの特徴点FPを抽出する。特徴点FPとは、境界線BLにおいて特徴的な形状を有する部分をいう。縫製対象物Sの表面が変位しても、特徴点FPの特徴的な形状は実質的に維持される。特徴点FPとして、境界線BLの角点、極大点、極小点、及び変曲点が例示される。 The feature point extraction unit 45 extracts the feature point FP of the texture region TA based on the boundary line BL calculated by the region division unit 43. The feature point FP refers to a portion having a characteristic shape on the boundary line BL. Even if the surface of the sewing object S is displaced, the characteristic shape of the feature point FP is substantially maintained. Examples of the feature point FP include a corner point, a maximum point, a minimum point, and an inflection point of the boundary line BL.

図13は、本実施形態に係る特徴点FPの算出方法の一例を説明するための図である。図13に示すように、特徴点抽出部45は、例えば基準線XLを規定し、基準線XLと境界線BLの複数の境界点BPのそれぞれとの距離を算出する。距離は、基準線XLと直交する方向の距離である。特徴点抽出部45は、基準線XLからの距離が最も長い境界点BPを特徴点FPと決定することができる。 FIG. 13 is a diagram for explaining an example of a method of calculating the feature point FP according to the present embodiment. As shown in FIG. 13, the feature point extraction unit 45 defines, for example, the reference line XL, and calculates the distance between the reference line XL and each of the plurality of boundary points BP of the boundary line BL. The distance is a distance in a direction orthogonal to the reference line XL. The feature point extraction unit 45 can determine the boundary point BP having the longest distance from the reference line XL as the feature point FP.

なお、角点、極大点、極小点、及び変曲点のような明確な特徴点FPが境界線BLに存在しない場合がある。特徴点FPは基準線XLを用いずに算出することができる。 In some cases, clear feature points FP such as corner points, maximum points, minimum points, and inflection points do not exist at the boundary line BL. The feature point FP can be calculated without using the reference line XL.

図14は、本実施形態に係る特徴点FPの算出方法の一例を説明するための図である。図14に示すように、角点、極大点、極小点、及び変曲点のような明確な特徴点FPが境界線BLに存在しない場合、特徴点抽出部45は、複数の境界線BLの相対距離に基づいて、特徴点FPを抽出する。図14に示すように、一対の境界線BLが対向するように規定された場合、特徴点抽出部45は、一方の境界線BLの境界点BPと、他方の境界線BLの境界点BPとの距離を算出する。図14に示す例において、X軸方向における一方の境界線BLの境界点BPの位置と他方の境界線BLの境界点BPの位置とは同一である。特徴点抽出部45は、境界線BLの複数の境界点BPのそれぞれについて距離を算出する。特徴点抽出部45は、距離が最も長い境界線BLの境界点BPを特徴点FPと決定することができる。 FIG. 14 is a diagram for explaining an example of a method of calculating the feature point FP according to the present embodiment. As shown in FIG. 14, when a clear feature point FP such as a corner point, a maximum point, a minimum point, and an inflection point does not exist in the boundary line BL, the feature point extraction unit 45 uses the plurality of boundary line BLs. The feature point FP is extracted based on the relative distance. As shown in FIG. 14, when the pair of boundary lines BL are defined to face each other, the feature point extraction unit 45 includes the boundary point BP of one boundary line BL and the boundary point BP of the other boundary line BL. Calculate the distance of. In the example shown in FIG. 14, the position of the boundary point BP of one boundary line BL and the position of the boundary point BP of the other boundary line BL in the X-axis direction are the same. The feature point extraction unit 45 calculates the distance for each of the plurality of boundary points BP of the boundary line BL. The feature point extraction unit 45 can determine the boundary point BP of the boundary line BL having the longest distance as the feature point FP.

図9を参照して説明したように、複数の撮像処理のそれぞれにおける撮像領域FAの一部を重複させながら複数の対象物画像SMが取得される。複数の対象物画像SMが繋ぎ合わせられることにより、縫製対象物S全体の対象物画像SMが生成される。そのため、明確な特徴点FPが無くても、特徴点抽出部45は、繋ぎ合わせられた複数の対象物画像SMから、図14に示したような対向する一対の境界線BLを探索することができる。 As described with reference to FIG. 9, a plurality of object image SMs are acquired while overlapping a part of the imaging region FA in each of the plurality of imaging processes. By joining the plurality of object image SMs, the object image SM of the entire sewing object S is generated. Therefore, even if there is no clear feature point FP, the feature point extraction unit 45 can search for a pair of opposing boundary lines BL as shown in FIG. 14 from a plurality of connected object image SMs. it can.

なお、撮像装置30は、撮像領域FAを拡大して、縫製対象物S全体の対象物画像SMを一括して取得してもよい。縫製対象物S全体の対象物画像SMを一括して取得された場合においても、明確な特徴点FPが無くても、図14に示したような対向する一対の境界線BLを探索することができる。 The image pickup apparatus 30 may enlarge the image pickup region FA and collectively acquire the object image SM of the entire sewing object S. Even when the object image SM of the entire sewing object S is collectively acquired, it is possible to search for a pair of opposing boundary lines BL as shown in FIG. 14 even if there is no clear feature point FP. it can.

基準ベクトル算出部46は、補正点設定部44により設定された補正点CPと境界線BLに設定された境界点BPとの相対位置を示す基準ベクトルRVを算出する。 The reference vector calculation unit 46 calculates a reference vector RV indicating a relative position between the correction point CP set by the correction point setting unit 44 and the boundary point BP set on the boundary line BL.

図15及び図16のそれぞれは、本実施形態に係る基準ベクトルRVを説明するための図である。図16は、図15の一部を拡大した図である。縫製処理前の縫製対象物Sに補正点CPが設定される。図15及び図16において、補正点CPは、第1縫製処理前の初期状態の縫製対象物Sに設定される。境界点BPは、境界線BLに設定される。境界点BPは、複数の孔7のそれぞれの近傍に設定される。境界点BPは、補正点CPの近傍に設定される。基準ベクトルRVは、第1縫製処理前の縫製対象物Sにおける、境界点BPに対する補正点CPの方位、及び境界点BPと補正点CPとの距離を示す。基準ベクトルRVは、ミシン座標系において規定される。 Each of FIGS. 15 and 16 is a diagram for explaining the reference vector RV according to the present embodiment. FIG. 16 is an enlarged view of a part of FIG. A correction point CP is set on the sewing object S before the sewing process. In FIGS. 15 and 16, the correction point CP is set to the sewing object S in the initial state before the first sewing process. The boundary point BP is set to the boundary line BL. The boundary point BP is set in the vicinity of each of the plurality of holes 7. The boundary point BP is set in the vicinity of the correction point CP. The reference vector RV indicates the direction of the correction point CP with respect to the boundary point BP and the distance between the boundary point BP and the correction point CP in the sewing object S before the first sewing process. The reference vector RV is defined in the sewing machine coordinate system.

境界点BPは、境界線BLに複数設定される。境界点BPは、特徴点FPを含む。図15及び図16に示す例において、特徴点FPは、境界線BLの角点(角部)である。図15に示すように、基準ベクトル算出部46は、補正点CPと特徴点FPを含む複数の境界点BPのそれぞれとの基準ベクトルRVを算出する。基準ベクトルRVは、複数算出される。境界点BPの数と基準ベクトルRVの数とは等しい。 A plurality of boundary points BP are set on the boundary line BL. The boundary point BP includes the feature point FP. In the examples shown in FIGS. 15 and 16, the feature point FP is a corner point (corner portion) of the boundary line BL. As shown in FIG. 15, the reference vector calculation unit 46 calculates the reference vector RV for each of the correction point CP and the plurality of boundary points BP including the feature point FP. A plurality of reference vectors RV are calculated. The number of boundary points BP and the number of reference vectors RV are equal.

基準ベクトル記憶部47は、基準ベクトル算出部46により算出された基準ベクトルRVによって示される境界点BPと補正点CPとの相対位置データを記憶する。 The reference vector storage unit 47 stores the relative position data between the boundary point BP and the correction point CP indicated by the reference vector RV calculated by the reference vector calculation unit 46.

補正量算出部48は、第1縫製処理後の縫製対象物Sの境界点BPと基準ベクトル記憶部47に記憶されている基準ベクトルRVとに基づいて、第1縫製処理後の補正点CPを算出する。縫製処理により、補正点CPに対して縫製対象物Sの表面が変位する可能性がある。そのため、縫製対象物Sの表面の変位量に基づいて、第1縫製処理後の補正点CPの位置が補正される。補正量算出部48は、第1縫製処理後の縫製対象物Sの境界点BPと基準ベクトルRVとに基づいて、第1縫製処理後の補正点CPを算出する。 The correction amount calculation unit 48 sets the correction point CP after the first sewing process based on the boundary point BP of the sewing object S after the first sewing process and the reference vector RV stored in the reference vector storage unit 47. calculate. Due to the sewing process, the surface of the sewing object S may be displaced with respect to the correction point CP. Therefore, the position of the correction point CP after the first sewing process is corrected based on the displacement amount of the surface of the sewing object S. The correction amount calculation unit 48 calculates the correction point CP after the first sewing process based on the boundary point BP of the sewing object S after the first sewing process and the reference vector RV.

図17は、本実施形態に係る補正点CPの算出方法の一例を説明するための図である。第1縫製処理後の縫製対象物Sの対象物画像SMが撮像装置30により取得される。第1縫製処理後の対象物画像SMに基づいて境界線BLが算出され、境界線BLに複数の境界点BPが設定される。境界点BPは、孔7の近傍に設定される。第1縫製処理後の複数の境界点BPと第1縫製処理前の複数の境界点BPとは、1対1で対応する。 FIG. 17 is a diagram for explaining an example of a method of calculating the correction point CP according to the present embodiment. The object image SM of the sewing object S after the first sewing process is acquired by the image pickup apparatus 30. The boundary line BL is calculated based on the object image SM after the first sewing process, and a plurality of boundary point BPs are set in the boundary line BL. The boundary point BP is set in the vicinity of the hole 7. The plurality of boundary point BPs after the first sewing process and the plurality of boundary point BPs before the first sewing process have a one-to-one correspondence.

補正量算出部48は、第1縫製処理後の縫製対象物Sの複数の境界点BPと第1縫製処理前に算出された複数の基準ベクトルRVとに基づいて、補正点CPに係る複数の候補点KPを算出する。補正量算出部48は、複数の候補点KPに基づいて、第1縫製処理後の補正点CPを算出する。 The correction amount calculation unit 48 has a plurality of correction points CP related to the correction point CP based on the plurality of boundary points BP of the sewing object S after the first sewing process and the plurality of reference vectors RV calculated before the first sewing process. Calculate the candidate point KP. The correction amount calculation unit 48 calculates the correction point CP after the first sewing process based on the plurality of candidate points KP.

すなわち、補正量算出部48は、第1縫製処理後の境界点BPに、第1縫製処理前に算出された基準ベクトルRVを付加する。縫製処理後の境界点BPに基準ベクトルRVを付加するとは、境界点BPから基準ベクトルRVで示される方位に基準ベクトルRVで示される距離だけ離れた点を示す候補点KPを算出することをいう。 That is, the correction amount calculation unit 48 adds the reference vector RV calculated before the first sewing process to the boundary point BP after the first sewing process. Adding the reference vector RV to the boundary point BP after the sewing process means calculating a candidate point KP indicating a point separated from the boundary point BP by the distance indicated by the reference vector RV in the direction indicated by the reference vector RV. ..

補正量算出部48は、第1縫製処理前の境界点BPについて算出された基準ベクトルRVを、第1縫製処理後の境界点BPに付加する。例えば、第1縫製処理前の第1境界点BP1について第1基準ベクトルRV1が算出された場合、補正量算出部48は、第1縫製処理前の第1境界点BP1に対応する第1縫製処理後の第1境界点BP1に第1基準ベクトルRV1を付加する。第1縫製処理前の第2境界点BP2について第2基準ベクトルRV2が算出された場合、補正量算出部48は、第1縫製処理前の第2境界点BP2に対応する第1縫製処理後の第2境界点BP2に第2基準ベクトルRV2を付加する。同様に、第1縫製処理前の規定の境界点BPについて規定の基準ベクトルRVが算出された場合、補正量算出部48は、第1縫製処理前の規定の境界点BPに対応する第1縫製処理後の境界点BPに規定の基準ベクトルRVを付加する。 The correction amount calculation unit 48 adds the reference vector RV calculated for the boundary point BP before the first sewing process to the boundary point BP after the first sewing process. For example, when the first reference vector RV1 is calculated for the first boundary point BP1 before the first sewing process, the correction amount calculation unit 48 performs the first sewing process corresponding to the first boundary point BP1 before the first sewing process. The first reference vector RV1 is added to the first boundary point BP1 later. When the second reference vector RV2 is calculated for the second boundary point BP2 before the first sewing process, the correction amount calculation unit 48 after the first sewing process corresponding to the second boundary point BP2 before the first sewing process. The second reference vector RV2 is added to the second boundary point BP2. Similarly, when the specified reference vector RV is calculated for the specified boundary point BP before the first sewing process, the correction amount calculation unit 48 performs the first sewing corresponding to the specified boundary point BP before the first sewing process. A specified reference vector RV is added to the boundary point BP after processing.

補正量算出部48は、1つの境界線BLに設定された複数の境界点BPのそれぞれに付加された基準ベクトルRVの先端部の交点を候補点KPとする。図17に示す例では、テクスチャ領域TAが4つあり、境界線BLは4つある。1つの境界線BLに境界点BPは3つ設定される。4つの候補点KPが算出される。 The correction amount calculation unit 48 uses the intersection of the tip ends of the reference vector RV added to each of the plurality of boundary points BP set on one boundary line BL as the candidate point KP. In the example shown in FIG. 17, there are four texture regions TA and four boundary lines BL. Three boundary points BP are set in one boundary line BL. Four candidate points KP are calculated.

補正量算出部48は、ステッチ領域SAのうち4つの候補点KPで囲まれた一部の領域に補正点CPを設定する。本実施形態において、補正量算出部48は、XY平面内における4つの候補点KPの重心点(中心点)を算出し、重心点を補正点CPに設定する。 The correction amount calculation unit 48 sets the correction point CP in a part of the stitch area SA surrounded by the four candidate points KP. In the present embodiment, the correction amount calculation unit 48 calculates the center of gravity points (center points) of the four candidate points KP in the XY plane, and sets the center of gravity points as the correction point CP.

なお、複数の候補点KPの少なくとも一つに重みが設けられてもよい。例えば、補正点CPに最も近い特徴点FPの基準ベクトルRVに基づいて算出された候補点KPに重みが付加されてもよい。 A weight may be provided to at least one of the plurality of candidate points KP. For example, a weight may be added to the candidate point KP calculated based on the reference vector RV of the feature point FP closest to the correction point CP.

なお、候補点KPの算出において、特徴点FPのみが考慮され、特徴点FPではない境界点BPは考慮されなくてもよい。すなわち、特徴点FPに付加された基準ベクトルRVのみに基づいて、候補点KPが算出されてもよい。 In the calculation of the candidate point KP, only the feature point FP is considered, and the boundary point BP that is not the feature point FP may not be considered. That is, the candidate point KP may be calculated based only on the reference vector RV added to the feature point FP.

なお、ここでは、第1縫製処理前の初期状態において基準ベクトルRVが算出され、第1縫製処理後の境界点BPと基準ベクトルRVとに基づいて、候補点KPが算出され、候補点KPに基づいて補正点CPが算出されることとした。第2縫製処理前において基準ベクトルRVが算出され、第2縫製処理後の境界点BPと基準ベクトルRVとに基づいて、候補点KPが算出され、候補点KPに基づいて第2縫製処理後の補正点CPが算出されてもよい。第3縫製処理から第14縫製処理のそれぞれの間においても、同様の処理が実施される。 Here, the reference vector RV is calculated in the initial state before the first sewing process, and the candidate point KP is calculated based on the boundary point BP and the reference vector RV after the first sewing process, and becomes the candidate point KP. It was decided that the correction point CP would be calculated based on this. The reference vector RV is calculated before the second sewing process, the candidate point KP is calculated based on the boundary point BP and the reference vector RV after the second sewing process, and the candidate point KP is calculated based on the candidate point KP after the second sewing process. The correction point CP may be calculated. The same process is carried out between each of the third sewing process to the 14th sewing process.

なお、縫製処理後の補正点CPの位置は、基準ベクトルRVを用いずに算出されてもよい。 The position of the correction point CP after the sewing process may be calculated without using the reference vector RV.

図18は、本実施形態に係る補正点CPの算出方法の一例を説明するための図である。図18(A)は、撮像領域FAに配置された縫製処理前の縫製対象物Sの一部を示す図である。図18(B)は、撮像領域FAに配置された縫製処理後の縫製対象物Sの一部を示す図である。図18(A)に示すように、一対の境界線BLが対向する。境界線BLは、Y軸方向に延伸する。境界線BLに明確な特徴点FPは存在しない。図18(B)に示すように、縫製処理により、境界線BLが−X方向に移動した場合、補正点CPは、境界線BLの移動量と同様の移動量で−X方向に移動したと推定することができる。このように、境界線BLに明確な特徴点FPが存在しない場合、境界線BLの移動量に基づいて、縫製処理後の補正点CPの位置が算出されてもよい。境界線BLが+X方向に移動した場合も同様である。また、一対の境界線BLがY軸方向に延伸し、+Y方向又は−Y方向に移動した場合も同様である。 FIG. 18 is a diagram for explaining an example of a method of calculating the correction point CP according to the present embodiment. FIG. 18A is a diagram showing a part of the sewing object S before the sewing process arranged in the imaging region FA. FIG. 18B is a diagram showing a part of the sewing object S after the sewing process, which is arranged in the imaging region FA. As shown in FIG. 18A, a pair of boundary lines BL face each other. The boundary line BL extends in the Y-axis direction. There is no clear feature point FP at the boundary line BL. As shown in FIG. 18B, when the boundary line BL moves in the −X direction due to the sewing process, the correction point CP moves in the −X direction with the same movement amount as the movement amount of the boundary line BL. Can be estimated. As described above, when there is no clear feature point FP on the boundary line BL, the position of the correction point CP after the sewing process may be calculated based on the movement amount of the boundary line BL. The same applies when the boundary line BL moves in the + X direction. The same applies when the pair of boundary lines BL extend in the Y-axis direction and move in the + Y direction or the −Y direction.

図19は、本実施形態に係る補正点CPの算出方法の一例を説明するための図である。図19(A)は、撮像領域FAに配置された縫製処理前の縫製対象物Sの一部を示す図である。図19(B)は、撮像領域FAに配置された縫製処理後の縫製対象物Sの一部を示す図である。図19(A)に示すように、一対の境界線BLが対向する。境界線BLは、X軸方向及びY軸方向のそれぞれと傾斜する方向に延伸する。境界線BLに明確な特徴点FPは存在しない。図19(B)に示すように、縫製処理により、境界線BLが移動した場合において、境界線BLはX軸方向及びY軸方向のそれぞれと傾斜する方向に延伸しているので、撮像領域FAにおいて縫製対象物SがX軸方向に移動したのかY軸方向に移動したのかを判定することが困難である。このような場合、撮像装置30は、撮像領域FAを拡大して、例えば図14を参照して説明したように、特徴点FPを算出可能な一対の境界線BLを探索してもよい。また、撮像領域FAにおいて縫製対象物SがX軸方向に移動したのかY軸方向に移動したのかを判定することが困難である場合、出力装置80が警告を出力してもよい。 FIG. 19 is a diagram for explaining an example of a method of calculating the correction point CP according to the present embodiment. FIG. 19A is a diagram showing a part of the sewing object S before the sewing process arranged in the imaging region FA. FIG. 19B is a diagram showing a part of the sewing object S after the sewing process, which is arranged in the imaging region FA. As shown in FIG. 19A, a pair of boundary lines BL face each other. The boundary line BL extends in a direction inclined with each of the X-axis direction and the Y-axis direction. There is no clear feature point FP at the boundary line BL. As shown in FIG. 19B, when the boundary line BL is moved by the sewing process, the boundary line BL is extended in the direction in which it is inclined with each of the X-axis direction and the Y-axis direction. It is difficult to determine whether the sewing object S has moved in the X-axis direction or the Y-axis direction. In such a case, the image pickup apparatus 30 may expand the image pickup region FA and search for a pair of boundary lines BL capable of calculating the feature point FP, for example, as described with reference to FIG. Further, when it is difficult to determine whether the sewing object S has moved in the X-axis direction or the Y-axis direction in the imaging region FA, the output device 80 may output a warning.

領域分割画像出力部49は、領域分割画像DMを出力装置80に出力する。本実施形態において、領域分割部43は、縫製対象物Sの表面をテクスチャ領域TAとステッチ領域SAとに分割した後、テクスチャ領域TAとステッチ領域SAとを含む画像を示す領域分割画像DMを生成する。領域分割画像出力部49は、領域分割部43により分割されたテクスチャ領域TA及びステッチ領域SAを含む領域分割画像DMを出力装置80に出力する。 The area-divided image output unit 49 outputs the area-divided image DM to the output device 80. In the present embodiment, the region dividing unit 43 divides the surface of the sewing object S into a texture region TA and a stitch region SA, and then generates a region division image DM showing an image including the texture region TA and the stitch region SA. To do. The region-divided image output unit 49 outputs the region-divided image DM including the texture region TA and the stitch region SA divided by the region-divided unit 43 to the output device 80.

[縫製方法]
図20は、本実施形態に係る縫製方法を示すフローチャートである。本実施形態において、縫製方法は、アライメント処理S0と、対象物画像取得処理S1と、領域分割処理S2と、補正点算出処理S3と、目標ステッチライン補正処理S4と、縫製処理S5と、終了判定処理S6とを含む。
[Sewing method]
FIG. 20 is a flowchart showing a sewing method according to the present embodiment. In the present embodiment, the sewing method includes alignment processing S0, object image acquisition processing S1, area division processing S2, correction point calculation processing S3, target stitch line correction processing S4, sewing processing S5, and end determination. Includes process S6.

アライメント処理S0は、保持部材15に保持された縫製対象物Sのテクスチャ領域TA及びステッチ領域SAをミシン座標系に関連付ける処理である。縫製処理前の縫製対象物Sが保持部材15に保持された後、撮像装置30は、縫製対象物Sを撮像する。撮像装置30は、例えば縫製対象物Sの複数の特徴点FPを撮像する。なお、縫製対象物Sにアライメントマークが設けられている場合、撮像装置30は、アライメントマークを撮像してもよい。撮像装置30で撮像された縫製対象物Sの画像の位置は、カメラ座標系において規定される。規定の変換式又は変換行列により、カメラ座標系において規定される画像の位置がミシン座標系において規定される画像の位置に変換される。これにより、縫製対象物Sのテクスチャ領域TAの位置及びステッチ領域SAの位置がミシン座標系において規定される。 The alignment process S0 is a process of associating the texture region TA and the stitch region SA of the sewing object S held by the holding member 15 with the sewing machine coordinate system. After the sewing object S before the sewing process is held by the holding member 15, the image pickup apparatus 30 images the sewing object S. The image pickup apparatus 30 images, for example, a plurality of feature point FPs of the sewing object S. When the alignment mark is provided on the sewing object S, the image pickup apparatus 30 may take an image of the alignment mark. The position of the image of the sewing object S captured by the image pickup apparatus 30 is defined in the camera coordinate system. The position of the image specified in the camera coordinate system is converted to the position of the image specified in the sewing machine coordinate system by the specified conversion formula or transformation matrix. As a result, the position of the texture region TA and the position of the stitch region SA of the sewing object S are defined in the sewing machine coordinate system.

対象物画像取得処理S1は、対象物画像SMを取得する処理である。第1縫製処理前においては、対象物画像取得部41は、撮像装置30から初期状態の対象物画像SMを取得してもよいし、設計データ記憶部62から初期状態の対象物画像SMを取得してもよい。 The object image acquisition process S1 is a process for acquiring the object image SM. Before the first sewing process, the object image acquisition unit 41 may acquire the object image SM in the initial state from the image pickup apparatus 30, or acquire the object image SM in the initial state from the design data storage unit 62. You may.

第1縫製処理後においては、対象物画像SMは、撮像装置30により取得される。撮像装置30は、第1縫製処理後であって第2縫製処理前の対象物画像SM、及び第2縫製処理後であって第3縫製処理前の対象物画像SMを取得する。同様に、撮像装置30は、第3縫製処理から第14縫製処理のそれぞれの間において、対象物画像SMを取得する。 After the first sewing process, the object image SM is acquired by the image pickup apparatus 30. The image pickup apparatus 30 acquires the object image SM after the first sewing process and before the second sewing process, and the object image SM after the second sewing process and before the third sewing process. Similarly, the image pickup apparatus 30 acquires the object image SM between each of the third sewing process and the fourteenth sewing process.

領域分割処理S2は、対象物画像SMに基づいて、縫製対象物Sの表面をテクスチャ領域TAとステッチ領域SAとに分割して、テクスチャ領域TAとステッチ領域SAとの境界線BLを算出する処理である。領域分割処理S2は、第1縫製処理前、及び第1縫製処理後であって第2縫製処理前のそれぞれに実施される。同様に、領域分割処理S2は、第2縫製処理から第14縫製処理のそれぞれの間において実施される。 The area division process S2 divides the surface of the sewing object S into a texture area TA and a stitch area SA based on the object image SM, and calculates a boundary line BL between the texture area TA and the stitch area SA. Is. The area division process S2 is performed before the first sewing process and after the first sewing process and before the second sewing process, respectively. Similarly, the area division process S2 is performed between each of the second sewing process and the 14th sewing process.

図21は、本実施形態に係る領域分割処理を示すフローチャートである。走査部42は、対象物画像SMを規定のサーチ領域HAで走査する(ステップS21)。 FIG. 21 is a flowchart showing the area division process according to the present embodiment. The scanning unit 42 scans the object image SM in the specified search area HA (step S21).

走査部42は、対象物画像SMの注目画素APが黒画素か否かを判定する(ステップS22)。 The scanning unit 42 determines whether or not the attention pixel AP of the object image SM is a black pixel (step S22).

ステップS22において、注目画素APが黒画素であると判定された場合(ステップS22:Yes)、領域分割部43は、黒画素であると判定された注目画素APをテクスチャ領域TAに分類する(ステップS23)。 When it is determined in step S22 that the attention pixel AP is a black pixel (step S22: Yes), the area division unit 43 classifies the attention pixel AP determined to be a black pixel into the texture region TA (step S22). S23).

ステップS22において、注目画素APが黒画素でないと判定された場合(ステップS22:Yes)、領域分割部43は、黒画素でないと判定された注目画素APとその注目画素APの周囲の黒画素との相対位置が規定条件を満足するか否かを判定する(ステップS24)。 When it is determined in step S22 that the attention pixel AP is not a black pixel (step S22: Yes), the region dividing unit 43 includes the attention pixel AP determined not to be a black pixel and the black pixels around the attention pixel AP. It is determined whether or not the relative position of the above satisfies the specified condition (step S24).

ステップS24において、注目画素APが規定条件を満足すると判定された場合(ステップS24:Yes)、領域分割部43は、規定条件を満足すると判定された注目画素APをテクスチャ領域TAに分類する(ステップS23)。 When it is determined in step S24 that the attention pixel AP satisfies the specified condition (step S24: Yes), the area dividing unit 43 classifies the attention pixel AP determined to satisfy the specified condition into the texture region TA (step S24). S23).

ステップS24において、注目画素APが規定条件を満足しないと判定された場合(ステップS24:No)、領域分割部43は、規定条件を満足しないと判定された注目画素APをステッチ領域SAに分類する(ステップS25)。 When it is determined in step S24 that the attention pixel AP does not satisfy the specified condition (step S24: No), the area dividing unit 43 classifies the attention pixel AP determined not to satisfy the specified condition into the stitch region SA. (Step S25).

領域分割部43は、テクスチャ領域TAに分類された画素とステッチ領域SAに分類された画素とに基づいて、テクスチャ領域TAとステッチ領域SAとの境界線BLを算出する(ステップS26)。 The region dividing unit 43 calculates the boundary line BL between the texture region TA and the stitch region SA based on the pixels classified in the texture region TA and the pixels classified in the stitch region SA (step S26).

補正点算出処理S3は、縫製処理前の縫製対象物Sに設定された補正点CPと境界線BLに設定された境界点BPとの相対位置を示す基準ベクトルRVを算出し、縫製処理後の縫製対象物Sの境界点BPと基準ベクトルRVとに基づいて、縫製処理後の補正点CPを算出する処理である。第1縫製処理前の初期状態においては、補正点CPは、作業者により設定される。作業者は、補正点CPを設定するために、入力装置70を操作する。補正点設定部44は、入力装置70の入力データに基づいて、初期状態における補正点CPを設定する。補正点算出処理S3は、第1縫製処理前には実施されない。補正点算出処理S3は、第1縫製処理後、及び第2縫製処理後であって第3縫製処理前のそれぞれに実施される。同様に、補正点算出処理S3は、第4縫製処理から第14縫製処理のそれぞれの間において実施される。 The correction point calculation process S3 calculates a reference vector RV indicating the relative position between the correction point CP set in the sewing object S before the sewing process and the boundary point BP set in the boundary line BL, and after the sewing process, the correction point calculation process S3 calculates the reference vector RV. This is a process of calculating the correction point CP after the sewing process based on the boundary point BP of the sewing object S and the reference vector RV. In the initial state before the first sewing process, the correction point CP is set by the operator. The operator operates the input device 70 to set the correction point CP. The correction point setting unit 44 sets the correction point CP in the initial state based on the input data of the input device 70. The correction point calculation process S3 is not performed before the first sewing process. The correction point calculation process S3 is performed after the first sewing process and after the second sewing process and before the third sewing process, respectively. Similarly, the correction point calculation process S3 is performed between the fourth sewing process and the fourteenth sewing process.

図22は、本実施形態に係る補正点算出処理S3を示すフローチャートである。領域分割部43は、境界線BLに境界点BPを設定する。領域分割部43は、補正点CPの周囲に境界点BPを設定する。換言すれば、領域分割部43は、補正点CPの近傍に境界点BPを設定する(ステップS31)。 FIG. 22 is a flowchart showing the correction point calculation process S3 according to the present embodiment. The area division unit 43 sets the boundary point BP at the boundary line BL. The region division unit 43 sets a boundary point BP around the correction point CP. In other words, the region dividing unit 43 sets the boundary point BP in the vicinity of the correction point CP (step S31).

特徴点抽出部45は、境界線BLに基づいて、特徴点FPを抽出する(ステップS32)。 The feature point extraction unit 45 extracts the feature point FP based on the boundary line BL (step S32).

特徴点FPは、境界線BLに存在する。境界点BPは、特徴点FPを含む。 The feature point FP exists at the boundary line BL. The boundary point BP includes the feature point FP.

補正量算出部48は、基準ベクトル記憶部47から複数の基準ベクトルRVを取得する(ステップS33)。 The correction amount calculation unit 48 acquires a plurality of reference vectors RV from the reference vector storage unit 47 (step S33).

図15及び図16を参照して説明したように、補正点算出処理前(縫製処理前)において、基準ベクトル算出部46により基準ベクトルRVが算出され、基準ベクトル記憶部47に記憶される。したがって、補正量算出部48は、基準ベクトル記憶部47から縫製処理前に算出された複数の基準ベクトルRVを取得することができる。 As described with reference to FIGS. 15 and 16, the reference vector RV is calculated by the reference vector calculation unit 46 and stored in the reference vector storage unit 47 before the correction point calculation process (before the sewing process). Therefore, the correction amount calculation unit 48 can acquire a plurality of reference vectors RVs calculated before the sewing process from the reference vector storage unit 47.

補正量算出部48は、ステップS32において抽出された特徴点FPを含む複数の境界点BPと、ステップS33において取得された複数の基準ベクトルRVとに基づいて、複数の候補点KPを算出する(ステップS34)。 The correction amount calculation unit 48 calculates a plurality of candidate points KP based on the plurality of boundary point BPs including the feature point FP extracted in step S32 and the plurality of reference vectors RV acquired in step S33. Step S34).

補正量算出部48は、ステップS34において算出された複数の候補点KPに基づいて、縫製処理後の補正点CPを算出する(ステップS35)。 The correction amount calculation unit 48 calculates the correction point CP after the sewing process based on the plurality of candidate points KP calculated in step S34 (step S35).

補正量算出部48は、複数の候補点KPの重心点を、縫製処理後の補正点CPに設定する。 The correction amount calculation unit 48 sets the center of gravity points of the plurality of candidate points KP to the correction points CP after the sewing process.

縫製処理後の補正点CPは、縫製処理前の補正点CPから変位している。補正量算出部48は、ステップS35において算出された補正点CPの位置に基づいて、縫製処理前から縫製処理後の補正点CPの変位量を算出する(ステップS36)。 The correction point CP after the sewing process is displaced from the correction point CP before the sewing process. The correction amount calculation unit 48 calculates the displacement amount of the correction point CP from before the sewing process to after the sewing process based on the position of the correction point CP calculated in step S35 (step S36).

補正点CPは、複数存在する。補正量算出部48は、複数の補正点CPのそれぞれの変位量を算出する。 There are a plurality of correction point CPs. The correction amount calculation unit 48 calculates the displacement amount of each of the plurality of correction point CPs.

目標ステッチライン補正処理S4は、補正点算出処理S3により算出された補正点CPに基づいて、目標ステッチラインRLを補正する処理である。縫製処理により縫製対象物Sの表面の変位に起因して、作業者により設定された補正点CP及び縫製データにより規定されている目標ステッチラインRLは、変位する。補正点CPの変位量は、補正点算出処理S3により算出される。制御装置50は、補正量算出部48により算出された補正点CPの変位量に基づいて、目標ステッチラインRLを補正する。制御装置50は、例えば補正点CPの変位量と同じ変位量だけ目標ステッチラインRLを変位させる。 The target stitch line correction process S4 is a process of correcting the target stitch line RL based on the correction point CP calculated by the correction point calculation process S3. Due to the displacement of the surface of the sewing object S by the sewing process, the correction point CP set by the operator and the target stitch line RL defined by the sewing data are displaced. The displacement amount of the correction point CP is calculated by the correction point calculation process S3. The control device 50 corrects the target stitch line RL based on the displacement amount of the correction point CP calculated by the correction amount calculation unit 48. The control device 50 displaces the target stitch line RL by the same amount of displacement as the displacement amount of the correction point CP, for example.

目標ステッチラインRLについて、複数の補正点CPが設定される。目標ステッチラインRLは、複数の補正点CPのそれぞれの変位量に基づいて補正される。ミシン座標系における目標ステッチラインRLの位置が補正される。 A plurality of correction points CP are set for the target stitch line RL. The target stitch line RL is corrected based on the displacement amount of each of the plurality of correction points CP. The position of the target stitch line RL in the sewing machine coordinate system is corrected.

目標ステッチライン補正処理S4は、第1縫製処理前には実施されない。第1縫製処理は、縫製データにより規定される初期状態の目標ステッチラインRLに基づいて実施される。目標ステッチライン補正処理S4は、第1縫製処理後、及び第2縫製処理後であって第3縫製処理前のそれぞれに実施される。同様に、目標ステッチライン補正処理S4は、第4縫製処理から第14縫製処理のそれぞれの間において実施される。 The target stitch line correction process S4 is not performed before the first sewing process. The first sewing process is performed based on the target stitch line RL in the initial state defined by the sewing data. The target stitch line correction process S4 is performed after the first sewing process and after the second sewing process and before the third sewing process, respectively. Similarly, the target stitch line correction process S4 is performed between each of the fourth sewing process to the fourteenth sewing process.

縫製処理S5は、目標ステッチラインRLに基づいてステッチCHを形成する処理である。縫製処理は、第1縫製処理から第14縫製処理を含む。第1縫製処理は、縫製データにより規定される初期状態の目標ステッチラインRLに基づいて実施される。第2縫製処理から第14縫製処理は、目標ステッチライン補正処理S4により補正された後の目標ステッチラインRLに基づいて実施される。制御装置50は、目標ステッチラインRLに従ってステッチCHが形成されるように、アクチュエータ17に制御指令を出力する。 The sewing process S5 is a process of forming a stitch CH based on the target stitch line RL. The sewing process includes the first sewing process to the 14th sewing process. The first sewing process is performed based on the target stitch line RL in the initial state defined by the sewing data. The second sewing process to the 14th sewing process are performed based on the target stitch line RL after being corrected by the target stitch line correction process S4. The control device 50 outputs a control command to the actuator 17 so that the stitch CH is formed according to the target stitch line RL.

終了判定処理S6は、縫製対象物Sの縫製処理が終了したか否かを判定する処理である。制御装置50は、縫製データに基づいて、縫製対象物Sの縫製処理が終了したか否かを判定する。第1縫製処理から第13縫製処理が終了した状態においては、制御装置50は、終了判定処理S6において、縫製処理は終了していないと判定する。第14縫製処理が終了した状態において、制御装置50は、終了判定処理S6において、縫製処理は終了したと判定する。 The end determination process S6 is a process for determining whether or not the sewing process of the sewing object S has been completed. The control device 50 determines whether or not the sewing process of the sewing object S is completed based on the sewing data. In the state where the first sewing process to the thirteenth sewing process are completed, the control device 50 determines in the end determination process S6 that the sewing process is not completed. In the state where the 14th sewing process is completed, the control device 50 determines in the end determination process S6 that the sewing process is completed.

[コンピュータシステム]
図23は、コンピュータシステム1000の一例を示すブロック図である。上述の画像処理装置40及び制御装置50のそれぞれは、コンピュータシステム1000を含む。コンピュータシステム1000は、CPU(Central Processing Unit)のようなプロセッサ1001と、ROM(Read Only Memory)のような不揮発性メモリ及びRAM(Random Access Memory)のような揮発性メモリを含むメインメモリ1002と、ストレージ1003と、入出力回路を含むインターフェース1004とを有する。画像処理装置40の機能及び制御装置50の機能のそれぞれは、コンピュータプログラムとしてストレージ1003に記憶されている。プロセッサ1001は、コンピュータプログラムをストレージ1003から読み出してメインメモリ1002に展開し、コンピュータプログラムに従って上述の処理を実行する。なお、コンピュータプログラムは、ネットワークを介してコンピュータシステム1000に配信されてもよい。
[Computer system]
FIG. 23 is a block diagram showing an example of the computer system 1000. Each of the image processing device 40 and the control device 50 described above includes a computer system 1000. The computer system 1000 includes a processor 1001 such as a CPU (Central Processing Unit), a main memory 1002 including a non-volatile memory such as a ROM (Read Only Memory) and a volatile memory such as a RAM (Random Access Memory). It has a storage 1003 and an interface 1004 including an input / output circuit. Each of the function of the image processing device 40 and the function of the control device 50 is stored in the storage 1003 as a computer program. The processor 1001 reads a computer program from the storage 1003, expands it into the main memory 1002, and executes the above-described processing according to the computer program. The computer program may be distributed to the computer system 1000 via the network.

コンピュータプログラムは、上述の実施形態に従って、縫製対象物Sに係る画像を示す対象物画像SMを規定のサーチ領域HAで走査して、注目画素APが規定色画素か否かを判定することと、判定結果に基づいて、縫製対象物Sの表面をテクスチャ領域TAとステッチ領域SAとに分割して、テクスチャ領域TAとステッチ領域SAとの境界線RLを算出することと、を実行することができる。 According to the above-described embodiment, the computer program scans the object image SM showing the image related to the sewing object S in the specified search area HA to determine whether or not the pixel of interest AP is a specified color pixel. Based on the determination result, the surface of the sewing object S can be divided into the texture region TA and the stitch region SA, and the boundary line RL between the texture region TA and the stitch region SA can be calculated. ..

[効果]
以上説明したように、本実施形態によれば、対象物画像SMが走査され、対象物画素SMの複数の画素のそれぞれが黒画素か否かが判定される。これにより、孔7が設けられたテクスチャ領域TAと孔7が設けられていないステッチ領域SAとが識別される。また、ステッチCHの形成により縫製対象物Sの表面が変位しても、注目画素APが黒画素か否かが判定されることにより、テクスチャ領域TAとステッチ領域SAとが識別される。
[effect]
As described above, according to the present embodiment, the object image SM is scanned, and it is determined whether or not each of the plurality of pixels of the object pixel SM is a black pixel. As a result, the texture region TA provided with the holes 7 and the stitch region SA not provided with the holes 7 are distinguished. Further, even if the surface of the sewing object S is displaced due to the formation of the stitch CH, the texture region TA and the stitch region SA are distinguished by determining whether or not the pixel of interest AP is a black pixel.

また、黒画素でないと判定された注目画素APは、周囲の黒画素との相対位置が規定条件を満足する場合、テクスチャ領域TAに分類され、周囲の黒画素との相対位置が規定条件を満足しない場合、ステッチ領域SAに分類される。これにより、黒画素でなくても、注目画素APは、テクスチャ領域TA及びステッチ領域SAの一方に適切に分類される。 Further, the attention pixel AP determined to be not a black pixel is classified into the texture area TA when the relative position with the surrounding black pixels satisfies the specified condition, and the relative position with the surrounding black pixels satisfies the specified condition. If not, it is classified as a stitch area SA. As a result, the pixel of interest AP is appropriately classified into one of the texture region TA and the stitch region SA even if it is not a black pixel.

[その他の実施形態]
上述の実施形態においては、撮像装置30により対象物画像SMを取得するとき、撮像装置30の位置が固定された状態で、縫製対象物Sを保持する保持部材15がXY平面内において移動することとした。縫製対象物Sの位置が固定された状態で、撮像装置30の撮像領域FAがXY平面内において移動してもよいし、撮像領域FA及び縫製対象物Sの両方がXY平面内において移動してもよい。
[Other Embodiments]
In the above-described embodiment, when the image pickup device 30 acquires the object image SM, the holding member 15 that holds the sewing target object S moves in the XY plane while the position of the image pickup device 30 is fixed. And said. The imaging region FA of the image pickup apparatus 30 may move in the XY plane while the position of the sewing object S is fixed, or both the imaging region FA and the sewing object S move in the XY plane. May be good.

上述の実施形態において、境界線BLは、テクスチャ領域TAにおいて最も外側に配置されている孔7の外側のエッジを通るように生成されることとした。境界線BLは、テクスチャ領域TAにおいて最も外側に配置されている孔7を通るように生成されてもよい。境界点BPは、孔7に設定されてもよい。 In the above embodiment, the boundary line BL is generated so as to pass through the outer edge of the outermost hole 7 in the texture region TA. The boundary line BL may be generated so as to pass through the outermost hole 7 in the texture region TA. The boundary point BP may be set in the hole 7.

1…ミシン、2…テーブル、3…ミシン針、4…表材、5…パッド材、6…裏材、7…孔、10…ミシン本体、11…ミシンフレーム、11A…水平アーム、11B…ベッド、11C…垂直アーム、11D…ヘッド、12…針棒、13…針板、14…支持部材、15…保持部材、15A…押え部材、15B…下板、16…アクチュエータ、17…アクチュエータ、17X…X軸モータ、17Y…Y軸モータ、18…アクチュエータ、19…中押え部材、20…操作装置、21…操作パネル、22…操作ペダル、30…撮像装置、31…駆動量センサ、32…駆動量センサ、32X…X軸センサ、32Y…Y軸センサ、40…画像処理装置、41…対象物画像取得部、42…走査部、43…領域分割部、44…補正点設定部、45…特徴点抽出部、46…基準ベクトル算出部、47…基準ベクトル記憶部、48…補正量算出部、49…領域分割画像出力部、50…制御装置、60…記憶装置、61…縫製データ記憶部、62…設計データ記憶部、63…プログラム記憶部、70…入力装置、80…出力装置、1000…コンピュータシステム、1001…プロセッサ、1002…メインメモリ、1003…ストレージ、1004…インターフェース、AP…注目画素、APb…注目画素、APs…注目画素、APt…注目画素、AX…光軸、BP…境界点、CP…補正点、CH…ステッチ、DM…領域分割画像、FA…撮像領域、FP…特徴点、HA…サーチ領域、KP…候補点、Pf…撮像位置、Ps…縫製位置、RL…目標ステッチライン、RS…規定パターン、S…縫製対象物、SM…対象物画像、SA…ステッチ領域、TA…テクスチャ領域、US…基準パターン。 1 ... sewing machine, 2 ... table, 3 ... sewing needle, 4 ... surface material, 5 ... pad material, 6 ... backing material, 7 ... hole, 10 ... sewing machine body, 11 ... sewing frame, 11A ... horizontal arm, 11B ... bed , 11C ... vertical arm, 11D ... head, 12 ... needle bar, 13 ... needle plate, 14 ... support member, 15 ... holding member, 15A ... pressing member, 15B ... lower plate, 16 ... actuator, 17 ... actuator, 17X ... X-axis motor, 17Y ... Y-axis motor, 18 ... actuator, 19 ... middle presser member, 20 ... operation device, 21 ... operation panel, 22 ... operation pedal, 30 ... image pickup device, 31 ... drive amount sensor, 32 ... drive amount Sensor, 32X ... X-axis sensor, 32Y ... Y-axis sensor, 40 ... Image processing device, 41 ... Object image acquisition unit, 42 ... Scanning unit, 43 ... Area division unit, 44 ... Correction point setting unit, 45 ... Feature points Extraction unit, 46 ... Reference vector calculation unit, 47 ... Reference vector storage unit, 48 ... Correction amount calculation unit, 49 ... Area division image output unit, 50 ... Control device, 60 ... Storage device, 61 ... Sewing data storage unit, 62 ... Design data storage unit, 63 ... Program storage unit, 70 ... Input device, 80 ... Output device, 1000 ... Computer system, 1001 ... Processor, 1002 ... Main memory, 1003 ... Storage, 1004 ... Interface, AP ... Featured pixel, APb ... Attention pixel, APs ... Attention pixel, APt ... Attention pixel, AX ... Optical axis, BP ... Boundary point, CP ... Correction point, CH ... Stitch, DM ... Area division image, FA ... Imaging area, FP ... Feature point, HA ... Search area, KP ... Candidate point, Pf ... Imaging position, Ps ... Sewing position, RL ... Target stitch line, RS ... Specified pattern, S ... Sewing object, SM ... Object image, SA ... Stitch area, TA ... Texture Area, US ... Reference pattern.

Claims (5)

縫製対象物に係る画像を示す対象物画像を取得する対象物画像取得部と、
前記対象物画像を規定のサーチ領域で走査して、注目画素が規定色画素か否かを判定する走査部と、
判定結果に基づいて、前記縫製対象物の表面をテクスチャ領域とステッチ領域とに分割して、前記テクスチャ領域と前記ステッチ領域との境界線を算出する領域分割部と、を備える、
画像処理装置。
An object image acquisition unit that acquires an object image showing an image related to a sewing object,
A scanning unit that scans the object image in a specified search area to determine whether or not the pixel of interest is a specified color pixel.
Based on the determination result, the surface of the sewing object is divided into a texture region and a stitch region, and a region division portion for calculating a boundary line between the texture region and the stitch region is provided.
Image processing device.
前記領域分割部は、前記規定色画素であると判定された前記注目画素を前記テクスチャ領域に分類する、
請求項1に記載の画像処理装置。
The region division portion classifies the attention pixel determined to be the specified color pixel into the texture region.
The image processing apparatus according to claim 1.
前記領域分割部は、前記規定色画素でないと判定された前記注目画素と前記注目画素の周囲の前記規定色画素との相対位置が規定条件を満足する場合、前記注目画素を前記テクスチャ領域に分類し、前記相対位置が前記規定条件を満足しない場合、前記注目画素を前記ステッチ領域に分類する、
請求項2に記載の画像処理装置。
When the relative position between the attention pixel determined not to be the specified color pixel and the specified color pixel around the attention pixel satisfies the specified condition, the area division portion classifies the attention pixel into the texture region. If the relative position does not satisfy the specified condition, the pixel of interest is classified into the stitch region.
The image processing apparatus according to claim 2.
ミシン針の直下の縫製位置を含む所定面内において縫製対象物を保持して移動可能な保持部材と、
保持部材を移動させる動力を発生するアクチュエータと、
請求項1から請求項3のいずれか一項に記載の画像処理装置と、
前記画像処理装置の処理結果に基づいて、前記アクチュエータを制御する制御指令を出力する制御装置と、を備える、
ミシン。
A holding member that can hold and move the object to be sewn within a predetermined surface including the sewing position directly under the sewing machine needle.
An actuator that generates power to move the holding member,
The image processing apparatus according to any one of claims 1 to 3,
A control device that outputs a control command for controlling the actuator based on the processing result of the image processing device is provided.
sewing machine.
縫製対象物に係る画像を示す対象物画像を規定のサーチ領域で走査して、注目画素が規定色画素か否かを判定することと、
判定結果に基づいて、前記縫製対象物の表面をテクスチャ領域とステッチ領域とに分割して、前記テクスチャ領域と前記ステッチ領域との境界線を算出することと、を含む、
画像処理方法。
By scanning the object image showing the image related to the sewing object in the specified search area to determine whether or not the pixel of interest is a specified color pixel,
Based on the determination result, the surface of the sewing object is divided into a texture area and a stitch area, and a boundary line between the texture area and the stitch area is calculated.
Image processing method.
JP2019201419A 2019-11-06 2019-11-06 Image processing device, sewing machine, and image processing method Active JP7405565B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019201419A JP7405565B2 (en) 2019-11-06 2019-11-06 Image processing device, sewing machine, and image processing method
CN202011224095.7A CN112779679B (en) 2019-11-06 2020-11-05 Image processing device, sewing machine, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019201419A JP7405565B2 (en) 2019-11-06 2019-11-06 Image processing device, sewing machine, and image processing method

Publications (2)

Publication Number Publication Date
JP2021074075A true JP2021074075A (en) 2021-05-20
JP7405565B2 JP7405565B2 (en) 2023-12-26

Family

ID=75750370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019201419A Active JP7405565B2 (en) 2019-11-06 2019-11-06 Image processing device, sewing machine, and image processing method

Country Status (2)

Country Link
JP (1) JP7405565B2 (en)
CN (1) CN112779679B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH105465A (en) * 1996-06-24 1998-01-13 Japan Small Corp Quilting method
JP2016063894A (en) * 2014-09-24 2016-04-28 Juki株式会社 Shape recognition device and sewing machine
JP2018183576A (en) * 2017-04-21 2018-11-22 Juki株式会社 Sewing machine and sewing method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3457388B2 (en) * 1994-07-27 2003-10-14 ブラザー工業株式会社 Embroidery data creation device
JPH08218266A (en) * 1995-02-15 1996-08-27 Janome Sewing Mach Co Ltd Embroidery pattern-making device for machine capable of embroidery sewing and its method
JPH11123289A (en) * 1997-10-22 1999-05-11 Brother Ind Ltd Embroidery data processing device, embroidering machine, and recording medium
JP3383567B2 (en) * 1998-01-19 2003-03-04 株式会社ダン Method and apparatus for detecting overlock of circular knitted fabric
JP4080157B2 (en) * 2000-12-27 2008-04-23 富士フイルム株式会社 Image processing apparatus, image processing method, and recording medium
WO2009085005A1 (en) * 2007-12-27 2009-07-09 Vsm Group Ab Sewing machine having a camera for forming images of a sewing area
JP5906781B2 (en) * 2012-02-13 2016-04-20 トヨタ紡織株式会社 Vehicle components
JP6184277B2 (en) * 2013-09-27 2017-08-23 オリンパス株式会社 Image processing device
JP6414386B2 (en) * 2014-03-20 2018-10-31 株式会社島津製作所 Image processing apparatus and image processing program
JP6587390B2 (en) * 2015-01-23 2019-10-09 蛇の目ミシン工業株式会社 Embroidery pattern placement system, embroidery pattern placement device, embroidery pattern placement device embroidery pattern placement method, embroidery pattern placement device program, sewing machine
CN108729036B (en) * 2017-04-21 2021-10-19 Juki株式会社 Sewing machine and sewing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH105465A (en) * 1996-06-24 1998-01-13 Japan Small Corp Quilting method
JP2016063894A (en) * 2014-09-24 2016-04-28 Juki株式会社 Shape recognition device and sewing machine
JP2018183576A (en) * 2017-04-21 2018-11-22 Juki株式会社 Sewing machine and sewing method

Also Published As

Publication number Publication date
CN112779679B (en) 2024-02-02
CN112779679A (en) 2021-05-11
JP7405565B2 (en) 2023-12-26

Similar Documents

Publication Publication Date Title
JP5315705B2 (en) sewing machine
EP2366824B1 (en) Sewing machine and sewing machine control program
JP2016032596A (en) Sewing machine and program recorded recording medium
JP5665333B2 (en) Information processing apparatus and information processing apparatus control method
JP2011194042A (en) Sewing machine
US20110146553A1 (en) Sewing machine having a camera for forming images of a sewing area
CN112941733B (en) Image processing device, sewing machine and image processing method
JP2014042706A (en) Sewing machine
US10597806B2 (en) Sewing machine and non-transitory computer-readable storage medium
EP2386673A1 (en) Sewing machine and non-transitory computer-readable medium storing sewing machine control program
KR20120107483A (en) Textile article identification device and textile article gripping system
JP7405564B2 (en) Image processing device, sewing machine, and image processing method
US20180057985A1 (en) Sewing machine and non-transitory computer-readable medium
WO2018078958A1 (en) Sewing machine and holding member
JP7079132B2 (en) Sewing machine and sewing method
JP7405565B2 (en) Image processing device, sewing machine, and image processing method
JP7075246B2 (en) Seam inspection device
US11286597B2 (en) Sewing machine and sewing method
JP7156832B2 (en) Sewing machine and sewing method
JP2011005180A (en) Sewing machine
JP7316420B2 (en) Sewing machine and sewing method
US11869215B2 (en) Computer-readable storage medium, image processing apparatus, and method for image processing
US11473228B2 (en) Non-transitory computer-readable medium and embroidery data generation method
CN103572512A (en) Sewing machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221013

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230620

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230821

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20231128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231214

R150 Certificate of patent or registration of utility model

Ref document number: 7405565

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150