Method and apparatus for inputting handwritten alphanumeric characters and for displaying the input character

Abstract: In a figure input method and apparatus, coordinate points are input, a locus (3) made by a plurality of input coordinate points is stored, and the stored locus is displayed. Thereafter, the kind of figure corresponding to the input locus is assigned, and a correct figure corresponding to the locus is drawn based on the assigned kind of figure and stored locus information.

Description: BACKGROUND OF THE INVENTION Field of the Invention This invention relates to a figure input method and apparatus in which a correct pattern of a hand-written pattern, such as a figure or the like, whose coordinates have been input, can be obtained. Description of the Related Art In a conventional apparatus in which a figure is input using coordinate input means, such as a tablet or the like, the pattern of the figure is input after selecting the kind of input figure (for example, a circle, a straight line, a polygon or the like) using a menu picture frame or the like. Thus, the form and the size of a correct figure is determined from the kind of figure selected on the menu picture frame, and coordinate data of the hand-written pattern. In the above-described conventional-approach, however, before drawing a figure, the user must select the kind of figure using a menu or the like, thereby complicating the procedure. However, when copying a previously drawn figure, the user must perform an input operation in consideration of the entire figure and the arrangement of the figure. Such an operation will cause, for example, interruption in thinking, and inferior operational efficiency. Moreover, the user must, for example, previously sketch a figure to be input on another sheet of paper. In another conventional approach, the kind of figure input by handwriting is determined by comparing the pattern of the figure with a standard figure pattern stored in a memory, and a correct figure is obtained by providing a figure corresponding to the determined kind of figure. In this approach, it is unnecessary to input a kind of figure when inputting the pattern of the figure, thereby causing an increase in operability. However, since the kind of figure is determined by comparing the pattern of the figure with a standard pattern stored in the memory, the user must exactly input the figure by handwriting. If the figure is input by handwriting in a rough manner, the kind of the figure cannot be determined as desired. Hence, the processing of inputting the figure pattern must be repeated until a desired figure is determined. SUMMARY OF THE INVENTION The present invention has been made in consideration of the above-described problems. It is an object of the present invention as defined in the appended claims to provide a figure input apparatus in which a correct figure can be obtained from the locus of a figure input by free handwriting, without complicated user-procedures. According to the present invention, a locus input through coordinate input means is displayed on display means and stored in storage means. Upon instruction of forming a correct figure, the corresponding correct figure is drawn on the display means based on the stored input locus. Thus, when the user inputs a figure as a locus, he need not select, for example, the kind of the figure. The user can sequentially input arbitrary figures, and obtain a correct figure corresponding to the drawn hand-written figure at an arbitrary time. It is another object of the present invention to provide a figure input apparatus and method having excellent operability in which desired locus information is selected from among a plurality of displayed locus information and a correct figure corresponding to the selected locus information is drawn. Thus, it is possible to instruct the formation of correct figures together after first inputting the Various prior art arrangements for the input and processing of handwritten characters and other graphical objects are disclosed in the following documents. US-A-5 121 442 discloses a figure input apparatus comprising coordinate input means, storage means and display means, said figure input apparatus being configured to provide for the correction of input figures at the time of entry. The intended figure to be used as a basis for the correction procedure is specified by the user immediately before or after the input of the handwritten figure. US-A-4 672 677 discloses a figure input apparatus designed to assist a user to input handwritten characters such as alphabetical letters, Chinese characters and figures. A handwritten character is input and a character recognition process is initiated. The apparatus presents the result of the recognition process in the form of a set of proposed characters and the user can select the proposed character which matches the intended input character. US-A-4 698 625 discloses a technique for facilitating the selection of one of a plurality of graphic objects on a screen for editing. There is no further specification concerning the nature of the editing to be performed. None of the above-cited prior art documents is considered to disclose or suggest a figure input apparatus or method in accordance with the present invention which is designed to provide for the selection and correction of handdrawn figures at any time subsequent to the entry of said figures. loci of figures, and to separate an input operation of the loci from instruction of the formation of correct figures. It is still another object of the present invention to provide a figure input apparatus and method in which information relating to the kinds of assigned figures is stored, and a correct figure is drawn using the stored information and locus information selected at that time. Hence, instructing the formation of a correct figure of the same kind can be performed without interruption, thereby simplifying the operation. These and other objects, advantages and features of the present invention will become more apparent from the following desciption of the preferred embodiments taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram illustrating a figure drawn according to the present invention and a menu display on a display picture frame; FIG. 2 is a block diagram illustrating the configuration of a first embodiment of the present invention; FIG. 3 is a flowchart illustrating the procedure of the operation of the input distinction means shown in FIG. 2; FIG. 4 is a flowchart illustrating the procedure of the operation of the correct figure forming means shown in FIG. 2; FIG. 5 is a block diagram illustrating the configuration of a second embodiment of the present invention; and FIG. 6 is a block diagram illustrating the configuration of the apparatus of the first embodiment. DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will now be described in detail with reference to the drawings. First, the configuration of the entire apparatus of the present embodiment will be described with reference to FIG. 6. In FIG. 6, coordinate input unit 10 is a conventional input plate in which a plurality of electrodes are provided in the vertical and horizontal directions. By pressing an input pen, such as a stylus pen or the like, onto coordinate input unit 10, coordinate data are input. The coordinate data are transmitted to a central processing unit (hereinafter abbreviated as a CPU) 82. ROM 82a stores control programs for performing, for example, the processing of the flowcharts shown in FIGS. 3 and 4, and a character-pattern dictionary. RAM 82b stores various kinds of data. CPU 82 executes the processing shown in the following flowcharts in accordance with the control programs stored in ROM 82a. The coordinate value of a pattern input from coordinate input unit 10 is stored in RAM 82b, and is compared with the character-pattern dictionary stored in ROM 82a. The result of that recognition is output. The pattern input through coordinate input unit 10, the result of the recognition, and display data, such as a menu window or the like, are displayed on liquid-crystal display (LCD) unit 14 under the control of display control means 83. FIG. 1 is a diagram which most exactly illustrates the characteristics of a figure input operation on display unit 14 according to the present invention. In FIG. 1, reference numeral 1 represents a display picture frame of the figure input apparatus. Reference numeral 2 represents a free locus input on display picture frame 1 via a tablet (coordinate input unit 10) superposed on display unit 14. In this case, free locus 2 has been drawn by the user for inputting a quadrangle. The user has selected locus 3A from among loci 3 indicating four circles displayed on display picture frame 1 in order to input a circle. Locus 3 is indicated as a thick locus on display picture frame 1 so that the selected figure can be discriminated from other figures. The start point and the end point of locus 3A are also indicated while adding a start-point mark and an end-point mark to locus information. Correct-figure menu 4 is displayed on picture frame 1. The kinds of figures are illustrated in correct-figure menu 4 in order to input information relating to the kind of figure. In the present embodiment, three kinds of figures, i.e., a circle 4A, a quadrangle 4B and a vertical or horizontal straight line 4C, are displayed so that a figure can be selected by pressing an input pen or the like onto each figure icon. In the present embodiment, one figure pattern 3A is selected from among the drawn quadrangular locus 2 and the circular loci 3, and a correct figure is obtained in accordance with the kind of the figure assigned from menu 4 and the size of the figure pattern. Display menu 4 is displayed when selecting a locus. FIG. 2 illustrates the functional configuration of the circuitry of the embodiment. In FIG. 2, reference numeral 10 represents a coordinate input device in which coordinates can be assigned by pressing a device, such as a stylus pen or the like, onto the tablet, and which is often used as an input apparatus for CAD or a personal computer. Input distinction means 11 determines whether the assigned coordinates input via the tablet of input device 10 have been input merely as a locus, represent a locus to be selected from among drawn loci, or represent a figure to be selected from display menu 4. Locus input means 12 stores input-coordinate string from the tablet, which has been determined as an input of a locus by input distinction means 11, in storage device 13 as a hand-written locus of a figure, and displays a locus line obtained by connecting respective coordinate points on display device 14, as represented by reference numeral 2 shown in FIG. 1. Locus selection means 15 assigns the input coordinates from the tablet, which have been determined by input distinction means 11 to have been input for selecting a locus, as a selected locus, and determines whether the point corresponding to the input coordinates is on the drawn locus based on information stored in storage device 13. The selected locus is thickened, the start point and the end point of the locus are clearly displayed on display device 14 by adding start-point mark 3B and end-point mark 3C thereto, and information relating to the seleted figure pattern is transmitted to correct figure forming means 17 (see FIG. 1). Menu establishing means 16 determines which of the circle, the quadrangle, and the straight line, the figure is assigned based on the input coordinates from the tablet determined to have been input for selecting a menu by input distinction means 11, by determining to which icon region on menu picture frame 4 the coordinates are present. Information relating to the kind of figure assigned on menu picture frame 4 is stored in RAM 82b until a kind of another figure is newly assigned. Correct figure forming means 17 reads information relating to the locus of the figure pattern selected and assigned by locus selection means 15 from storage device 13, and forms a correct figure corresponding to the input figure in the form of any of the circles, the quadrangle, and the straight line in accordance with the determination by menu establishing means 16 and the locus information. Thus, the correct figure is displayed on display device 14 in the shape selected by menu establishing means 16. When the correct figure has been displayed, the original figure pattern (the selected figure pattern) may be erased from the display. Next, a description will be provided for the operation of input distinction means 11 of the present embodiment with reference to the flowchart of FIG. 3. First, in step S1, it is determined whether or not the pen has been pressed onto the tablet. If the result of the determination is affirmative, the process proceeds to step S2. In step S2, the coordinates P 1 (X, Y) of the input point are read from coordinate input device 10 and are stored in RAM 82b. The process then proceeds to step S3, in which it is determined whether or not the coordinates P 1 are present within the coordinates M(X min , Y min ) - M(X max , Y max ) of the menu area by inquiring display control means 83 about the displayed menu and comparing the display area of the displayed menu with the value of the coordinates P 1 . If the result of the determination is affirmative, the process branches to step S4, in which menu establishing processing is performed. If the result of the determination in step S3 is negative, the process proceeds to step S5, in which it is determined whether or not the coordinates P 1 are present on the drawn locus. Such a determination can be easily performed by checking the value of the coordinates P 1 while comparing it with the coordinate value of the locus stored in storage device 13. The determination may be facilitated by loosening accuracy in the assignment of locus selection by providing a certain tolerance in the coordinate value of the locus. If the result of the determination in step S5 is affirmative, the process proceeds to step S6. If the result of the determination in step S5 is negative, the process proceeds to step S9. In step S9, the coordinates P n of the next point assigned by the input pen are read from coordinate input device 10. In the next step S10, the coordinates P n are checked. If the coordinates P n do not have effective values both in the X and Y coordinates, it is determined that the pen has been raised, and postprocessing by locus input means 12 is performed. If the result of the determination in step S10 is negative, the process returns to step S9, and the same processing is repeated. In steps S6 and S7, the same processing as in steps S9 and S10 is performed. When the pen has been raised in step S7, it is determined that a locus has been selected, and the process proceeds to processing by locus selection means 15 in step S12. When the pen has not been raised, the process proceeds to step S8. In step S8, it is determined whether or not the coordinates P n of the newly input point are substantially the same as the coordinates P 1 of the start point based on the value |P n - P 1 |. If the result of the determination is affirmative, it is determined that the pen has not moved, and the process returns to step S6, and the same processing is repeated. If the result of the determination in step S8 is negative, the process proceeds to step S9 based on the determination that a locus input has been performed instead of locus selection, and the processes after step S9 are performed. According to the above-described process procedure, input distinction means 11 determines how the input coordinates must be processed. Next, a description will be provided of an example of the procedure of the operation of correct figure forming means 17 of the present invention with reference to the flowchart of FIG. 4. First, in step S21, the coordinate information of the locus selected by locus selection means 15 and stored in storage device 13 is output. In the next step S22, the maximum X and Y coordinate point is found out from all of read coordinate points as point P max . Similarly, point P min is set as the minimum X and Y coordinate point. In step S23, the correct figure to be formed is determined based on the figure established by menu establishing means 16, and the process proceeds to the following steps based on the determination. That is, if the correct figure to be formed has been determined to be a circle, the central point C of the circle is calculated in step S24. The coordinates of the central point C are obtained by the following expression (1): C x = (X min + X max )/2, C y = (Y min + Y max )/2 In the next step S25, the radius r of the circle is calculated by the following expression (2): r = {(X max - X min ) + (Y max - Y min )}/4 In step S26, the selected locus which has been displayed is erased. In step S27, the correct circle having the radius r can be drawn around the coordinates of the obtained point C. If the result of the determination in step S23 is negative, the process proceeds to step S28, in which it is determined whether or not the correct figure to be formed is a quadrangle. If the result of the determination is affirmative, the process proceeds to step S29, in which the coordinate points of the upper left corner and the lower right corner are drawn as points P min and P max , respectively. In the case of a straight line, the process proceeds to step S30, in which a greater one of the values (X max - X min ) and (Y max - Y min ) is selected, and whether a vertical line or a horizontal line must be drawn is also selected. In the case of a vertical line, the correct line is obtained by connecting the coordinate point ((X max + X min )/2, Y min ) to the coordinate point ((X max + X min )/2, Y max ). In the case of a horizontal line, the correct line is obtained by connecting the coordinate point (X min , (Y max + Y min )/2) to the coordinate point (X max , ((Y max + Y min )/2). Although in the above-described embodiment, a description has been provided of the case of drawing a correct figure by selecting a figure from among three figures, new kinds of figures can be easily added to the correct figure forming means, the figure selection menu and the like. In the above-described embodiment, a correct-figure menu is displayed for selecting a figure. In another embodiment of the present invention, however, a correct figure can be formed without using a display. FIG. 5 illustrates the configuration of this embodiment. The configuration of FIG. 5 is substantially the same as the configuration of FIG. 2, expept that figure identification means 26 is provided instead of the menu establishing means. In the present embodiment, after the completion of the processing by locus selection means 15, figure identification means 26 operates so as to identify whether the input figure is a circle, a quadrangle or a straight line by performing symbol identification for the selected locus information using known handwriting on-line processing. The obtained result is the same as the result obtained by menu establishing means 16. A correct figure is obtained in accordance with the result of the identification by operating correct figure forming means 17. According to the above-described configuration, a correct figure intended by the user can be automatically drawn by merely selecting any of input and displayed loci. While the present invention has been described with respect to what is presently consideredd to be the preferred embodiments, it is to be understood that the invention is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions. In a figure input method and apparatus, coordinate points are input, a locus made by a plurality of input coordinate points is stored, and the stored locus is displayed. Thereafter, the kind of figure corresponding to the input locus is assigned, and a correct figure corresponding to the locus is drawn based on the assigned kind of figure and stored locus information.

Claims: A figure input apparatus comprising: coordinate input means (10) arranged to allow a user to input coordinate information including coordinate points corresponding to a plurality of loci (2, 3); storage means (13) for storing pixel data corresponding to said coordinate points input via said coordinate input means (10); display means (1) for displaying the plurality of loci (2, 3); selecting means (12) arranged to allow a user to select one (3A) of the plurality of loci (2, 3) displayed on the display means (1); assignment means (4) for assigning from a plurality of predetermined or predefined figures a type of figure to the selected locus (3A) on the display means (1); correct figure forming means (17) arranged to calculate the characteristic points of a geometrically correct figure by using the stored pixel data of the selected locus (3A) in conjunction with information related to the assigned figure type; and output means (83, 14) for outputting the correct figure to the display means (1). An apparatus according to claim 1, further comprising determination means (11) for determining whether coordinates input via said coordinate input means (10) have been input merely as a locus, represent a locus to be selected from among drawn loci or represent a figure to be selected from a display menu (4). An apparatus according to any one of the preceding claims, further comprising figure storage means (82a, 82b) for storing types of figures to be assigned, and for maintaining information relating to the type of figure assigned until another figure is newly assigned. An apparatus according to any one of the preceding claims, wherein said coordinate input means (10) is a tablet. An apparatus according to any one of the preceding claims, wherein said coordinate input means (10) is superposed on said display means (1) . A figure input method comprising the steps of: allowing a user to input coordinate information including coordinate points corresponding to a plurality of loci ( 2, 3); storing pixel data corresponding to said coordinate points input in said coordinate input step; displaying the plurality of loci (2, 3) on a display means (1); allowing a user to select one (3A) of the plurality of loci (2, 3) displayed on the display means (1); assigning from a plurality of predetermined or predefined figures a type of figure to the selected locus (3A) on the display means (1); calculating the characteristic points of a geometrically correct figure by using the stored pixel data of the selected locus (3A) in conjunction with information related to the assigned figure type; and outputting the correct figure to the display means (1). A method according to claim 6, further comprising the step of determining whether coordinates input via said coordinate input step have been input merely as a locus, represent a locus to be selected from among drawn loci or represent a figure to be selected from a display menu (4) . A method according to any one of the preceding claims 6 or 7, further comprising the step of storing types of figures to be assigned, and for maintaining information relating to the type of figure assigned until another figure is newly assigned. A computer program product comprising a computer readable storage medium storing software code modules for performing all of the steps of any one of the preceding method claims 6 to 8 in the appropriate sequence when said software code is excecuted on a computer.

Inventors: SAKAGUCHI KATSUHIKO, SAKAGUCHI, KATSUHIKO, Sakaguchi, Katsuhiko , c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1993
Main classification: G06F3
IPC codes: G06F3, G06T11