JPH04114692A - Making method of embroidery data of sewing machine - Google Patents

Making method of embroidery data of sewing machine

Info

Publication number
JPH04114692A
JPH04114692A JP23512490A JP23512490A JPH04114692A JP H04114692 A JPH04114692 A JP H04114692A JP 23512490 A JP23512490 A JP 23512490A JP 23512490 A JP23512490 A JP 23512490A JP H04114692 A JPH04114692 A JP H04114692A
Authority
JP
Japan
Prior art keywords
data
scan
needle drop
coordinates
dot data
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.)
Pending
Application number
JP23512490A
Other languages
Japanese (ja)
Inventor
Akira Orii
折井 章
Takeshi Kongou
猛 金剛
Takashi Nakamura
孝 中村
Hachiro Makabe
真壁 八郎
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.)
Janome Corp
Original Assignee
Janome Sewing Machine Co Ltd
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 Janome Sewing Machine Co Ltd filed Critical Janome Sewing Machine Co Ltd
Priority to JP23512490A priority Critical patent/JPH04114692A/en
Publication of JPH04114692A publication Critical patent/JPH04114692A/en
Pending legal-status Critical Current

Links

Landscapes

  • Sewing Machines And Sewing (AREA)
  • Automatic Embroidering For Embroidered Or Tufted Products (AREA)

Abstract

PURPOSE:To easily apply embroideries with a simple manipulation for an original pattern that users require, by connecting to the first needle-points by scanning of this time where dot data are detected at first, and erasing the dot data of the scanned line to repeat the above scanning until non of the original pattern data has been confirmed and to make embroidery data to apply the embroideries. CONSTITUTION:The coordinates where the dot data are detected at first in the previous scanning is decided to be the first needle points N1. In the case of continuous dot data, the needle-points with a certain pitch P is decided and in the case of discontinuous dot data, the coordinates are decided on the last needle-point N2. The coordinates where the dot data are detected at first in the scanning of this time is connected to the coordinates of the needle-point N2 with a straight line L1 and the needle points with a certain pitch P from the coordinates of the needle point N2 are settled and the coordinates where the dot data are detected at first in the scanning of this time is decided to be the first needle point N3. The original pattern data decided to be the needle point by scanning are gradually erased and at the same time, the indication of the LCD display in accordance with the original pattern data are also gradually erased. In this way, every line is continuously scanned one by one up to the right lower second end point B repeatedly.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野〕 本発明は、刺しゅう可能なミシンの刺しゅうデータの生
成方法に係わり、部層な操作により入力されたW画デー
タに基づき刺しゅうデータを生成し、刺しゅうが行える
ようにしたミシンの刺しゅうデータ生成方法に関する。
[Industrial Application Field] The present invention relates to a method for generating embroidery data for a sewing machine capable of embroidering, and relates to a sewing machine capable of embroidering by generating embroidery data based on W image data inputted through detailed operations. Embroidery data generation method.

【従来の技術及び発明が解決しようとする課題】従来、
刺しゅうを行うための刺しゅうデータの作成に当たって
は、専門家がデジタイザー等を操作して原画パターンか
ら刺しゅうデータを作成し、またイメージスキャナ等で
原画パターンを入力し、画像処理を行い刺しゅう縫いの
第)端点、縫い順序、縫いピッチ、縫い幅および縫目の
形態(ジグザグ縫い、三重縫い等)を指定して刺しゅう
データを作成していた。 しかし、これらの従来の刺しゅうデータの作成方法は、
比較的高度な専門知識が必要であり、また操作も複雑で
あった。 従って、家庭用刺しゅうミシンで例えは、使用者が自分
の希望するオリジナル原画パターン等に基づき刺しゅう
縫し・を行おうとする場合、従来の方法のような比較的
高度な専門知識を必要とせず、かつ取り扱い操作が簡便
な原画パターンの入力処理方法が望まれていた。 〔課題を解決するための手段及び発明の作用〕本発明は
、従来のように比較的高度な専門知識を要し、かつ操作
が複雑な処理方法と比較して、イメージスキャナ等の画
像入力装置の簡単な操作によりIFIパターンから入力
された原画データに対して原画データ処理プログラムに
よるスキャン方式という比較的ポピユラーな方式により
自動的に刺しゅうデータが生成され、刺しゅう縫いが行
えるようにしたので、例えば使用者が望むオリジナルパ
ターン等を簡単な操作で容易に刺しゅうできるという作
用がある。
[Prior art and problems to be solved by the invention] Conventionally,
When creating embroidery data for embroidery, an expert operates a digitizer, etc. to create embroidery data from the original pattern, inputs the original pattern using an image scanner, etc., performs image processing, and then stitches the embroidery. Embroidery data was created by specifying end points, sewing order, sewing pitch, sewing width, and stitch type (zigzag stitch, triple stitch, etc.). However, these traditional embroidery data creation methods are
It required a relatively high level of specialized knowledge and was complicated to operate. Therefore, for example, in the case of a home embroidery sewing machine, when a user wants to embroidery based on an original original pattern that he/she desires, he/she does not need the relatively high level of specialized knowledge that is required with conventional methods. There is a need for an input processing method for original patterns that is easy to handle. [Means for Solving the Problems and Effects of the Invention] The present invention provides an image input device such as an image scanner, compared to conventional processing methods that require relatively high level of specialized knowledge and are complicated to operate. With a simple operation, embroidery data is automatically generated using a relatively popular method of scanning original image data input from an IFI pattern using an original image data processing program, and embroidery can be sewn. It has the effect of allowing a person to easily embroider an original pattern, etc. desired by a person with simple operations.

【実施例〕【Example〕

以下、本発明を実施例により説明する。 ○刺しゅう装置の構成 第16図を参照しながら刺しゅう装置の構成について説
明する。 同図において、m’l L、 hうミシンのミシン本体
10の前面には、ミシンを始動および停止させるスター
ト/ストップキーI、、後記する刺しゅうキー等を含む
操作キ一部12、後記する原画デ〜りの画像処理に関連
する表示を含むミシンの各種の表示を行うLCD表示装
[3が配設されている。 ROMカードリーダ一部14はセットされたイメージス
キャナ用ROMカードを読み取るためのものである。 イメージスキャナ用ROMカードには後記するようにイ
メージスキャナから読み込まれた原画データの圧縮、ノ
イズ除去および圧縮され、ノイズ除去されたW、画デー
タのスキャンによる刺しゅうデータの生成等の一連の画
像処理プログラムが内蔵されている。 ミシンの側面にはミシンの速度を制mするミシンコント
ローラ(図示せず)を接続するためのコントローラ端子
15、画像入力装置としてのイメージスキャナ20を専
用ケーブル21て接続するためのプラグ受けが配設され
ている。 イメージスキャナ20は本実施例では有効読み収り幅6
3mmで、階調出力が白黒2値型、主走査有効画素数5
04個である。 読み取り開始ボタン22はイメージスキャナ入力モード
で押し、イメージスキャナ20を入力したい原画パター
ン上を移動させるとW画データがミシン10に内蔵され
たVRAM1.:読み込まれるようになっている。 ○操作手順の概要 1、)を源投入前にミシン本体にイメージスキャナ用R
OMカードをROMカードリーダ一部14にセットし、
プラグ受けにイメージスキャナ20の専用ケーブル21
のコネクタ23を接続する。 2)次に電源を投入し、操作キ一部】2の刺しゅうキー
を押すと、イメージスキャナ入力モードになり、LCD
表示装置13の画面上に「イメージスキャナの読み取り
開始ボタンを押して下さい」というメンセージが表示さ
れる。 3)予め白い紙に黒色のペン等で入力した(゛文字や絵
を線幅1mm以上で描いた原画パターン30を用意して
おき、このW画パターン30を平らなところにセットし
、原画パターン上にイメージスキャナ20をV、置し、
読み取り開始ボタン22を押しながら入力じたい原画パ
ターン30の最初の位置から最後の位置まで移動させる
。この操作によIll、LCD表示画面上に入力した文
字や絵が表示される。 4)ミシン10に布を張った刺しゅう枠をセントし、ス
タート/ストップキーI、を押すことにより原画データ
からスキャン方式により、検出された原画データに対し
て後記する画像処理アルゴリズムにより刺しゅうデータ
が生成され、刺しゅう縫いが開始される。 以上の手順において、使用者の操作に対する刺しゅうデ
ータの生成までの一連の制御は、イメージスキャナ用R
OMカードに記憶された画像処理70グラムにより行わ
れる。 便宜上、画像処理プログラムの内、圧縮され、ノイズ除
去された後の原画データのスキャンによる刺しゅうデー
タ生成プログラムを画像処理アルゴリズムと呼び、他の
プログラムと区別する。 0画像処理プログラム 1)W面入力 イメージスキャナ20の操作により、横方向データは5
04ドツト/1ライン、縦方向データは504ライン分
(504ドント)を−旦ミシンのVRAM上に格納する
。この−旦格納したデータをVRAMの別のエリアに横
方向データについては1ビツトおきに間引きして、同様
に縦方向データについては】ラインおきに間引きして2
52×252ドツト構成の原画データを格納する。 2)ノイズ除去 次に、後記する画像処理言語の4連結圧縮法(*1)に
より、VRAMに格納した252X252ドツトのデー
タを上下、左右にドツトがある場合のへデータとし、V
 RA、 Mのまた別のエリアに横方向データは126
ドノト/lライン、縦方向データは126ライン分のデ
ータ12.6Xi26ド/ト構成のデータとして格納す
る。このデータは画像処理用のデータとして使用する。 さらにこのデータを圧縮し、画像表示用の63×63ド
ツト構成のデータを生成し、〜’ RA I’vlの前
記とはまた別のエリア1こ格納する。 *】:4連結圧縮法 第14図において、白黒の丸はドツトデータを示し、対
象となる黒丸データに対して上下、左右に白丸データが
ある場合のみ黒丸データを有効にする方法。 本実施例では、この処理を252X252ドツト構成の
データに対して、横方向データついては1ドツトおきに
、縦方向データについては1ラインおきに行う。 処理後のドットデ〜りは第15図に示すようになる。 3)画像処理アルゴリズム 次に第7図〜第9図を参照しながら画像処理アルゴリズ
ムのスキャン方式について説明する。 第7図に示すように、スキャンは奇数回目は第1端点A
から右方向に、副走査はJラインづつ矢印COで示すよ
うに下方に向がって行い、第9図に示すように原画デー
タ(以後ドツトデータ)にぶつかりそれが途切れるまで
行い、右下の第2端点Bまで繰り返す。 また偶数回目は第8図に示すように右下の第2端点Bか
ら左方向にスキャンし、ドツトデータにぶつかりそれが
途切れるまで行い、副走査は1ラインづつ矢印Ceで示
すように上方に向かって行い左上の第1端点Aまで繰り
返す。 スキャンによる針落点を設定するアルゴリズムは基本的
には、次に示す2つである。 ・アルゴリズム1 スキャンによりドツトデータを検出した座標を最初の針
落点どし、そこから一定ピッチで針落点を設定して行き
ドツトデータが検出されなくなる座標をそのスキャンの
最後の針落点とし、前回のスキャンによる最後の針落点
座標と今回の最初にドツトデータが検出された座標とを
結ぶ直線がスキャン方向に対し逆方向でかつ前記直線に
対して今回のスキャンによるトン)・データが検出され
た左右方向位置に対してのみ、前記直線上にni1回の
最後の針落点から一定ピッチの整数倍の座標位置に針落
照を設定し、今回の最初にドツトデータが検出された座
標を今回のスキャンによる最初の針落点に設定する。 ・アルゴリズム2 以前のスキャンによる最後の針落点に対して今回のスキ
ャンで最初にドツトデータにぶつかった座標のラインが
2ライン以上離れている場合は、今回の最初のドツトデ
ータの座標を針落点に設定し、その間に針落点を設定し
ない。 4)画像処理アルゴリズムの具体例 これら2つの基本となるアルゴリズムを敷延して、具体
的な例で説明する。 以下に示す各側は、すべて奇数回目のスキャンによる例
で示すが、偶数回目のスキャンによる場合も左右、上下
を入れ換えれば同様である。 アルゴリズム1から導かれる例として、・第10図に示
すように、前回のスキャンで最初にドツトデータを検出
した座標を最初の針落点N1に設定し、ドツトデータが
連続している場合は、一定ピツチPの針落点を設定し、
ドツトデータか途切れた場合はその座標を最後の針落点
N2に設定シ、今回のスキャンで最初にドツトデータを
検出した座標と針落点N2の座標とを直線Llで結び、
針落点N2の座標から一定ピッチPの針落点を設定し、
座標を今回のスキャンで最初にドツトデータを検出した
座標を今回のスキャンによる最初の針落点N3に設定す
る。 同区において、Pl、P2は前記した一定ピッチによる
針落点設定の残りのピッチである。 ・第I、図に示すように、前回のスキャンによる最後の
針落点N4の座標と今回のスキャンで最初にドツトデー
タを検出した座標とを結ぶ直線L2がが今回のスキャン
方向に対して正方向の場合、今回のスキャンで最初にド
ツトデータを検出した座標を今回のスキャンによる最初
の針落点〆5に設定し、その間に針落点を設定しない。 ・第12図に示すように、前回のスキャンによる最後の
針落点N6の座標と今回のスキャンで最初にドツトデー
タを検出した座標を結ぶ直線L3が今回のスキャン方向
と逆方向でかつ今回のス千ヤンでその左右方向の位置に
ドツトデータのな(・部分についてはその直線L3上に
針落点を設定ぜず、一定ピツチの整数倍nPの位置でド
ツトデータのある部分から針落点N7、N8を設定し、
今回のスキャンで最初にドツトデータを検出した座標を
今回のスキャンによる最初の針落点N9に設定する。 アルゴリズム2から導かれる例として、・第13図に示
すように、以前のスキャンによる最後の針落点NIOに
対して今回のスキャンで最初にドツトデータを検出した
座標が2ライン以上離れている場合は、今回の最初のド
ツトデータの座標を針落点Nilに設定し、その間を結
ぶ直線L4上には針落点を設定しない。 5)画像処理アルゴリズムによるスキャン側法に、画像
処理アルゴリズムによるスキャン例についτ、第1図〜
第6図を参照しながら説明する。これらの図面において
、ドツトデータの斜線(ハツチ)部分はスキャンにより
針落点か設定された部分を示し、符号01〜C6は副走
査の向きを示す。 ・第1回目スキャン M1回目スキャンについて第1図を参照しながら説明す
る。 前記したノイズ除去後の126X126ドツト構成の原
画データに対し上方の第1端点Aから右方向にスキャン
し、副走査は1ラインづつ下方に向けて原画データを検
出するまでスキャンを統ける。 スキャンによりドツトデータを検出した座標を最初の針
落点とし、そこから一定ピツチ(本寅施例では2mm)
で針落点を設定して行きドツトデータが検出されなくな
る座標をそのスキャンの最後の針落点とし、前回のスキ
ャンによる最後の引落点座標と今回の最初にドツトデー
タが検出された座標とを結ぶ直線がスキャン方向に対し
逆方向でかつ前記直線に対して今回のスキャンによるド
ツトデータが検出された左右方向位置に対してのみ、前
記直線上に前回の最後の針落点から一定ビノチの針落点
を設定し、今回の最初にドツトデータが検出された座標
を今回のスキャンによる最初の針落照に設定する。 スキャンにより針落点が設定された原画データは逐次消
して行き同時にその原画データに対応するLCD表示装
置の表示部分も逐次消して行く、このうにして1ライン
づつスキャンを続け、右下の第2@点Bまで繰り返しス
キャンする。 第1回目スキャンのスキャンが終了した時点で、斜線部
分で示す原画データおよびそれに対応するLCD表示装
置の表示部分が消える。 この場合、直線L 1.1に対する針落点の設定はアル
ゴリズム1に基づく第I、図の例と同様に設定される。 ・第2回目スキャン 第2図に示すように、第2端点Bから左方向にスキャン
し、副走査は1ラインづつ上方に向けて第1回目スキャ
ンと同様にスキャンを続け、第1端点Aまで繰り返しス
キャンする。 第2回目スキャンのスキャンが終了した時点て、斜線部
分で示す原画データおよびそれに対応するLCD表示装
置の表示部分が消える。 ・第3回目スキャン 第3図に示すように、第1端点Aから右方向にスキャン
し、副走査はlラインづつ下方に向けて第1回目スキャ
ンと同様にスキャンを続け、第2端点Bまで繰り返しス
キャンする。 第1回目スキャンのスキャンが終了した時点で、斜線部
分で示す原画データおよびそれに対応するLCD表示装
置の表示部分が消える。 この場合、1線L12〜L14に対する針落点の設定は
アルゴリズムlに基づく第12図の例と同様に設定され
、直線LI5〜L17に対する針落点の設定はアルゴリ
ズムlに基づく第I、図の例と同様に設定される。 ・第4回目スキャン 第4図に示すように、第2端点Bから左方向に方向にス
キャンし、副走査は1ラインづつ上方に向けて第1回目
スキャンと同様にスキャンを続け、第1端点Aまで繰り
返しスキャンする。 第4回目スキャンのスキャンが終了した時点で、斜線部
分で示す原画データおよびそれに対応するLCD表示装
置の表示部分が消える。 この場合、直線L17、Li2に対する針落点の設定は
アルゴリズムlに基づく第12図の例と同様に設定され
、直線L 1.9、L20に対する針落点の設定はアル
ゴリズムlに基づく第I、図の例と同様に設定され、ま
た直線L2]、L22に対する針落点の設定はアルゴリ
ズム2により設定される。 ・第5回目以後のスキャン 以後第5回目スキャン、第6回目スキャンがそれぞれ第
5図、第6図に示すように行われ、第6回目スキャンが
終了した時点で斜線部分で示す原画データおよびそれに
対応するLCD表示装置の表示部分が消えるので、第7
回目スキャン(図示せず)により処理すべき原画データ
がなくなったことが確認され、画像処理アルゴリズムに
よる刺しゅうデータの生成処理が終了する。 以上のように、原画データに処理プログラムによるスキ
ャン方式という比較的ポピユラーな方式により自動的に
刺しゅうデータが生成され、’ljlしゅう縫いが行わ
れる。 以上の実施例は、ミシンのスタート/ストンフキ−を押
すことにより、イメージスキャナから読み込まれた原画
データから自動的に刺しゅうデータが生成され、刺しゅ
うデータ用のバッファ等を介して刺しゅう縫いが行われ
るオンライン形式であるが、それに変えてオフライン形
式とすることもできる。 即ち、ミシンに専用の出力用の接続端子を設け、画像処
理プログラムにより生成された刺しゅうデータによりオ
ンラインで刺しゅうを行うことなく、前記接続端子に接
続された外部装置により、生成された刺しゅうデータを
外部記憶媒体としてのRAMカード等に書き込み、刺し
ゅうしたい時に刺しゅうデータが書き込まれたRAMカ
ード等をミシンにセントして、自由にまた繰り返して刺
しゅう縫いが行えるようにすることもできる。 [発明の効果] 以上のように本発明によれば、従来のように比較的高度
な専門知識を要し、かつ操作が複雑な処理方法と比較し
て、イメージスキャナ等の画像入力装置の簡単な操作に
より原画パターンから入力された原画データに対してN
画データ処理プログラムによるスキャン方式という比較
的ポピユラーな方式により自動釣に刺しゅうデータが生
成され、刺しゅう縫いが行えるようにしたので、例えば
使用者が望むオリジナルパターン等を簡単な操作で容易
に刺しゅうできるという効果が得られる。
The present invention will be explained below using examples. ○Configuration of the embroidery device The configuration of the embroidery device will be explained with reference to FIG. In the figure, on the front of the sewing machine body 10 of the m'l L and h sewing machines, there are a start/stop key I for starting and stopping the sewing machine, a part 12 of operation keys including embroidery keys etc. to be described later, and an original drawing to be described later. An LCD display device [3 is provided for displaying various displays of the sewing machine, including displays related to image processing. The ROM card reader part 14 is for reading the set image scanner ROM card. As described later, the image scanner ROM card contains a series of image processing programs that compress the original image data read from the image scanner, remove noise, and generate embroidery data by scanning the compressed and noise-removed W and image data. is built-in. On the side of the sewing machine, there is a controller terminal 15 for connecting a sewing machine controller (not shown) that controls the speed of the sewing machine, and a plug holder for connecting an image scanner 20 as an image input device using a dedicated cable 21. has been done. In this embodiment, the image scanner 20 has an effective reading width of 6
3mm, gradation output is black and white binary type, main scanning effective pixel count is 5
There are 04 pieces. When the reading start button 22 is pressed in the image scanner input mode and the image scanner 20 is moved over the original pattern to be input, the W image data is stored in the VRAM 1 built into the sewing machine 10. : It is set to be loaded. ○Outline of operating procedure 1.) Before turning on the sewing machine, install the
Set the OM card in the ROM card reader part 14,
Dedicated cable 21 for image scanner 20 in the plug holder
Connect the connector 23 of. 2) Next, turn on the power and press the embroidery key (operation keys 2) to enter the image scanner input mode and display the LCD screen.
A message "Please press the image scanner's reading start button" is displayed on the screen of the display device 13. 3) Input in advance on white paper with a black pen, etc. Place the image scanner 20 on top,
While pressing the reading start button 22, move the original image pattern 30 to be input from the first position to the last position. By this operation, the input characters and pictures are displayed on the LCD display screen. 4) Place the embroidery frame covered with cloth on the sewing machine 10 and press the start/stop key I to scan the original image data and generate embroidery data using the image processing algorithm described later on the detected original image data. and embroidery stitching begins. In the above procedure, a series of controls up to the generation of embroidery data in response to user operations are performed using the image scanner R
Image processing is performed by 70 grams stored on the OM card. For convenience, among image processing programs, a program for generating embroidery data by scanning original image data that has been compressed and noise removed is called an image processing algorithm to distinguish it from other programs. 0 image processing program 1) By operating the W-side input image scanner 20, the horizontal direction data is
04 dots/line, vertical direction data for 504 lines (504 dots) is stored on the VRAM of the sewing machine. This data is then stored in another area of the VRAM by thinning out the horizontal data every other bit, and similarly for the vertical data, it is thinned out every other line.
Original image data of 52 x 252 dots is stored. 2) Noise Removal Next, the 252 x 252 dot data stored in the VRAM is converted into data with dots on the top, bottom, left and right using the 4-concatenation compression method (*1) of the image processing language described later, and V
The horizontal data is 126 in another area of RA and M.
The vertical direction data is stored as 126 lines of data in a 12.6 x 26 dot/t configuration. This data is used as data for image processing. This data is further compressed to generate 63x63 dot data for image display, and stored in another area of ~'RA I'vl. *]: 4-concatenation compression method In Figure 14, black and white circles indicate dot data, and the black circle data is only valid when there are white circle data above, below, left and right of the target black circle data. In this embodiment, this process is performed for data having a 252×252 dot structure, every other dot for horizontal data, and every other line for vertical data. The dot density after processing is as shown in FIG. 3) Image Processing Algorithm Next, the scanning method of the image processing algorithm will be explained with reference to FIGS. 7 to 9. As shown in FIG. 7, the odd-numbered scan is performed at the first end point A.
9 to the right, sub-scanning is performed downward J lines at a time as shown by the arrow CO until it hits the original image data (hereinafter referred to as dot data) and is interrupted as shown in Figure 9. Repeat until the second end point B. Also, for the even-numbered scans, as shown in Figure 8, the scan is performed to the left from the second end point B at the bottom right until it hits the dot data and is interrupted, and the sub-scan is performed line by line upward as shown by the arrow Ce. Repeat until the first end point A on the upper left. There are basically the following two algorithms for setting the needle drop point by scanning.・Algorithm 1: Set the coordinates where dot data is detected by scanning as the first needle drop point, set the needle drop points at a constant pitch from there, and set the coordinates where no dot data is detected as the final needle drop point of that scan. , the straight line connecting the last needle drop point coordinates from the previous scan and the coordinates where dot data was first detected this time is in the opposite direction to the scan direction, and the data from this scan is Only for the detected horizontal position, the needle drop is set on the straight line at a coordinate position that is an integer multiple of a constant pitch from the last needle drop point of ni1 times, and the coordinates where the dot data was detected for the first time this time are set. is set as the first needle drop point for this scan. - Algorithm 2 If the coordinate line where the first dot data hit in the current scan is two or more lines away from the last needle drop point in the previous scan, the coordinates of the first dot data in the current scan are used as the needle drop point. point, and do not set the needle drop point between them. 4) Specific example of image processing algorithm These two basic algorithms will be extended and explained using a specific example. Each side shown below is shown as an example based on odd-numbered scans, but the same applies to even-numbered scans if the left and right and top and bottom are swapped. As an example derived from Algorithm 1, as shown in Fig. 10, if the coordinates where dot data was first detected in the previous scan are set as the first needle drop point N1, and the dot data is continuous, Set the needle drop point at a constant pitch P,
If the dot data is interrupted, set the coordinates as the last needle drop point N2, connect the coordinates where dot data was first detected in this scan with the coordinates of the needle drop point N2 with a straight line Ll,
Set the needle drop point at a constant pitch P from the coordinates of the needle drop point N2,
The coordinates at which dot data is first detected in the current scan are set as the first needle drop point N3 in the current scan. In the same area, Pl and P2 are the remaining pitches of the above-mentioned constant pitch needle drop point setting.・As shown in Figure I, the straight line L2 connecting the coordinates of the last needle drop point N4 from the previous scan and the coordinates where dot data was first detected in the current scan is correct with respect to the current scan direction. In the case of the direction, the coordinates at which dot data is first detected in the current scan are set as the first needle drop point 5 in the current scan, and no needle drop points are set between them.・As shown in Figure 12, the straight line L3 connecting the coordinates of the last needle drop point N6 from the previous scan and the coordinates where dot data was first detected in the current scan is in the opposite direction to the current scan direction and For the part where the dot data is located in the horizontal direction, do not set the needle drop point on the straight line L3, but set the needle drop point from the part with dot data at a position that is an integral multiple of the fixed pitch nP. Set N7 and N8,
The coordinates at which dot data is first detected in the current scan are set as the first needle drop point N9 in the current scan. As an example derived from Algorithm 2, - As shown in Figure 13, when the coordinates where dot data was first detected in the current scan are separated by two lines or more from the last needle drop point NIO in the previous scan. The coordinates of the first dot data of this time are set to the needle drop point Nil, and no needle drop point is set on the straight line L4 connecting them. 5) Regarding the scan side method using the image processing algorithm, τ for the scan example using the image processing algorithm, Fig. 1~
This will be explained with reference to FIG. In these drawings, hatched portions of dot data indicate needle drop points set by scanning, and symbols 01 to C6 indicate sub-scanning directions. - First Scan M The first scan will be explained with reference to FIG. The original image data having a 126×126 dot configuration after noise removal is scanned rightward from the upper first end point A, and the sub-scanning is continued downward one line at a time until the original image data is detected. The coordinates where the dot data was detected by scanning are set as the first needle drop point, and from there the needle is set at a fixed pitch (2 mm in this example).
Set the needle drop point with , set the coordinate where no dot data is detected as the last needle drop point of that scan, and set the coordinates of the last drop point from the previous scan and the coordinates where dot data was first detected this time. Only for horizontal positions where the connecting straight line is in the opposite direction to the scan direction and the dot data from the current scan is detected with respect to the straight line, a needle of a constant width is placed on the straight line from the last needle drop point of the previous time. A falling point is set, and the coordinates where dot data is first detected this time are set as the first needle falling point of this scan. The original image data for which the needle drop point has been set by scanning is erased one by one, and at the same time, the display part of the LCD display device that corresponds to the original image data is also erased one by one.In this way, scanning is continued line by line. 2@ Scan repeatedly until point B. At the time when the first scan is completed, the original image data indicated by the hatched area and the corresponding display area of the LCD display disappear. In this case, the needle drop point for the straight line L 1.1 is set in the same way as in the example of FIG. I based on algorithm 1.・Second scan As shown in Figure 2, scan to the left from the second end point B, and continue scanning in the same way as the first scan upwards one line at a time until the first end point A. Scan repeatedly. At the end of the second scan, the original image data indicated by diagonal lines and the corresponding display portion of the LCD display disappear.・Third scan As shown in Figure 3, scan to the right from the first end point A, continue scanning downward one line at a time in the same way as the first scan, until the second end point B. Scan repeatedly. At the time when the first scan is completed, the original image data indicated by the hatched area and the corresponding display area of the LCD display disappear. In this case, the needle drop points for lines L12 to L14 are set in the same way as in the example of FIG. It is configured as in the example.・Fourth scan As shown in Figure 4, scan in the left direction from the second end point B, and continue scanning upward line by line in the same way as the first scan, until the first end point Scan repeatedly until A. At the end of the fourth scan, the original image data shown in the shaded area and the corresponding display area of the LCD display disappear. In this case, the needle drop points for the straight lines L17 and Li2 are set in the same manner as in the example of FIG. The needle drop points for the straight lines L2] and L22 are set in the same manner as in the example shown in the figure, and the needle drop points for the straight lines L2 and L22 are set by Algorithm 2. - After the 5th scan, the 5th scan and 6th scan are performed as shown in Figures 5 and 6, respectively, and when the 6th scan is completed, the original image data shown in the shaded area and the Since the display part of the corresponding LCD display device disappears, the seventh
The second scan (not shown) confirms that there is no more original image data to be processed, and the embroidery data generation process using the image processing algorithm ends. As described above, embroidery data is automatically generated by the relatively popular method of scanning original image data using a processing program, and 'ljl embroidery is performed. The above embodiment is an online sewing machine in which embroidery data is automatically generated from original image data read from an image scanner by pressing the start/stomp key on the sewing machine, and embroidery is performed via an embroidery data buffer, etc. However, it is also possible to use an offline format instead. In other words, the sewing machine is equipped with a dedicated output connection terminal, and the embroidery data generated by the image processing program is not used for online embroidery. It is also possible to write data to a RAM card or the like as a storage medium, and then insert the RAM card or the like with the embroidery data written into the sewing machine when you want to embroider, so that you can freely and repeatedly embroidery. [Effects of the Invention] As described above, according to the present invention, image input devices such as image scanners can be easily used, compared to conventional processing methods that require relatively advanced specialized knowledge and are complicated to operate. N for the original image data input from the original image pattern by the operation
The embroidery data is automatically generated using a relatively popular scanning method using an image data processing program, and the embroidery data can then be sewn, allowing the user to easily embroider an original pattern desired by the user with simple operations. Effects can be obtained.

【図面の簡単な説明】[Brief explanation of drawings]

図面は本発明の寅施例に係り、第1図〜第6図は原画デ
ータに対するスキャンの手順を視覚的に示す図面で、第
1図は第1回目スキャン、第2図は第2回目スキャン、
第3図は第3回目スキャン、第4図は第4回目スキャン
、第5図は第5回目スキャン、第6図は第6回目スキャ
ンをそれぞれ示す。 第7図は〜第9図は、スキャン方式を説明するための図
面で、第7図は奇数回目のスキャン、第8図は偶数四回
のスキャン、第9図は奇数回目のスキャンによる原画デ
ータのスキャンの態様をそれぞれ示す。 笥10区〜第13図は具体的な例による厘亘データから
スキャンによる刺しゅうデータの生成アルゴリズムを説
明する図面で、第10図は刺しゅうデータ生成のアルゴ
リズムlによるデータ生成の例、第I、図は刺しゅうデ
ータ生成のアルゴリズム1による第10図とは別のデー
タ生成の例、第12図は刺しゅうデータ生成のアルゴリ
ズム1による第10図、笑】1図とは別のデータ生成の
例、第13図は刺しゅうデータ生成のアルゴリズム2に
よるデータ生成の例である。 第14図、第15図は4連結収縮法によるノイズ除去を
説明するためのV RA Mのメモリマンブを視覚的に
示すもので、第14図は処理前、第15図は処理後をそ
Jtぞれ示す。 第16図は刺しゅう装置の構成を示す斜視図である。 20は画像入力装置としてのイメージスキャナ、Aは第
1端点、Bは第2四点である。 特許出願人 蛇の目ミンン工業株式会社第  1 図 第2図 ム A 第 図 第 図 第 図 第 図 ○ 第 図
The drawings relate to an embodiment of the present invention, and FIGS. 1 to 6 are diagrams visually showing the scanning procedure for original image data, where FIG. 1 is the first scan and FIG. 2 is the second scan. ,
FIG. 3 shows the third scan, FIG. 4 the fourth scan, FIG. 5 the fifth scan, and FIG. 6 the sixth scan. Figures 7 to 9 are drawings for explaining the scanning method. Figure 7 is the original image obtained by odd-numbered scans, Figure 8 is the even-numbered four scans, and Figure 9 is the original image obtained by the odd-numbered scans. Each figure shows how data is scanned. Figures 10 to 13 are diagrams explaining the algorithm for generating embroidery data by scanning from Rinwa data using specific examples. Figure 10 is an example of data generation using algorithm 1 for embroidery data generation; Figure 12 is an example of data generation different from Figure 10 based on Algorithm 1 for embroidery data generation, Figure 12 is Figure 10 based on Algorithm 1 for embroidery data generation, lol] An example of data generation different from Figure 1, Figure 13 The figure shows an example of data generation using Algorithm 2 for embroidery data generation. Figures 14 and 15 visually show the VRAM memory block to explain noise removal using the 4-connection contraction method. Figure 14 shows the before processing, and Figure 15 shows the after processing. Show. FIG. 16 is a perspective view showing the configuration of the embroidery device. 20 is an image scanner as an image input device, A is the first end point, and B is the second four points. Patent applicant Janome Minn Kogyo Co., Ltd. Figure 1 Figure 2 Figure ○ Figure Figure ○ Figure

Claims (1)

【特許請求の範囲】 I 、画像入力装置が接続可能で、原画パターンから原
画データを読み込み原画データに基づき刺しゅうを行う
ミシンにおいて、 ミシンに読み込まれた原画データに対し、刺しゅうの開
始操作により、奇数回目のスキャンは左上の第1端点か
ら右方向に1ラインづつ下方に向けてスキャンして行き
右下の第2端点まで行い、偶数回目のスキャンは右下の
第2端点から左方向に1ラインづつ上方に向けてスキャ
ンして行き左上の第1端点まで行い、スキャンによりド
ットデータを検出した座標を最初の針落点とし、そこか
ら一定ピッチで針落点を設定して行きドットデータが検
出されなくなる座標をそのスキャンの最後の針落点とし
、前回のスキャンによる最後の針落点座標と今回の最初
にドットデータが検出された座標とを結ぶ直線がスキャ
ン方向に対し逆方向でかつ前記直線に対して今回のスキ
ャンによるドットデータが検出された左右方向位置に対
してのみ、前記直線上に前回の最後の針落点から一定ピ
ッチの整数倍の座標に針落点を設定し、かつ今回のスキ
ャンにより最初にドットデータが検出された今回のスキ
ャンによる最初の針落点とを接続し、スキャンされたラ
インのドットデータを消し、原画データがなくなったこ
とが確認されるまで以上のスキャンを繰り返し、刺しゅ
うデータを生成し、刺しゅうが行えるようにしたことを
特徴とするミシンの原画データ生成方法。 II、以前のスキャンによる最後の針落点に対して今回の
スキャンで最初にドットデータにぶつかった座標のライ
ンが2ライン以上離れている場合は、今回の最初のドッ
トデータの座標を針落点に設定し、その間に針落点を設
定しないことを特徴とする請求項 I に記載のミシンの
刺しゅうデータ生成方法。
[Claims] I. In a sewing machine that can be connected to an image input device and that reads original image data from an original image pattern and performs embroidery based on the original image data, an odd-numbered The first scan starts from the first end point at the top left and scans downward one line at a time to the right until the second end point at the bottom right, and the even number of scans starts from the second end point at the bottom right and goes one line to the left. Scan upward one by one until you reach the first end point on the upper left, and use the coordinates where dot data is detected by scanning as the first needle drop point.From there, set the needle drop points at a constant pitch until dot data is detected. The coordinates at which dot data is no longer detected are the last needle drop point of that scan, and the straight line connecting the coordinates of the last needle drop point from the previous scan and the coordinates where dot data was first detected this time is in the opposite direction to the scan direction and Set the needle drop point on the straight line at a coordinate that is an integral multiple of a constant pitch from the previous last needle drop point on the straight line only for the horizontal position where dot data from the current scan is detected, and Connect the first needle drop point of this scan where dot data was first detected by this scan, erase the dot data of the scanned line, and continue scanning until it is confirmed that the original image data is gone. A method for generating original image data for a sewing machine, characterized in that embroidery data is generated by repeating the steps 1 to 3, and embroidery data can be performed. II. If the coordinate line where the first dot data hit in this scan is two or more lines away from the last needle drop point in the previous scan, set the coordinates of the first dot data in this scan as the needle drop point. 2. The method of generating embroidery data for a sewing machine according to claim I, wherein the needle drop point is not set during this period.
JP23512490A 1990-09-05 1990-09-05 Making method of embroidery data of sewing machine Pending JPH04114692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23512490A JPH04114692A (en) 1990-09-05 1990-09-05 Making method of embroidery data of sewing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23512490A JPH04114692A (en) 1990-09-05 1990-09-05 Making method of embroidery data of sewing machine

Publications (1)

Publication Number Publication Date
JPH04114692A true JPH04114692A (en) 1992-04-15

Family

ID=16981409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23512490A Pending JPH04114692A (en) 1990-09-05 1990-09-05 Making method of embroidery data of sewing machine

Country Status (1)

Country Link
JP (1) JPH04114692A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5558032A (en) * 1994-07-29 1996-09-24 Brother Kogyo Kabushiki Kaisha Embroidery data preparing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5558032A (en) * 1994-07-29 1996-09-24 Brother Kogyo Kabushiki Kaisha Embroidery data preparing device

Similar Documents

Publication Publication Date Title
JP2880306B2 (en) Embroidery data creation device
US5740057A (en) Embroidery data creating device
US5791271A (en) Embroidery data processing device and method
JP3552334B2 (en) Embroidery data processing device
US5563795A (en) Embroidery stitch data producing apparatus and method
US5740056A (en) Method and device for producing embroidery data for a household sewing machine
US5960726A (en) Embroidery data processor
JPH0956942A (en) Sewing data processing device
US5422819A (en) Image data processing system for sewing machine
US5319566A (en) Embroidering data production system
JPH0838755A (en) Embroidery data generating device
JP3023376B2 (en) Sewing machine embroidery data creation method
JPH04114692A (en) Making method of embroidery data of sewing machine
JP3369600B2 (en) Embroidery sewing data creation device
US5515289A (en) Stitch data producing system and method for determining a stitching method
JP3023372B2 (en) Sewing machine embroidery data generation method
JP3249113B2 (en) Sewing machine embroidery data generation method
JP3369599B2 (en) Embroidery sewing data creation device
JP3982717B2 (en) Embroidery pattern data generation apparatus and method for sewing machine capable of embroidery sewing
JP3369602B2 (en) Embroidery sewing data creation device
JP2880305B2 (en) Sewing machine image data processing device
JPH07136358A (en) Embroidery data generating device
JP2873398B2 (en) Automatic embroidery system and automatic embroidery sewing machine
JP2000254373A (en) Embroidery data preparing device of sewing machine
JP2880301B2 (en) Embroidery data creation device of embroidery sewing machine