Method and apparatus for identifying a graphic shape
First Claim
1. A computer readable storage medium for storing a graphics identification program to be executed by a computer for identifying a graphical shape of a trace drawn by a user on an input surface of an input device, wherein the graphics identification program causes the computer to execute:
- detecting the trace drawn on the input surface as coordinate points in chronological order;
selecting coordinate points for representing the trace from among a group of the coordinate points in which the detected coordinate points are arranged in chronological order;
calculating lengths of line segments obtained by connecting the selected coordinate points in chronological order;
calculating, for each line segment, an absolute angle which the line segment forms with a previously determined reference straight line or a relative angle which the line segment forms with a line segment adjacent thereto; and
comparing a trace graph in an orthogonal coordinate system, whose first axis indicates a distance from a starting point or an ending point of the selected coordinate points to each coordinate point along the line segment and whose second axis indicates an angle of the line segment whose startpoint is one of the selected coordinate points, with reference graphic graphs respectively representing a plurality of types of previously prepared reference graphics in the orthogonal coordinate system, and identifying a reference graphic represented by a reference graphic graph which most closely resembles the trace graph as a shape of the trace,wherein the graphics identifying further includes;
calculating an area of a region surrounded by line segments which are not shared by the trace graph and the reference graphic graph in the orthogonal coordinate system for each reference graphic, andidentifying a reference graphic having a smallest area among the areas calculated at the area calculating as a shape of the trace.
1 Assignment
0 Petitions
Accused Products
Abstract
An information processing device executing a graphics identification program detects a trace drawn on an input surface as coordinate points in chronological order. Coordinate points for representing the trace are selected from a group of coordinate points arranged in chronological order. Lengths of line segments obtained by connecting the selected coordinate points in chronological order are calculated. Also, for each line segment, an absolute angle and a relative angle are calculated. A trace graph in an orthogonal coordinate system, whose first axis indicates a line segment distance and whose second axis indicates an angle of a line segment whose startpoint is one of the selected coordinate points, is compared with a reference graphic graph representing a reference graphic in the orthogonal coordinate system, thereby identifying a reference graphic represented by a reference graphic graph which most closely resembles the trace graph as a shape of the trace.
66 Citations
13 Claims
-
1. A computer readable storage medium for storing a graphics identification program to be executed by a computer for identifying a graphical shape of a trace drawn by a user on an input surface of an input device, wherein the graphics identification program causes the computer to execute:
-
detecting the trace drawn on the input surface as coordinate points in chronological order; selecting coordinate points for representing the trace from among a group of the coordinate points in which the detected coordinate points are arranged in chronological order; calculating lengths of line segments obtained by connecting the selected coordinate points in chronological order; calculating, for each line segment, an absolute angle which the line segment forms with a previously determined reference straight line or a relative angle which the line segment forms with a line segment adjacent thereto; and comparing a trace graph in an orthogonal coordinate system, whose first axis indicates a distance from a starting point or an ending point of the selected coordinate points to each coordinate point along the line segment and whose second axis indicates an angle of the line segment whose startpoint is one of the selected coordinate points, with reference graphic graphs respectively representing a plurality of types of previously prepared reference graphics in the orthogonal coordinate system, and identifying a reference graphic represented by a reference graphic graph which most closely resembles the trace graph as a shape of the trace, wherein the graphics identifying further includes; calculating an area of a region surrounded by line segments which are not shared by the trace graph and the reference graphic graph in the orthogonal coordinate system for each reference graphic, and identifying a reference graphic having a smallest area among the areas calculated at the area calculating as a shape of the trace. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A game apparatus for identifying a graphical shape of a trace drawn by a user on an input surface of an input device, changing game progress based on the identification results, and displaying the change on a display device, comprising:
-
a reference graphic storage location for storing a distance from a starting point or an ending point of vertices of each of a plurality of reference graphics, which is composed of a plurality of vertices and line segments connecting between the vertices, to each vertex along each line segment, and an absolute angle which the line segment forms with a previously determined reference straight line or a relative angle which the line segment forms with a line segment adjacent thereto; a detector for detecting the trace drawn on the input surface as coordinate points in chronological order; a coordinate point selector for selecting coordinate points for representing the trace from a group of the coordinate points in which the detected coordinate points are arranged in chronological order; a length calculator for calculating lengths of line segments obtained by connecting the selected coordinate points in chronological order; an angle calculator for calculating, for each line segment, an absolute angle which the line segment forms with a previously determined reference straight line or a relative angle which the line segment forms with a line segment adjacent thereto; and a graphics identifier for comparing a trace graph in an orthogonal coordinate system, whose first axis indicates a distance from a starting point or an ending point of the selected coordinate points to each coordinate point along the line segment and whose second axis indicates an angle of the line segment whose startpoint is one of the selected coordinate points, with a reference graphic graph representing each of a plurality of types of reference graphics stored in the reference graphic storage location in the orthogonal coordinate system, and identifying a reference graphic represented by a reference graphic graph which most closely resembles the trace graph as a shape of the trace, wherein the graphics identifier includes; an area calculator for calculating an area of a region surrounded by line segments which are not shared by the trace graph and the reference graphic graph in the orthogonal coordinate system for each reference graphic; and an identifier for identifying a reference graphic having a smallest area among the areas calculated by the area calculator as a shape of the trace. - View Dependent Claims (9, 10, 11, 12)
-
-
13. A graphics identification method executed by a computer for identifying a graphical shape of a trace drawn by a user on an input surface of an input device, comprising:
-
detecting the trace drawn on the input surface as coordinate points in chronological order; selecting coordinate points for representing the trace from among a group of the coordinate points in which the detected coordinate points are arranged in chronological order; calculating lengths of line segments obtained by connecting the selected coordinate points in chronological order; calculating, for each line segment, an absolute angle which the line segment forms with a previously determined reference straight line or a relative angle which the line segment forms with a line segment adjacent thereto; and comparing a trace graph in an orthogonal coordinate system, whose first axis indicates a distance from a starting point or an ending point of the selected coordinate points to each coordinate point along the line segment and whose second axis indicates an angle of the line segment whose startpoint is one of the selected coordinate points, with a reference graphic graph representing each of a plurality of types of previously prepared reference graphics in the orthogonal coordinate system, and identifying a reference graphic represented by a reference graphic graph which most closely resembles the trace graph as a shape of the trace, wherein the graphics identifying further includes; calculating an area of a region surrounded by line segments which are not shared by the trace graph and the reference graphic graph in the orthogonal coordinate system for each reference graphic; and identifying a reference graphic having a smallest area among the areas calculated at the area calculating as a shape of the trace.
-
Specification