CN103176739A - Method for realizing handwriting calculator function and mobile terminal thereof - Google Patents
Method for realizing handwriting calculator function and mobile terminal thereof Download PDFInfo
- Publication number
- CN103176739A CN103176739A CN2013100698714A CN201310069871A CN103176739A CN 103176739 A CN103176739 A CN 103176739A CN 2013100698714 A CN2013100698714 A CN 2013100698714A CN 201310069871 A CN201310069871 A CN 201310069871A CN 103176739 A CN103176739 A CN 103176739A
- Authority
- CN
- China
- Prior art keywords
- input character
- mobile terminal
- module
- function
- calculator
- 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
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000004364 calculation method Methods 0.000 claims abstract description 46
- 239000000523 sample Substances 0.000 claims 2
- 238000004458 analytical method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 101000579647 Penaeus vannamei Penaeidin-2a Proteins 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动终端技术领域,更具体地涉及一种实现手写计算器功能的方法及其移动终端。The present invention relates to the technical field of mobile terminals, and more particularly relates to a method for realizing the function of a handwriting calculator and a mobile terminal thereof.
背景技术Background technique
随着移动终端技术的发展,传统的计算器功能已广泛集成于各种移动终端,用户只需携带一移动终端就可享受到移动终端和计算器两种电子设备所带来的便捷应用。With the development of mobile terminal technology, traditional calculator functions have been widely integrated into various mobile terminals. Users only need to carry a mobile terminal to enjoy the convenient applications brought by the two electronic devices, the mobile terminal and the calculator.
目前移动终端集成的计算器功能主要通过虚拟键盘、物理键盘、计算器界面中的虚拟按键及触摸笔手写输入等方式进行计算器的操作。然而,由于移动终端屏幕及移动终端物理键盘大小的限制,现有技术所能提供的计算器操作区域非常有限,并不便于快速输入计算式实现高效计算。同时,对于习惯于使用纸和笔进行书写的用户或需要使用纸和笔记录运算过程的用户,将不得不交替进行书写和操作计算器两项事务,从而极大的降低了操作效率和用户体验。At present, the calculator function integrated in the mobile terminal is mainly operated by means of virtual keyboard, physical keyboard, virtual keys in the calculator interface, and handwriting input with a touch pen. However, due to the limitation of the size of the mobile terminal screen and the physical keyboard of the mobile terminal, the calculator operating area provided by the prior art is very limited, which is not convenient for fast input of calculation formulas to achieve efficient calculation. At the same time, users who are accustomed to using paper and pen to write or need to use paper and pen to record the calculation process will have to alternately write and operate the calculator, which greatly reduces the operating efficiency and user experience. .
因此,有必要提供一种实现手写计算器功能的方法及其移动终端来克服上述缺陷。Therefore, it is necessary to provide a method for realizing the function of a handwriting calculator and its mobile terminal to overcome the above-mentioned defects.
发明内容Contents of the invention
本发明的目的是提供一种实现手写计算器功能的方法,便于计算式的快速输入并提高操作效率和用户体验。The purpose of the present invention is to provide a method for realizing the functions of a handwriting calculator, which facilitates fast input of calculation formulas and improves operation efficiency and user experience.
本发明的另一目的是提供一种具有手写计算器功能的移动终端,便于计算式的快速输入并提高操作效率和用户体验。Another object of the present invention is to provide a mobile terminal with a handwriting calculator function, which facilitates fast input of calculation formulas and improves operation efficiency and user experience.
为了实现上述目的,本发明提供了一种实现手写计算器功能的方法,适用于移动终端,所述移动终端包括超声波接收装置,所述方法包括如下步骤:In order to achieve the above object, the present invention provides a method for realizing the function of a handwriting calculator, which is suitable for a mobile terminal, the mobile terminal includes an ultrasonic receiving device, and the method includes the following steps:
(1)根据接收到的超声波信号解析得到输入字符;(1) Analyze the input characters according to the received ultrasonic signal;
(2)判断所述输入字符是否为数字或数学符号;(2) judging whether the input characters are numbers or mathematical symbols;
(3)若是,则记录并添加所述输入字符至运算式,反之,则提示输入无效并显示网络搜索的跳转链接;(3) If yes, record and add the input characters to the calculation formula, otherwise, prompt that the input is invalid and display the jump link of the network search;
(4)判断所述输入字符是否为等号,若是,则执行步骤(5),反之,则重复所述步骤(1)至所述步骤(4);(4) Determine whether the input character is an equal sign, if so, perform step (5), otherwise, repeat the step (1) to the step (4);
(5)计算所述运算式并显示运算结果。(5) Calculate the calculation formula and display the calculation result.
与现有技术相比,本发明先根据接收到的超声波信号解析得到输入字符,再判断所述输入字符是否为数字或数学符号,再根据判断结果记录所述输入字符至运算式,再判断所述输入字符是否为等号,最后根据判断结果计算所述运算式并显示运算结果,实现了计算式的快速手写输入并提高了操作效率和用户体验。Compared with the prior art, the present invention first analyzes and obtains the input character according to the received ultrasonic signal, then judges whether the input character is a number or a mathematical symbol, and then records the input character into the calculation formula according to the judgment result, and then judges whether the input character is a number or a mathematical symbol. The input character is an equal sign, and finally calculates the calculation formula according to the judgment result and displays the calculation result, which realizes the fast handwriting input of the calculation formula and improves the operation efficiency and user experience.
较佳地,所述步骤(2)具体为:Preferably, the step (2) is specifically:
判断所述输入字符是否为数字、运算符号、等号及小数点。It is judged whether the input character is a number, an operation symbol, an equal sign and a decimal point.
较佳地,所述步骤(1)之前还包括:Preferably, before the step (1), it also includes:
当检测到所述超声波信号时判断计算器功能是否开启,若是,则执行所述步骤(1),反之,则提供选择项供用户选择是否开启所述计算功能。When the ultrasonic signal is detected, it is judged whether the calculator function is turned on, and if so, the step (1) is executed; otherwise, options are provided for the user to choose whether to turn on the calculator function.
相应的,本发明还提供了一种具有手写计算器功能的移动终端,包括本体和设置于所本体上的超声波接收装置,所述本体包括:Correspondingly, the present invention also provides a mobile terminal with the function of a handwriting calculator, including a body and an ultrasonic receiving device arranged on the body, and the body includes:
解析模块,用于根据接收到的超声波信号解析得到输入字符;An analysis module is used to analyze and obtain input characters according to the received ultrasonic signal;
第一判断模块,用于判断所述输入字符是否为数字或数学符号;The first judging module is used to judge whether the input characters are numbers or mathematical symbols;
记录模块,用于根据所述第一判断模块的判断结果记录所述输入字符至运算式;A recording module, configured to record the input characters into the calculation formula according to the judgment result of the first judgment module;
第一提示模块,用于根据所述第一判断模块的判断结果提示输入无效并显示网络搜索的跳转链接;The first prompting module is used to prompt that the input is invalid according to the judgment result of the first judging module and display the jump link of the network search;
第二判断模块,用于判断所述输入字符是否为等号;The second judging module is used to judge whether the input character is an equal sign;
计算模块,用于计算所述运算式并显示运算结果。A calculation module, used to calculate the calculation formula and display the calculation result.
较佳地,所述移动终端还包括:Preferably, the mobile terminal further includes:
第三判断模块,用于当检测到超声波信号时判断计算器功能是否开启;The third judging module is used to judge whether the calculator function is turned on when the ultrasonic signal is detected;
第二提示模块,用于根据所述第二判断模块的判断结果提供选择项供用户选择是否开启所述计算功能。The second prompting module is configured to provide options for the user to choose whether to enable the computing function according to the judgment result of the second judging module.
通过以下的描述并结合附图,本发明将变得更加清晰,这些附图用于解释本发明的实施例。The present invention will become clearer through the following description in conjunction with the accompanying drawings, which are used to explain the embodiments of the present invention.
附图说明Description of drawings
图1为本发明的实现手写计算器功能的方法的一实施例流程图。FIG. 1 is a flowchart of an embodiment of the method for realizing the function of a handwriting calculator according to the present invention.
图2为本发明的具有手写计算器功能的移动终端的一实施例的结构示意图。FIG. 2 is a schematic structural diagram of an embodiment of a mobile terminal with a handwriting calculator function according to the present invention.
图3为图2中移动终端本体的结构框图。FIG. 3 is a structural block diagram of the mobile terminal body in FIG. 2 .
具体实施方式Detailed ways
现在参考附图描述本发明的实施例,附图中类似的元件标号代表类似的元件。Embodiments of the present invention will now be described with reference to the drawings, in which like reference numerals represent like elements.
参照图1,本发明的实现手写计算器功能的方法,包括如下步骤:With reference to Fig. 1, the method for realizing handwriting calculator function of the present invention, comprises the steps:
步骤S101,当检测到所述超声波信号时判断计算器功能是否开启,若是,则执行步骤S102,反之,则执行步骤S103提供选择项供用户选择是否开启所述计算功能;具体地,移动终端将实时监听超声波信号的输入,当监听到有超声波信号的输入时,则触发判断所述计算器功能是否开启的事件;本领域技术人员应当清楚,所述计算功能还可设置为自动开启状态;如:当检测到超声波信号时,判断得知计算功能未开始,于是显示两个选择项“是”和“否”供用户选择是否开启计算功能,用户选择“是“,于是开启计算功能;Step S101, when the ultrasonic signal is detected, it is judged whether the calculator function is turned on, if so, step S102 is executed, otherwise, step S103 is executed to provide options for the user to choose whether to turn on the calculator function; specifically, the mobile terminal will Monitor the input of the ultrasonic signal in real time, and when the input of the ultrasonic signal is detected, an event to judge whether the calculator function is opened is triggered; those skilled in the art should know that the calculation function can also be set to an automatic open state; as : When the ultrasonic signal is detected, it is judged that the calculation function has not started, so two options "Yes" and "No" are displayed for the user to choose whether to enable the calculation function, and the user selects "Yes", and then the calculation function is activated;
步骤S102,根据接收到的超声波信号解析得到输入字符;具体地,首先通过位于移动终端上的3个超声波传感器接收超声波笔书写时发出的所述超声波信号,再根据3个所述超声波传感器接收所述超声波信号时的时延计算出所述超声波笔的位置,当所述超声波笔移动时,则可连续记录所述超声波笔的位置得到书写轨迹,再根据所述书写轨迹解析得到所述操作项;值得注意的是,输入时所述超声波笔的位置应处于所述超声波传感器的接收范围内;如:使用超声波笔在纸面上依次书写了“+”、“1”、“+“、”2“、”.“、”3“及”=“,于是根据超声波笔书写时发出的超声波信号解析得到输入字符“+”、“1”、“+“、”2“、”.“、”3“及”=“;又如:使用超声波笔在纸面上依次书写了“+”、“4”、“+“、“*“、、”2“及”=“,于是根据超声波笔书写时发出的超声波信号解析得到输入字符“+”、“4”、“+“、“*“、、”2“及”=“;又如:使用超声波笔在纸面上书写了”a“,于是根据超声波笔书写时发出的超声波信号解析得到输入字符“a”;Step S102, analyze and obtain the input characters according to the received ultrasonic signal; specifically, first receive the ultrasonic signal sent by the ultrasonic pen when writing through the three ultrasonic sensors on the mobile terminal, and then receive the input character according to the three ultrasonic sensors. The position of the ultrasonic pen is calculated based on the time delay of the ultrasonic signal, when the ultrasonic pen moves, the position of the ultrasonic pen can be continuously recorded to obtain the writing track, and then the operation item can be obtained by analyzing the writing track It is worth noting that the position of the ultrasonic pen should be within the receiving range of the ultrasonic sensor during input; for example, "+", "1", "+", "" are written on the paper in sequence using the ultrasonic pen 2", ".", "3" and "=", so the input characters "+", "1", "+", "2", ".", " are analyzed according to the ultrasonic signal sent by the ultrasonic pen when writing 3" and "="; Another example: use the ultrasonic pen to write "+", "4", "+", "*", "2" and "=" in sequence on the paper, so write according to the ultrasonic pen The ultrasonic signal sent out at the time is analyzed to obtain the input characters "+", "4", "+", "*", "2" and "="; another example: use an ultrasonic pen to write "a" on the paper, Then, the input character "a" is obtained by analyzing the ultrasonic signal sent out when writing with the ultrasonic pen;
步骤S104,判断所述输入字符是否为阿拉伯数字、运算符号、等号或小数点,若是,则执行步骤S105,反之,则执行步骤S106;如:由于操作项”+“为运算符号,于是执行步骤S105;又如:由于输入字符”1“为数字,于是执行步骤S105;又如:由于输入字符”2“为数字,于是执行步骤S105;又如:由于输入字符”.“为小数点,于是执行步骤S105;又如:由于输入字符”3“为数字,于是执行步骤S105;又如:由于输入字符”=“为等号,于是执行步骤S105;又如:由于输入字符”a“为英文字母,于是执行步骤S106;Step S104, determine whether the input character is an Arabic numeral, an operation symbol, an equal sign or a decimal point, if so, execute step S105, otherwise, execute step S106; as: because the operation item "+" is an operation symbol, then execute step S104 S105; another example: because the input character "1" is a number, then execute step S105; another example: because the input character "2" is a number, then execute step S105; another example: because the input character "." is a decimal point, then execute Step S105; another example: because the input character "3" is a number, then step S105 is executed; another example: because the input character "=" is an equal sign, then step S105 is executed; another example: because the input character "a" is an English letter , then execute step S106;
步骤S105,记录所述输入字符至运算式并执行步骤S107;所述运算式初始值为空;如:依次记录输入字符“+”、“1”、“+“、”2“、”.“、”3“及”=“至运算式,得到运算式”+1+2.3=“;又如:依次记录输入字符“4”、“+”、“*“、”2“及”=“至运算式,得到运算式”4+*2=“;Step S105, record the input characters into the calculation formula and execute step S107; the initial value of the calculation formula is empty; for example: record the input characters "+", "1", "+", "2", "." , "3" and "=" to the calculation formula, to get the calculation formula "+1+2.3="; another example: record the input characters "4", "+", "*", "2" and "=" to Computational formula, get the formula "4+*2=";
步骤S106,提示输入无效并显示网络搜索的跳转链接;Step S106, prompting that the input is invalid and displaying the jump link of the network search;
步骤S107,判断所述输入字符是否为等号,若是,则执行步骤S108,反之,则重复所述步骤S102至所述步骤S107;如:输入字符为“+“,于是重复所述步骤S102至所述步骤S107;又如:输入字符为“=“,于是执行所述步骤S108;Step S107, determine whether the input character is an equal sign, if so, then execute step S108, otherwise, repeat the step S102 to the step S107; such as: the input character is "+", then repeat the steps S102 to S107 The step S107; another example: the input character is "=", then execute the step S108;
步骤S108,计算所述运算式并显示计算结果。本领域技术人员应当清楚,计算时所述运算式中数值运算项前面的运算符号将被忽略,两数值运算项中间存在多个运算符号时,只取优先级最高的一个运算符号参与计算;本领域技术人员还应当清楚,计算完成后所述计算式将被重置为空。如:计算运算式“+1+2.3=“得到计算结果”3.3“,于是显示计算结果”3.3“;又如:计算运算式”4+*2=“得到计算结果”8“,于是显示计算结果”8“。Step S108, calculating the calculation formula and displaying the calculation result. Those skilled in the art should be clear that the operation symbols in front of the numerical operation items in the calculation formula will be ignored during calculation, and when there are multiple operation symbols between the two numerical operation items, only the operation symbol with the highest priority is used to participate in the calculation; It should also be clear to those skilled in the art that the calculation formula will be reset to empty after the calculation is completed. For example: the calculation formula "+1+2.3="gets the calculation result "3.3", then displays the calculation result "3.3"; another example: the calculation formula "4+*2="gets the calculation result "8", then displays the calculation The result is "8".
参照图2,本发明的具有手写计算器功能的移动终端100,包括本体10和设置于所述本体10上的超声波接收装置20,所述超声波接收装置20包括可感测超声波的传感器201、传感器202及传感器203。With reference to Fig. 2, the
参照图3,所述本体10包括:Referring to Figure 3, the
第三判断模块101,用于当检测到超声波信号时判断计算器功能是否开启;The
第二提示模块102,用于根据所述第二判断模块101的判断结果提供选择项供用户选择是否开启所述计算功能;The
解析模块103,用于根据第三判断模块101的判断结果和接收到的超声波信号解析得到输入字符;Analyzing
第一判断模块104,用于判断所述输入字符是否为数字或数学符号;所述数学符号包括运算符号、等号及小数点;The
记录模块105,用于根据所述第一判断模块104的判断结果记录所述输入字符至运算式;A
第一提示模块106,用于根据所述第一判断模块104的判断结果提示输入无效并显示网络搜索的跳转链接;The
第二判断模块107,用于根据所述第一判断模块104的判断结果判断所述输入字符是否为等号;The
计算模块108,用于根据所述第二判断模块107的判断结果计算所述运算式并显示运算结果。The
根据以上描述,本发明先通过解析模块103根据接收到的超声波信号解析得到输入字符,再通过第一判断模块104判断输入字符是否为数字或数学符号,再通过记录模块105记录输入字符至运算式,再通过第二判断模块107判断所述输入字符是否为等号,最后通过计算模块108根据判断结果计算所述运算式并显示运算结果,实现了计算式的快速手写输入并提高了操作效率和用户体验。According to the above description, the present invention first analyzes and obtains the input characters according to the received ultrasonic signal through the
以上结合最佳实施例对本发明进行了描述,但本发明并不局限于以上揭示的实施例,而应当涵盖各种根据本发明的本质进行的修改、等效组合。The present invention has been described above in conjunction with the best embodiments, but the present invention is not limited to the above-disclosed embodiments, but should cover various modifications and equivalent combinations made according to the essence of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100698714A CN103176739A (en) | 2013-03-05 | 2013-03-05 | Method for realizing handwriting calculator function and mobile terminal thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100698714A CN103176739A (en) | 2013-03-05 | 2013-03-05 | Method for realizing handwriting calculator function and mobile terminal thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103176739A true CN103176739A (en) | 2013-06-26 |
Family
ID=48636655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013100698714A Pending CN103176739A (en) | 2013-03-05 | 2013-03-05 | Method for realizing handwriting calculator function and mobile terminal thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103176739A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391650A (en) * | 2014-12-09 | 2015-03-04 | 上海斐讯数据通信技术有限公司 | Calculation system and method based on calculator in mobile terminal |
CN107995966A (en) * | 2016-12-28 | 2018-05-04 | 深圳配天智能技术研究院有限公司 | A kind of data entry device, device and equipment |
CN110795381A (en) * | 2019-10-25 | 2020-02-14 | 武汉惠利德科技有限公司 | Intelligent calculator applied to individual household |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5428805A (en) * | 1992-12-22 | 1995-06-27 | Morgan; Michael W. | Method and apparatus for recognizing and performing handwritten calculations |
CN101375233A (en) * | 2006-01-24 | 2009-02-25 | 李勇直 | Portable apparatus and method for inputing data with electronic pen and transmitting data |
CN101840302A (en) * | 2009-03-12 | 2010-09-22 | Lg电子株式会社 | Portable terminal and the method that the mobile terminal user interface is provided |
CN102789362A (en) * | 2012-06-29 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment and intelligent calculation control method thereof |
-
2013
- 2013-03-05 CN CN2013100698714A patent/CN103176739A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5428805A (en) * | 1992-12-22 | 1995-06-27 | Morgan; Michael W. | Method and apparatus for recognizing and performing handwritten calculations |
CN101375233A (en) * | 2006-01-24 | 2009-02-25 | 李勇直 | Portable apparatus and method for inputing data with electronic pen and transmitting data |
CN101840302A (en) * | 2009-03-12 | 2010-09-22 | Lg电子株式会社 | Portable terminal and the method that the mobile terminal user interface is provided |
CN102789362A (en) * | 2012-06-29 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment and intelligent calculation control method thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104391650A (en) * | 2014-12-09 | 2015-03-04 | 上海斐讯数据通信技术有限公司 | Calculation system and method based on calculator in mobile terminal |
CN107995966A (en) * | 2016-12-28 | 2018-05-04 | 深圳配天智能技术研究院有限公司 | A kind of data entry device, device and equipment |
WO2018119760A1 (en) * | 2016-12-28 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Data input method, apparatus and device |
CN110795381A (en) * | 2019-10-25 | 2020-02-14 | 武汉惠利德科技有限公司 | Intelligent calculator applied to individual household |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10444988B2 (en) | Gestures for keyboard switch | |
CN103914196B (en) | Electronic equipment and the method for determining the validity that the touch key-press of electronic equipment inputs | |
WO2009074047A1 (en) | Method, system, device and terminal for correcting touch screen error | |
CN104571857A (en) | Customizing method, responding method and mobile terminal of user-defined touch | |
CN101452354B (en) | Input method, content display method and application of electronic device | |
WO2012151934A1 (en) | Method, device and terminal for deleting a character on terminal with touch screen | |
CN101763218A (en) | Input method of handheld device | |
TW201246035A (en) | Electronic device and method of controlling same | |
CN106371789A (en) | Method for displaying prompt message in application program, and mobile terminal | |
TW201519000A (en) | Electronic device and displaying method for software keyboard thereof | |
CN103220430A (en) | Method and device for searching contact on mobile phone | |
CN101556517A (en) | Touch screen input method | |
US20140111486A1 (en) | Precise Object Selection in Touch Sensing Systems | |
CN106814964A (en) | Method for searching content at mobile terminal and content searching device | |
CN105094396A (en) | Method and device for deleting elements based on touch screen | |
CN104077065A (en) | Method for displaying virtual keyboard by touch screen terminal and touch screen terminal | |
CN107132927A (en) | Input recognition methods and device and the device for identified input character of character | |
CN103176739A (en) | Method for realizing handwriting calculator function and mobile terminal thereof | |
CN102714674A (en) | Korean input method and apparatus using touch screen, and portable terminal including key input apparatus | |
CN102426483B (en) | Multi-channel accurate target positioning method for touch equipment | |
CN104503679B (en) | Searching method and searching device based on terminal interface touch operation | |
CN102073445B (en) | Auxiliary Chinese pinyin input system based on touch screen | |
WO2015081863A1 (en) | Information input method, device and terminal | |
CN103092511B (en) | The input method of mobile terminal, device and mobile terminal | |
CN102375653A (en) | Sliding input method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130626 |