JP2011053986A - Computing device, computing program, and recording medium recording the program - Google Patents
Computing device, computing program, and recording medium recording the program Download PDFInfo
- Publication number
- JP2011053986A JP2011053986A JP2009203142A JP2009203142A JP2011053986A JP 2011053986 A JP2011053986 A JP 2011053986A JP 2009203142 A JP2009203142 A JP 2009203142A JP 2009203142 A JP2009203142 A JP 2009203142A JP 2011053986 A JP2011053986 A JP 2011053986A
- Authority
- JP
- Japan
- Prior art keywords
- information
- formula
- writing
- mathematical
- unit
- 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
Links
Images
Abstract
Description
本発明は、筆記によって入力された数式に基づく計算を行う計算装置、計算プログラムおよびこれが記録された記録媒体に関する。 The present invention relates to a calculation device that performs a calculation based on a mathematical expression input by writing, a calculation program, and a recording medium on which this is recorded.
第1の従来技術に係る計算装置として、利用者がタッチパネルまたはタブレット等のポインティングデバイスを用いて数式を筆記すれば数字や計算記号を認識し、さらに認識した数字や計算記号を基に数式を認識し、演算する手書き入力式電子卓上計算機が知られる。 As a calculation device according to the first prior art, if a user writes a mathematical expression using a pointing device such as a touch panel or a tablet, the numerical value and the calculation symbol are recognized, and further, the mathematical expression is recognized based on the recognized number and the calculation symbol. In addition, a handwritten input type electronic desk calculator for calculating is known.
前記手書き入力式電子卓上計算機は、利用者が前記ポインティングデバイスを用いて演算させたい通りに筆記すれば自動的に数式の演算を行う。そのため、前記計算装置は、利用者にとって装置に対する入力が簡便な操作で済むという特徴を備えている。例えば、角度30度の正弦関数値を求める場合、一般的な電卓の場合、入力される数値が角度であることを指示する[DEG]キー、角度の数値キー[3]および[0]、さらに関数を示す[sin]キーが押されると結果が得られる。これは、人が通常筆記し、紙や画面等の媒体上で表示される順序に合致した入力方法ではない。しかしながら、前記手書き入力式電子卓上計算機は、利用者がsin30°と数式通りに筆記入力すれば、その筆記入力を自動的に認識し、演算し、結果を得る(たとえば特許文献1参照)。
The handwritten input-type electronic desk calculator automatically calculates mathematical formulas when the user writes as desired using the pointing device. For this reason, the computing device has a feature that a user can input the device with a simple operation. For example, when calculating a sine function value with an angle of 30 degrees, in the case of a general calculator, a [DEG] key for indicating that an input numerical value is an angle, numerical value keys [3] and [0] for an angle, and When a [sin] key indicating a function is pressed, a result is obtained. This is not an input method that matches the order in which a person normally writes and is displayed on a medium such as paper or a screen. However, the handwritten input type electronic desk calculator automatically recognizes and calculates the written input when the user inputs the written value as
前記手書き入力式電子卓上計算機をさらに便利にする工夫を示す第2の従来技術に係る計算装置として、表示された計算結果に対して丸チェックおよび矢印を記入し、これらの記号の意味と配置とから、さらに演算が行われる手書き計算処理装置が知られている。この計算処理装置は、すでに行った演算で得られている結果に利用者が数字や演算記号を書き加えると、書き加えられた数字や演算記号を認識し、指定された演算を行う(たとえば特許文献2参照)。 As a calculation device according to the second prior art showing a device for making the handwriting input type electronic desk calculator more convenient, a circle check and an arrow are entered for the displayed calculation result, and the meaning and arrangement of these symbols. Therefore, a handwritten calculation processing device that performs further calculation is known. When a user adds a number or an operation symbol to a result obtained by an operation already performed, this calculation processing device recognizes the added number or operation symbol and performs a specified operation (for example, patent Reference 2).
第1の従来技術では、計算を表す数式を完結させる必要があるので、数式の一部を他の計算に利用する場合には、計算に利用したい計算を完結させて筆記する必要があり、すでに筆記された数式の一部のみを他の計算に利用することができないという問題点がある。 In the first conventional technique, it is necessary to complete a mathematical expression representing a calculation. Therefore, when a part of the mathematical expression is used for another calculation, it is necessary to complete the calculation to be used for the calculation and write it. There is a problem that only a part of the written mathematical formula cannot be used for other calculations.
第2の従来技術では、計算結果をさらに他の数式による計算に利用することはできるけれども、第2の従来技術でも、すでに筆記された数式の一部のみを他の計算に利用することができないという問題点がある。したがって、数式を筆記する手間を自由に省略することができないという問題点がある。 In the second conventional technique, the calculation result can be used for calculation by another mathematical expression, but even in the second conventional technique, only a part of the mathematical expression already written cannot be used for another calculation. There is a problem. Therefore, there is a problem that the trouble of writing the mathematical formula cannot be omitted freely.
本発明の目的は、すでに筆記した数式の一部のみを他の計算に利用し、数式を筆記する手間を省略することができ、利用者にとって演算にかかる操作の負担を軽減できる計算装置、計算プログラムおよびこれが記録された記録媒体を提供することである。 An object of the present invention is to use only a part of a mathematical formula that has already been written for other calculations, to save the trouble of writing the mathematical formula, and to reduce the burden of the operation for the user. It is to provide a program and a recording medium on which the program is recorded.
本発明は、筆記によって入力を行うための筆記入力手段を有する入力部であって、前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部と、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報を、数式情報として認識する数式認識部と、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部と、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部と、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部と、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部と、
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部とを含むことを特徴とする計算装置である。
The present invention is an input unit having a writing input unit for performing input by writing, wherein the writing input unit detects information on the position of one or more parts to which an external force is applied by writing as writing information. ,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying, and a display unit for displaying the mathematical formula information on the display surface;
An area recognition unit for recognizing a handwritten figure gesture for designating an area on the display surface as the area designation information among the writing information;
An operation recognizing unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information;
A post-operation formula generation unit that generates post-operation formula information representing a formula reflecting the operation based on the formula information and the operation information;
And a calculation unit that, when the post-operation formula generation unit generates post-operation formula information, performs a calculation based on a formula represented by the post-operation formula information and outputs a calculation result. .
また本発明は、前記操作情報は、代入、置換、移動および削除のいずれか1つを意味する情報であることを特徴とする。 In the invention, it is preferable that the operation information is information meaning any one of substitution, replacement, movement, and deletion.
また本発明は、前記領域指定情報によって指定される領域に表示される数式情報を記憶する記憶部であって、
前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部をさらに含むことを特徴とする。
Further, the present invention is a storage unit for storing mathematical formula information displayed in an area designated by the area designation information,
When the operation information is information meaning assignment to a variable, the information further includes a storage unit that stores the information of the variable and mathematical expression information representing the mathematical expression assigned to the variable in association with each other, To do.
また本発明は、前記表示部は、前記入力部に対する予め定める操作に応じて、前記記憶部に記憶される数式情報の少なくとも一部を表示することを特徴とする。 Further, the present invention is characterized in that the display unit displays at least a part of mathematical formula information stored in the storage unit in response to a predetermined operation on the input unit.
また本発明は、コンピュータを、筆記によって入力を行うための筆記入力手段を有する入力部であって、
前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報を、数式情報として認識する数式認識部、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部、および
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部として機能させることを特徴とする計算プログラムである。
The present invention is an input unit having a writing input means for inputting a computer by writing,
The writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying is formed, and the display unit displays the mathematical formula information on the display surface.
An area recognition unit for recognizing handwritten graphic gestures for designating an area on the display surface as area designation information among the writing information,
An operation recognition unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information.
Based on the formula information and the operation information, a post-operation formula generation unit that generates post-operation formula information that represents a formula reflecting the operation, and when the post-operation formula generation unit generates post-operation formula information A calculation program that functions as a calculation unit that performs a calculation based on a formula represented by the post-operation formula information and outputs a calculation result.
また本発明は、前記計算プログラムが、コンピュータに読取り可能に記録されることを特徴とする記録媒体である。 The present invention is also a recording medium in which the calculation program is recorded in a computer-readable manner.
本発明によれば、筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出する。数式認識部は、前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を数式筆記情報を数式情報として認識する。領域認識部は、表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する。操作認識部は、操作を表す手書き操作ジェスチャを、操作情報として認識する。操作後数式生成部は、前記操作が反映された数式を表わす操作後数式情報を生成し、演算部は、操作後数式生成部が操作後数式情報を生成したときに、操作後数式情報が表わす数式に基づいて演算を行い、演算結果を出力する。 According to the present invention, the writing input means detects information on the position of one or more parts to which an external force is applied by writing as writing information. The mathematical expression recognizing unit recognizes the mathematical expression as mathematical expression information among the written information input by writing using the writing input means. The area recognition unit recognizes a handwritten graphic gesture that specifies an area on the display surface as area specifying information. The operation recognition unit recognizes a handwriting operation gesture representing an operation as operation information. The post-operation formula generation unit generates post-operation formula information that represents the formula reflecting the operation, and the calculation unit represents the post-operation formula information when the post-operation formula generation unit generates the post-operation formula information. Calculation is performed based on the mathematical formula, and the calculation result is output.
これによって、利用者は、筆記入力手段を用いて演算の数式を筆記し入力できる。また筆記情報によって操作の対象となる領域を指定し、指定された領域に表示される数式情報に対する操作を筆記によって入力することができる。したがって指定された領域に表示される数式を、指定された領域外に表示される数式と区別して処理することができる。これによって、すでに筆記した数式の一部のみを他の計算に利用することができる。このように数式に対する演算操作を簡単かつ容易にして、入力に要する利用者の手間を省き労力を軽減することができる。 Thereby, the user can write and input the mathematical expression of the calculation using the writing input means. In addition, an area to be operated can be specified by writing information, and an operation for mathematical expression information displayed in the specified area can be input by writing. Therefore, the mathematical expression displayed in the designated area can be processed separately from the mathematical expression displayed outside the designated area. As a result, only a part of the mathematical formula already written can be used for other calculations. In this way, it is possible to simplify and easily perform arithmetic operations on mathematical formulas, thereby saving the labor of the user required for input and reducing labor.
また本発明によれば、操作情報は、代入、移動、置換えおよび削除のいずれか一つを意味する情報である。これによって、利用者は、代入、移動、置換えおよび削除のいずれか1つを意味する操作を行うことができる。したがって、すでに入力した数式に対する変更を行うことができる。これによって、数式を完成した状態で入力しなくても、すでに筆記によって入力した数式に対して操作を行うことによって、数式を完成させることができる。したがって、数式の筆記の手間を節減可能となり、利用者にとっての操作性を向上することができる。 According to the present invention, the operation information is information meaning any one of substitution, movement, replacement, and deletion. As a result, the user can perform an operation meaning any one of substitution, movement, replacement, and deletion. Therefore, it is possible to make a change to the mathematical formula already input. Thus, even if the mathematical formula is not input in a completed state, the mathematical formula can be completed by performing an operation on the mathematical formula that has already been written. Therefore, it is possible to save the trouble of writing the mathematical formula, and the operability for the user can be improved.
また本発明によれば、記憶部は、領域指定情報によって指定される領域に表示される数式情報を記憶し、操作情報が、変数に対する代入を意味する情報である場合には、さらに前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する。これによって、利用者は、一度入力された数式を変数に代入する操作を行えば、この操作の後、変数を入力することによって、変数に代入された数式情報を、利用することができるようになる。これによって利用者は、一度入力した数式の再入力を省略することができる。また複雑な数式を変数に代入しておけば、変数を筆記する入力によって複雑な数式に対して入力を簡単化することができる。 According to the invention, the storage unit stores mathematical formula information displayed in an area designated by the area designation information, and when the operation information is information meaning substitution for a variable, Information and mathematical formula information representing the mathematical formula assigned to this variable are stored in association with each other. As a result, if the user performs an operation of assigning a mathematical formula once input to a variable, the mathematical formula information assigned to the variable can be used by inputting the variable after this operation. Become. As a result, the user can omit re-entry of the mathematical expression once entered. Moreover, if a complicated mathematical expression is substituted into a variable, the input to the complicated mathematical expression can be simplified by inputting the variable.
また本発明によれば、表示部は、入力部に対する予め定める操作に応じて、記憶部に記憶される数式情報の少なくとも一部を表示する。これによって、利用者がすでに入力した数式の一部を忘れた場合でも、記憶部に記憶される数式情報を目視確認することができるとともに、計算装置に計算を続行させることができる。 According to the invention, the display unit displays at least a part of the mathematical formula information stored in the storage unit in response to a predetermined operation on the input unit. Thereby, even when the user forgets a part of the mathematical formula already input, the mathematical formula information stored in the storage unit can be visually confirmed, and the calculation can be continued in the calculation device.
また本発明によれば、計算プログラムは、コンピュータを、入力部、数式認識部、表示部、領域認識部、操作認識部、操作後数式生成部、および演算部として機能させる。これによって、コンピュータを、計算装置として機能させることができる。 According to the invention, the calculation program causes the computer to function as an input unit, a formula recognition unit, a display unit, a region recognition unit, an operation recognition unit, a post-operation formula generation unit, and a calculation unit. As a result, the computer can function as a computing device.
また本発明によれば、前記計算プログラムが、コンピュータに読取り可能に、記録される。したがって、計算プログラムを、コンピュータに読取り可能な記録媒体として提供できる。 According to the invention, the calculation program is recorded so as to be readable by a computer. Therefore, the calculation program can be provided as a computer-readable recording medium.
以下、図面を参照しながら本発明を実施するための形態について説明する。以下に示す実施形態は、本発明に係る技術を具体化するために例示するものであり、本発明の技術的範囲を限定するものではない。本発明に係る技術内容は、特許請求の範囲に記載された技術的範囲内において、種々の変更を加えることが可能である。以下の説明は、計算装置1、計算プログラムおよびこれが記録された記録媒体についての説明をも含む。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. The embodiments described below are illustrated for embodying the technology according to the present invention, and do not limit the technical scope of the present invention. The technical contents according to the present invention can be variously modified within the technical scope described in the claims. The following description also includes descriptions of the
図1は、本発明の一実施形態である計算装置1の構成を表すブロック図である。本実施形態において計算装置1は、筆記によって入力された数式に基づく計算を行う装置である。本実施形態においては、等号および不等号のいずれか1つを含む数式だけでなく、等号および不等号を含まない1または複数の項のみの式をも、「数式」に含むものとする。したがって数式が、単一の数値のみを指す場合をも含む。
FIG. 1 is a block diagram showing a configuration of a
計算装置1は、入力部12と、数式認識部13と、表示部14と、領域認識部15と、操作認識部16と、操作後数式生成部17と、演算部18とを含んで構成される。入力部12は、筆記によって入力を行うための筆記入力手段120を有する。筆記入力手段120は、筆記によって外力が付与された1または複数の部位の位置の情報を検出する。外力が付与される位置が変化するときには、外力が付与される位置の変化が表す軌跡の情報を、筆記情報として検出する。入力部12は、筆記入力手段120による検出結果を出力する。数式認識部13は、筆記入力手段120を用いて筆記によって入力された筆記情報のうち、数式を表す数式筆記情報Gfを、数式情報として認識する。
The
本実施形態においては、数式認識部13は、文字認識手段121とは異なる機能を有し、数式認識部13は数式筆記情報Gfの認識を行い、文字の認識は、筆記入力手段12の文字認識手段121で行われるものとした。ただし他の実施形態においては、数式認識部13は、文字の認識および文字の組合わせによって表される数式の認識、両方を認識を行う構成とすることも可能である。表示部14には、表示を行う表示面が形成され、表示部14は、数式情報を表示面に表示する。表示部14の表示面は、具体的に本実施形態では、後述する表示画面30である。
In the present embodiment, the mathematical
領域認識部15は、筆記情報のうち手書き図形ジェスチャGrを領域指定情報として認識する。手書き図形ジェスチャGrは、表示面上の領域を指定する。操作認識部16は、筆記情報のうち、手書き操作ジェスチャGopを、操作情報として認識する。手書き操作ジェスチャGopは、領域指定情報によって指定される表示面上の領域に表示される数式情報に対する操作を表す。操作後数式生成部17は、数式情報および操作情報に基づいて、操作後数式情報Fpを生成する。操作後数式情報Fpは、操作が反映された数式を表す。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表す数式に基づいて演算を行い、演算結果を出力する。具体的には演算部18は、操作後数式生成部17が操作後数式を生成したときに、操作後数式情報Fpが表す数式に基づいて演算を行い、演算結果を出力する。
The
「演算を行う」とは、「式の値を算出すること」をも、「文字を含んだまま解を求めること」をも、「簡単な表現形式の数式に変換すること」をも、さらに「数式が表す関数を図形情報として求めること」をも含む。第1実施形態では「演算」について、式の値を算出する場合を例示するけれども、他の実施形態においては、これに限定するものではない。筆記による入力に対して数式認識、領域認識および操作認識が行うことができるならば、その演算内容については、規定しない。 “Calculate” means “to calculate the value of an expression”, “to find a solution with characters included”, “to convert it into a simple expression”, It also includes “obtaining a function represented by a mathematical expression as graphic information”. In the first embodiment, the case of calculating the value of an expression for “calculation” is illustrated, but in other embodiments, the value is not limited to this. If mathematical expression recognition, area recognition, and operation recognition can be performed on a written input, the calculation contents are not specified.
図1に示すように、具体的に計算装置1は、制御部11、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、演算部18、および記憶部19の各部を含んで構成される。計算装置1のうち、制御部11は、中央処理演算装置(Central Processing Unit, 略称「CPU」)を含んで構成される。
As shown in FIG. 1, specifically, the
制御部11には、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、演算部18、および記憶部19がバス等によって、接続されている。
An input unit 12, a mathematical
筆記入力手段120は、透明なシート状部品を含み、透明なシート状部品は、表示部14の表示面に重ねて配置される。またシート状部品は、筆記による押圧に応じて押圧された位置を検出する。表示部14は、押圧された位置に対してシート状部品の厚み方向に重なる表示面の位置に、シート状部品による検出結果に応じた表示を行う。これによって、筆記動作を確認しながら入力を行うことができる。したがって、紙面に対して記入するときと同様の操作性を実現することができる。
The writing
入力部12は、筆記入力手段120と、文字認識手段121とを含んで構成される。筆記入力手段120は、利用者が筆記によって入力を行うための手段である。筆記入力手段120は、利用者インタフェース機能を備え、手書き入力できるタッチパネル、タブレットおよびスタイラスペン等の、既に実用化され公知である手書き入力のための入力手段を含んでいる。本実施形態では、従来の入力手段であるキーは、入力部12に含まれていないものとしている。ただし他の実施形態では、キーを設けて、たとえば[=]キーが押されることによって演算が実施され、結果が表示されるようにすることもでき、よく四則演算に使われる[+]、[−]、[*]および[/]キーで入力可能な構成とすることもできる。
The input unit 12 includes a writing
筆記入力手段120は、利用者による筆記情報を検出する。文字認識手段121は、筆記入力手段120が出力する時系列の座標データから利用者が筆記した文字および数式の軌跡を検出し、それを文字として認識し、一時記憶する。入力部12は、制御部11の求めに応じて該軌跡に応じた時系列の座標データを出力する。
The writing
数式認識部13は、筆記入力手段120を用いて筆記によって入力された筆記情報のうち、数式を表わす数式筆記情報Gfを、文字認識手段121から得られる文字認識結果である文字と文字間の位置関係の情報とを用いて数式として認識し、数式情報を生成する。ここで、計算装置1は、数式を扱うので、アルファベット等の「文字」の他に、数字、四則演算記号、微分および積分等の「数学記号」等およびsin、log等「文字」から成る関数等、多種多様な「文字」や「記号」を扱う。これらを総称して「文字」という言葉を用いる。
The mathematical
表示部14は、数式筆記情報Gfを表示する。数式認識部13が数式筆記情報Gfに基づいて数式情報を認識すると、表示部14は、数式筆記情報Gfの表示を消去した後、数式認識部13が認識した数式情報を活字によって表示する。これによって、筆記によって入力された数式を、活字によって確認することができる。したがって、筆記によって入力した数式に誤記があったり、数式認識部13による手書き数式に対する認識に誤りがあったりしても、確認の上、修正することが可能となる。
The
表示部14は、表示面を形成して、数式情報を表示面に表示する。表示部14で用いられる表示媒体は、現在では小型の液晶等が採用される。表示部14は、液晶式に限定されることはなく、有機エレクトロルミネッセンス(EL)式のものであってもよい。表示部14および筆記入力手段120は、利用者にとって一体となって見える装置である。計算装置1の表示出力は、表示部14の表示媒体上に表示され、利用者が表示面上にスタイラスペン等を用いて数式および後述するジェスチャを書けば、筆記入力手段120によって書かれた情報が読み取られる座標が検出される。
The
領域認識部15は、利用者によって筆記された手書き図形ジェスチャGrを解析して手書き図形ジェスチャGrとして認識し、手書き図形ジェスチャGrに外接する矩形座標を算出する。
The
操作認識部16は、筆記情報のうち、領域指定情報によって指定される表示面上の領域に表示される数式情報に対する操作を表わす手書き操作ジェスチャGopを操作情報として認識する。本実施形態において操作情報は、代入、置換、移動および削除のいずれか1つを意味する情報である。領域指定情報によって指定される表示面上の領域に表示される数式情報を「内部数式情報」といい、領域指定情報によって指定される領域外に表示される数式情報を「外部数式情報」という。「代入」は、変数の中身を、特定の数値または数式に設定することを意味するものとする。共通の変数を含む複数の数式において、1つの式における変数の中身を他の数式に代入することは、数学的な「代入」または「式への代入」に相当するけれども、これについては「関係付け」と称することがある。
The
操作後数式生成部17は、数式情報および領域指定情報に基づいて、操作が反映された数式を表わす操作後数式情報Fpを生成する。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表わす数式に基づいて演算を行い、演算結果を出力する。以上の各部ともデータ授受のために一時的にデータを保存するバッファを含んでいる。これを内部バッファと称する。構成ブロック図においては、内部バッファの図示を省略する。
The post-operation
また、制御部11は、手書き入力を処理するための制御の手順と後述する制御フラグとの関係を予め定めるテーブルTbとして有している。このテーブルを「機能テーブル」(Tb)と称する。機能テーブルTbの一例は、後述する図7に示す。
The
本実施形態において、制御の中で読み書きの記憶として用いられる情報を「ファイル」と呼ぶ。また、ファイルのなかで制御に用いられるオン/オフ情報を「制御フラグ」と呼ぶ。 In the present embodiment, information used as read / write storage in the control is referred to as a “file”. In addition, on / off information used for control in a file is referred to as a “control flag”.
本実施形態において「筆記情報」とは、利用者による筆記によって表示面上に外力が付与された部位の位置の情報およびその位置の変化が表す軌跡の情報をいう。本実施形態において、筆記情報のことを単に「ジェスチャ」と称することもある。筆記情報には、文字によって数式を表す数式筆記情報と、操作する領域を指定する手書き図形ジェスチャと、指定された領域の数式部分を操作するための手書き操作ジェスチャとがある。本実施形態では、指定された領域の数式部分に対する手書き操作ジェスチャの代表例として「代入」、「移動」および「置換え」の3つの手書き操作ジェスチャを用意している。しかし、これに限定することはなく、これらの3つの機能のうち、いずれか2つ以上の機能が組合わされた機能を他の手書き操作ジェスチャとして定義することも可能である。 In the present embodiment, “writing information” refers to information on the position of a part to which an external force is applied on the display surface by writing by the user, and information on a locus represented by the change in the position. In the present embodiment, the written information may be simply referred to as “gesture”. The writing information includes mathematical expression writing information representing a mathematical expression with characters, a handwritten figure gesture for designating an area to be operated, and a handwriting operation gesture for operating a mathematical expression portion of the designated area. In this embodiment, three handwriting operation gestures of “substitution”, “movement”, and “replacement” are prepared as representative examples of the handwriting operation gesture for the mathematical expression portion of the designated area. However, the present invention is not limited to this, and a function in which any two or more of these three functions are combined can be defined as another handwriting operation gesture.
以下の説明では、代入を行わせる手書き操作ジェスチャを「代入ジェスチャ」と称し、移動および置換えを行わせる手書き操作ジェスチャを、それぞれ「移動ジェスチャ」および「置換えジェスチャ」と称する。「ストローク」とは、「1回の連続した動作による筆記情報」のことをいう。また、「領域」とは、「数式を内包する外接矩形SQの内側、または筆記入力手段120によって示される筆記情報内包する外接矩形SQの内側」をいう。さらに「領域指定する」とは、「利用者が表示部の表示面上において操作の対象となる領域を筆記し指定する」ことをいう。
In the following description, the handwriting operation gesture for performing substitution is referred to as “substitution gesture”, and the handwriting operation gesture for performing movement and replacement is referred to as “movement gesture” and “replacement gesture”, respectively. “Stroke” means “written information by one continuous operation”. The “region” means “the inside of the circumscribed rectangle SQ containing the mathematical expression or the inside of the circumscribed rectangle SQ included in the writing information indicated by the writing
図2は、本発明の一実施形態における表示部14の表示画面30の正面図である。表示画面30は、数式認識結果および演算結果表示ならびに数式入力用の表示入力領域31と、筆記情報の入力に係るジェスチャ開始ボタン32と、ジェスチャ終了ボタン33と、数式入力ボタン34とを含んで構成される。以上の各ボタンに対して、予めボタンの機能およびボタンの画面における位置情報を対応付けた情報が制御部11の機能テーブルTbに記憶されているものとする。利用者は、図2で示される画面の上で筆記し、筆記に応じた数式表示および演算結果表示を得る。
FIG. 2 is a front view of the
以下、図1に基づいて文字認識、数式の認識、演算および結果の表示に関する制御とデータの流れを述べる。利用者は、図2に示される画面上にあるジェスチャ開始ボタン32を押す。入力部12は、押された位置の座標データを検出し、制御部11に送る。制御部11は、送られてきた座標データと機能テーブルTbの位置情報を比較して、ジェスチャ開始ボタン32が押されたと判定する。そして、全制御フラグをOFFとする。制御フラグについては図7に関連した説明箇所で述べる。
Hereinafter, control and data flow relating to character recognition, mathematical expression recognition, calculation, and result display will be described with reference to FIG. The user presses the
ジェスチャ開始ボタン32の押釦に引き続き利用者は、数式を筆記するか、領域を指定するための筆記情報か、または領域で指定された数式を操作するための筆記情報を筆記する。これを受けて筆記入力手段120は、筆記された筆記情報の座標を検出し、制御部11に送る。制御部11は、送られてきた座標を内部バッファに記憶し、筆記入力監視用タイマを作動させる。筆記入力監視用タイマは、制御部に内蔵され、時間を計測する。筆記入力監視用タイマによって計測される時間が過ぎて、それまでに他に筆記入力がなければ、制御部11は、それまで得ていた座標データと一緒に筆記情報の種類に対する認識を行う。
Following the push button of the
制御部11が筆記情報に対する認識を行うときには、座標データを筆記情報認識辞書20に登録されているジェスチャデータと照合し、筆記情報認識を行う。筆記情報認識の結果、制御部11は、指定された領域に位置する数式に対する手書き操作ジェスチャであると判断すると、操作認識部16に筆記情報を送り、操作認識部16に制御フラグのON/OFFを決定させる。筆記情報認識の結果、制御部11が、領域を指定する手書き図形ジェスチャであると判断すると、領域認識部15に筆記情報を送る。入力された筆記情報が、文字および数式の数式筆記情報である場合には、手書き図形ジェスチャGrまたは手書き操作ジェスチャとして認識されないので制御フラグに対しては何もしない。制御部11は、認識の結果、確からしい順に筆記情報の種類を特定し、筆記情報認識結果として得る。制御部11は、得られた筆記情報認識結果の種類に基づいて、
When the
制御部11は、筆記情報認識結果が領域を指定する手書き図形ジェスチャGrまたは領域で指定された数式を操作する手書き操作ジェスチャのいずれの筆記情報でもないと判断すると、文字認識手段121に該筆記情報を送り、文字認識を行うことを指示する。
When the
文字認識手段121は、座標データから文字を認識する文字認識処理を行う。しかし、文字認識処理の結果、文字を認識できなければ制御部11に認識不能であった旨応答を返す。制御部11は、この応答を受け取ると、特に何もしない。
The
文字認識手段121は、座標データから文字を認識できた場合、認識した文字毎に位置情報を算出する。この位置情報の算出の処理が終われば文字認識手段121は、文字または文字列とそれらの位置情報を組み合わせた文字認識結果を制御部11に送る。制御部11は、これを内部バッファに保存する。
When the
利用者によって数式入力ボタン34が押されると、制御部11は、文字認識手段121から送られてきて内部バッファに保存していた文字認識結果を数式認識部13に送り、数式として認識することを指示する。数式認識部13は、各文字の並び順序および文字間の間隙等を精査し、各文字が組み合わさった数式としての認識を行い、数式認識結果を制御部11に送る。
When the mathematical
制御部11は、受け取った数式認識結果を演算部18に送り、数式演算を行うことを指示する。演算部18は、数式認識を行った結果を分析した後、演算する優先順を設けてその優先順に演算を行う。演算部18は、演算を終えると演算結果を制御部11に送る。
The
計算装置1は、記憶部19をさらに含んで構成される。記憶部19は、領域指定情報によって指定される領域に表示される数式情報を記憶する。また記憶部19は、操作情報が変数に対する代入を意味する情報である場合に、変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する。表示部14は、入力部12に対する予め定める操作に応じて、記憶部19に記憶される数式情報の少なくとも一部を表示する。制御部11は、得られている数式認識結果および演算結果を表示することを表示部14に表示させる。また、制御部11は、数式認識が行われる都度、数式データFdを作成し、記憶部19に記憶する。
The
図3は、本発明の一実施形態において記憶部19が管理する数式データファイルFdfの一例である。「数式データ」(Fd)とは、数式認識部13で認識された数式に関する複数の関連情報を一個にまとめた複合データ(レコード)である。各行が一つの数式データFdである。
FIG. 3 is an example of the mathematical formula data file Fdf managed by the
数式データFdの情報構成は、列単位に最左列より「数式ID」の情報、「変数」の情報、「数式」の情報、「数式の領域」の情報および「数式を構成する各文字の位置座標」の情報である。「数式ID」には、数式データFdが一意に識別可能となるように設けられる管理番号である数式IDが保存される。数式IDとして自然数が、記憶部19によって数式データFdが生成された順に打たれる。第2列目「変数」には、数式に対して定義された変数が保存される。第3列目「数式」には、数式認識部13によって認識された結果の数式が保存される。第4列「数式の領域」は、数式の占める領域の座標データが保存される。第5列「数式を構成する各文字の位置座標」は、筆記入力手段120によって検出された数式を構成する各文字の位置座標が保存される。
The information structure of the formula data Fd is the information of “Formula ID”, “Variable”, “Formula” information, “Formula area” information and “Character of each character constituting the formula from the leftmost column in column units. Information of “positional coordinates”. In “Formula ID”, a formula ID that is a management number provided so that the formula data Fd can be uniquely identified is stored. Natural numbers are entered as mathematical formula IDs in the order in which the mathematical data Fd is generated by the
第4列目の認識された「数式の領域」とは、以下のようにして定まる4つの座標で囲まれる範囲をいう。図4は、本発明の一実施形態において認識された数式の領域と各文字の位置座標とを説明する図である。表示部14の、たとえば図2で示される画面の左下隅を表示領域の原点とすれば、画面のドット数構成に対応して前記領域の任意の点がX座標およびY座標で表現できる。たとえば筆記された数式「1+2+3」に対し、前記数式を垂直および水平に走査すると数式が存在する領域が求まる。
The recognized “formula area” in the fourth column refers to a range surrounded by four coordinates determined as follows. FIG. 4 is a diagram for explaining an area of a mathematical expression recognized in one embodiment of the present invention and a position coordinate of each character. If, for example, the lower left corner of the screen shown in FIG. 2 of the
この領域のX座標における最大値および最小値をxmaxおよびxminとし、Y座標における最大値および最小値をymaxおよびyminとすると、X座標およびY座標ならびに最大値および最小値の組合せで4つの座標、P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmax,ymax)を設けることができる。これら4つの座標を結ぶ矩形の内側が「数式の領域」である。便宜上P1(xmin,ymin)をPist、またP4(xmax,ymax)をPienと二次元ベクトル表現すると、前記4つの点で構成される領域を[Pist,Pien]と表わすことができる。ここでiは、数式IDに対応する添え字である。 Assuming that the maximum value and minimum value in the X coordinate of this region are x max and x min, and the maximum value and minimum value in the Y coordinate are y max and y min , the combination of the X coordinate and Y coordinate and the maximum value and minimum value is Four coordinates, P1 ( xmin , ymin ), P2 ( xmax , ymin ), P3 ( xmin , ymax ), and P4 ( xmax , ymax ) can be provided. The inside of the rectangle connecting these four coordinates is the “mathematical area”. For convenience P1 (x min, y min) and P ist, also P4 (x max, y max) when the P ien and two-dimensional vector representation, the [P ist, P ien] a region composed of four points and Can be represented. Here, i is a subscript corresponding to the mathematical expression ID.
図3において第5列目の「数式を構成する各文字の位置座標」については以下のように文字認識手段121で文字認識される。たとえば、筆記「1+2+3」を構成する5文字は、図4に示されるように、文字「1」については、文字「1」内包する外接矩形SQの4つの座標p111(x11m,y11m),p112(x11M,y11m),p113(x11m,y11M),p114(x11M,y11M)によって、文字「1」の位置が求められる。ここで「m」は、最小値、「M」は、最大値を表わす。これら4つの位置座標を総称してPC11と表わす。同様にして第2番目の文字「+」に対する4つの位置座標、PC12が求められ、以下同様にしてPC11からPC15まで全5文字の位置座標が求められる。これらの位置座標は、数式データFdの第5列目の「数式を構成する各文字の位置座標」として保存される。 In FIG. 3, the character recognition means 121 recognizes the “positional coordinates of each character constituting the mathematical expression” in the fifth column as follows. For example, as shown in FIG. 4, five characters constituting the writing “1 + 2 + 3” have four coordinates p 111 (x 11m , y 11m ) of the circumscribed rectangle SQ included in the character “1”. , P 112 (x 11M , y 11m ), p 113 (x 11m , y 11M ), p 114 (x 11M , y 11M ), the position of the character “1” is obtained. Here, “m” represents a minimum value and “M” represents a maximum value. These four position coordinates are collectively referred to as PC11. Similarly, four position coordinates, PC12, for the second character “+” are obtained, and thereafter, the position coordinates of all five characters from PC11 to PC15 are obtained in the same manner. These position coordinates are stored as “position coordinates of each character constituting the mathematical expression” in the fifth column of the mathematical formula data Fd.
以下、手書き入力された筆記情報に対してこれを認識し、ジェスチャ処理ルール辞書21に従って筆記情報が意図する機能を実現する処理を、「ジェスチャ処理」という。ジェスチャ処理との関連で用いられる用語を説明する。
Hereinafter, processing for recognizing handwritten input writing information and realizing a function intended by the writing information in accordance with the gesture
「新規数式データ」とは、数式データファイルFdfに登録され記憶部19で管理されることを必要とする新たに生成された数式データFdである。新規数式データは、操作後数式生成部17で生成される。操作後数式生成部17は、数式IDとして新規数式データであることを示すために、まず「零」を設定する。「操作基準数式データ」は、代入、移動、または置換えの操作を行うための操作基準数式を含む数式データFdである。操作基準数式は、操作の対象となる数式を含む数式である。「領域指定数式データ」は、1つの操作基準数式に対し手書き図形ジェスチャGrによって指定された領域の範囲内にある部分を数式として含む数式データFdをいう。「修正数式データ」とは、「操作基準数式データ」が操作によって操作基準数式から領域指定された数式部分が除かれた数式データFdをいう。
“New formula data” is newly generated formula data Fd that is registered in the formula data file Fdf and needs to be managed by the
つぎにこれらのジェスチャ処理に関して用いられる領域に関連する用語を定義する。「数式の領域」とは、すでに説明した通り数式を内包する外接矩形SQの内側である。「領域の範囲」とは、手書き図形ジェスチャGrを内包する外接矩形SQによって囲まれる範囲である。「領域基準位置」(Pr0)は、外接矩形SQの中心、すなわち両対角線の交点である。 Next, terms related to the region used for the gesture processing are defined. The “mathematical area” is the inside of the circumscribed rectangle SQ that contains the mathematical expression as already described. The “region range” is a range surrounded by a circumscribed rectangle SQ that includes the handwritten figure gesture Gr. The “region reference position” (Pr 0 ) is the center of the circumscribed rectangle SQ, that is, the intersection of both diagonal lines.
次に、ジェスチャ処理について説明する。まず「領域指定」、「代入」、「移動」および「置換え」の各手書き操作ジェスチャについて説明する。 Next, gesture processing will be described. First, each handwriting operation gesture of “area designation”, “substitution”, “movement”, and “replacement” will be described.
図5は、本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。本実施形態における領域指定は、書かれてある数式に対して利用者が所望する部分全体を楕円状または矩形状に囲む。 FIG. 5 is a diagram illustrating an example of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to an embodiment of the present invention. In the area designation in the present embodiment, the entire part desired by the user with respect to a written mathematical expression is enclosed in an ellipse or a rectangle.
図6A〜図6Cは、本発明の一実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。図6Aおよび図6Bでは、指定された領域の数式部分を操作するための3種のジェスチャを表わす1例である。図6A(a)で代入ジェスチャ、図6A(c)で移動ジェスチャおよび図6B(e)で置換えジェスチャがそれぞれ示される。 6A to 6C are diagrams illustrating examples of the handwritten graphic gesture Gr and the handwriting operation gesture Gop according to the embodiment of the present invention. FIG. 6A and FIG. 6B are examples representing three types of gestures for manipulating the mathematical portion of the designated area. The substitution gesture is shown in FIG. 6A (a), the movement gesture is shown in FIG. 6A (c), and the replacement gesture is shown in FIG. 6B (e).
図6A(a)は、数式「y=3x2+5x−10」の「3x2+5x」の部分に対して代入変数「z」が定義されていることを表わしている。手書き操作ジェスチャのうち、代入ジェスチャは、ジェスチャによる操作が代入であることを示す、ここでは「=」で表現される手書き操作ジェスチャGop部分と、代入変数を定義している、ここでは「Z」で表現される筆記情報Gfの部分とで表わされる。 FIG. 6A (a) shows that the substitution variable “z” is defined for the part “3x 2 + 5x” of the mathematical formula “y = 3x 2 + 5x−10”. Of the handwriting operation gestures, the substitution gesture indicates that the operation by the gesture is substitution. Here, a handwriting operation gesture Gop portion expressed by “=” and an substitution variable are defined. Here, “Z” is defined. It is expressed by the portion of the writing information Gf expressed by
図6A(c)は、数式「y=3x2+5x−10」の「3x2+5x」の部分が、他の数式「÷5」の前に移動されることを表わしている。手書き操作ジェスチャGopのうち、移動ジェスチャは、当該ジェスチャが領域指定された範囲を引き出す、ここでは円弧上に表現される部分(第1ストロークK1)と、移動であることを示す、ここでは第1ストロークK1の一端を囲む三角形状に表現される部分(第2ストロークK2)とからなる。 FIG. 6A (c) shows that the part of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10” is moved before the other formula “÷ 5”. Among the handwriting operation gestures Gop, the movement gesture is a part (first stroke K1) represented on the arc here, which indicates that the gesture draws a range in which the area is designated, and indicates a movement. It consists of a portion (second stroke K2) expressed in a triangular shape surrounding one end of the stroke K1.
図6B(e)は、数式「y=3x2+5x−10」の「3x2+5x」の部分が、他の数式「z=9x3÷5」の「9x3」と置換えられることを表わしている。置換えを表わす手書き操作ジェスチャGopの終点には手書き図形ジェスチャGr2が存在する。 FIG. 6B (e) shows that the part of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10” is replaced with “9x 3 ” in the other formula “z = 9x 3 ÷ 5”. Yes. A handwritten figure gesture Gr2 exists at the end point of the handwriting operation gesture Gop representing the replacement.
以下に利用者が手書き図形ジェスチャGrおよび手書き操作ジェスチャGopを入力したときの処理の流れを説明する。基本的な流れについては、文字入力と数式入力とについて述べた説明と同様である。ここでは利用者によってジェスチャ開始ボタン32が押され、全制御フラグをOFFとする処理がなされているものとする。
The flow of processing when the user inputs the handwritten graphic gesture Gr and the handwriting operation gesture Gop will be described below. The basic flow is the same as described for character input and mathematical expression input. Here, it is assumed that the user has pressed the
利用者が数式を筆記または手書き図形ジェスチャもしくは手書き操作ジェスチャを筆記すると、すでに述べたとおり、筆記入力手段120は、筆記情報に対する座標検出を行い、制御部11は、筆記入力監視用タイマを作動させる。筆記入力監視用タイマによる計時時間内に他に筆記入力がなければ、制御部11は、それまで得ていた座標データに基づいて、筆記情報認識を行う。
When the user writes a mathematical formula or writes a handwritten figure gesture or handwriting operation gesture, as described above, the writing input means 120 detects coordinates of the writing information, and the
制御部11は、筆記情報を認識して手書き図形ジェスチャGrまたは手書き操作ジェスチャであると判断すると、操作認識部16に筆記情報を送り、操作認識部16に制御フラグのON/OFFを決定させる。制御部11は、認識の結果、確からしい順にジェスチャの種類を特定し、筆記情報認識結果として制御部11に送る。
When the
制御部11は、送られてきた筆記情報認識結果を分析する。筆記情報認識結果が手書き図形ジェスチャGrまたは手書き操作ジェスチャGopのいずれのジェスチャでもなければ文字認識処理を指示する。
The
制御部11は、手書き図形ジェスチャGrであると判断した場合、領域認識部15に領域認識を行うように指示する。領域認識部15は、たとえば、図5(a)に示される手書き図形ジェスチャGrに対して、図5(b)に示されるように表示面を水平および、または垂直に走査して手書き図形ジェスチャGrのX軸方向およびY軸方向の最大値と最小値を求め、この組合せで決まる4点(Pr1,Pr2,Pr3,Pr4)からなる外接矩形SQの座標を求め、領域の範囲を算出する。さらに領域基準位置Pr0を算出する。以上の処理を終了すると領域認識部15は、制御部11に領域認識結果を送る。制御部11は、領域認識結果を受け取って内部バッファに保存する。
When the
利用者は、ジェスチャ入力を完了するとジェスチャ終了ボタン33を押す。入力部12は、押された位置の座標データを検出し、制御部11に送る。制御部11は、送られてきた座標データと機能テーブルTbの位置情報を比較して、ジェスチャ終了ボタン33が押されたと判断し、操作後数式生成部17にジェスチャ処理を実行することを指示する。
When the user completes the gesture input, the user presses the
操作後数式生成部17は、制御フラグがONになっているジェスチャに対して、ジェスチャ処理ルール辞書21に記述されている処理に必要な情報がジェスチャ情報にあるか否かを判定し、情報がそろっていればジェスチャ処理を実行する。情報がそろっていないと判定するとジェスチャ処理を実行せずに終了する。
The post-operation
図7は、本発明の一実施形態におけるジェスチャ処理の制御フラグ構成の一例を示す図である。制御フラグは、操作認識部16によってON/OFFが決定され、ジェスチャの対応する処理が終了するときに制御部11によってOFFとされ、リセットされる。制御フラグはRF、SF、MF、CFおよびVFの5種類設けられる。
FIG. 7 is a diagram illustrating an example of a control flag configuration for gesture processing according to an embodiment of the present invention. The control flag is turned ON / OFF by the
RFフラグは、手書き図形ジェスチャGrに関連する制御フラグであり、SFフラグは、代入ジェスチャであることを示す制御フラグである。またMFフラグは、移動ジェスチャであることを示す制御フラグであり、CFフラグは、置換えジェスチャであることを示す制御フラグである。さらにVFフラグは、変数名ジェスチャに関連する制御フラグである。以下、各制御フラグを省略して単に「RF」,「SF」,「MF」,「CF」または「VF」と略する。 The RF flag is a control flag related to the handwritten figure gesture Gr, and the SF flag is a control flag indicating that it is an assignment gesture. The MF flag is a control flag indicating a movement gesture, and the CF flag is a control flag indicating a replacement gesture. Furthermore, the VF flag is a control flag related to the variable name gesture. Hereinafter, each control flag is omitted and simply abbreviated as “RF”, “SF”, “MF”, “CF”, or “VF”.
手書き図形ジェスチャGrによる領域指定の場合は、RFのみONとなる。代入の場合は、操作対象数式に対する領域指定があって代入および変数に対する筆記がさらにあるのでRF,SF,VFがONとなる。移動の場合、領域指定の筆記があって移動の筆記がさらにあるのでRFおよびMFがONになる。また置換えジェスチャの場合、領域指定の筆記があって置換えの筆記がさらにあるのでRFおよびCFがONとなる。 In the case of region designation by the handwritten graphic gesture Gr, only RF is turned on. In the case of substitution, since there is an area designation for the operation target mathematical formula and there is further writing for substitution and variables, RF, SF, and VF are turned ON. In the case of movement, since there is a writing for specifying the area and there is further writing for movement, RF and MF are turned ON. In the case of the replacement gesture, since there is a region designation writing and there is a replacement writing, RF and CF are turned ON.
以下、手書き図形ジェスチャGrによって指定された領域の数式部分を抽出する処理について説明する。手書き図形ジェスチャGrに対し外接矩形SQで示される領域範囲および領域基準位置Pr0の算出が行われる必要がある。これについては、手書き図形ジェスチャGrが筆記された都度行われていて、既に説明済である。ここでは「ジェスチャ終了」入力を受けてからの処理について述べる。すなわち、操作基準数式を特定し、操作基準数式中で領域指定によって指定される数式部分の抽出する処理について述べる。この処理は、指定された領域の数式部分を操作するジェスチャ、すなわち代入、移動、および置換えの各ジェスチャに共通する処理である。 Hereinafter, the process of extracting the mathematical expression portion of the region designated by the handwritten graphic gesture Gr will be described. The area range indicated by the circumscribed rectangle SQ and the area reference position Pr 0 need to be calculated for the handwritten figure gesture Gr. This is performed every time the handwritten graphic gesture Gr is written, and has already been explained. Here, the processing after receiving the “gesture end” input will be described. That is, processing for specifying an operation reference mathematical expression and extracting a mathematical expression portion designated by area designation in the operation reference mathematical expression will be described. This process is a process common to gestures for manipulating a mathematical expression portion of a designated area, that is, each of the gestures of substitution, movement, and replacement.
図8は、本発明の一実施形態における領域指定処理のフローチャートである。処理r1で、RFフラグがONか、確認する。RFフラグがOFFであれば別の処理がなされるが、ここではその説明を省略する。処理r2で、操作後数式生成部17は、領域基準位置Pr0のデータを制御部11に送り、領域基準位置Pr0に対応する操作基準数式データを入手することを要求する。
FIG. 8 is a flowchart of the area designation process in one embodiment of the present invention. In process r1, it is confirmed whether the RF flag is ON. If the RF flag is OFF, another process is performed, but the description thereof is omitted here. In processing r2, the operation after the
処理r3で、制御部11は、記憶部19の数式データファイルFdfに記憶されている数式データFdを逐次引き出して、該数式データFdに含まれている数式の領域のデータと、送られてきた領域基準位置Pr0の座標データとを照合し、領域基準位置Pr0座標を、数式の領域の中に含む数式データFdを見つけ出し、該数式データFdを操作後数式生成部17に送る。
In the process r3, the
処理r4で、操作後数式生成部17は、手書き図形ジェスチャGrの領域基準位置Pr0および送られてきた該数式データFdに含まれる数式を構成する各文字の位置座標を照合し、手書き図形ジェスチャGrによって定まる領域の範囲に含まれる文字のみ抽出する。処理r5で、その文字が表わす範囲の数式の情報を生成し、領域指定数式データとして、内部バッファに記憶する。
In process r4, after operation
以上の処理r1〜r5を、例を用いて説明する。例えば、図5(a)では、数式y=3x2+5x−10があって、その上に「3x2+5x」の部分が手書き図形ジェスチャGrで領域指定されている。制御部11は、指定された領域基準位置Pr0の座標データを基に、数式y=3x2+5x−10を含む数式データFdを抽出する。操作後数式生成部17は、文字の中心座標が文字の位置座標であるとした場合、手書き図形ジェスチャの外接矩形SQの座標と各文字の中心座標を比較して、「3」,「x」,「2」,「+」,「5」,「x」がそれぞれ手書き図形ジェスチャGrに含まれる文字と判定する。そして、その6文字が表わす範囲「3x2+5x」を数式として含む数式データFdを生成し、領域指定数式データとして内部バッファに記憶する。
The above processes r1 to r5 will be described using an example. For example, in FIG. 5A, there is a mathematical expression y = 3x 2 + 5x-10, and a region “3x 2 + 5x” is designated by a handwritten graphic gesture Gr. The
以下、指定された領域の数式部分を操作するジェスチャ処理について述べる。代入ジェスチャの場合、指定された領域の範囲および領域基準位置Pr0を検出すること、代入基準位置Ps0を求めること、および代入変数に関する新規数式データを作成することが主要な処理である。代入基準位置とは、代入のための手書き操作ジェスチャGopを内包する外接矩形SQの中心の座標である。 Hereinafter, gesture processing for manipulating the mathematical expression portion of the designated area will be described. In the case of the substitution gesture, the main processes are to detect the range of the designated region and the region reference position Pr 0 , to obtain the substitution reference position Ps 0 , and to create new mathematical formula data regarding the substitution variable. The substitution reference position is the coordinates of the center of the circumscribed rectangle SQ that includes the handwriting operation gesture Gop for substitution.
代入ジェスチャの1例は、図6A(a)で示される。数式「y=3x2+5x−10」における「3x2+5x」を領域指定する手書き図形ジェスチャGrと代入の処理を指示する手書き操作ジェスチャGopおよび数式「Z」を表わす数式筆記情報Gfが示される。 An example of an assignment gesture is shown in FIG. 6A (a). A handwritten figure gesture Gr for designating a region of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10”, a handwriting operation gesture Gop for instructing a substitution process, and formula writing information Gf representing the formula “Z” are shown.
図6A(b)は、図6A(a)で示される各ジェスチャおよび情報に対するジェスチャ認識処理および代入処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、操作基準数式が内包されて外接する矩形、第2外接矩形SQ2は、代入操作のために指定された領域に外接する矩形、第3外接矩形SQ3は、代入に対する手書き操作ジェスチャGopが内包されて外接する矩形、第4外接矩形SQ4は、代入変数を内包する領域とそれぞれ表わされる。Pr0は、領域基準位置、Ps0は、代入基準位置、Pf0は、代入変数を含める領域の中心位置であり、さらに前記Pr0と前記Ps0との間の距離がRSlen、また前記Ps0と前記Pf0との間の距離がSVlenで示される。 FIG. 6A (b) is a diagram showing rectangles, position information, distances, and the like that enclose and enclose areas necessary for the gesture recognition process and substitution process for each gesture and information shown in FIG. 6A (a). is there. The first circumscribed rectangle SQ1 is a rectangle circumscribing the operation reference formula, the second circumscribed rectangle SQ2 is a rectangle circumscribing the area designated for the substitution operation, and the third circumscribed rectangle SQ3 is a handwriting operation for substitution. The rectangle circumscribing the gesture Gop and the fourth circumscribing rectangle SQ4 are each represented as an area including the substitution variable. Pr 0 is the region reference position, Ps 0 is the substitution reference position, Pf 0 is the center position of the region including the substitution variable, and the distance between Pr 0 and Ps 0 is RSlen, and Ps 0 and the distance between the Pf 0 is indicated by SVlen.
図9Aおよび図9Bは、本発明の一実施形態における代入の処理のフローチャートである。処理s1において、操作後数式生成部17は、SFがONであるか確認する。SFがONでなければここでの説明を省略する。SFがONであれば、処理s2に移行し、操作後数式生成部17は、ジェスチャ処理ルール辞書21から、代入ジェスチャのルールを読み込む。次に処理s3に移行し、RFがONになっているか判定する。
FIG. 9A and FIG. 9B are flowcharts of substitution processing in one embodiment of the present invention. In process s1, the post-operation mathematical
RFがONでなければ、処理s4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。処理s5移行し、制御部11は、数式に変更が無いことを知ると一連の処理を終了する。
If RF is not ON, the process proceeds to step s4, and the post-operation
RFがONであれば、処理s6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。
If RF is ON, the process proceeds to step s6, and the post-operation mathematical
以下、処理s7からs19までが領域基準位置Pr0の検出に引き続く代入の処理に関する記述である。図6A(b)を参照しながら説明する。図6A(b)で示される操作基準数式を含む領域に外接する矩形を第1外接矩形SQ1、手書き図形ジェスチャGrを内包する領域に外接する矩形を第2外接矩形SQ2、代入ストロークを内包する領域に外接する矩形を第3外接矩形SQ3、および代入変数を内包する領域に外接する矩形を第4外接矩形SQ4とする。 Hereinafter, the processing s7 to s19 is a description relating to the processing of subsequent assignment in the detection area the reference position Pr 0. This will be described with reference to FIG. 6A (b). A rectangle circumscribing the region including the operation reference mathematical formula shown in FIG. 6A (b) is a first circumscribed rectangle SQ1, a rectangle circumscribing a region enclosing the handwritten figure gesture Gr is a second circumscribing rectangle SQ2, and a region enclosing the substitution stroke A circumscribed rectangle is defined as a third circumscribed rectangle SQ3, and a rectangle circumscribed by an area containing the substitution variable is defined as a fourth circumscribed rectangle SQ4.
処理s7において、操作後数式生成部17は、代入対象の検出のため、本実施形態では図6A(a)において「=」で示される代入ジェスチャに対応するストロークの座標データを内部バッファから読み込む。次に、処理s8に移行し、ストロークの座標データを用いて第3外接矩形SQ3の中心座標である代入基準位置Ps0を求め、内部バッファに記憶する。
In the process s7, the post-operation mathematical
処理s9において、操作後数式生成部17は、領域基準位置Pr0と代入基準位置Ps0との距離(RSlen)を算出する。次に処理s10に移行し、前記RSlenと手書き図形ジェスチャGrおよび代入に対する手書き操作ジェスチャGop間の距離に対する閾値であるRSlen0とを比較する。RSlen0は、ジェスチャ処理ルール辞書21に格納されている定数の一つである。操作後数式生成部17は、比較の結果、次の判断および処理を行う。
In the process s9, the operation after the
RSlen>RSlen0である場合は、処理s4に移行し、代入する数式がないと判断し、制御部11に処理の終了を通知する。制御部11は、処理s5において、数式に変更が無いことを知ると一連の処理を終了する。
When RSlen> RSlen 0 , the process proceeds to process s4, determines that there is no mathematical expression to be substituted, and notifies the
一方、RSlen≦RSlen0である場合は、処理s11に移行し、代入する数式が存在すると判断し、制御部11に代入する数式があることを通知する。操作後数式生成部17は、処理s12において、引き続きVFがONか、またはOFFかを判定する。
On the other hand, if RSlen ≦ RSlen 0 , the process proceeds to step s11, where it is determined that there is a formula to be substituted, and the
VFがOFFの場合、操作後数式生成部17は、処理s4において、操作後数式生成部17に数式の変更が無いことおよび処理が終了したことを通知する。処理の終了通知を得て、処理s5において、制御部11は、一連の処理を終了する。
When VF is OFF, the post-operation mathematical
VFがONの場合、操作後数式生成部17は、処理s13において、変数名情報を制御部11に要求する。制御部11は、処理s14において、記憶部19に記憶している数式データFdから変数名が定義され記憶されているものを抽出し、各変数名を含む領域に外接する第4外接矩形SQ4の中心座標として定まる変数名の中心位置座標Pf0を算出する。さらに、代入基準位置の座標Ps0と変数名の中心位置座標Pf0との間の距離(SVlen)を算出する。次に制御部11は、処理s15において、前記距離(SVlen)の値が一番小さくなる変数名情報を代入基準位置に最近接する変数として、その変数名情報を抽出する。以上の処理を行うと、制御部11は、処理s16において、操作後数式生成部17に変数名情報およびSVlenを送る。
When VF is ON, the post-operation
以下、処理s17から処理s24までが代入に関する新規数式データ作成に関する処理である。操作後数式生成部17は、処理s17において、送られてきたSVlenのデータと代入ジェスチャおよび変数名間距離の閾値であるSVlen0とを比較する。SVlen0は、ジェスチャルール辞書21に格納されている定数の一つである。
Hereinafter, processing s17 to s24 is processing relating to creation of new mathematical formula data relating to substitution. In operation s17, the post-operation
SVlen>SVlen0であれば、操作後数式生成部17は、処理s4において、対応する変数名が無いと判断し、制御部11に処理の終了を通知する。処理の終了通知を得て、制御部11は、処理s5において一連の処理を終了する。
If SVlen> SVlen 0 , the post-operation
SVlen≦SVlen0であれば、操作後数式生成部17は、対応する変数名が存在すると判断し、処理s18において、求められた変数名と文字「=」(イコール)と領域指定数式データを組み合わせて新規数式データを作成する。そして、処理s19において、新規数式データおよび代入に関するジェスチャ処理が終了したことを制御部11に送る。
If SVlen ≦ SVlen 0 , the post-operation
操作後数式生成部17が新規数式データを生成したとき、数式IDはゼロに設定されているので、制御部11は、処理s20において新規数式データに他の数式データFdと重複しない数式IDを割り当て、記憶部19に登録する。制御部11は、以上の処理を終えれば処理s5において一連の処理を終了する。
When the post-operation
次に移動ジェスチャに対する処理について述べる。最初に移動ジェスチャに関して用いる用語を以下に定義する。「移動基準位置」とは、「第2ストロークK2を内包する外接矩形の中心の座標」のことをいう。「移動先数式データ」とは、「移動基準位置に最近接する数式の情報」である。 Next, processing for a movement gesture will be described. The terms used for the movement gesture are defined below. The “movement reference position” refers to “the coordinates of the center of a circumscribed rectangle that includes the second stroke K2”. “Movement formula data” is “information of a formula closest to the movement reference position”.
移動ジェスチャの1例は、図6A(c)で示される。数式「y=3x2+5x−10」における「3x2+5x」を領域指定する手書き図形ジェスチャGrと移動の処理を指示する手書き操作ジェスチャGopが示されている。図6A(c)において符号Fが打たれている数式情報「÷5」は、図では前記2つのジェスチャが与えられる以前から存在している数式である。 An example of a movement gesture is shown in FIG. 6A (c). A handwritten figure gesture Gr for designating an area of “3x 2 + 5x” in the mathematical expression “y = 3x 2 + 5x−10” and a handwriting operation gesture Gop for instructing movement processing are shown. In FIG. 6A (c), the mathematical formula information “÷ 5” with the symbol F is a mathematical formula that exists before the two gestures are given in the figure.
図6B(d)は、図6A(c)で示される各ジェスチャに対するジェスチャ認識処理および移動処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、操作基準数式を含む領域に外接する矩形、第2外接矩形SQ2は、移動操作のために指定された領域に外接する矩形、第3外接矩形SQ3は、移動のための手書き操作ジェスチャGopの第1ストロークK1が内包されて外接する矩形、第4外接矩形SQ4は、前記ジェスチャの第2ストロークK2が内包されて外接する矩形、さらに第5外接矩形SQ5は、移動先の最近辺に存在する数式を内包する領域が内包されて外接する矩形とそれぞれ表わされる。Pr0は、領域基準位置、Pm0は、移動基準位置、Pf0は、移動先の数式の領域の中心位置であり、さらに前記Pm0と前記Pf0との間の距離がMFlenで示される。 FIG. 6B (d) is a diagram showing rectangles, position information, distances, and the like that enclose areas that are necessary for the gesture recognition process and the movement process for each gesture shown in FIG. 6A (c). The first circumscribed rectangle SQ1 is a rectangle circumscribing the area including the operation reference mathematical formula, the second circumscribed rectangle SQ2 is a rectangle circumscribing the area designated for the moving operation, and the third circumscribed rectangle SQ3 is an area for moving. A rectangle circumscribing the first stroke K1 of the handwriting operation gesture Gop, a fourth circumscribed rectangle SQ4 is a rectangle circumscribing the second stroke K2 of the gesture, and a fifth circumscribed rectangle SQ5 is a destination A region including a mathematical expression existing in the nearest side is represented as a rectangle that is enclosed and circumscribed. Pr 0 is the area reference position, Pm 0 is the movement reference position, Pf 0 is the center position of the area of the movement destination mathematical expression, and the distance between the Pm 0 and the Pf 0 is indicated by MFlen. .
移動ジェスチャの場合、ジェスチャ処理ルール辞書21は、RFおよびMFをONの状態で保持し、さらに移動先の情報として第2ストロークK2の外接矩形SQの座標を格納している。
In the case of a movement gesture, the gesture
図10Aおよび図10Bは、本発明の一実施形態における移動の処理のフローチャートである。 10A and 10B are flowcharts of the movement process according to the embodiment of the present invention.
処理m1において、操作後数式生成部17は、MFがONであるか確認する。操作後数式生成部17は、MFがONになっていれば、処理m2に移行しジェスチャ処理ルール辞書21から、移動ジェスチャのルールを読み込む。次に、処理m3に移行しRFがONになっているか判定する。
In the process m1, the post-operation mathematical
RFがONでなければ、処理m4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。制御部11は、処理m5において数式に変更が無いことを知ると一連の処理を終了する。
If RF is not ON, the process proceeds to process m4, and the post-operation
RFがONであれば、処理m6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。領域基準位置Pr0の検出については先に「代入」に関連して述べた処理内容と同じである。以下、処理m7からm12までが領域基準位置Pr0の検出に引き続く「移動先検出処理」に関する記述である。
If RF is ON, the process proceeds to process m6, and the post-operation
移動ジェスチャの場合、移動ジェスチャの示す先に存在するのは基本的に数式である。この意味で変数および置換えといった領域が存在する代入ジェスチャおよび後述する置換えジェスチャの場合と異なる。したがって、移動ジェスチャにおける第2ストロークK2の検出が重要である。図6A(c)で示されるように、第1ストロークK1は、内部数式を包含する領域と片端がつながり他の端が移動先に延びている直線状または円弧状の曲線であり、第2ストロークK2は、第1ストロークK1の端につながって書かれている三角形状の記号である。 In the case of a movement gesture, a mathematical expression basically exists at the destination indicated by the movement gesture. In this sense, it is different from the substitution gesture in which areas such as variables and substitution exist and the substitution gesture described later. Therefore, detection of the second stroke K2 in the movement gesture is important. As shown in FIG. 6A (c), the first stroke K1 is a straight or arcuate curve in which one end is connected to the region including the internal mathematical expression, and the other end extends to the destination. K2 is a triangular symbol written to the end of the first stroke K1.
処理m7において、操作後数式生成部17は、移動先の検出のため、移動ジェスチャに対応する第2ストロークK2の座標データを内部バッファから読み込む。次に、処理m8に移行し、第2ストロークK2の座標データを用いて移動基準位置Pm0を求め、「移動先」として内部バッファに記憶する。
In process m7, the post-operation mathematical
操作後数式生成部17は、処理m9において、移動基準位置Pm0のデータを制御部11に送り、併せて移動基準位置Pm0の最近辺に存在する数式の情報の入手を要求する。
In the process m9, the post-operation mathematical
制御部11は、数式データFdの入手要求を受けて、処理m10において記憶部19が記憶している各数式データFdから数式の位置情報Pf0を抽出して、移動基準位置Pm0の座標と各数式の領域の中心位置座標Pf0との間の距離データ(MFlen)を求める。そして制御部11は、処理m11において、前記入手要求に対応する数式データFdとしてMFlenが最小となる数式の位置情報を含む数式データFdを抽出する。抽出が終われば制御部11は、処理m12において、算出されたMFlenの値を示すデータおよび前記入手要求に対応する数式データFdを操作後数式生成部17に送る。
In response to the acquisition request of the mathematical formula data Fd, the
操作後数式生成部17は、処理m13において、送られてきた前記距離のデータ(MFlen)が所定の距離閾値(MFlen0)に対し大きいか小さいか判断する。
In operation m13, the post-operation
(MFlen)>(MFlen0)である場合、操作後数式生成部17は、移動先に処理を施す数式が存在しないと判断し、次の移動処理を行う。すなわち、操作後数式生成部17は、処理m14において、直近に算出された領域指定数式データに対して数式IDに新規数式データを表わす数値零を設定し、新規数式データを生成する。
When (MFlen)> (MFlen 0 ), the post-operation mathematical
また処理m15において、外部数式に対して新たに数式データFdを生成し、これを修正数式データとする。図6A(c)に示される場合を例にとれば、領域指定によって「3x2+5x」を含む新規数式データが生成され、修正数式データとして「y=−10」を含む数式データFdが生成される。 In process m15, new formula data Fd is generated for the external formula, and this is used as corrected formula data. Taking the case shown in FIG. 6A (c) as an example, new mathematical formula data including “3x 2 + 5x” is generated by area designation, and mathematical formula data Fd including “y = −10” is generated as corrected mathematical formula data. The
以上の処理が終われば、操作後数式生成部17は、処理m16において、生成した前記新規数式データおよび前記修正数式データを制御部11に送り、数式が変更されてジェスチャ処理が終了したことを通知する。
When the above processing is completed, the post-operation
制御部11は、処理m17において、前記新規数式データおよび前記修正数式データと通知とを受けて、記憶部19に記憶される数式のうちから、修正数式データの数式IDと一致する数式を検索し、修正数式データの内容に更新する。さらに、新規数式データに対して他の数式データFdと重複しない数式IDを割り当てて記憶部19に記憶する。
In step m17, the
(MFlen)≦(MFlen0)である場合、操作後数式生成部17は、処理m18において、「移動先文字」を検出する。「移動先文字」とは、移動基準位置Pm0に近接する数式の情報である移動先数式データに含まれる数式を構成する各文字の内、移動基準位置Pm0に一番近い文字をいう。例えば、移動基準位置Pm0の座標と個々の文字の領域の中心位置座標とから距離をそれぞれ算出し、その値が一番小さくなる文字が「移動先文字」である。
When (MFlen) ≦ (MFlen 0 ), the post-operation
「移動先文字」検出が終われば「移動」の処理が行われる。操作後数式生成部17は、処理m19において、移動先数式データに対し、移動先文字の前位置に領域指定数式データの数式部分を挿入し、新たに移動処理後の数式データFdを生成する。すなわち、生成された移動処理後の数式データFdは、前に操作基準数式の領域指定された数式部分、その後ろに移動先数式データの数式が合わさった数式を含むことになる。
When the “movement destination character” is detected, the “movement” process is performed. In step m19, the post-operation
さらに、操作後数式生成部17は、処理m20において、外部数式を含む修正数式データを作成する。図6A(c)を例にとれば、新たな数式「(3x2+5x)÷5」を含む数式データFdが生成され、修正数式データとして「y=−10」を含む数式データFdが生成される。操作後数式生成部17は、処理m21において移動処理後の数式データFdおよび修正数式データを制御部11に送り、数式が変更されたことを制御部11に通知する。
Further, the post-operation
制御部11は、処理m22において記憶部19の数式データFdを検索し、修正数式データの数式IDと一致する数式データFdを抽出し、それを修正数式データと差し替える。さらに、移動処理後の数式データFdの数式IDと一致する数式データFdを抽出し、その数式データFdに含まれる数式を、移動処理後の数式に変更する。
In the process m22, the
次に、図6B(e)および図6C(f)を参照しながら、置換えジェスチャに関する処理について述べる。図6(e)および図6C(f)において、置換えの操作の対象となる数式のうち、一方の数式を「第1数式」、他方の数式を「第2数式」と称する。本実施形態において、「置換え基準位置」とは、「第2数式を内包する領域に外接する外接矩形の座標の中心座標」のことをいう。第2数式は、置換え基準位置Pc0を含むか、または置換え基準位置に最近接する数式である。第1数式のうち、置換えられる数式を「第1置換え数式」と称し、第2数式のうち、置換えられる数式を、「第2置換え数式」と称する。 Next, processing related to the replacement gesture will be described with reference to FIGS. 6B (e) and 6C (f). In FIG. 6E and FIG. 6C (f), among the mathematical expressions to be replaced, one mathematical expression is referred to as a “first mathematical expression” and the other mathematical expression is referred to as a “second mathematical expression”. In the present embodiment, the “replacement reference position” refers to “the center coordinates of the coordinates of a circumscribed rectangle circumscribing the region containing the second mathematical expression”. The second mathematical expression is a mathematical expression that includes the replacement reference position Pc 0 or is closest to the replacement reference position. Among the first mathematical formulas, the mathematical formula to be replaced is referred to as “first replacement mathematical formula”, and among the second mathematical formulas, the mathematical formula to be replaced is referred to as “second replacement mathematical formula”.
置換えジェスチャの1例は、図6B(e)で示される。数式「y=3x2+5x−10」における「3x2+5x」を領域指定する第1の手書き図形ジェスチャGr1、置換えの処理を指示する手書き操作ジェスチャGopおよび数式「Z=9X3÷5」における「9X3」を領域指定する第2の手書き図形ジェスチャGr2が示されている。手書き操作ジェスチャGopは、直線状または円弧状の曲線の第1ストロークK1で表わされる。この場合の第1数式は、「y=3x2+5x−10」、第2数式は、「Z=9X3÷5」であり、第1置換え数式は、「3x2+5x」、そして第2置換え数式は、「9X3」であることが示されている。 An example of a replacement gesture is shown in FIG. 6B (e). The first handwritten figure gesture Gr1 that designates the region of “3x 2 + 5x” in the formula “y = 3x 2 + 5x−10”, the handwriting operation gesture Gop that instructs the replacement process, and “Z = 9X 3 ÷ 5” A second handwritten graphic gesture Gr2 for designating the area “9X 3 ” is shown. The handwriting operation gesture Gop is represented by a first stroke K1 of a linear or arcuate curve. In this case, the first equation is “y = 3x 2 + 5x−10”, the second equation is “Z = 9X 3 ÷ 5”, the first substitution equation is “3x 2 + 5x”, and the second substitution The formula is shown to be “9X 3 ”.
図6C(f)は、図6B(e)で示される各ジェスチャに対するジェスチャ認識処理および置換え処理のために必要となる領域が内包されて外接する矩形、位置情報および距離等を示す図である。第1外接矩形SQ1は、第1数式が内包されて外接する矩形、第2外接矩形SQ2は、第1置換え数式を操作するために指定された領域が内包されて外接する矩形、第3外接矩形SQ3は、置換えに対する手書き操作ジェスチャGopの第1ストロークK1が内包されて外接する矩形、第4外接矩形SQ4は、第2置換え数式を操作するために指定された領域が内包されて外接する矩形、および第5外接矩形SQ5は、第2数式を含む領域が内包されて外接する矩形と、それぞれ表わされる。Pr0は、第1数式の領域基準位置、Pc0は、置換え基準位置、Pf0は、第1数式の領域の中心位置である。前記Pc0と前記Pf0との間の距離がCFlenである。 FIG. 6C (f) is a diagram showing rectangles, position information, distances, and the like that enclose and enclose areas necessary for the gesture recognition process and replacement process for each gesture shown in FIG. 6B (e). The first circumscribed rectangle SQ1 is a rectangle that circumscribes the first mathematical expression, the second circumscribed rectangle SQ2 is a rectangle that circumscribes and circumscribes the area designated for operating the first replacement mathematical expression, and the third circumscribed rectangle SQ3 is a rectangle that circumscribes the first stroke K1 of the handwriting operation gesture Gop for replacement, and a fourth circumscribed rectangle SQ4 is a rectangle that encloses and circumscribes a region specified for operating the second replacement equation, The fifth circumscribed rectangle SQ5 is expressed as a rectangle circumscribing the region including the second mathematical expression. Pr 0 is the area reference position of the first equation, Pc 0 is the replacement reference position, and Pf 0 is the center position of the area of the first equation. The distance between the Pc 0 and the Pf 0 is CFlen.
図11Aおよび図11Bは、本発明の一実施形態における置換えの処理のフローチャートである。 11A and 11B are flowcharts of the replacement process in the embodiment of the present invention.
処理c1において、操作後数式生成部17は、CFがONであるか確認する。操作後数式生成部17は、CFがONになっていれば、処理c2に移行しジェスチャ処理ルール辞書21から、置換えジェスチャのルールを読み込む。次に、処理c3に移行しRFがONになっているか判定する。
In the process c1, the post-operation
RFがONでなければ、処理c4に移行し、操作後数式生成部17は、制御部11に数式に変更が無くかつ処理が終了したことを制御部11に通知する。制御部11は、処理c5において数式に変更が無いことを知ると一連の処理を終了する。
If RF is not ON, the process proceeds to process c4, and the post-operation
RFがONであれば、処理c6に移行し、操作後数式生成部17は、図8で説明した領域指定数式データを抽出する。領域基準位置Pr0の検出については先に「代入」に関連して述べた処理内容と同じである。処理c7〜c17において、領域基準位置Pr0の検出に引き続き、置換え数式検出処理を行う。以下、置換え数式検出処理に関して記述する。
If RF is ON, the process proceeds to process c6, and the post-operation mathematical
操作後数式生成部17は、領域認識部15に作用し、処理7および処理8を行わせる。処理c7において、領域認識部15は、第2置換え数式の検出のため、置換えジェスチャに対応する第2の手書き図形ジェスチャGr2の座標データを内部バッファから読み込む。次に、処理c8に移行し、第2ストロークK2の座標データを用いて第2ストロークK2を内包する外接矩形SQ4の座標と置換え基準位置Pc0を求め、操作後数式生成部17に渡す。操作後数式生成部17は、得られた情報を内部バッファに記憶する。
The post-operation mathematical
以上の処理を終えると操作後数式生成部17は、処理c9において置換え基準位置データを制御部11に送り、置換え基準位置を数式の領域に含む数式データFdを要求する。
When the above processing is completed, the post-operation
制御部11は、処理c10において送られてきた置換え基準位置Pc0の情報を用いて第2数式を含む数式データFdと、置換え基準位置Pc0の座標と各数式の領域の中心位置座標Pf0との距離(CFlen)とを求める。制御部11は、その処理を次のように行う。記憶部19に記憶している各数式データFdから数式の位置情報Pf0を抽出し、置換え基準位置Pc0の座標データと抽出された前記数式の領域の中心位置座標Pf0とを照合し、置換え基準位置Pc0が含まれる数式領域を有する数式データFdを求める。置換え基準位置Pc0がどれかの数式の領域に含まれていれば距離CFlenを零に設定する。置換え基準位置がどの数式の領域にも含まれていなければ、CFlenを実際に算出し、CFlenの値が一番小さくなる数式を含む数式データFdを置換え基準位置Pc0に近接する数式データFdとする。
The
制御部11は、処理c11において以上のようにして第2数式を含む数式データFdと、置換え基準位置Pc0と各数式の位置情報との距離(CFlen)とを求めると該数式データFdとCFlenデータとを操作後数式生成部17に送る。操作後数式生成部17は、処理c12において、前記距離(CFlen)の値が所定の距離閾値(CFlen0)に対し大きいか小さいかを判断し、置換え指定範囲に含まれる数式部分を以下のようにして抽出する。
When the
(CFlen)>(CFlen0)である場合、操作後数式生成部17は、置換え処理を施す数式が存在しないと判断し、次の処理を行う。すなわち、操作後数式生成部17は、処理c13において、直近に算出された領域指定数式データに対して数式IDに新規数式データを表わす数値零を設定し、新規数式データを生成する。
If (CFlen)> (CFlen 0 ), the post-operation mathematical
また処理c14において、第1数式から第1置換え数式を除いた外部数式に対して新たに数式データFdを生成し、これを修正数式データとする。以上の処理が終われば、操作後数式生成部17は、処理c15において、生成した前記新規数式データおよび前記修正数式データを制御部11に送り、数式が変更されてジェスチャ処理が終了したことを通知する。
In process c14, new formula data Fd is generated for the external formula obtained by removing the first replacement formula from the first formula, and this is used as the corrected formula data. When the above process is completed, the post-operation
制御部11は、処理c16において、前記新規数式データと前記修正数式データとジェスチャ処理の終了の通知とを受けて、記憶部19に記憶される数式のうちから修正数式データの数式IDと一致する数式を検索し、修正数式データの内容に更新する。さらに、新規数式データに対して他の数式データFdと重複しない数式IDを割り当てて記憶部19に記憶する。
In process c16, the
(CFlen)≦(CFlen0)である場合、操作後数式生成部17は、処理c17において以下のように「第2置換え数式」を検出する。
When (CFlen) ≦ (CFlen 0 ), the post-operation
CFlenが零かどうか確認し、CFlenが零でない場合、操作後数式生成部17は、置換え基準位置Pc0の座標と各文字に対して中心位置座標とから両座標間の距離を算出し、前記距離の値が一番小さくなる文字を「置換え中心文字」として検出する。置換え中心文字のX軸における中心座標から左右にそれぞれX軸方向の置換え指定範囲の半分を確保し、その範囲に含まれる文字をすべて抽出し、第2置換え数式とする。また、CFlenが零であれば、操作後数式生成部17は、第2数式に含まれる数式を構成する各文字の位置情報を確認して置換え指定範囲に含まれるものをすべて抽出し、第2置換え数式とする。
CFlen confirms whether zero, if CFlen is not zero, the operation after the
置換え中心文字の検出が終われば操作後数式生成部17は、処理c18において「置換え」の処理を行う。操作後数式生成部17は、第2数式から第2置換え数式を削除し、この削除された部分の位置に領域指定数式データからの第2置換え数式を挿入し、まず第2数式について置換えを行う。さらに操作基準数式から操作基準数式からの第2置換え数式を削除し、前記削除された部分の位置に第2置換え数式を挿入する。
When the detection of the replacement center character is finished, the post-operation
図6B(e)を例にして説明すると、この場合の操作の基準とする第1数式は、「y=3x2+5x−10」であり、第2数式は、「Z=9x3÷5」である。以上の両数式から第1置換え数式「3x2+5x」および第2置換え数式「9x3」が相互に置換えられる。結果として「y=9x3−10」および「Z=(3x2+5x)÷5」を含んだ数式データFdが生成される。 Referring to FIG. 6B (e) as an example, the first mathematical expression as the operation reference in this case is “y = 3x 2 + 5x−10”, and the second mathematical expression is “Z = 9x 3 ÷ 5”. It is. From the above equations, the first replacement equation “3x 2 + 5x” and the second substitution equation “9x 3 ” are replaced with each other. As a result, mathematical formula data Fd including “y = 9x 3 −10” and “Z = (3x 2 + 5x) ÷ 5” is generated.
このとき、置換えする数式部分は文字数の相違が起こりうる。たとえば、第1および第2置換え数式に含まれる文字数がNおよびMであるとすると、NおよびMの大小によって置換えられた操作基準数式データの数式をそのまま表示部14で表示させるとすると、一方では置換えた数式の左右に、見た目の空白部分が生じ、他方では両数式で重複する部分が生じる。このため置換え部分が元在った数式の一部に、ある一定範囲の空隙を以って滑らかにつながるようにするために、置換え後の両数式の位置情報を算出しなおし、数式領域および各文字の位置領域を設定しなおす処理がなされる。
At this time, a difference in the number of characters may occur in the replaced mathematical expression portion. For example, if the number of characters included in the first and second replacement formulas is N and M, the formula of the operation reference formula data replaced by the magnitude of N and M is displayed on the
また、前述の例で見るように、第2数式「Z=9x3÷5」に対して「9x3」を「3x2+5x」で置換える場合には、「(」および「)」で「3x2+5x」を挟み込み、四則演算の原則に則った新たな数式構築がなされる。 As seen in the above example, when “9x 3 ” is replaced with “3x 2 + 5x” in the second mathematical expression “Z = 9x 3 ÷ 5”, “(” and “)” 3x 2 + 5x "is inserted, and a new mathematical expression is constructed in accordance with the principle of the four arithmetic operations.
操作後数式生成部17は、以上のようにして置換え処理を終えれば処理c19に示されるように更新した操作基準数式データと修正数式データを送り、数式が変更されたことを制御部11に通知する。
After completion of the replacement process as described above, the post-operation
制御部11は、処理c20において置換え処理後の第2数式データの数式IDと一致する記憶部19の数式を検索し、数式データFdを変更する。さらに、置換え処理後の操作基準数式データと数式IDが一致する記憶部19の数式を検索し、数式データFdを変更する。
The
以上指定された数式部分を操作するジェスチャについて説明した。以上で説明したジェスチャを用いてどのような演算が計算装置1で行われるかについて図12Aと図12Bとを用いて説明する。図12Aおよび図12Bは、本発明の一実施形態において操作後数式情報Fpが生成される様子を示す図である。図12Aおよび図12Bには、手書き図形ジェスチャGrおよび手書き操作ジェスチャGopによって指定された領域および操作を行う計算例を示す図である。
The gesture for operating the specified mathematical formula portion has been described above. With reference to FIG. 12A and FIG. 12B, what kind of calculation is performed in the
図12A(a)は、数式「350+500」の部分に対し変数「E」が定義されていることを示す。代入ジェスチャに関連して説明したように、このジェスチャによって「E=350+500」が記憶部19に記憶される。変数「E」を用いる数式「150×5+E×4=」が利用者によって表示面に書かれると、自動的に演算がなされて図12A(b)に示されるように答えとして「4150」が得られる。
FIG. 12A (a) shows that the variable “E” is defined for the part of the formula “350 + 500”. As described in connection with the substitution gesture, “E = 350 + 500” is stored in the
図12A(c)および(d)は、移動ジェスチャを用いた演算例を示す。図12A(c)の1つ目の数式から「350+500」の部分を図12A(c)の2つ目の数式「150×5+」の右側に移動するように利用者が移動ジェスチャで指示した後に図12A(d)で示されるように移動ジェスチャの第2ストロークK2の右側に「×4=」を筆記すると、自動的に演算が行われて答えとして「4150」を表示される。 FIGS. 12A (c) and 12 (d) show examples of computation using a movement gesture. After the user instructs the movement gesture to move the portion of “350 + 500” from the first mathematical expression in FIG. 12A (c) to the right side of the second mathematical expression “150 × 5 +” in FIG. 12A (c). If “× 4 =” is written on the right side of the second stroke K2 of the movement gesture as shown in FIG. 12A (d), the calculation is automatically performed and “4150” is displayed as an answer.
図12A(c)の1つめの数式の一部に対して、(1)手書き図形ジェスチャGrの入力による領域指定情報が認識され、(2)第1および第2ストロークK1,K2が入力され、(3)その後の入力が一定時間内に行われない場合、かつ(4)第2ストロークK2近傍の予め定める範囲内に数式がない場合には、1つめの数式に対する処理は、実質的に削除と同じとなる。 With respect to a part of the first mathematical expression in FIG. 12A (c), (1) region designation information by inputting a handwritten graphic gesture Gr is recognized, (2) first and second strokes K1, K2 are input, (3) If the subsequent input is not performed within a certain time, and (4) if there is no mathematical expression within a predetermined range near the second stroke K2, the process for the first mathematical expression is substantially deleted. Will be the same.
図12B(e)および図12B(f)は、置換えジェスチャを用いた演算例である。図12B(e)は、利用者が図12B(e)における1つめの数式の一部である「500」を図12B(e)の2つめの数式の「(350+500)」の部分と置換え指示したことを示している。置換えジェスチャによって自動的に演算がなされ図12B(f)の1つめおよび2つめの数式情報のうち内部数式が置換えられて、演算結果が得られる。 FIG. 12B (e) and FIG. 12B (f) are calculation examples using the replacement gesture. In FIG. 12B (e), the user replaces “500”, which is part of the first mathematical expression in FIG. 12B (e), with the “(350 + 500)” part of the second mathematical expression in FIG. 12B (e). It shows that. An operation is automatically performed by the replacement gesture, and the internal mathematical expression is replaced in the first and second mathematical expression information in FIG. 12B (f), and a calculation result is obtained.
制御部11は、移動または置換えジェスチャの入力が停止してから、予め定める時間、たとえば数秒間、入力部12からの入力がなければ、操作後数式情報Fpに基づいて計算を行った結果、計算結果を表示する構成とする。制御部11は、時間について、筆記入力監視用タイマを利用して測定を行う。
If the input from the input unit 12 is not performed for a predetermined time, for example, several seconds after the input of the movement or replacement gesture is stopped, the
なお、以上の実施形態では、手書き図形ジェスチャGrは図5(a)の閉図形の形状として説明した。他の実施形態として、図13A(a)、図13A(b)および図13B(d)で示されるように閉じていない図形で領域を表すことができる。図13Aおよび図13Bは、本発明の他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。たとえば、図13A(a)および図13A(b)に示される領域指定の場合、図13A(c)で示されるように手書き操作ジェスチャGopの初期外接矩形SQ0の座標(P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmin,ymax))を求め、ymaxから所定長さL(例えば、筆記された文字の平均高さの1.5倍)だけ高いY座標値(ymax+L)を求める。 In the above embodiment, the handwritten figure gesture Gr has been described as the shape of the closed figure in FIG. As another embodiment, the region can be represented by a graphic that is not closed as shown in FIGS. 13A (a), 13A (b), and 13B (d). FIG. 13A and FIG. 13B are diagrams illustrating examples of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to another embodiment of the present invention. For example, in the case of the area designation shown in FIGS. 13A (a) and 13A (b), as shown in FIG. 13A (c), the coordinates (P1 (x min , y min ) of the initial circumscribed rectangle SQ0 of the handwriting operation gesture Gop. ), P2 (x max, y min), P3 (x min, y max), P4 (x min, y max)) of the calculated, predetermined from y max length L (e.g., the average height of the handwritten character Y coordinate value (y max + L) that is 1.5 times higher) is obtained.
これによって座標(P1(xmin,ymin),P2(xmax,ymin),P5(xmin,ymax+L),P6(xmin,ymax+L)を持つ第1外接矩形SQ1が求まる。初期外接矩形SQ0は、手書き操作ジェスチャGopとして筆記された筆記情報そのものの外接矩形SQであって、大きさが自動的に変更される前の初期の外接矩形SQである。そして、Pistとして(xmin、ymin)、Pienとして(xmax,ymax+L)とし、領域の指定範囲を[Pist,Pien]とする。ここでiは、数式情報に対応する添え字である。この座標でできる矩形の中心を基準位置Pr0とすれば良い。 This coordinates (P1 (x min, y min ), P2 (x max, y min), P5 (x min, y max + L), P6 (x min, the first enclosing rectangle SQ1 with y max + L) determined . initial circumscribed rectangle SQ0 is a circumscribed rectangle SQ writing information itself that has been written as a handwriting operation gesture Gop, an initial enclosing rectangle SQ before the size is automatically changed. Then, as P ist (X min , y min ), P ien is (x max , y max + L), and the designated range of the area is [P ist , P ien ], where i is a subscript corresponding to the mathematical formula information. . may be the center of the rectangle can be in the coordinate reference position Pr 0.
図13B(d)に示される領域指定の場合、図13B(e)で示されるように手書き操作ジェスチャGopに外接する外接矩形SQ0の座標(P1(xmin,ymin),P2(xmax,ymin),P3(xmin,ymax),P4(xmin,ymax))を求め、外接矩形SQ0の中心のY座標y0を求める。y0=(ymax+ymin)/2である。そのY座標を中心に上下に所定長さL/2を考慮したY座標y0−L/2およびy0+L/2を求める。これによって、新たに4つの座標(Q1(xmin,y0−L/2)、Q2(xmax,y0−L/2)、Q3((xmin,y0+L/2)、Q4(xmax,y0+L/2)を持つ外接矩形SQ1が求まる。この場合、領域の指定範囲を示す[Pist,Pien]においてPistは、Q1(xmin,y0−L/2)であり、Pienは、Q4(xmax,y0+L/2)となる。 In the case of the area designation shown in FIG. 13B (d), as shown in FIG. 13B (e), the coordinates (P1 (x min , y min ), P2 (x max , P)) of the circumscribed rectangle SQ0 circumscribing the handwriting operation gesture Gop are shown. y min ), P 3 (x min , y max ), P 4 (x min , y max )) are obtained, and the Y coordinate y 0 of the center of the circumscribed rectangle SQ 0 is obtained. y 0 = (y max + y min ) / 2. Y coordinates y 0 -L / 2 and y 0 + L / 2 are calculated in consideration of a predetermined length L / 2 in the vertical direction around the Y coordinate. Thus, four new coordinates (Q1 (x min, y 0 -L / 2), Q2 (x max, y 0 -L / 2), Q3 ((x min, y 0 + L / 2), Q4 ( x max, is circumscribed rectangle SQ1 with y 0 + L / 2) obtained. in this case, indicating the designated range of the area [P ist, P ien] is P ist in, Q1 (x min, y 0 -L / 2) And Pien is Q4 (x max , y 0 + L / 2).
図14Aおよび図14Bは、本発明のさらに他の実施形態における手書き図形ジェスチャGrおよび手書き操作ジェスチャGopの一例を示す図である。さらに他の実施形態では、図14Aおよび図14Bに示されるように代入、置換えの各ジェスチャに対して様々に対応することができる。 FIG. 14A and FIG. 14B are diagrams illustrating an example of a handwritten graphic gesture Gr and a handwriting operation gesture Gop according to still another embodiment of the present invention. In still other embodiments, various substitution and replacement gestures can be accommodated as shown in FIGS. 14A and 14B.
たとえば図6A(a)を参照して説明した代入ジェスチャの代わりに、図14A(a)で示される円弧状の手書き操作ジェスチャGopを用いた代入指定も可能である。この場合、図14A(b)に示されるように代入操作のために指定された領域を内包する外接矩形を第6外接矩形SQ6、代入ジェスチャの第1ストロークを内包する外接矩形を第7外接矩形SQ7、および代入変数を内包する矩形を第8外接矩形SQ8とする。外接矩形SQ13の4つの座標を(p21(x2min,y2min),p22(x2max,y2min),p23(x2min,y2max),p24(x2min,y2max))とすると、この場合の手書き操作ジェスチャGopの始端の座標は、p21であり、終端の座標は、p24である。 For example, instead of the substitution gesture described with reference to FIG. 6A (a), substitution designation using the arc-shaped handwriting operation gesture Gop shown in FIG. 14A (a) is also possible. In this case, as shown in FIG. 14A (b), the circumscribed rectangle containing the area designated for the substitution operation is the sixth circumscribed rectangle SQ6, and the circumscribed rectangle containing the first stroke of the substitution gesture is the seventh circumscribed rectangle. A rectangle containing SQ7 and the substitution variable is an eighth circumscribed rectangle SQ8. The four coordinates of the circumscribed rectangle SQ13 are (p 21 (x2 min , y2 min ), p 22 (x2 max , y2 min ), p 23 (x2 min , y2 max ), p 24 (x2 min , y2 max )) Then, the beginning of the coordinates of the handwriting operation gestures Gop in this case is p 21, the end of the coordinates is p 24.
前記始端の座標と終端の座標と領域指定の基準位置Pr0とを用いて、始端および終端と領域指定の基準位置との距離を算出し、この距離のうち短い方を第1の代入基準位置Ps1、他方を第2の代入基準位置Ps2とする。前記Ps1と前記Pr0との距離をRSlenとして、手書き図形ジェスチャGrおよび代入ジェスチャ間距離の閾値RSlen0との比較に用い、前記Ps2と第8外接矩形SQ8の中心位置座標Pf0との距離をSVlenとして、代入ジェスチャおよび変数名間距離の閾値SVlen0との比較に用いる。 Using the coordinates of the start end, the coordinates of the end, and the region-designated reference position Pr 0 , the distance between the start end and end and the region-designated reference position is calculated, and the shorter of these distances is used as the first substitution reference position. Let Ps 1 be the second substitution reference position Ps 2 . The distance between the Ps 1 and the Pr 0 is RSlen, and is used for comparison with the handwritten figure gesture Gr and the threshold RSlen 0 for the distance between substitution gestures, and the Ps 2 and the center position coordinate Pf 0 of the eighth circumscribed rectangle SQ8 The distance is set as SVlen, which is used for comparison with the substitution gesture and the threshold value SVlen 0 between the variable names.
また、図6B(e)で置換えジェスチャを説明したけれども、図14B(c)で示されるように1ストローク(一筆書き)のジェスチャで表現することができる。図14B(d)において置換え操作のために指定された置換え第1数式に対する領域に外接する矩形を第10外接矩形SQ10とする。置換えジェスチャは、柄杓形状の連続した1つのストロークであり、その領域は、第9外接矩形SQ9で示される。しかし、第9外接矩形SQ9を構成する座標をそのまま用いるとこれまで説明された置換えとは異なった処理が必要となる。そのため置換えジェスチャのストロークの始端から軌跡間の角度を検出する処理を設け、所定角度(例えば120°以上)折れ曲がった点Cを検出する。始端から前記C点までを始端からの仮想第1ストロークKV1として検出する。さらに前記仮想第1ストロークKV1を除いた残りの部分を前記C点から始まる一つの手書き図形ジェスチャと見なし、仮想手書き図形ジェスチャKGr2を想定する。 Further, although the replacement gesture has been described with reference to FIG. 6B (e), it can be expressed with a one-stroke (single stroke) gesture as shown in FIG. 14B (c). In FIG. 14B (d), a rectangle circumscribing the area corresponding to the first replacement mathematical expression designated for the replacement operation is defined as a tenth circumscribed rectangle SQ10. The replacement gesture is one continuous stroke of a handle pattern, and the area is indicated by a ninth circumscribed rectangle SQ9. However, if the coordinates constituting the ninth circumscribed rectangle SQ9 are used as they are, processing different from the replacement described so far is required. Therefore, a process for detecting the angle between the trajectories from the start end of the stroke of the replacement gesture is provided, and a point C bent at a predetermined angle (for example, 120 ° or more) is detected. From the start end to the point C is detected as a virtual first stroke KV1 from the start end. Further, the remaining part excluding the virtual first stroke KV1 is regarded as one handwritten figure gesture starting from the point C, and a virtual handwritten figure gesture KGr2 is assumed.
この結果、置換えに対する仮想第1ストロークKV1を内包する外接矩形が第11外接矩形SQ11として、さらに置換えに対する仮想手書き図形ジェスチャKGr2を内包する外接矩形を第12外接矩形SQ12として求められる。このようにして求められた第12外接矩形SQ12の中心座標を、置換えジェスチャ処理で説明した第2の手書き図形ジェスチャGr2に対する第4外接矩形SQ4の中心座標データと同様に用いて置換え基準位置を求めることで、上記説明と同様に置換え処理を行えばよい。 As a result, the circumscribed rectangle that encloses the virtual first stroke KV1 for the replacement is obtained as the eleventh circumscribed rectangle SQ11, and the circumscribed rectangle that encloses the virtual handwritten figure gesture KGr2 for the substitution is obtained as the twelfth circumscribed rectangle SQ12. The replacement reference position is obtained by using the center coordinates of the twelfth circumscribed rectangle SQ12 thus obtained in the same manner as the center coordinate data of the fourth circumscribed rectangle SQ4 for the second handwritten figure gesture Gr2 described in the replacement gesture process. Thus, the replacement process may be performed in the same manner as described above.
このように、筆記入力手段120は、外力が付与された筆記入力部位の位置の情報およびその位置の変化が表す軌跡の情報を筆記情報として検出する。筆記入力手段120を含む入力部12は、筆記入力手段120が行った筆記情報検出結果を出力する。数式認識部13は、筆記入力手段120を用いて筆記入力された筆記情報のうち、数式を表わす数式筆記情報Gfを数式情報として認識する。表示部14には、表示を行う表示面が形成され、数式情報は、表示面に表わされる。
As described above, the writing
領域認識部15は、筆記情報のうち手書き図形ジェスチャGrを領域指定情報として認識する。手書き図形ジェスチャGrは、表示面上の領域を指定する。操作認識部16は、筆記情報のうち、手書き操作ジェスチャGopを操作情報として認識する。手書き操作ジェスチャGopは、領域指定情報によって指定される表示面上の領域において、この領域に表示される数式情報に対して利用者が所望する操作を表わす。操作後数式生成部17は、数式情報および領域指定情報に基づいて、前記操作が反映された数式を表わす操作後数式情報Fpを生成する。演算部18は、操作認識部16が操作情報を認識したときに、操作後数式情報Fpが表わす数式に基づいて演算を行い、演算結果を出力する。
The
したがって、利用者は、筆記入力手段120を用いて演算の数式を筆記し入力できるほか、筆記情報によって操作する数式の領域を指定し、指定された領域に表示される数式情報に対する演算操作を行うことができる。これによって、指定された領域に表示される数式を、指定された領域外に表示される数式と区別して処理することができる。またすでに筆記した数式の一部のみを他の計算に利用することができるようになる。このように数式に対する演算操作を簡単かつ容易にして、入力に要する利用者の手間を省き労力を軽減することができる。
Therefore, the user can write and input a mathematical expression using the writing
さらに、前記操作情報は、代入、移動、置換えおよび削除のいずれか一つを意味する情報であるので、利用者は、いずれかの前記ジェスチャによって、(1)前記領域指定した対象に対して代入変数を定義すること、(2)手書き図形ジェスチャGrによって領域指定した対象を手書き操作ジェスチャGopによって指定された領域へ移動すること、(3)領域指定情報によって指定された対象を他の数式において指定された内部数式情報と置換えする処理を行うこと、および(4)手書き図形ジェスチャGrによって領域指定情報が指定され、手書き操作ジェスチャGopによって削除を意味する操作情報が入力された場合に、領域指定情報によって指定された内部数式情報を削除すること、などを容易に指示し演算させることができる。また、同じ数式を他の数式の一部に用いる場合、当該数式の筆記の手間を節減可能なる。このため利用者にとってさらに操作性の良い計算装置1を提供できる。
Furthermore, since the operation information is information meaning any one of substitution, movement, replacement, and deletion, the user can substitute (1) the area-designated target by any of the gestures. Defining a variable, (2) moving an area designated by the handwritten graphic gesture Gr to an area designated by the handwriting operation gesture Gop, and (3) specifying the object designated by the area designation information in another mathematical expression. And (4) region designation information when the region designation information is designated by the handwritten figure gesture Gr and the operation information meaning deletion is inputted by the handwriting operation gesture Gop. It is possible to easily instruct and perform operations such as deleting the internal mathematical formula information designated by. Further, when the same mathematical expression is used as a part of another mathematical expression, it is possible to save time and effort for writing the mathematical expression. Therefore, it is possible to provide the
さらに、記憶部19は、前記領域指定情報によって指定される領域に表示される数式情報を記憶し、前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部19をさらに含む。これによって利用者は、一度入力された数式を代入変数として定義する操作を行えば他の数式において前記代入変数を入力することによって、変数に代入された数式情報を、利用することができる。したがって利用者は、一度入力した数式を再入力する必要がなくなり、複雑な数式を変数に代入しておけば、変数を筆記する入力によって複雑な数式に対しても簡単な入力で済ませることができる。
Further, the
さらに、表示部14は、前記入力部12に対する予め定める操作に応じて、前記記憶部19に記憶される数式情報の少なくとも一部を表示するので、利用者がすでに入力した数式の一部を忘れた場合でも、記憶部19に記憶される数式情報を目視確認することができるとともに、計算装置1に計算を続行させることができる。
Furthermore, the
計算プログラムは、コンピュータを、入力部12、数式認識部13、表示部14、領域認識部15、操作認識部16、操作後数式生成部17、および演算部18として機能させる。これによって、コンピュータを、計算装置1として機能させることができる。
The calculation program causes the computer to function as the input unit 12, the
さらに、前記計算プログラムがコンピュータに記録される読み取り可能な記録媒体である。したがって、前記プログラムを記録媒体として提供できる。 Further, the calculation program is a readable recording medium recorded in a computer. Therefore, the program can be provided as a recording medium.
(変形例)
前述の実施形態では、数式認識部13が数式を表す数式筆記情報Gfに基づいて数式情報を認識すると、表示部14は、数式筆記情報Gfの表示を消去した後、数式認識部13が認識した数式情報を活字によって表示するものとしたけれども、さらに他の実施形態では、表示部14は、前記数式筆記情報Gfを表示し、数式認識部13が、前記数式筆記情報Gfに基づいて数式情報を認識すると、数式筆記情報Gfを表示した表示面上の位置とは異なる位置に、数式認識部13が認識した数式情報を活字によって表示した後、数式筆記情報Gfの表示を消去する構成とすることも可能である。
(Modification)
In the above-described embodiment, when the mathematical
これによって、数式筆記情報Gfと活字によって表示された数式情報とを見比べることが可能となる。したがって、数式認識部13によって認識された数式情報が筆記によって入力した数式と一致するか否かを、容易に確認することができる。
This makes it possible to compare the mathematical expression writing information Gf with the mathematical expression information displayed by the type. Therefore, it can be easily confirmed whether or not the mathematical formula information recognized by the mathematical
また前述の実施形態において表示部14は、手書き図形ジェスチャGrが入力されると、手書き図形ジェスチャGrをそのまま表示するものとした。これに対し、さらに他の実施形態において表示部14は、筆記によって入力された手書き図形ジェスチャGrを表示し、領域認識部が手書き図形ジェスチャGrに基づいて領域指定情報を認識すると、表示部14は、手書き図形ジェスチャGrを消去した後、領域指定情報によって指定される領域に表示される数式情報を、指定される領域外に表示される数式情報に対して視認による区別可能とする表示を行う構成とすることも可能である。
In the above-described embodiment, when the handwritten graphic gesture Gr is input, the
これは、指定された領域に表示される数式情報を囲む図形を表示画面30に表示させることによって、区別可能に表示してもよいし、指定された領域に表示される数式情報を、指定された領域外に表示される数式情報を表示する表示画面30上の表示とは異なる色によって表示してもよい。
This may be displayed in a distinguishable manner by displaying a figure surrounding the mathematical formula information displayed in the designated area on the
これによって、手書き図形ジェスチャGrによって指定された数式情報を、目視によって確認することが可能となる。したがって、筆記によって指定した範囲に誤りがあったり、領域認識部15による手書き図形ジェスチャGrに対する認識に誤りがあったりしても、確認の上、修正することが可能となる。
As a result, the mathematical formula information designated by the handwritten graphic gesture Gr can be visually confirmed. Therefore, even if there is an error in the range designated by writing, or there is an error in recognition of the handwritten graphic gesture Gr by the
変数に代入された数式を表す内部数式情報と、この変数を表す変数情報を包含する外部数式情報とを数式認識部13が認識したときに、演算部18は、外部数式情報における変数情報を、内部数式情報に置換することよって新たな数式情報を生成する。これによって、変数を介して互いに関係付けられる複数の数式から、新たな数式を生成することができる。したがって、数式を完成した状態で入力しなくても、すでに数式の少なくとも一部を利用しながら、計算を続行させることができる。これによって、数式の入力および入力した数式の訂正を、容易に行うことができる。
When the
前述の実施形態では、筆記入力手段120は、透明なポインティングデバイスを含んで構成され、表示部14の表示面に重ねて配置されるものとしたけれども、さらに他の実施形態において、筆記入力手段120は、不透明でかつ表示部14と別体に形成されてもよい。利用者は、表示部14による表示を見ながら、たとえばマウスなどのポインティングデバイスを操作することによって、数式情報の入力を行ってもよい。このように、ポインティングデバイスが不透明な場合における入力をも、「筆記」に含むものとする。
In the above-described embodiment, the writing
1 計算装置
11 制御部
12 入力部
13 数式認識部
14 表示部
15 領域認識部
16 操作認識部
17 操作後数式生成部
18 演算部
19 記憶部
20 筆記情報認識辞書
21 ジェスチャ処理ルール辞書
30 表示画面
31 表示入力領域
32 ジェスチャ開始ボタン
33 ジェスチャ終了ボタン
34 数式入力ボタン
120 筆記入力手段
121 文字認識手段
DESCRIPTION OF
Claims (6)
前記筆記入力手段による検出結果を出力する入力部と、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表す数式筆記情報を、数式情報として認識する数式認識部と、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部と、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部と、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部と、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部と、
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部とを含むことを特徴とする計算装置。 An input unit having a writing input means for performing input by writing, wherein the writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Of the writing information input by writing using the writing input means, a mathematical expression recognition unit that recognizes mathematical expression writing information representing a mathematical expression as mathematical expression information,
A display surface for displaying, and a display unit for displaying the mathematical formula information on the display surface;
An area recognition unit for recognizing a handwritten figure gesture for designating an area on the display surface as the area designation information among the writing information;
An operation recognizing unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information;
A post-operation formula generation unit that generates post-operation formula information representing a formula reflecting the operation based on the formula information and the operation information;
A calculation device comprising: an arithmetic unit that performs an operation based on an equation represented by the post-operation formula information when the post-operation formula generation unit generates post-operation formula information, and outputs an operation result.
前記操作情報が、変数に対する代入を意味する情報である場合に、前記変数の情報と、この変数に代入された数式を表す数式情報とを互いに関連付けて記憶する記憶部をさらに含むことを特徴とする請求項2に記載の計算装置。 A storage unit for storing mathematical formula information displayed in an area designated by the area designation information;
When the operation information is information meaning assignment to a variable, the information further includes a storage unit that stores the information of the variable and mathematical expression information representing the mathematical expression assigned to the variable in association with each other, The calculation device according to claim 2.
前記筆記入力手段は、筆記によって外力が付与された1または複数の部位の位置の情報を筆記情報として検出し、
前記筆記入力手段による検出結果を出力する入力部、
前記筆記入力手段を用いて筆記によって入力された筆記情報のうち、数式を表す筆記情報を、数式情報として認識する数式認識部、
表示を行う表示面が形成され、前記数式情報を前記表示面に表示する表示部、
前記筆記情報のうち、前記表示面上の領域を指定する手書き図形ジェスチャを、領域指定情報として認識する領域認識部、
前記筆記情報のうち、前記領域指定情報によって指定される前記表示面上の領域に表示される数式情報に対する操作を表す手書き操作ジェスチャを、操作情報として認識する操作認識部、
前記数式情報および前記操作情報に基づいて、前記操作が反映された数式を表す操作後数式情報を生成する操作後数式生成部、および
前記操作後数式生成部が操作後数式情報を生成したときに、前記操作後数式情報が表す数式に基づいて演算を行い演算結果を出力する演算部として機能させることを特徴とする計算プログラム。 An input unit having a writing input means for inputting a computer by writing,
The writing input means detects, as writing information, information on positions of one or more parts to which an external force is applied by writing,
An input unit for outputting a detection result by the writing input unit;
Among the writing information input by writing using the writing input means, a mathematical expression recognition unit for recognizing writing information representing a mathematical expression as mathematical information,
A display surface for displaying is formed, and the display unit displays the mathematical formula information on the display surface.
An area recognition unit for recognizing handwritten graphic gestures for designating an area on the display surface as area designation information among the writing information,
An operation recognition unit that recognizes, as operation information, a handwriting operation gesture representing an operation on mathematical formula information displayed in the region on the display surface specified by the region specifying information among the writing information.
Based on the formula information and the operation information, a post-operation formula generation unit that generates post-operation formula information that represents a formula reflecting the operation, and when the post-operation formula generation unit generates post-operation formula information A calculation program that functions as a calculation unit that performs a calculation based on a formula represented by the formula information after the operation and outputs a calculation result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009203142A JP2011053986A (en) | 2009-09-02 | 2009-09-02 | Computing device, computing program, and recording medium recording the program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009203142A JP2011053986A (en) | 2009-09-02 | 2009-09-02 | Computing device, computing program, and recording medium recording the program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011053986A true JP2011053986A (en) | 2011-03-17 |
Family
ID=43942908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009203142A Pending JP2011053986A (en) | 2009-09-02 | 2009-09-02 | Computing device, computing program, and recording medium recording the program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011053986A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013058047A1 (en) * | 2011-10-21 | 2013-04-25 | シャープ株式会社 | Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium |
JP2013097643A (en) * | 2011-11-02 | 2013-05-20 | Konica Minolta Business Technologies Inc | Handwriting input device and handwriting input control program |
JP2013131066A (en) * | 2011-12-21 | 2013-07-04 | Sharp Corp | Display system and display program |
JPWO2016117564A1 (en) * | 2015-01-21 | 2017-10-26 | 国立大学法人東京農工大学 | Program, information storage medium and recognition device |
WO2019235274A1 (en) * | 2018-06-07 | 2019-12-12 | ソニー株式会社 | Control device, control method, program, and mobile unit |
-
2009
- 2009-09-02 JP JP2009203142A patent/JP2011053986A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013058047A1 (en) * | 2011-10-21 | 2013-04-25 | シャープ株式会社 | Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium |
JP2013089203A (en) * | 2011-10-21 | 2013-05-13 | Sharp Corp | Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium |
CN103890698A (en) * | 2011-10-21 | 2014-06-25 | 夏普株式会社 | Input device, input device control method, controlled device, electronic whiteboard system, control program, and recording medium |
JP2013097643A (en) * | 2011-11-02 | 2013-05-20 | Konica Minolta Business Technologies Inc | Handwriting input device and handwriting input control program |
US9158450B2 (en) | 2011-11-02 | 2015-10-13 | Konica Minolta Business Technologies, Inc. | Handwriting input device and handwriting input control program |
JP2013131066A (en) * | 2011-12-21 | 2013-07-04 | Sharp Corp | Display system and display program |
JPWO2016117564A1 (en) * | 2015-01-21 | 2017-10-26 | 国立大学法人東京農工大学 | Program, information storage medium and recognition device |
WO2019235274A1 (en) * | 2018-06-07 | 2019-12-12 | ソニー株式会社 | Control device, control method, program, and mobile unit |
JPWO2019235274A1 (en) * | 2018-06-07 | 2021-06-17 | ソニーグループ株式会社 | Controls, control methods, programs, and mobiles |
JP7331846B2 (en) | 2018-06-07 | 2023-08-23 | ソニーグループ株式会社 | CONTROL DEVICE, CONTROL METHOD, PROGRAM, AND MOVING OBJECT |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6502114B1 (en) | Script character processing method for determining word boundaries and interactively editing ink strokes using editing gestures | |
JP4244614B2 (en) | Handwriting input device, program, and handwriting input method system | |
US6499043B1 (en) | Script character processing method and system | |
JP4742132B2 (en) | Input device, image processing program, and computer-readable recording medium | |
US6434581B1 (en) | Script character processing method for interactively adjusting space between writing element | |
US7697001B2 (en) | Personalized ink font | |
WO2014147722A1 (en) | Electronic apparatus, method, and program | |
JP2010020795A (en) | Interfacing with ink | |
JP2011053986A (en) | Computing device, computing program, and recording medium recording the program | |
US7295206B2 (en) | Ink input region adjustments | |
WO2014147712A1 (en) | Information processing device, information processing method and program | |
WO2015136618A1 (en) | Electronic device, method, and program | |
JP2012108760A (en) | Electronic information board device, information display method, and program | |
CN104615367B (en) | The pen-based interaction method and system of processing are judged based on handwriting input state self-adaption | |
JP2009151449A (en) | Electric blackboard with undo function | |
JP2002091676A (en) | Input device | |
JP2004013318A (en) | Method, apparatus, and program for information processing | |
TWI676932B (en) | Input method and system of electronic device | |
JP2009048655A (en) | Handwriting input device, program, and handwriting input method system | |
US20150347835A1 (en) | Electronic device, handwritten document search method and storage medium | |
Zeleznik et al. | Designing UI techniques for handwritten mathematics | |
JP2011081749A (en) | Control device, control method, control program, and recording medium | |
JP6918252B2 (en) | Ink data generator, method and program | |
WO2016067417A1 (en) | Electronic instrument, method and program | |
JP3200249B2 (en) | Document processing device |