JPH0274284A - Embroidery data forming device for embroidery machine - Google Patents

Embroidery data forming device for embroidery machine

Info

Publication number
JPH0274284A
JPH0274284A JP22460088A JP22460088A JPH0274284A JP H0274284 A JPH0274284 A JP H0274284A JP 22460088 A JP22460088 A JP 22460088A JP 22460088 A JP22460088 A JP 22460088A JP H0274284 A JPH0274284 A JP H0274284A
Authority
JP
Japan
Prior art keywords
data
embroidery
pattern
design
contour
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
JP22460088A
Other languages
Japanese (ja)
Inventor
Takeshi Kongou
猛 金剛
Michio Hisatake
久武 通夫
Hidenori Sasako
秀紀 笹子
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 JP22460088A priority Critical patent/JPH0274284A/en
Publication of JPH0274284A publication Critical patent/JPH0274284A/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 form embroidery data in a short time by forming the embroidery data from compression data by a means for extracting the feature points of respective graphics and design data for designating the stitch method of a design by a design designating means. CONSTITUTION:At the time of forming the embroidery data of an automatic embroidery machine, the original picture of an embroidery pattern is inputted by a CCD camera 1. A mechanical post-processing (extraction of an outline, compression of data and the like) is completely automatically processed by a computer. The correction of the graphic and the setting of a design which requires a sense of beauty are associated with the designer of the data. The correction and the like of the graphic and the setting of the design are executed by the use of a display device 8. While the graphic is displayed, the correction and the like of the graphics to be required is carried out. The design is set by displaying the design selected from the basic patterns of the design which are previously formed in the outline. In such a way, the embroidery data for stitching an embroidery pattern high in the quality of beauty can be easily formed in a short time.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は自動刺繍機のための画像入力装置を用いた刺繍
データ作成装置に係り、特に機械的にできるその後の処
理(輪郭の抽出、データの圧縮など)はすべてコンピュ
ータに処理をさせ、美的感性が必要な作業は人間が行え
るようにしたものに関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Field of Application) The present invention relates to an embroidery data creation device using an image input device for an automatic embroidery machine. (compression, etc.) are all processed by computers, while tasks that require aesthetic sensibility can be performed by humans.

(従来の技術及び発明が解決しようとする課題)従来、
刺繍データの作成には下記の2方式があった。
(Prior art and problems to be solved by the invention) Conventionally,
There were two methods for creating embroidery data:

第1の方式として刺繍模様を描いた原画をディジタイザ
に載せ、縫い上がったとき美麗に見えるように縫目の配
置を考慮して、全ての縫目位置をスタイラスペンでプロ
ットし、この座標データを記憶させておく。そして針の
上下運動に同期して前記座標データを読み出し縫目を形
成する。この方式ではデータ入力に多大な時間がかかり
、作業能率ら悪く作業者にはある程度の熟練度が必要で
あった。また最終的な縫目座標そのものを入力している
ので刺繍模様の拡大、縮小、回転などを行う場合データ
の処理が複雑であった。
The first method is to place the original drawing of the embroidery pattern on a digitizer, plot all seam positions with a stylus pen, taking into account the placement of the seams so that they will look beautiful when sewn, and use this coordinate data. Let me remember it. Then, in synchronization with the vertical movement of the needle, the coordinate data is read out and a stitch is formed. This method requires a lot of time to input data, has poor work efficiency, and requires a certain level of skill on the part of the operator. Furthermore, since the final stitch coordinates themselves are input, data processing is complicated when enlarging, reducing, rotating, etc. the embroidery pattern.

第2の方式として刺繍模様を描いた原画をディジタイザ
に載せ、刺繍模様の輪郭線を多数の直線と円弧の集合と
考え目視により直線か円弧かを判断し、その両端と円弧
の場合その間の1点をスタイラスペンで入力して圧縮さ
れた輪郭線データと直線近似か円弧近似かを示すコード
(以下ファンクショクコードと言う)を記憶させておく
。実際の縫目座標を求めるには圧縮された輪郭線データ
とファンクショクコードから刺繍模様の輪郭線を求め、
輪郭線で囲まれた内部の縫目は輪郭線に関連して求めて
いた。この方式によればデータ入力の作業能率は改善さ
れ、刺繍模様の拡大、縮小、回転などのデータ処理も比
較的容易になった。しかし輪郭線で囲まれた内部は一様
の縫い、例えば直線ジグザグ縫による密着線でしか埋め
ることができず、例えば輪郭線内に含まれる内部の輪郭
線内を別の柄で構成する場合等にはやはりltの方式に
頼らなければならなかった。
The second method is to place the original drawing of the embroidery pattern on a digitizer, consider the outline of the embroidery pattern as a collection of many straight lines and circular arcs, and visually determine whether it is a straight line or circular arc. Points are input with a stylus pen, and compressed contour line data and a code (hereinafter referred to as a function code) indicating whether linear approximation or circular arc approximation is to be applied are stored. To find the actual stitch coordinates, find the outline of the embroidery pattern from the compressed outline data and the function code,
The internal seams surrounded by the contour line were determined in relation to the contour line. According to this method, the work efficiency of data input has been improved, and data processing such as enlarging, reducing, and rotating embroidery patterns has become relatively easy. However, the inside surrounded by the contour line can only be filled with uniform stitching, for example, a tight line using straight zigzag stitching.For example, when configuring the inside of the contour line included in the contour line with another pattern, etc. I still had to rely on the lt method.

(課題を解決するための手段及び発明の作用)本発明は
前記した課題を解決するために自動刺繍機の刺繍データ
の作成に当り、刺繍模様の原画をカメラまたはイメージ
・スキャナ等の画像入力装置によって入力し、機械的に
できるその後の処理(輪郭線の抽出、データの圧縮等)
はすべてコンピュータに自動的に処理させ、データの作
成に関し美的感覚が必要とされる図形の修正等及び柄の
設定をデータ作成者に関与させ、更にこれらの図形の修
正等及び柄の設定には表示装置を用い、図形を表示させ
ながら必要とされる図形の修正等をし、また柄の設定は
輪郭線内に予め作成された柄の基本パターンの中から選
択した柄を表示させながら設定する方式を採用すること
により、実際に刺繍を行う前に縫い上り感を表示画面上
で即座に確認できるので、美的品質の高い刺繍模様を縫
い上げるための刺繍データを短時間で容易に作成するこ
とができるという作用がある。
(Means for Solving the Problems and Effects of the Invention) In order to solve the above-mentioned problems, the present invention, when creating embroidery data for an automatic embroidery machine, inputs an original image of an embroidery pattern to an image input device such as a camera or an image scanner. and subsequent processing that can be done mechanically (contour extraction, data compression, etc.)
The data creator is automatically processed by the computer, and the data creator is involved in the modification of shapes and pattern settings that require an aesthetic sense. Using a display device, necessary modifications to the figure are made while displaying the figure, and the pattern is set while displaying a pattern selected from among the basic patterns created in advance within the outline. By adopting this method, you can instantly check the appearance of finished stitching on the display screen before actually embroidering, so you can easily create embroidery data for sewing high-quality embroidery patterns in a short time. It has the effect of being able to.

(実施例) 以下本発明を実施例により説明する。(Example) The present invention will be explained below with reference to Examples.

・刺繍データ作成装置の概略の 成 まず第1図のブロック図により刺繍データ作成装置の概
略について説明する。同図において本実施例では原画の
画像入力装置としてCOD (Charge Coup
led Device)カメラlを用い、データの圧縮
には直線近似を用いている。CODカメラlにより入力
された画像は映像信号に変換され、増幅器2によって適
切な信号レベルまで増幅される。
- Outline of the embroidery data creation device First, the outline of the embroidery data creation device will be explained with reference to the block diagram shown in FIG. In the figure, in this embodiment, a COD (Charge Coup) is used as an image input device for an original image.
(LED Device) Camera l is used, and linear approximation is used for data compression. The image input by the COD camera 1 is converted into a video signal and amplified by the amplifier 2 to an appropriate signal level.

増幅器2はA/D変換器3に接続されており、増幅され
た映像信号は中央処理装置cPUにパスラインBL及び
インターフェイス■101を介して接続されたタイミン
グ回路4の信号に同期して、ディジタル化手段としての
A/D変換器3により、256の濃度lII調のディジ
タル・データに変換される。ディジタル化された映像信
号はビデオメモリ5に蓄えられる。一方中央処理装置C
PUは制御用メモリROMに記憶された処理手順(プロ
グラム)に従い下記の処理を実行する。ビデオメモリ5
に蓄えられた256!1!Q+の画像データをパスライ
ンBLを介して中央処理装置CPUに順次取り込み、濃
度の急激に変化する所、つまり原画のエツジ部分を検出
するために前記データ列の微分処理を行う。その結果に
よりエツジ強度の変曲点であり、かつエツジ強度がある
一定値以上の座標に対しその点の値としてIllを与え
2値化し、この点の座標を作業用メモリ20の2値デー
タ用工リアDに記憶する。この点座標の集合により構成
される輪郭線から後記する特徴点を抽出し、輪郭線を直
線で近似する。この特徴点の座標を輪郭線の圧縮データ
として作業用メモリ20の圧縮データ用エリアCに登録
する。また中央処理装置CPUの指示により前記直線近
似された輪郭線データはCRTコントローラ6を介して
接続されるVRAM7に転送され、CRTコントローラ
6の制御により表示装置8に表示される。表示された輪
郭線の不具合な箇所を修正あるいは追加し、さらに輪郭
線内を刺繍する柄の指定を行うため、インターフェイス
■102を介してタブレット9が接続されている。
The amplifier 2 is connected to an A/D converter 3, and the amplified video signal is converted into a digital signal in synchronization with a signal from a timing circuit 4 connected to the central processing unit cPU via a pass line BL and an interface 101. The A/D converter 3, which serves as a converting means, converts the data into digital data of 256 density levels. The digitized video signal is stored in the video memory 5. On the other hand, central processing unit C
The PU executes the following processing according to the processing procedure (program) stored in the control memory ROM. video memory 5
256!1 stored in! The image data of Q+ is sequentially taken into the central processing unit CPU via the pass line BL, and the data string is subjected to differential processing in order to detect a place where the density changes rapidly, that is, an edge portion of the original image. Based on the result, Ill is given as the value of the point to the coordinate that is an inflection point of the edge strength and the edge strength is above a certain value, and is converted into a binary value. Store in rear D. Feature points, which will be described later, are extracted from the contour line formed by this set of point coordinates, and the contour line is approximated by a straight line. The coordinates of this feature point are registered in the compressed data area C of the working memory 20 as compressed contour data. Further, according to instructions from the central processing unit CPU, the linearly approximated contour line data is transferred to the VRAM 7 connected via the CRT controller 6, and displayed on the display device 8 under the control of the CRT controller 6. A tablet 9 is connected via an interface 102 in order to correct or add defective parts of the displayed outline and to specify a pattern to be embroidered within the outline.

尚、タブレット9の操作で指示した位置は表示装置8上
のカーソルで認識できる。また、インターフェイス■1
03を介してキーボード■0が接続されている。これら
の装置により図形の状態を作業者が目視により確認し、
原画データを刺繍に適した図案に変形することができる
。完成した図案は圧縮された輪郭線データ、柄データ等
を基に刺繍データとしてのフォーマットに従い作業用メ
モリ20に書き込まれる。このようにして生成された刺
繍データはフロッピー・ディスク・コントローラFDC
を介して接続されるフロッピー・ディスク・ドライブF
DDに転送され、フロッピー・ディスクFDに記録され
る。また作成された刺繍データを直ちに刺繍したいとき
は刺繍機I2をLANコントローラ11を介してネット
ワークに接続しておき、刺繍機I2に刺繍データを直接
転送することにより行うこともできる。
Note that the position specified by operating the tablet 9 can be recognized by a cursor on the display device 8. Also, interface ■1
Keyboard 0 is connected via 03. These devices allow workers to visually check the condition of the shape,
Original image data can be transformed into a design suitable for embroidery. The completed design is written into the working memory 20 in accordance with the format as embroidery data based on compressed outline data, pattern data, etc. The embroidery data generated in this way is transferred to the floppy disk controller FDC.
Floppy disk drive F connected via
The data is transferred to the DD and recorded on the floppy disk FD. Furthermore, if it is desired to immediately embroider the created embroidery data, the embroidery machine I2 can be connected to the network via the LAN controller 11 and the embroidery data can be directly transferred to the embroidery machine I2.

工事1μ止りり勤(411丁を 面述の構成による刺繍データ作成の処理手順はンステム
の制御用メモリROMにプログラムとして記録されてい
る。以下その処理手順を主として第2図のフローチャー
トにより説明する。処理aは原画をビデオメモリ5に取
り込む処理を行うプログラム・モジュール(以下モジュ
ールと言う)であり、インターフェイスr101を介し
てタイミング回路4をスタートさせ、アナログの映像信
号をディジタルに変換している。全画面を橋方向256
ドツト、縦方向256ドツト、階調256の分解能で変
換し全データを入力する。処理すは前記256階調のデ
ータから微分処理によりその輪郭を抽出し、かつ2値の
データに変換するモジュールである。詳細については第
3図で説明する。
The processing procedure for creating embroidery data according to the structure of 1 μm construction work (411 stitches) is recorded as a program in the control memory ROM of the system.The processing procedure will be explained below mainly with reference to the flowchart of FIG. Processing a is a program module (hereinafter referred to as a module) that performs the processing of importing the original image into the video memory 5, starts the timing circuit 4 via the interface r101, and converts the analog video signal to digital. Move the screen to the bridge direction 256
All data is input by converting it with a resolution of 256 dots in the vertical direction and 256 gradations. The processing module is a module that extracts the contour of the 256-gradation data by differential processing and converts it into binary data. Details will be explained with reference to FIG.

処理Cはラベリング処理を行うモジュールである。Processing C is a module that performs labeling processing.

2値化されたデータ(画素)は互いに連続して、ひとつ
の輪郭線あるいは線状の図形成分を形成している。一般
に画像中ではこの様な図形成分が複数個点在しているの
で、画像処理を簡略化するために各成分を分離し、異な
る名前(ラベル)をつけて区別する。詳細については第
4図で説明する。処理dは処理Cで図形成分の分離が完
全に行えなかったときその修正を行い、また図形成分の
輪郭線の長さを測定することによって小さな図形を探し
出しノイズとして除去する処理を行う。詳細については
第5図で説明する。
The binarized data (pixels) are continuous and form one outline or linear figure component. Generally, a plurality of such graphical components are scattered in an image, so to simplify image processing, each component is separated and given a different name (label) to distinguish it. Details will be explained with reference to FIG. Process d corrects when the graphic components cannot be completely separated in process C, and also searches for small graphics and removes them as noise by measuring the length of the contour of the graphic component. Details will be explained with reference to FIG.

処理eは各図形成分を直線で近似するために特徴点を抽
出し、特徴点の座標を求めて輪郭線データを圧縮する。
Process e extracts feature points in order to approximate each figure component with a straight line, determines the coordinates of the feature points, and compresses the contour data.

そしてその圧縮データを基に表示画面上に輪郭線を再現
する処理を行う。詳細については第6図で説明する。
Then, processing is performed to reproduce the contour on the display screen based on the compressed data. Details will be explained with reference to FIG.

処理aから処理eによって原画の輪郭線を自動的に、か
つ原画に忠実に圧縮データとして変換することができた
。しかしながらそれを糸だけの刺繍によって表現するに
は不要な線分や輪郭線が含まれていたり、あるいは不足
していたりすることがある。
Through processes a to e, the outline of the original image could be automatically converted into compressed data faithfully to the original image. However, to express this through embroidery using only thread, unnecessary line segments and outlines may be included or may be missing.

その場合処理r、処理gを実行させることにより図形成
分の削除あるいは線分の追加、輪郭線の分割を行う。こ
れらの詳細については第7図、第8図で説明する。
In this case, by executing process r and process g, figure components are deleted, line segments are added, and contour lines are divided. These details will be explained with reference to FIGS. 7 and 8.

処理りは輪郭線内を糸で埋めるための柄を指定するモジ
ュールである。その図形に最も適した柄を形成するため
の運針方法を作成するか、または予め用意された運針の
基本パターンから選択し、その縫いピッチと縫い方向(
傾き)を美的品質が向上するようにタブレットを用いて
指示する。詳細については第9図で説明する。
Processing is a module that specifies the pattern for filling the outline with thread. Create a needle movement method to form the most suitable pattern for the shape, or select from the basic needle movement patterns prepared in advance, and select the sewing pitch and sewing direction (
tilt) using a tablet to improve aesthetic quality. Details will be explained in FIG. 9.

処理Iで、以上の処理結果を表示装置8に表示させ、作
業者の判断により最も美麗に見えるように柄選択の操作
を繰り返す。
In process I, the above process results are displayed on the display device 8, and the operator repeats the pattern selection operation so as to make it look the most beautiful according to the operator's judgment.

処理jにより作成済みの刺繍データのラベル、柄情報、
輪郭情報の各データを第11図に示すフォーマットに従
いフロッピー・ディスクに記録する。
Labels and pattern information of the embroidery data created by process j,
Each piece of contour information data is recorded on a floppy disk according to the format shown in FIG.

また作成済みの刺繍データで直ちに刺繍する場合は、刺
繍機12をLANコントローラ11を介してネットワー
クに接続しておき、刺繍データを直接転送することもで
きる。
If embroidery is to be performed immediately using already created embroidery data, the embroidery machine 12 can be connected to the network via the LAN controller 11 and the embroidery data can be directly transferred.

・2値化処理 次に第3図により原画の輪郭線を抽出し、2値化する処
理について説明する。同図において処理b1で原画の左
上からラスク走査し、濃度が急激に変化する箇所、つま
りエツジ部分を微分処理によるエツジの強度計算を行う
ことによって検出する。その計算式を以下に示す。
-Binarization Process Next, the process of extracting the outline of the original image and binarizing it will be explained with reference to FIG. In the same figure, in process b1, a rask scan is performed from the upper left of the original image, and a portion where the density changes rapidly, that is, an edge portion, is detected by performing edge intensity calculation by differential processing. The calculation formula is shown below.

処理b2、処理b3でエツジ強度の変曲点を見つけ変曲
点であって、その時の強度が規定値M以上になる^(x
、y)の点を検出しその点に処理b4によって値Ill
を与える。これらの処理を処理b5の判断により全画面
について行い、その結果を作業用メモリ20の2値デー
タ用エリアDに書き込み、また表示装置8に2値化画面
を表示する。
In process b2 and process b3, the inflection point of the edge strength is found and the inflection point is where the strength at that time becomes greater than or equal to the specified value M^(x
, y) and assigns the value Ill to that point by processing b4.
give. These processes are performed for the entire screen according to the judgment in process b5, the results are written into the binary data area D of the working memory 20, and the binary screen is displayed on the display device 8.

・ラベリング処理 次に第4図によりラベリング処理について説明する。同
図において処理clにより2値化画面を左上からラスク
走査を行い、D(x、y)= 1の点を見つける。処理
c3により現在の点D(x 、 y)を中心に第12図
に示す4点CD(x−1,y)、D(x、y−1)、D
(x+ 1゜y−1)、D(x(、y−1))のラベル
番号を調べる。処理C4の判定によりまだラベル番号か
付いていないとき、処理C6にてD(x、y)の点に新
しいラベル番号を付け、ラベル番号と(x、y)の座標
データを作業用メモリ20の座標データ用エリアLに登
録する。
-Labeling Process Next, the labeling process will be explained with reference to FIG. In the figure, the binarized screen is scanned from the upper left by processing cl to find the point D(x, y)=1. Through process c3, four points CD(x-1, y), D(x, y-1), D shown in FIG. 12 are created around the current point D(x, y).
Check the label numbers of (x+ 1° y-1) and D(x(, y-1)). If no label number has been attached yet as determined in process C4, a new label number is attached to point D (x, y) in process C6, and the label number and coordinate data of (x, y) are stored in the working memory 20. Register in area L for coordinate data.

また既にラベル番号があるときさらに処理C5の判定を
行い、2種類以上のラベル番号がある場合、処理c7で
それらが同一のものである旨を作業用メモリ20の結合
情報エリア■に記録しておく。
Furthermore, when there is already a label number, a determination is made in process C5, and if there are two or more types of label numbers, in process c7, the fact that they are the same is recorded in the combined information area ■ of the working memory 20. put.

そして処理c9によりD(XJ)にその中で最も古いラ
ベル番号を付ける。ラベル番号が1種類の場合は処理C
8によりそのラベル番号をD(x 、 y)に付ける。
Then, in step c9, the oldest label number is assigned to D(XJ). If there is only one type of label number, process C
8, the label number is attached to D(x, y).

そして処理clOの判定により画面が終了するまで行う
The process is continued until the screen ends as determined by the process CLO.

・図形成分の連結処理及びノイズの除去処理次に主とし
て第5図を参照しながら、図形成分の連結処理及びノイ
ズの除去処理について説明する。第13図に示すような
図形を左上からラスク走査によってラベル付けを行うと
、本来ひとつの図形であるにもかかわらず、ラベルが2
種類に分かれてしまう。従って修正する必要性が生じる
・Connection processing of graphic components and noise removal processing Next, referring mainly to FIG. 5, the connection processing and noise removal processing of graphic components will be explained. When a figure like the one shown in Fig. 13 is labeled by rask scanning from the upper left, two labels appear even though it is originally one figure.
It is divided into types. Therefore, a need arises for modification.

この修正を作業用メモリに記録されている結合情報を用
いて行いラベル番号を書き換え最も古いものに統一する
This modification is performed using the combination information recorded in the working memory, and the label numbers are rewritten to unify them to the oldest one.

第5図において処理diの判定により次の座標データL
(n、i+1)が存在すれば、処理d2によりL(n。
In FIG. 5, the next coordinate data L is determined by the process di.
If (n, i+1) exists, L(n) is obtained by processing d2.

i)とL(n、i+1)の距離を求める。[nはラベル
番号、iは座標データの1番目を示す。]つまり、第1
1図(a)に示すように2点が上下、左右方向の位置関
係にあるときは距離をIllとし、第14図(b)に示
すように対角線方向の位置関係にあるときは距離を「/
T」として求める。求めた距離を処理d3により合計し
、輪郭線の周囲あるいは線分の長さを計算する。また、
次の座標L(n、i+1)がなくなったとき処理d4の
判定により連結すべき輪郭線のラベル番号の有無を調べ
、存在する場合はそのラベル番号の座標データを同じラ
ベル番号の座標データL(n、i)の後ろに追加し輪郭
線を連結する。
Find the distance between i) and L(n, i+1). [n indicates the label number, and i indicates the first coordinate data. ] In other words, the first
As shown in Figure 1(a), when the two points are in a vertical or horizontal positional relationship, the distance is Ill, and as shown in Figure 14(b), when the two points are in a diagonal positional relationship, the distance is 'Ill'. /
Find it as "T". The obtained distances are summed in process d3, and the circumference of the contour line or the length of the line segment is calculated. Also,
When the next coordinate L(n, i+1) is no longer available, it is checked in step d4 whether there is a label number for the outline to be connected, and if it exists, the coordinate data of that label number is transferred to the coordinate data L( of the same label number). Add after n, i) and connect the contour lines.

処理d6の判定により図形成分の輪郭または線分の長さ
がある値より小さいとき、その図形成分をノイズと見な
しラベル番号を削除する。つまりノイズを除去する。こ
れらの処理(diからd7)を処理d8の判定により全
ラベルが終了するまで行う。
If the length of the outline or line segment of the graphic component is smaller than a certain value as determined in step d6, the graphic component is regarded as noise and the label number is deleted. In other words, it removes noise. These processes (from di to d7) are performed until all labels are completed as determined in process d8.

・直線近似によるデータの圧縮処理 法に主として第6図を参照しながら各図形成分の特徴点
を抽出し、直線近似によってデータを圧縮する処理につ
いて説明する。
・Data compression processing method using linear approximation The process of extracting feature points of each figure component and compressing data using linear approximation will be explained mainly with reference to FIG.

同図において処理e1により輪郭線のスタート点におけ
る方向(VoVυ(第15図)を求めこれを基準方向と
する。処理e2により次の座標点に対す一一一→− る方向(V、V、)のベクトル値を求める。ベクトル値
は第1表に示すように基準方向に対する回転角度により
値を定めである。つまり基準方向と同じ向きのベクトル
値は0、基準方向と+45°ずれるときのベクトル値は
+11同様に+90°のとき+2、+135°のとき+
3、−45°のとき!、−90°のとき−2、−135
°のとき−3としている。処理e3により各ベクトル値
を加算し、また基準方向と同じベクトルの出現回数を計
数する。処理e4およびe5の判定によりベクトルの特
徴点を検出し、スタート点V。と現在の点V1の2点を
結ぶ直線で近似する。処理e4はベクトル値の合計が3
以上になる前の点を特徴点とし、また処理e5は基準方
向と同じベクトルの出現回数が定められた個数N以上で
あり、かつ次に方向が変化するまでの間を直線で近似し
ている。その例を第16図に示す。処理e6により■。
In the same figure, the direction (VoVυ (Fig. 15)) at the start point of the contour line is determined by process e1 and used as the reference direction.The process e2 determines the direction (V, V, ) is calculated.The vector value is determined by the rotation angle with respect to the reference direction as shown in Table 1.In other words, the vector value in the same direction as the reference direction is 0, and the vector value when the direction is +45° different from the reference direction. As with +11, the value is +2 at +90° and + at +135°.
3. At -45°! , -2 at -90°, -135
It is set as −3 when the temperature is °. In process e3, each vector value is added, and the number of appearances of the same vector as the reference direction is counted. The feature points of the vector are detected by the determinations in processes e4 and e5, and the starting point V is detected. and the current point V1 are approximated by a straight line connecting the two points. Process e4 has a total vector value of 3
The point before the above is defined as a feature point, and in process e5, the number of occurrences of the same vector as the reference direction is equal to or greater than a predetermined number N, and the period until the next direction change is approximated by a straight line. . An example is shown in FIG. ■ By processing e6.

の座標値と■1の座標値を作業用メモリ20の圧縮デー
タ用エリアCにラベル番号と共に圧縮データとして登録
し圧縮データ・テーブルを作成する。またVの座標値を
Voに置き損え次の基準方向のための準備をする。処理
e7により前述の方法で求めた圧縮データを用いて表示
装置8に直線モ描画する。
The coordinate values of and the coordinate values of 1 are registered as compressed data in the compressed data area C of the working memory 20 together with the label number to create a compressed data table. Also, the coordinate value of V is misplaced in Vo and preparations are made for the next reference direction. In process e7, a straight line pattern is drawn on the display device 8 using the compressed data obtained by the method described above.

処理e8の判定によりこの図形成分の全周あるいは全長
にわたって前記処理(elからe7)を繰り返す。さら
に処理e9の判定により全図形成分に対して処理(el
からe8)を実行する。以上の処理を行うことにより、
第10図(a)の原画が同イ沖ような輪郭線として描画
される。
Based on the determination in process e8, the process (from el to e7) is repeated over the entire circumference or entire length of this figure component. Furthermore, by the judgment of process e9, the process (el
Execute e8) from By performing the above processing,
The original picture in FIG. 10(a) is drawn as a contour line similar to the same outline.

・図形成分の削除処理 次に第7図を参照しながら画像処理によって圧縮データ
に変換された図形成分を作業者のタブレット操作によっ
て指示された部分を削除する処理について説明する。
- Deletion Process of Graphic Components Next, with reference to FIG. 7, a process of deleting a portion of the graphic components converted into compressed data through image processing as instructed by the operator's tablet operation will be described.

処理r1により削除したい輪郭線あるいは線分をタブレ
ット操作によって指示する。処理r2でキーボード10
からのキー入力により、指示された輪郭線あるいは線分
に対し、その全てを削除するのかあるいは一部のみ削除
するかを選択する。
In process r1, a contour line or line segment to be deleted is designated by a tablet operation. Keyboard 10 in process r2
With the key input from , it is possible to select whether to delete all or part of the specified outline or line segment.

一部削除の場合は処理r3でタブレット操作によりその
範囲を指定する。処理f4により削除することを指定さ
れた箇所の描画色を変更し削除箇所の確認を促す。処理
r5により削除を実行し圧縮データ・テーブルの一部を
削除するか、またはその図形成分に付けられているラベ
ル番号を登録から抹消することにより図形成分を削除す
る。削除処理の実行例を第1O図(e)に示す。
In the case of partial deletion, the range is specified by operating the tablet in process r3. In process f4, the drawing color of the portion designated to be deleted is changed and confirmation of the deletion portion is prompted. In process r5, deletion is executed to delete a part of the compressed data table, or the graphic component is deleted by deleting the label number attached to the graphic component from the registration. An example of executing the deletion process is shown in FIG. 10(e).

・線分の追加、輪郭線の分割処理 次に第8図を参照しながら原画から抽出できなかった線
を追加したり、輪郭線を分割し図形を加工するための処
理について説明する。同図において処理g!で直線を描
くための2点をタブレット9によって入力し、処理g2
の判定により下記の3つの処理(g3 、g4 、g5
 )を選択する。処理g3は線分の追加を行う処理です
でにある図形成分の圧縮データ・テーブルに新たな座標
データを追加する。処理g4は輪郭線の分割を行う処理
で分割によってできた新しい輪郭線に新しいラベル番号
を付はテーブルに登録する。処理g5は新しい図形成分
の生成であり、新しいラベル番号を作成しタブレット9
より入力されたデータを登録する。追加処理の実行例を
第1O図(d)に示す。
- Addition of line segments and division of contour lines Next, with reference to FIG. 8, processing for adding lines that could not be extracted from the original image, dividing contour lines, and processing figures will be explained. In the figure, processing g! Input two points to draw a straight line using the tablet 9, and process g2.
The following three processes (g3, g4, g5
). Process g3 is a process for adding line segments, and new coordinate data is added to the already existing compressed data table of graphical components. Process g4 is a process for dividing the contour line, and a new label number is attached to the new contour line created by the division and registered in the table. Process g5 is the generation of a new figure component, which creates a new label number and displays it on the tablet 9.
Register the data entered. An example of execution of the additional processing is shown in FIG. 10(d).

・柄の指定処理 次に第9図を参照しながら輪郭線内を刺繍糸で埋めるた
めの運針方法、つまり柄を指定する処理について説明す
る。同図において、処理h1でタブレット9によって輪
郭線を指定し処理h2により柄指定機能か実行されると
、表示装置8の右隅に柄の種類(直線、三重縫い、ジグ
ザグ、砂縫い、クロス・ステッチ等の基本パターン)が
図柄により表示されるので、作業者はその中から最適な
柄と色をタブレット9で選択する。最適な柄がない場合
は柄を形成する縫目の基本パターンをタブレット操作で
作成し登録する。基本パターンは数十針程度で構成され
縫目の針類とその針落ち点を表示画面を見ながらタブレ
ットで入力したものであり、この基本パターンを繰り返
して縫うことにより輪郭線内を刺繍で埋めることができ
る。処理h3によりその柄の縫いピッチをキーボードI
Oから指定し、処理h4により縫い方向を角度でキーボ
ードから入力する。
- Pattern Designation Process Next, with reference to FIG. 9, a needle movement method for filling the outline with embroidery thread, that is, a pattern designation process will be explained. In the figure, when an outline is specified by the tablet 9 in process h1 and a pattern designation function is executed in process h2, the type of pattern (straight line, triple stitch, zigzag, sand stitch, cross stitch, etc.) is displayed in the right corner of the display device 8. The basic patterns (such as stitches, etc.) are displayed as patterns, and the operator selects the most suitable pattern and color from among them using the tablet 9. If an optimal pattern is not available, create and register a basic pattern of stitches that will form the pattern using a tablet. The basic pattern consists of about a few dozen stitches, and the needles for each stitch and their needle drop points are entered on a tablet while looking at the display screen.By repeating this basic pattern, the outline is filled with embroidery. be able to. By processing h3, select the sewing pitch of the pattern on the keyboard I.
0, and input the sewing direction in angle from the keyboard in process h4.

尚、柄の指定を行った順番が各図形成分を刺繍する順に
なっており、この順番に圧縮データが並べられる。しか
しながらこの順番に各図形成分を刺繍して行くと、各図
形間は糸でつながった状態になりほかの図形がその糸を
縫い込んでしまうことがしばしば起こる。直線の密着縫
いで刺繍している場合は問題ないが柄を埋めることによ
って刺繍しているので、その縫い込まれた渡り糸が美的
品質を低下させることになる。従ってそのような図形成
分を逃げるように渡り糸を設けなくてはならない。この
指定を処理h5で行い先に柄指定を行った図形と今回の
図形成分との間の渡り糸を決定し、その針落ち点をタブ
レットによって指示し圧縮データに加える。これらの指
定が完了すると表示画面上で輪郭線内にその柄が描画さ
れ縫い上がり感を確認することができる。
Note that the order in which the patterns are specified is the order in which each graphic component is embroidered, and the compressed data are arranged in this order. However, when each figure is embroidered in this order, each figure is connected by a thread, and other figures often embroider the thread. There is no problem if the embroidery is done with straight, close stitches, but since the embroidery is done by filling in the pattern, the sewn-in crossover threads degrade the aesthetic quality. Therefore, it is necessary to provide a crossing thread to escape such graphic components. This designation is carried out in process h5, and a crossing thread between the previously designated pattern and the current graphic component is determined, and its needle drop point is designated by the tablet and added to the compressed data. When these specifications are completed, the pattern will be drawn within the outline on the display screen, allowing you to check how it looks when it is sewn.

作業者は以上の操作を繰り返すことによって、刺繍模様
の美的品質を向上させながら容易に刺繍データを作成す
ることが可能となる。
By repeating the above operations, the operator can easily create embroidery data while improving the aesthetic quality of the embroidery pattern.

第10図(e)の例では葉の部分を方向の異なる2種類
の直線で縫い、葉脈の部分を3重縫いで刺繍し、葉の付
は根はジグザグで縫うように指示している。また枝はク
ロスステッチの刺繍で埋めている。
In the example shown in Fig. 10(e), the instructions are to sew the leaf part with two types of straight lines in different directions, embroidery the leaf vein part with triple stitches, and embroidery the base of the leaf with a zigzag stitch. The branches are also filled with cross-stitch embroidery.

この様にして作業者によって指定された柄の情報(ピッ
チ、方向、運針データ)は各図形成分のラベル番号、輪
郭線の圧縮データと共に第11図に示す刺繍データ・フ
ォーマットで作業用メモリ20の圧縮データ用の格納エ
リアCに登録され、そしてフロッピー・ディスクFDに
記録される。
The pattern information (pitch, direction, hand movement data) specified by the operator in this way is stored in the working memory 20 in the embroidery data format shown in FIG. It is registered in the storage area C for compressed data and recorded on the floppy disk FD.

また、前記したように作成済みの刺繍データで直ちに刺
繍する場合は、刺繍機12をLANコントローラ11を
介してネットワークに接続しておき刺繍データを直接転
送して行う。
Further, as described above, when embroidering is to be performed immediately using embroidery data that has already been created, the embroidery machine 12 is connected to the network via the LAN controller 11 and the embroidery data is directly transferred.

(効果) 以上のように本発明によれば自動刺繍機の刺繍データの
作成に当り、刺繍模様の原画をカメラまたはイメージ・
スキャナ等の画像入力装置によって入力し、機械的にで
きるその後の処理(輪郭線の抽出、データの圧縮等)は
、すべてコンピュータに自動的に処理させデータの作成
に関し、美的感覚が必要とされる図形の修正等及び柄の
設定をデータ作成者に関与させ、更にこれらの図形の修
正等及び柄の設定には表示装置を用い、図形を表示させ
ながら必要とされる図形の修正等をし、また柄の設定は
輪郭線内に予め作成された柄の基本パターンの中から選
択した柄を表示させながら設定する方式を採用すること
により、実際に刺繍を行う前に縫い上り感を表示画面上
で即座に確認できるので、美的品質の高い刺繍模様を縫
い上げるための刺繍データを短時間で容易に作成するこ
とができるという効果が得られる。
(Effects) As described above, according to the present invention, when creating embroidery data for an automatic embroidery machine, an original image of an embroidery pattern is captured using a camera or an image.
An aesthetic sense is required when creating data that is input using an image input device such as a scanner, and all subsequent processing that can be performed mechanically (extraction of contour lines, compression of data, etc.) is automatically processed by a computer. The data creator is involved in modifying figures and setting patterns, and furthermore, a display device is used for modifying figures and setting patterns, and necessary corrections to figures are made while displaying the figures. In addition, by adopting a method of setting the pattern while displaying the pattern selected from among the basic patterns created in advance within the outline, you can see how it will look when it is sewn on the screen before actually embroidering. Since the embroidery data can be checked immediately, it is possible to easily create embroidery data for sewing embroidery patterns of high aesthetic quality in a short time.

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

図面は本発明の実施例に係り、第1図は刺繍データ作成
装置の構成を示すブロック図、第2図は刺繍データ作成
の処理手順のプログラムに対応するフローチャート、第
3図から第9図は第2図の各プログラムモジュールに対
応するサブルーチンフローチャートで、第3図は第2図
のモジュールbに対応し、第4図は第、2図のモジュー
ルCに対応し、第5図は第2図のモジュールdに対応し
、第6図は第2図のモジュールeに対応し、第7図は第
2図のモジュールrに対応し、第8図は第2図のモジュ
ールgに対応し、第9図は第2図のモジュールhに対応
する。第1θ図は画像処理の過程を示す図で(a)は刺
繍模様の原画、(b)は原画の輪郭線を表示、(c) 
、 (d)は作業者による図形の修正例、(e)は作成
された刺繍データを表示装置にて表示させた図を示す。 第11図は一図形成分に対する刺繍データのフォーマッ
トを示す図、第12図、第13図はラベリング処理を説
明するための図、第14図(a) 、 (b)は単位ベ
クトルの方向と距離の関係を示した図、第15図、第1
6図は特徴点抽出処理を説明するための直線近似の例を
示す図、第1表はベクトルの偏向角度とベクトル値との
関係を示す表である。 1は画像入力装置、3はディジタル化手段、bは輪郭線
の抽出手段、blは微分処理手段、eは各図形の特徴点
を抽出する手段、fは図形成分の削除手段、gは輪郭線
を分割する手段、hは柄指定手段である。
The drawings relate to embodiments of the present invention; FIG. 1 is a block diagram showing the configuration of an embroidery data creation device, FIG. 2 is a flowchart corresponding to a program of processing steps for creating embroidery data, and FIGS. 3 to 9 are 3 is a subroutine flowchart corresponding to each program module in FIG. 2, FIG. 3 corresponds to module b in FIG. 2, FIG. 4 corresponds to module C in FIG. 6 corresponds to module e in FIG. 2, FIG. 7 corresponds to module r in FIG. 2, FIG. 8 corresponds to module g in FIG. FIG. 9 corresponds to module h in FIG. Figure 1θ is a diagram showing the process of image processing, where (a) shows the original image of the embroidery pattern, (b) shows the outline of the original image, and (c)
, (d) shows an example of the modification of the figure by the operator, and (e) shows the created embroidery data displayed on the display device. Figure 11 is a diagram showing the format of embroidery data for one figure component, Figures 12 and 13 are diagrams for explaining labeling processing, and Figures 14 (a) and (b) are directions and distances of unit vectors. Figure 15 shows the relationship between
FIG. 6 is a diagram showing an example of linear approximation for explaining feature point extraction processing, and Table 1 is a table showing the relationship between vector deflection angle and vector value. 1 is an image input device, 3 is a digitizing means, b is a contour extraction means, bl is a differential processing means, e is a means for extracting feature points of each figure, f is a figure component deletion means, g is a contour line , and h is a pattern designation means.

Claims (1)

【特許請求の範囲】 I 、刺繍機の刺繍データ作成装置において、刺繍模様
の原画を映像信号に変換する画像入力装置と、前記映像
信号を濃度値に応じて複数の階調のディジタル値に変換
するディジタル化手段と、前記ディジタル値から微分処
理手段により該ディジタル値が急激に変化するエッジ部
分を検出し、エッジ部分のエッジ強度に基づき各座標を
2値に変換して図形成分としての輪郭線データを取り出
す輪郭線の抽出手段と、前記図形成分の輪郭線を複数の
直線の集合により近似させ輪郭線のデータを圧縮して新
たな図形成分を作成する各図形の特徴点を抽出する手段
と、前記新たな図形成分の不要部分を取り除くための図
形成分の削除手段と、前記新たな図形成分に必要な線分
を追加し輪郭線を分割する手段と、分割された各図形成
分の内部を縫目で埋めるための運針方法すなわち柄を指
定する柄指定手段とを備え、前記各図形の特徴点を抽出
する手段により得られた圧縮データと柄指定手段により
得られた柄の運針方法を指定する柄データとからなる刺
繍データを生成する刺繍機の刺繍データ作成装置。 II、柄指定手段は柄を形成するための縫目における運針
方法のデータ作成と、その縫目列のピッチおよびその縫
目列の傾きを指定することを特徴とする請求項 I に記
載の刺繍機の刺繍データ作成装置。 III、柄指定手段は複数色の糸で刺繍するための色デー
タの付加を指定することを特徴とする請求項 I または
請求項IIに記載の刺繍機の刺繍データ作成装置。
[Claims] I. An embroidery data creation device for an embroidery machine, comprising: an image input device for converting an original image of an embroidery pattern into a video signal; and converting the video signal into digital values of a plurality of gradations according to density values. and a differential processing means to detect an edge portion where the digital value changes rapidly from the digital value, convert each coordinate into a binary value based on the edge strength of the edge portion, and generate a contour line as a figure component. a contour extraction means for extracting data; and a means for extracting feature points of each figure to approximate the contour line of the figure component by a set of a plurality of straight lines and compress the contour data to create a new figure component. , a figure part deletion means for removing unnecessary parts of the new figure part, a means for adding necessary line segments to the new figure part and dividing the contour line, and an inside of each divided figure part. A pattern specifying means for specifying a needle movement method, that is, a pattern, for filling in the stitches, and specifying the compressed data obtained by the means for extracting feature points of each figure and the needle movement method of the pattern obtained by the pattern specification means. An embroidery data generation device for an embroidery machine that generates embroidery data consisting of pattern data. II. The embroidery according to claim I, wherein the pattern specifying means creates data on a needle movement method in stitches for forming the pattern, and specifies the pitch of the stitch row and the inclination of the stitch row. Machine embroidery data creation device. III. The embroidery data creation device for an embroidery machine according to claim I or claim II, wherein the pattern designation means designates addition of color data for embroidering with threads of multiple colors.
JP22460088A 1988-09-09 1988-09-09 Embroidery data forming device for embroidery machine Pending JPH0274284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22460088A JPH0274284A (en) 1988-09-09 1988-09-09 Embroidery data forming device for embroidery machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22460088A JPH0274284A (en) 1988-09-09 1988-09-09 Embroidery data forming device for embroidery machine

Publications (1)

Publication Number Publication Date
JPH0274284A true JPH0274284A (en) 1990-03-14

Family

ID=16816266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22460088A Pending JPH0274284A (en) 1988-09-09 1988-09-09 Embroidery data forming device for embroidery machine

Country Status (1)

Country Link
JP (1) JPH0274284A (en)

Similar Documents

Publication Publication Date Title
JP3908804B2 (en) Embroidery data processing device
US6629015B2 (en) Embroidery data generating apparatus
JP3552334B2 (en) Embroidery data processing device
JPH10118367A (en) Image data processing apparatus and embroidey data processing apparatus
US20110160894A1 (en) Embroidery data generating apparatus and non-transitory computer-readable medium storing embroidery data generating program
US6895787B2 (en) Knit design method and apparatus
JPH0844848A (en) Image processor and embroidery data preparing device
KR20030088862A (en) Apparatus for producing sewing data and program for producing sewing data
US5740056A (en) Method and device for producing embroidery data for a household sewing machine
JP2010213748A (en) Embroidery data generating device, embroidery data generating program, and computer-readable medium storing embroidery data generating program
US11851793B2 (en) Non-transitory computer-readable medium and method of generating embroidery data
US6407745B1 (en) Device, method and storage medium for processing image data and creating embroidery data
JPH1176658A (en) Embroidery data processor, its sewing machine and recording medium
JP3332276B2 (en) Embroidery data creation device
JPH0274284A (en) Embroidery data forming device for embroidery machine
JP2720807B2 (en) Scenario editing device
US9080268B2 (en) Device and non-transitory computer-readable medium
JPH0838758A (en) Image pattern processing method and device thereof
JPH11123289A (en) Embroidery data processing device, embroidering machine, and recording medium
JPH11114260A (en) Embroidery data processing apparatus and recording medium
JPS62170287A (en) Apparatus for forming stitch data of embroidering machine
JPH07136361A (en) Embroidery data generating device
JP3741381B2 (en) Embroidery data creation device
JPH03295587A (en) Method and device for generating stitch data of embroidery machine
JPH11169568A (en) Image data processing device, embroidery data processing device, recording medium recording image data processing program, and recording medium recording embroidery data processing program