JPH02157905A - Picture digitizing method - Google Patents

Picture digitizing method

Info

Publication number
JPH02157905A
JPH02157905A JP31100988A JP31100988A JPH02157905A JP H02157905 A JPH02157905 A JP H02157905A JP 31100988 A JP31100988 A JP 31100988A JP 31100988 A JP31100988 A JP 31100988A JP H02157905 A JPH02157905 A JP H02157905A
Authority
JP
Japan
Prior art keywords
shape
digitizing
screen
dot data
enlarged
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
JP31100988A
Other languages
Japanese (ja)
Inventor
Maki Seki
関 真樹
Takashi Takegahara
竹ケ原 隆史
Akira Kajitani
彰 梶谷
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP31100988A priority Critical patent/JPH02157905A/en
Publication of JPH02157905A publication Critical patent/JPH02157905A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To exactly execute digitizing even to the part of a fine shape by executing enlarged display to the detail part of the shape which is plotted on a display screen, executing the digitizing to the dot data of the shape, for which the enlarged display is executed, and exactly defining the shape. CONSTITUTION:The shape, which is plotted on a drawing by an image input device 9 such as an image scanner etc., is read and this shape is stored as the dot data to a storage memory 4. Then, these dot data are plotted on the display screen. The digitizing is executed to these plotted dot data by using a graphic cursor 8c, etc., and the definition of the shape is executed. To the detail part of the fine shape, the detail part is enlarged by utilizing drawing enlarge function, which is provided in an automatic programming device, and the digitizing is executed to the enlarged shape. Thus, the fine part can be exactly defined as well.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、自動プログラミングに係り、特に、イメージ
入力された形状のドツトデータをデジタイジングして形
状を定義してパートプログラムを作成する方法に関する
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to automatic programming, and more particularly to a method for creating a part program by digitizing dot data of a shape input as an image to define the shape.

従来の技術 NCデータを作成する自動プログラミングシステムにお
いては、まず、間中な記号を用いて点。
Conventional technology In an automatic programming system for creating NC data, points are first created using intermediate symbols.

直線1円弧を定義すると共に(図形定義)、これら定義
された点、直線1円弧を用いて輪郭形状を定義し、該輪
郭形状に沿って工具通路を定義して(運動文定義)、自
動プログラミング言語によるパートプログラムを作成し
、その後、該パートプログラムをNC装置が実行できる
形式のNCデータに変換するものである。
Define one arc of a straight line (shape definition), define a contour shape using these defined points and one arc of a straight line, define a tool path along the contour shape (motion statement definition), and perform automatic programming. A part program is created in a language, and then the part program is converted into NC data in a format that can be executed by an NC device.

上記製品の輪郭形状を定義しパートプログラムを得る際
、フリーハンドで書かれた形状の図面や寸法の入ってい
ない形状の図面から形状を定義する場合には、従来、原
稿の図面をタブレットに据えつけ、図面に描画された形
状をスタイラスペン等でなぞり、デジタイジングするこ
とによって形状を定義する方法が採用されていた。
When defining the outline shape of the above product and obtaining a part program, when defining the shape from a freehand drawing of the shape or a drawing of the shape without dimensions, conventionally, the original drawing was placed on a tablet. A method was adopted in which the shape was defined by marking the drawing, tracing the shape drawn on the drawing with a stylus pen, etc., and digitizing it.

発明が解決しようとする課題 上述したタブレットに図面を据えつけ、図面に描画され
ている形状をスタイラスペン等でデジタイジングする従
来の方法では、形状の細かな部分を正確にデジタイジン
グすることができず、誤差の少ない正確な製品形状を定
義することが難しいという欠点がある。
Problems to be Solved by the Invention With the conventional method of mounting a drawing on the tablet mentioned above and digitizing the shape drawn on the drawing with a stylus pen, etc., it is not possible to accurately digitize the fine details of the shape. First, it has the disadvantage that it is difficult to define an accurate product shape with few errors.

そこで、本発明の目的は、フリーハンドで書かれた形状
や寸法の入っていない形状が描画された図面からその形
状を定義する際に、形状の細かな詳細部分に対しても正
確にデジタイジングできる画面デジタイジング方法を提
供することにある。
Therefore, an object of the present invention is to accurately digitize even the smallest details of the shape when defining the shape from a drawing in which the shape is drawn freehand or without dimensions. Our goal is to provide a screen digitizing method that is possible.

課題を解決するための手段 本発明は、図面に描画されている形状をイメージ入力装
置で読取り、該形状をドツトデータでディスプレイ画面
に描画し、描画されたドツトデータをデジタイジングす
ることによって形状を定義すると共に、ディスプレイ画
面に描画された形状の詳細部分は拡大表示させ、拡大表
示された形状のドツトデータに対しデジタイジングを行
うことにより上記課題を解決した。
Means for Solving the Problems The present invention reads a shape drawn on a drawing with an image input device, draws the shape as dot data on a display screen, and digitizes the drawn dot data to create the shape. The above problem was solved by defining, enlarging and displaying the detailed portion of the shape drawn on the display screen, and performing digitizing on the dot data of the enlarged shape.

作  用 イメージスキャナ等のイメージ入力装置によって図面に
描画されている形状を読取り、この形状をドツトデータ
として記憶すると共に、ディスプレイ画面にこのドツト
データを描画する。そして、この描画されたドツトデー
タに対し、グラフィックカーソル等を用いてデジタイジ
ングを行い形状の定義をする。また、形状が細かな詳細
部分に対しては自動プログラミング装置が有する図面拡
大機能を利用して詳細部分を拡大し、拡大された形状に
対してデジタイジングを行う。その結果、細かな部分も
正確に定義できる。
The shape drawn on the drawing is read by an image input device such as an operational image scanner, this shape is stored as dot data, and the dot data is drawn on the display screen. The drawn dot data is then digitized using a graphic cursor or the like to define the shape. Further, for a detailed portion of a fine shape, the detailed portion is enlarged using a drawing enlargement function of the automatic programming device, and digitizing is performed on the enlarged shape. As a result, even the smallest details can be defined accurately.

実施例 第2図は、本発明を実施する自動プログラミング装置の
要部ブロック図である。
Embodiment FIG. 2 is a block diagram of the main parts of an automatic programming device implementing the present invention.

1はプロセッサ、2は制御プログラムが格納されたRO
M、3は定義された図形要素や処理結果を記憶するRA
M、4は作成されたNGデータを記憶するNCデータ記
憶メモリ、5はキーボード、6はディスクコントローラ
、7はグラフィックディスプレイ装M (CRT) 、
8はタブレット装置、9はイメージスキャナ等のイメー
ジ入力装置、FLはフロッピーである。
1 is a processor, 2 is an RO in which a control program is stored
M, 3 is RA that stores defined graphical elements and processing results;
M, 4 is an NC data storage memory for storing created NG data, 5 is a keyboard, 6 is a disk controller, 7 is a graphic display device M (CRT),
8 is a tablet device, 9 is an image input device such as an image scanner, and FL is a floppy disk.

タブレット装置8において、8aはタブレット面、8b
はメニュー表、8Cはタブレットカーソルである。タブ
レット面8aにはメニュー表8bが貼り付けられており
該メニュー表8b1.:aき込まれている所定の項目を
タブレットカーソル8Cでピックすることにより各種項
目やデータを入力できるようになっている。また、タブ
レットカーソル8Cと共に移動するグラフィックカーソ
ルでディスプレイ画面CRT上をピックすることにより
、ピックした位置を入力できるようになっている。
In the tablet device 8, 8a is a tablet surface, 8b
is a menu table, and 8C is a tablet cursor. A menu table 8b is pasted on the tablet surface 8a, and the menu table 8b1. :a Various items and data can be input by picking predetermined items written in with the tablet cursor 8C. Furthermore, by picking on the display screen CRT with a graphic cursor that moves together with the tablet cursor 8C, the picked position can be input.

イメージ入力装置9は、図面より描画されている形状を
読込み、該形状をドツトデータで記憶できるようになっ
ている。
The image input device 9 is capable of reading a drawn shape from a drawing and storing the shape as dot data.

第3図は、タブレット装置8に貼りつけられたメニュー
表8bの本発明と関係する要部のみを図示した説明図で
あり、11はイメージ入力装置9から図面の読込みを開
始させるための項目欄、12は形状のデジタイジング指
令を入力するための項目欄、13.14.15はCRT
画面に描画された図面、即ら、形状を拡大、シフト、復
元を指令するための項目欄であり、16は画面をシフト
するときのシフト方向を指令するための項目欄である。
FIG. 3 is an explanatory diagram showing only the main parts related to the present invention of the menu table 8b pasted on the tablet device 8, and 11 is an item column for starting reading of the drawing from the image input device 9. , 12 is an item column for inputting a shape digitizing command, 13.14.15 is a CRT
This is an item column for instructing enlargement, shifting, and restoration of the drawing drawn on the screen, that is, the shape. Reference numeral 16 is an item column for instructing the shift direction when shifting the screen.

 第1図(a)、(b)は本実施例における画面デジタ
イジング方法の動作処理フローチャートであり、以下、
このフローチャートに従って説明する。
FIGS. 1(a) and 1(b) are operational processing flowcharts of the screen digitizing method in this embodiment.
The explanation will be given according to this flowchart.

なお、RAM3にはフロッピーFLから図形を定義する
ためのシステムブOグラム等が既に記憶されであるもの
とする。
It is assumed that the RAM 3 has already stored a system program for defining figures from the floppy FL.

まず、オペレータはイメージ入力装置9に図面をセット
すると共に、第3図に示すメニュー表8bの中から「図
面読み開始J項目11をタブレットカーソル8Cを用い
てピックする。すると、プロセッサ1は読取り指令をイ
メージ入力装置9に出力し、該指令によりイメージ入力
装置9はセットされた図面を走査し、画面に描画されて
いる形状を読取り、ドツトデータとして内蔵のバッファ
に記憶し、プロセッサ1は該ドツトデータをバッファか
ら読取り、RAM3に格納すると共にCRT7の画面に
ドツトデータを表示し形状を描画する。そこで、オペレ
ータがメニュー表8bの「デジタイジング」項目12を
タブレットカーソル8Cでビックすると、プロセッサ1
は第1図(a)に示す処理を開始し、デジタイジング間
始点の座標値入力要求の設問をCRT画面に表示し、該
開始点が入力されるのを持つ(ステップ81.82)。
First, the operator sets a drawing on the image input device 9, and uses the tablet cursor 8C to pick the "Start drawing reading J" item 11 from the menu table 8b shown in FIG. is output to the image input device 9, and according to the command, the image input device 9 scans the set drawing, reads the shape drawn on the screen, stores it in the built-in buffer as dot data, and the processor 1 scans the set drawing. The data is read from the buffer and stored in the RAM 3, and the dot data is displayed on the screen of the CRT 7 to draw the shape.Therefore, when the operator clicks the "Digitizing" item 12 on the menu table 8b with the tablet cursor 8C, the processor 1
starts the process shown in FIG. 1(a), displays on the CRT screen a question requesting the input of the coordinate values of the starting point during digitizing, and the starting point is input (steps 81 and 82).

オペレータが表示された設問に応じ、タブレットカーソ
ル8Cを操作し、CR7画面上のグラフィックカーソル
を移動させ開始点をビックすると、デジタイジング終了
指令が入力されたか、及び、CRT画面に表示されてい
る線分または円弧がグラフィックカーソルで指定されビ
ックされたか否か監視する(ステップ33.84)。な
お、第1図(a)の70・−チャートにおいては簡単に
図示したが、プロセッサ1は、ステップ83.84の処
理を繰返し行っており、終了指令または線分指°定1円
弧指定が入力されたか否か判断している。
When the operator operates the tablet cursor 8C in response to the displayed question and moves the graphic cursor on the CR7 screen to start the start point, it will check whether the digitizing end command has been input and the line displayed on the CRT screen. It is monitored whether a minute or an arc has been specified with the graphic cursor and has been ticked (step 33.84). Although it is briefly illustrated in the chart 70 in FIG. 1(a), the processor 1 repeatedly performs the processing in steps 83 and 84, and when an end command or line segment designation 1 arc designation is input, We are determining whether or not it was done.

そして、円弧がビックされると、プロセッサ1は円弧の
中間点の座標値入力要求の設問をCRT画面に表示しく
ステップS5)、中間点が入力されるのを持つ(ステッ
プS6)。オペレータはCRT画面にドラ]・データで
描画された形状の中から、円弧の中間点にグラフィック
カーソルを移動させビックする。こうして、中間点が入
力されると、プロセッサ1は終点の座標値入力要求の設
問をCRT画面に表示する(ステップ87)。なお、ス
テップS4で線分がビックされた場合は、上記ステップ
S5.S6の処理を行わず、ステップS7へ移行する。
When the arc is checked, the processor 1 displays on the CRT screen a question requesting input of the coordinate values of the midpoint of the arc (step S5), and the midpoint is input (step S6). The operator moves the graphic cursor to the midpoint of the arc from among the shapes drawn with the data on the CRT screen and jumps. When the intermediate point is thus input, the processor 1 displays a question requesting input of the coordinate value of the end point on the CRT screen (step 87). Note that if the line segment is jumped in step S4, step S5. The process proceeds to step S7 without performing the process of S6.

オペレータが終点を前述同様にビックすると(ステップ
S8)、プロセッサ1は、線分指定であればビックされ
た2点を通る直線を、また、円弧指定であれば、ビック
された3点を通る円を定義し、そのキャノニカルフォー
ムをRAM3内に格納する(ステップ89)。即ち、線
分であれば線分の始点と終点の座標値及び原点からその
線分に垂した法線の単位ベクトルと長さを、円弧であれ
ば円弧の始点と終点の座標値及び円弧の中心座標と半径
を記憶する。そして、ステップ$2でデジタイジングの
開始点としてビックされた座標値とステップS8で終点
としてビックされた座標値が一致するか否か、即ち、デ
ジタイジングが全て終了したか否か判断しくステップ5
10)一致していなければ再びステップS3に戻り、前
回の終点を今回のデジタイジングの始点として前述同様
の処理を行い、順次描画形状をデジタイジングする。こ
うして、ステップS10で開始点と終点の座標値が一致
したと判断されるとデジタイジング処理は終了し、また
、ステップS3で終了指令が入力されたと判断された場
合もデジタイジング処理を終了する。
When the operator checks the end point in the same manner as described above (step S8), the processor 1 generates a straight line passing through the two checked points if a line segment is specified, or a circle passing through the three checked points if an arc is specified. is defined and its canonical form is stored in RAM 3 (step 89). That is, for a line segment, the coordinate values of the starting point and ending point of the line segment, the unit vector and length of the normal line perpendicular to the line segment from the origin, and for an arc, the coordinate values of the starting point and ending point of the arc, and the length of the normal line perpendicular to the line segment from the origin. Memorize center coordinates and radius. Then, in step 5, it is determined whether or not the coordinate value that was jumped as the start point of digitizing in step $2 and the coordinate value that was jumped as the end point in step S8 match, that is, whether the digitizing has been completely completed.
10) If they do not match, the process returns to step S3 again, and the same process as described above is performed using the previous end point as the current digitizing start point, and the drawn shapes are sequentially digitized. In this way, the digitizing process ends when it is determined in step S10 that the coordinate values of the start point and the end point match, and also ends when it is determined that an end command has been input in step S3.

一方、形状の細かい部分を正確に定義したい場合には、
CRT画面に描画された図面を拡大及びシフトさせ十記
デジタイジング処理を行う。即ち、メニュー表8bの「
画面拡大」項目13をタブレットカーソル8Cを用いて
ビックし、拡大させる領域を示す矩形の対角線上の2角
をグラフィックカーソルで指定すると、割込みがかかり
、プロセッサ1は第1図(b)に示すように、画面拡大
の処理を開始し、指定された領域を拡大し、CRT画面
に描画する。また、画面をシフトさせる時も、メニュー
表8bの「画面シフト」項目14をタブレットカーソル
を用いてビックし、シフト方向を矢印を表示した項目1
6の1つを選択してビックすると、画面は指定方向ヘシ
フトする。さらに、拡大させた画面を元の画面に戻すに
は、[画面復元J項目をビックすることによって行われ
る。そして、これら画面拡大9画面シフト、画面復元の
各処理は、第1図(b)に示すように、割込み処理によ
って行われる。具体的処理は既に周知な事項であるので
詳細な説明は省略する。
On the other hand, if you want to accurately define the details of the shape,
The drawing drawn on the CRT screen is enlarged and shifted, and digitizing processing is performed. In other words, "
When you use the tablet cursor 8C to start the "Screen Enlargement" item 13 and specify the two diagonal corners of the rectangle indicating the area to be enlarged using the graphic cursor, an interrupt is generated and the processor 1 displays the screen as shown in FIG. 1(b). Then, screen enlargement processing is started to enlarge the specified area and draw it on the CRT screen. Also, when shifting the screen, use the tablet cursor to jump to "Screen Shift" item 14 on menu table 8b, and select item 1 with an arrow indicating the shift direction.
When you select one of 6 and jump, the screen shifts in the specified direction. Furthermore, to return the enlarged screen to the original screen, click the [Screen Restoration J] item. The screen enlargement, nine-screen shift, and screen restoration processes are performed by interrupt processing, as shown in FIG. 1(b). Since the specific processing is already well known, detailed explanation will be omitted.

こうして、画面拡大2画面シフトを行って形状の細かな
部分を拡大させ、この拡大された画面に対し、前述した
第1図(a)で示す処理を行えば、画面を拡大、シフト
させても座標値は変化しないので、形状を細かくサンプ
リング(ビック)でき、細かな形状を正確にデジタイジ
ングして定義することができる。また、画面を拡大する
ことによって、描画された線幅が大きくなればその線幅
の内輪郭をビックして定義することにより、または、外
輪郭をビックして定義することにより、オペレータが所
望する形状を定義することができる。
In this way, if the screen is enlarged and shifted by two screens to enlarge the detailed parts of the shape, and the process shown in FIG. Since the coordinate values do not change, the shape can be sampled (big) in detail, and detailed shapes can be accurately digitized and defined. In addition, if the drawn line width becomes larger by enlarging the screen, the operator can change the line width as desired by expanding the inner contour of the line width and defining it, or by expanding the outer contour and defining it. Shapes can be defined.

発明の効果 本発明は、フリーハンドで書かれた形状や寸法の入って
いない形状が描画された図面からその形状を定義する際
、イメージ入力装置でその形状を読取り、得られるドツ
トデータをディスプレイ画面に表示し、ディスプレイ画
面に描画された形状に対しデジタイジングを行い、かつ
、形状の細かい部分は画面を拡大して拡大された形状に
対しデジタイジングを行うようにしたから、誤差の少な
い正確な形状定義ができる。その結果、こうして定義さ
れたデータに基づいて、NCデータも容易かつ正確に作
成することができる。
Effects of the Invention The present invention, when defining a shape from a drawing in which a freehand drawn shape or a shape without dimensions is drawn, reads the shape with an image input device and displays the obtained dot data on a display screen. , and digitizing is performed on the shape drawn on the display screen, and the detailed parts of the shape are enlarged on the screen and digitized on the enlarged shape. Shape definition is possible. As a result, NC data can also be easily and accurately created based on the data defined in this way.

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

第1図(a)、(b)は、本発明の一実施例の動作処理
フローチャート、第2図は、同実施例を実施する自動プ
ログラミング装置の要部ブロック図、第3図は、同実施
例におけるタブレット装置に設けたメニュー表の要部説
明図である。 1・・・プロセッサ、2・・・ROM、3・・・RAM
18・・・タブレット装置、8b・・・メニュー表、8
C・・・タブレットカーソル、9・・・イメージ入力装
置。
1(a) and 1(b) are operational processing flowcharts of one embodiment of the present invention, FIG. 2 is a block diagram of main parts of an automatic programming device implementing the same embodiment, and FIG. FIG. 3 is an explanatory diagram of main parts of a menu table provided on the tablet device in the example. 1...Processor, 2...ROM, 3...RAM
18...Tablet device, 8b...Menu table, 8
C...Tablet cursor, 9...Image input device.

Claims (1)

【特許請求の範囲】[Claims] 自動プログラミング装置において、図面に描画されてい
る形状をイメージ入力装置で読取り、該形状をドットデ
ータでディスプレイ画面に描画し、描画されたドットデ
ータをデジタイジングすることによって形状を定義する
と共に、ディスプレイ画面に描画された形状の詳細部分
は拡大表示させ、拡大表示された形状のドットデータに
対しデジタイジングを行って正確に形状を定義するよう
にした画面デジタイジング方法。
In an automatic programming device, a shape drawn on a drawing is read by an image input device, the shape is drawn as dot data on a display screen, the drawn dot data is digitized to define the shape, and the shape is defined on the display screen. A screen digitizing method in which detailed parts of the drawn shape are enlarged and the dot data of the enlarged shape is digitized to accurately define the shape.
JP31100988A 1988-12-10 1988-12-10 Picture digitizing method Pending JPH02157905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31100988A JPH02157905A (en) 1988-12-10 1988-12-10 Picture digitizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31100988A JPH02157905A (en) 1988-12-10 1988-12-10 Picture digitizing method

Publications (1)

Publication Number Publication Date
JPH02157905A true JPH02157905A (en) 1990-06-18

Family

ID=18012025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31100988A Pending JPH02157905A (en) 1988-12-10 1988-12-10 Picture digitizing method

Country Status (1)

Country Link
JP (1) JPH02157905A (en)

Similar Documents

Publication Publication Date Title
JP2589999B2 (en) Graphic input / output device
JPH0355848B2 (en)
EP0550812A1 (en) Precision automatic scrolling for an image display system
US5673067A (en) Information processing apparatus and method
JP3357760B2 (en) Character / graphic input editing device
JPH02157905A (en) Picture digitizing method
JPH08106542A (en) Expanding and display method for graphic
JP2536948B2 (en) Three-point specified circular arc detection method and device
JPH09244858A (en) Control method for window system and information processor
JPH04320579A (en) Image processor
JPH0785132A (en) Graphic processor
JPH06301759A (en) Picture processor
JPH10254675A (en) Data input method and data input device using the method
JPH0520422A (en) Information processor
JP3036813B2 (en) Plotting device
JP2727819B2 (en) CAD / CAM equipment
JP3000749B2 (en) Character editing device
JPH05314269A (en) Graph preparing device
JPH02250178A (en) Graphic generator
JPH05173703A (en) User interface device
JPS6385977A (en) Graphic editing device
JPS63100576A (en) Graph generating method
JPH04359311A (en) Information processor
JPH0546707A (en) Information processor
JPH0475172A (en) Cad system