CN111625179B - Graph drawing method, electronic device, and computer storage medium - Google Patents

Graph drawing method, electronic device, and computer storage medium Download PDF

Info

Publication number
CN111625179B
CN111625179B CN202010489740.1A CN202010489740A CN111625179B CN 111625179 B CN111625179 B CN 111625179B CN 202010489740 A CN202010489740 A CN 202010489740A CN 111625179 B CN111625179 B CN 111625179B
Authority
CN
China
Prior art keywords
track
graph
determining
coordinate system
offset
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.)
Active
Application number
CN202010489740.1A
Other languages
Chinese (zh)
Other versions
CN111625179A (en
Inventor
郑瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010489740.1A priority Critical patent/CN111625179B/en
Publication of CN111625179A publication Critical patent/CN111625179A/en
Priority to PCT/CN2021/096036 priority patent/WO2021244367A1/en
Application granted granted Critical
Publication of CN111625179B publication Critical patent/CN111625179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a graph drawing method, electronic equipment and a computer storage medium. One embodiment of the method comprises: acquiring a plurality of track points input on a touch screen; determining track points belonging to the same graph according to the input time and the coordinates of each track point; determining a coordinate system angle interval corresponding to a track offset contained in a track formed by the track points belonging to the same graph according to the coordinates of the track points belonging to the same graph; and determining a recommended graph when the coordinate system angle interval corresponding to the track offset contained in the track conforms to a preset rule, and displaying a template control, wherein the template control comprises an identifier of the recommended graph. The implementation method has the advantages of convenience in operation, strong real-time performance, high drawing efficiency and the like, and the interactive experience of drawing is improved.

Description

Graph drawing method, electronic device, and computer storage medium
Technical Field
The present application relates to the field of computer technology. And more particularly, to a graphic drawing method, an electronic device, and a computer storage medium.
Background
With the progress of related equipment and schemes of paperless office and intelligent office, a plurality of conference scenes use intelligent interactive electronic whiteboard equipment to replace a traditional whiteboard, so that the working efficiency and the conference efficiency can be greatly improved. The user can perform operations such as writing and drawing on the interface of the electronic whiteboard application by using the touch screen of the electronic whiteboard device. In the method for fast drawing standard graphics, for example, a template graphic control is usually provided in a sidebar on an interface of an electronic whiteboard application, and a menu list including various standard graphic identifications such as a straight line, a rectangle, a triangle, a trapezoid, a circle, and the like is expanded in response to a touch operation of a user on the template graphic control in the sidebar for selection by the user.
Disclosure of Invention
An object of the present application is to provide a graph drawing method, an electronic device, and a computer storage medium, so as to solve at least one of the problems in the prior art.
In order to achieve the purpose, the following technical scheme is adopted in the application:
the application provides a graph drawing method, which is applied to a terminal with a touch screen, and comprises the following steps:
acquiring a plurality of track points input on a touch screen;
determining track points belonging to the same graph according to the input time and the coordinates of each track point;
determining a coordinate system angle interval corresponding to a track offset contained in a track formed by the track points belonging to the same graph according to the coordinates of the track points belonging to the same graph;
and determining a recommended graph when the coordinate system angle interval corresponding to the track offset contained in the track conforms to a preset rule, and displaying a template control, wherein the template control comprises an identifier of the recommended graph.
By the graph drawing method, the terminal can recognize the graph drawn by the touch of the user in real time based on the coordinate system angle interval corresponding to the offset contained in the track, so that the standard graph meeting the drawing intention of the user can be recommended in real time, the method has the advantages of convenience in operation, strong real-time performance, high drawing efficiency and the like, and the interactive experience of drawing is improved. The graph drawn by the touch of the user is recognized based on the coordinate system angle interval corresponding to the offset contained in the track, so that the drawn track which does not need to be input by the user is very standard and strictly continuous, the drawn graph can be accurately recognized, and the effectiveness and the applicability of the graph drawing method provided by the application are ensured.
In a possible implementation manner, the determining the trace points belonging to the same graph according to the input time and the coordinates of each trace point includes:
determining a plurality of continuous track points as belonging to the same graph; and the coordinate distance of any track point in the plurality of continuous track points is smaller than a preset first distance threshold value, and the time interval of the input moment of the last track point in the plurality of continuous track points is smaller than the track point of the preset time threshold value, and the plurality of continuous track points are determined to belong to the same graph.
Therefore, when a user draws a graph by two or even multiple pens, the corresponding drawing tracks can be correctly identified whether the graph belongs to the same graph, or the image drawing method provided by the application can be suitable for the situation that the user draws a graph by two or even multiple pens, namely the discontinuous deviation of track coordinates occurs to a certain degree when a graph is drawn.
In a possible implementation manner, determining, according to the coordinates of the trace points belonging to the same graph, a coordinate system angle interval corresponding to a trace offset included in a trace formed by the trace points belonging to the same graph includes:
and determining the offset of the adjacent track points according to the coordinates of the adjacent track points in the track points belonging to the same graph, and determining the track offset contained in the track formed by the track points belonging to the same graph according to the offset of the adjacent track points.
In a possible implementation manner, before determining the offset of the adjacent track point according to the coordinates of the adjacent track point in the track points belonging to the same graph, the method further includes:
and for the adjacent track point formed by the (N + 1) th track point and the Nth track point, if the distance between the (N + 1) th track point and the Nth track point is less than a second distance threshold value, replacing the (N + 1) th track point with the (N + 2) th track point to serve as the adjacent track point of the Nth track point.
From this, the accessible screens out the intensive track point of coordinate, when not influencing offset calculation accuracy, reduces the unnecessary calculated amount, promotes figure recognition efficiency.
In a possible implementation manner, the determining, according to the offset of the adjacent track points, a track offset included in a track formed by the track points belonging to the same graph includes:
and combining the continuous adjacent track point offsets in the same coordinate system angle interval into a track offset in the coordinate system angle interval.
Therefore, the continuous offset between the angle intervals in the same coordinate system can be subjected to redundancy removal, and the pattern recognition efficiency is improved.
In one possible implementation, the coordinate system angle interval includes:
a first angle section within +/-45 degrees of an angle with the positive half shaft of the X axis, a second angle section within +/-45 degrees of an angle with the positive half shaft of the Y axis, a third angle section within +/-45 degrees of an angle with the negative half shaft of the X axis and a fourth angle section within +/-45 degrees of an angle with the negative half shaft of the Y axis.
The dividing mode of the coordinate system angle interval can ensure the accuracy of identifying the graph drawn by the touch of the user based on the coordinate system angle interval corresponding to the offset contained in the track, and simultaneously ensure the effectiveness and the applicability of the graph drawing method provided by the application when the drawing track input by the user has certain deviation or is interrupted.
In a possible implementation manner, the determining a recommended graph when the coordinate system angle interval corresponding to the trajectory offset included in the trajectory meets a preset rule includes:
when the track only contains track offset in an angle interval of a coordinate system, determining that the recommended graph is a straight line;
when the track comprises two track offsets between two adjacent coordinate system angle intervals, determining that the recommended graph comprises at least one of a rectangle, a triangle and a trapezoid;
when the track comprises two or three track offsets in two opposite coordinate system angle intervals, determining that the recommended graph is a triangle;
and when the track comprises three track offsets of three adjacent coordinate system angle intervals sequentially sequenced in the clockwise direction or the anticlockwise direction, determining that the recommended graph comprises at least one of a circle, an ellipse, a rectangle, a triangle and a trapezoid.
Therefore, the graph drawing method provided by the application covers various common standard graphs, and the standard graphs meeting the drawing intention of the user can be accurately recommended in real time before the user completely draws the complete graphs.
In one possible implementation manner, after the displaying the template control, the method further includes:
and responding to the first operation of the identification, and displaying the graph corresponding to the identification by taking the coordinate of the 1 st track point in the track points belonging to the same graph as a reference coordinate.
In one possible implementation, the display template control includes:
and displaying the template control at a position corresponding to a track formed by track points belonging to the same graph.
Therefore, the display position of the mark of the recommended graph can be adjusted corresponding to the position of the drawing track input by the user, so that the user operation is more convenient and faster, and particularly, the user operation is more convenient for a large-screen terminal such as an electronic whiteboard device with a touch screen more than 55 inches.
In one possible implementation manner, after the displaying the template control, the method further includes:
and if the length of the track formed by the track points belonging to the same graph is greater than a preset length threshold value, stopping displaying the template control.
A second aspect of the present application provides an electronic device, comprising: a processor, a memory and a touch screen, the memory and the touch screen being coupled to the processor, the memory being configured to store computer program code, the computer program code comprising computer instructions, which when read from the memory by the processor, cause the electronic device to perform the method of drawing a graphic as provided in the first aspect of the present application.
A third aspect of the present application provides a computer storage medium comprising computer instructions that, when run on a terminal, cause the terminal to perform the graph drawing method provided in the first aspect of the present application.
The beneficial effect of this application is as follows:
through the technical scheme, the terminal can identify the graph drawn by the touch of the user in real time based on the coordinate system angle interval corresponding to the offset contained in the track, so that the standard graph meeting the drawing intention of the user can be recommended in real time, the method and the device have the advantages of convenience in operation, strong real-time performance, high drawing efficiency and the like, and the interactive experience of drawing is improved. The graph drawn by the touch of the user is recognized based on the coordinate system angle interval corresponding to the offset contained in the track, so that the drawn track which does not need to be input by the user is very standard and strictly continuous, the drawn graph can be accurately recognized, and the effectiveness and the applicability of the graph drawing method provided by the application are ensured.
Drawings
The following describes embodiments of the present application in further detail with reference to the accompanying drawings.
Fig. 1 shows a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 shows a schematic structural diagram ii of an electronic device according to an embodiment of the present application.
Fig. 3 shows a schematic flowchart of a graph drawing method provided in an embodiment of the present application.
Fig. 4 shows a schematic user interface diagram of an electronic device according to an embodiment of the present application.
Fig. 5 shows a schematic diagram of a division manner of the coordinate system angle interval.
Fig. 6 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 7 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 8 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 9 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 10 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 11 shows a schematic user interface diagram of another electronic device provided in an embodiment of the present application.
Fig. 12 shows a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to more clearly explain the present application, the present application is further described below with reference to the embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not intended to limit the scope of the present application.
In the description of the embodiments of the present application, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
For example, the electronic device in the present application may be an electronic whiteboard device, a smart television, a mobile phone, a tablet computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, a wearable electronic device, an Augmented Reality (AR) device, a Virtual Reality (VR) device, an in-vehicle device, a smart car, a robot, and the like, and the present application does not particularly limit the specific form of the electronic device.
Fig. 1 shows a schematic structural diagram of an electronic device 100.
The electronic device 100 includes a memory 110 and a processor 120. It should be understood that the components of the electronic device 100 shown in fig. 1 are only exemplary and not limiting, and the electronic device 100 may have other components according to the actual application. For example, the handwriting processing apparatus 100 may employ an operating system such as Windows and Android.
For example, memory 110 is used for non-transitory storage of computer readable instructions; processor 120 is configured to execute computer readable instructions.
For example, as shown in fig. 1, the electronic device 100 may further include a touch device 130. The touch device 130 is configured to acquire a touch operation corresponding to a work surface of the touch device 130. For example, the touch device 130 may include any input device having a touch function, such as an electronic pen, a touch screen, a mouse, a touch pad, an interactive whiteboard, and the like. For example, the touch screen may be a capacitive touch screen, such as a self-capacitance touch screen or a mutual capacitance touch screen, and may also be a resistive touch screen, a surface acoustic wave touch screen, an infrared touch screen, or the like.
For example, the touch device 130 may include a touch sensor and a controller (e.g., a driving IC) that receives an electrical signal collected by the touch sensor, processes the electrical signal to obtain a touch signal, and provides the touch signal to a processor or the like for further processing. The embodiment of the present application does not limit the type, structure, communication method, and the like of the touch device 130. The touch device 130 includes a working surface having a certain area, and a user can directly draw/write on the working surface of the touch device 130 with a finger, or draw/write on the working surface of the touch device 130 by using an active stylus or a passive stylus, which is not limited in this embodiment of the application. Here, the work surface refers to a surface for detecting a touch operation of a user, for example, a touch surface of the touch device 130.
For example, as shown in FIG. 1, the handwriting processing apparatus 100 may further include a display apparatus 140. The display device 140 is configured to display the respective interactive interfaces. For example, the display device 140 may include a display screen, a projector, and the like. The display screen of the display device 140 is, for example, an LCD display screen, an OLED display screen, a QLED display screen, a projection component, a VR head-mounted display device (e.g., VR helmet, VR glasses), an AR display device, and the like, which is not limited in this embodiment.
For example, in some embodiments, touch device 130 and display device 140 may be integrated into, for example, a touch display screen, thereby having both touch and display functionality.
For example, the memory 110 and the processor 120 may be integrated in a touch display screen, and for example, the memory 110 and the processor 120 may also be integrated in a cloud server.
For example, the electronic device 100 may further include a communication module, which is used to implement communication between the electronic device 100 and other electronic devices, for example, when the electronic device 100 is applied to a conference room, the communication module may transmit the interactive interface to a mobile phone or a tablet computer of a user who remotely participates in a conference, so that the mobile phone or the tablet computer of the user may display and store the interactive interface.
For example, the processor 120 may control other components in the electronic device 100 to perform desired functions. The processor 120 may be a Central Processing Unit (CPU), Tensor Processor (TPU), or the like having data processing capabilities and/or program execution capabilities. The Central Processing Unit (CPU) may be an X86 or ARM architecture, etc.
For example, memory 110 may include any combination of one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), USB memory, flash memory, and the like. One or more computer-readable instructions may be stored on the computer-readable storage medium and executed by processor 120 to implement various functions of electronic device 100.
For example, components such as the memory 110, the memory 120, the touch device 130, and the display device 140 may communicate with each other via a network. The network may include a wireless network, a wired network, and/or any combination of wireless and wired networks. The network may include a local area network, the Internet, a telecommunications network, an Internet of Things (Internet of Things) based on the Internet and/or a telecommunications network, and/or any combination thereof, and/or the like. The wired network may communicate by using twisted pair, coaxial cable, or optical fiber transmission, for example, and the wireless network may communicate by using 3G/4G/5G mobile communication network, bluetooth, Zigbee, or WiFi, for example. The application is not limited herein as to the type and function of the network.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 shows a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and system library and kernel layer.
The application layer may include a series of application packages. As shown in fig. 2, the application package may include an electronic whiteboard application, a gallery, a video player, and may also include camera, calendar, telephony, maps, navigation, WLAN, bluetooth, music, etc. applications.
In some embodiments of the present application, the electronic whiteboard application may provide an interface for the electronic device to interact with the user, such as: and (4) enabling a user to set the category of the standard graph, set the initial size of the standard graph, set the type of the identifier displayed by the template control and the like.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, a content provider, a view system, an explorer, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen and judge whether a status bar, a lock screen, a capture screen and the like exist.
In some embodiments of the present application, the window manager may be embodied as a Window Management Service (WMS) that stores information of each application window displayed in the current screen, for example: the number of application windows displayed in the current screen, and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so forth.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, to prompt text information in the status bar, to emit a prompt tone, to vibrate the electronic device, to flash an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (MediaLibraries), 2D graphics engines (e.g., SGL), three-dimensional graphics processing libraries (e.g., OpenGL ES), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports playback and recording in a variety of commonly used audio and video formats, as well as still image files, and the like. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, composition, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer includes a display driver, a camera driver, an audio driver, a sensor driver, and the like.
The technical solutions in the following embodiments can be implemented in the electronic device 100 having the above hardware architecture and software architecture.
Hereinafter, taking an example that the electronic device 100 is an electronic whiteboard device having a touch screen of 55 inches or more, the technical solution provided by the embodiment of the present application will be described in detail with reference to the drawings.
According to the graph drawing method, after a user enters an electronic whiteboard of the electronic whiteboard device, the user can input a graph to be drawn by using a finger or an active pen and other devices on a touch screen, and in the input process, the electronic whiteboard device displays the recommended graph in real time according to the acquired track points so that the user can select the recommended graph. The electronic whiteboard application has a main function of performing graphic drawing, text presentation and display on a screen in response to an input operation of a user through a device such as a finger or an active pen, and is generally used as software for a conference. It is understood that the electronic whiteboard application is only used for illustrating and explaining the present application, and is not used for limiting the present application, and the graphic drawing method provided by the present application can also be applied to other application programs having a graphic drawing function.
As shown in fig. 3, the graph drawing method provided in the embodiment of the present application is applied to a terminal with a touch screen, and the method includes the following steps:
and S10, acquiring a plurality of track points input on the touch screen.
For example, after the electronic whiteboard device 100 is powered on, the displayed desktop interface is an icon displaying each application program, and in response to a touch operation, such as a finger touch click, performed by the user on the electronic whiteboard application icon, the electronic whiteboard device 100 displays the interface of the electronic whiteboard application program as shown in fig. 4. The interface of the electronic whiteboard application shown in fig. 4 includes an operation bar at the upper left corner, which includes controls for drawing/writing such as a pointer, a brush, and an eraser, and a navigation bar at the lower right corner, which includes a back key for returning to the previous interface or canceling the previous operation, and a home screen key for returning to the desktop interface. Most areas of the interface, except for the operation bar and the navigation bar, are drawing/writing input areas, and when a user draws/writes on a touch screen with a device such as a finger or an active pen, the electronic whiteboard device 100 acquires a track point.
In some embodiments, the touch screen itself may obtain the trace points input by the user on the touch screen with a finger or an active pen based on hardware (e.g., touch control circuit, sampling circuit, etc.) and software (e.g., related program algorithm), and the like, which includes but is not limited to this application.
And S20, determining the track points belonging to the same graph according to the input time and the coordinates of each track point.
In some embodiments, step S20 includes:
determining a plurality of continuous track points as belonging to the same graph; and the coordinate distance of any track point in the plurality of continuous track points is smaller than a preset first distance threshold value, and the time interval of the input moment of the last track point in the plurality of continuous track points is smaller than the track point of the preset time threshold value, and the plurality of continuous track points are determined to belong to the same graph.
For example, in the interface of the electronic whiteboard application shown in fig. 4, the tracks formed by the track points input by the user are two tracks formed by continuous track points, and include a substantially vertical track drawn from top to bottom first and a substantially horizontal track drawn from left to right later.
When judging whether each track point belongs to the same graph:
firstly, because track points in the approximately vertical track are continuous, judging that the track points in the approximately vertical track belong to the same graph and setting the graph as a graph A;
then, when the 1 st track point (leftmost track point) in the substantially horizontal track is acquired, the following two conditions are determined: (1) whether a track point with a coordinate distance from the 1 st track point in the approximately horizontal track smaller than a first distance threshold value set to be 200 pixels in distance exists in each track point in the approximately vertical track; (2) if the approximately vertical trajectory includes N trajectory points, the input time t of the 1 st trajectory point in the approximately horizontal trajectory2,1Input time t with the nth track point in the substantially vertical track (i.e., the last track point in the substantially vertical track)1,NTime interval between T and T2,1-t1,NWhether or not less than a time threshold set, for example, between 1 second(s) and 3 seconds(s). If the two conditions (1) and (2) are met, judging that the 1 st track point in the approximately horizontal track and the track point in the approximately vertical track belong to the same graph, namely the 1 st track point in the approximately horizontal track also belongs to the graph A; if at least one of the two conditions (1) and (2) is not satisfied, judging that the 1 st track point in the approximately horizontal track and the track point in the approximately vertical track do not belong to the same graph, namely judging that the track points do not belong to the same graphThe 1 st track point in the approximately horizontal track belongs to a new graph B;
then, taking the 1 st track point in the approximately horizontal track as an example, which belongs to the graph a, since the track points in the approximately horizontal track are continuous, it is determined that the track points in the approximately horizontal track belong to the same graph, that is, the track points in the approximately horizontal track all belong to the graph a;
finally, it is determined that all track points included in the approximately vertical track and the approximately horizontal track input by the user belong to the same graph (both belong to graph a) in the interface shown in fig. 4.
Therefore, the method for drawing the graph provided by the embodiment of the application enables the corresponding drawing track to be correctly identified as whether the corresponding drawing track belongs to the same graph or not when a user draws a graph by two or even multiple pens, or the method for drawing the graph provided by the embodiment of the application is applicable to the situation that the user draws a graph by two or even multiple pens, namely the deviation of the discontinuous track coordinate to a certain degree can be accepted when a graph is drawn, so that the effectiveness and the applicability of the method for drawing the graph provided by the embodiment of the application are greatly improved.
And S30, determining a coordinate system angle interval corresponding to the track offset contained in the track formed by the track points belonging to the same graph according to the coordinates of the track points belonging to the same graph.
As shown in fig. 5, in some embodiments, the coordinate system angle interval includes:
a first angle section 51 within +/-45 degrees of the positive half axis of the X axis, a second angle section 52 within +/-45 degrees of the positive half axis of the Y axis, a third angle section 53 within +/-45 degrees of the negative half axis of the X axis and a fourth angle section 54 within +/-45 degrees of the negative half axis of the Y axis.
The dividing mode of the coordinate system angle interval can guarantee the accuracy of recognizing the graph drawn by the touch of the user based on the coordinate system angle interval corresponding to the offset contained in the track, and meanwhile guarantee the effectiveness and the applicability of the graph drawing method provided by the application when the drawing track input by the user has certain deviation or is interrupted.
In addition to the above-mentioned dividing method of the coordinate system angle interval, which equally divides the 360 ° angle interval into four angle intervals, in this embodiment, other methods may also be adopted to divide the coordinate system angle interval:
for example, a division method of the coordinate system angle interval equally dividing the 360 ° angle interval into eight angle intervals is adopted, that is, the coordinate system angle interval includes: an angle interval A within +/-22.5 degrees of an positive half shaft of an X shaft, an angle interval B within +22.5 degrees to +67.5 degrees of the positive half shaft of the X shaft, an angle interval C within +/-22.5 degrees of the positive half shaft of the Y shaft, an angle interval D within +22.5 degrees to +67.5 degrees of a negative half shaft of the X shaft, an angle interval E within +/-22.5 degrees of a negative half shaft of the X shaft, an angle interval F within-67.5 degrees to-22.5 degrees of the negative half shaft of the X shaft, an angle interval F within +/-22.5 degrees of the negative half shaft of the Y shaft and an angle interval G within-67.5 degrees to-22.5 degrees of the positive half shaft of the X shaft.
For another example, the 360 ° angle interval may be divided in an unequal manner.
The above-mentioned division manner of the coordinate system angle interval cannot be regarded as a limitation of the present application, and an appropriate division manner may be set based on requirements in terms of accuracy, effectiveness, and the like. The more finely divided coordinate system angle intervals, that is, the smaller the angle range covered by each coordinate system angle interval, the higher the accuracy of recognizing the graph drawn by the user touch based on the coordinate system angle interval corresponding to the offset included in the trace is, and the more complex graph can be adapted to, but the smaller the deviation of the drawing trace input by the user is acceptable.
In some embodiments, step S30 includes:
and determining the offset of the adjacent track points according to the coordinates of the adjacent track points in the track points belonging to the same graph, and determining the track offset contained in the track formed by the track points belonging to the same graph according to the offset of the adjacent track points.
Further, in some embodiments, before determining the offset of the adjacent track point according to the coordinates of the adjacent track point in the track points belonging to the same graph, the method further includes:
and for the adjacent track point formed by the (N + 1) th track point and the Nth track point, if the distance between the (N + 1) th track point and the Nth track point is less than a second distance threshold value, replacing the (N + 1) th track point with the (N + 2) th track point to serve as the adjacent track point of the Nth track point.
From this, the accessible screens out the intensive track point of coordinate, when not influencing offset calculation accuracy, reduces the unnecessary calculated amount, promotes figure recognition efficiency.
For example, for an adjacent track point formed by the (N + 1) th track point and the nth track point, if the coordinate is (x)N+1,yN+1) The (N + 1) th locus point and the coordinate are (x)N,yN) Distance between the Nth trace points
Figure BDA0002520599360000121
And if the distance is smaller than a second distance threshold value set to be 5 pixel distance, the (N + 1) th track point is ignored or abandoned, and the (N + 2) th track point is used for replacing the (N + 1) th track point as an adjacent track point of the (N) th track point. It can be understood that, for the adjacent track point formed by the (N + 2) th track point and the (N) th track point, the judgment can be continued according to the second distance threshold, and so on until the track point with the distance between the (N + 1) th track point and the N th track point being greater than or equal to the second distance threshold appears, that is, starting from the (N + 1) th track point, whether the distance between each track point and the (N) th track point is greater than or equal to the second distance threshold is judged in sequence, the first track point meeting the condition is taken as the adjacent track point of the (N) th track point, and the track point between the (N) th track point and the first track point meeting the condition is abandoned.
Further, in some embodiments, the determining, according to the offset of the adjacent track points, the track offset included in the track formed by the track points belonging to the same graph includes:
and combining the continuous adjacent track point offsets in the same coordinate system angle interval into a track offset in the coordinate system angle interval.
Therefore, the continuous offset between the angle intervals in the same coordinate system can be subjected to redundancy removal, and the pattern recognition efficiency is improved.
In a specific example, determining the coordinate system angle interval corresponding to the track offset included in the track formed by the track points belonging to the same graph includes:
first, for at least one continuous track formed by continuous track points in tracks formed by track points belonging to the same graph (for example, the track of graph a shown in fig. 4 includes two continuous tracks, which are a substantially vertical track and a substantially horizontal track in fig. 4), the offset between each pair of adjacent track points included in the continuous track is calculated, for example, for the adjacent track point formed by the N +1 th track point and the N th track point, the coordinate is (x)N+1,yN+1) The (N + 1) th locus point and the coordinate are (x)N,yN) The amount of offset between the Nth trace points of (d)x,dy) Wherein the offset d in the X-axis directionx=(xN+1-xN) Offset d in the Y-axis directiony=(yN+1-yN)。
And then, reassigning the offset between the adjacent track points and mapping the coordinate system angle interval of the offset.
Continuing with the foregoing example, taking as an example the division of the angular interval of the coordinate system into four equal angular intervals of 360 ° as shown in fig. 5, the offset between adjacent track points obtained can be determined by comparing dxAnd dyThe size and the value of the coordinate system are positive and negative to perform the mapping and reassigning marking of the angle interval of the coordinate system, as shown in table 1.
TABLE 1
Figure BDA0002520599360000131
The reassigned offset amount may represent a coordinate system angle interval corresponding to a deviation amount between adjacent track points (or a coordinate system angle interval in which a slope of a deviation amount between adjacent track points is located), which may reflect a trend of the drawn track input by the user, considering thatThe drawing track of the handwriting input of the user cannot be absolutely specified, taking a straight line as an example, the drawing track of the user cannot be completely straight when drawing the straight line, so that the offset values of a small section of continuous coordinates cannot be completely the same, but from the practical application perspective, the offset of each adjacent track point is not necessary to be calculated and counted when pattern recognition is carried out subsequently, so that the slope of the angle interval of the continuous and same coordinate system can be subjected to redundancy removal, the track is kept in the angle interval of the coordinate system in the period of time, and the calculation is only carried out once. The strategy of redundancy removal is sequential calculation, as long as d is the same as d when the value of offset is 0xOr dyAnd the other offset is positive or negative, d can be setx、dyAnd correspondingly adding, if the next offset is different from the current offset by 0 item or positive and negative, storing the current offset, calculating an offset similar to the next offset from the next offset, and storing the added offset record before encountering an offset different from the next offset, so that a simplified offset can be obtained and used as a track offset. The slope change of the drawing track input by the user, namely the trend or the characteristic of the graph can be judged according to the simplified 0 value and the simplified positive and negative values of the offset, so that the graph can be identified. The above process of combining the offsets of adjacent trace points based on reassignment to remove redundancy is an implementation manner, and should not be considered as a limitation to this embodiment.
And S40, determining a recommended graph when the coordinate system angle interval corresponding to the track offset contained in the track conforms to a preset rule, and displaying a template control, wherein the template control comprises an identifier of the recommended graph.
In a possible implementation manner, in a case that the coordinate system angle interval adopts a division manner as shown in fig. 5, the determining a recommended graph when the coordinate system angle interval corresponding to the trajectory offset included in the trajectory meets a preset rule includes:
when the track only contains track offset in an angle interval of a coordinate system, determining that the recommended graph is a straight line;
when the track comprises two track offsets between two adjacent coordinate system angle intervals, determining that the recommended graph comprises at least one of a rectangle, a triangle and a trapezoid;
when the track comprises two or three track offsets in two opposite coordinate system angle intervals, determining that the recommended graph is a triangle;
and when the track comprises three track offsets of three adjacent coordinate system angle intervals sequentially sequenced in the clockwise direction or the anticlockwise direction, determining that the recommended graph comprises at least one of a circle, an ellipse, a rectangle, a triangle and a trapezoid.
Therefore, the graph drawing method provided by the application covers various common standard graphs, and the standard graphs meeting the drawing intention of the user can be accurately recommended in real time before the user completely draws the complete graphs.
It can be understood that the figures that can be recognized by the figure drawing method provided in the embodiments of the present application are not limited to the above listed straight lines, circles, ellipses, rectangles, triangles and trapezoids, but also include parallelograms, pentagons and hexagons, which are not listed one by one here, and only the recognition rules of commonly used figures are given. In addition, under the condition that the division mode of the coordinate system angle interval is changed, the graph drawing method provided by the embodiment of the application can identify the graph through the design of the preset rule, wherein under the condition that the division mode of the coordinate system angle interval is thinner, the more subdivided graphs such as right-angled triangles, isosceles triangles and the like can be identified.
In one possible implementation manner, after the displaying the template control, the method further includes:
and responding to the first operation of the identification, and displaying the graph corresponding to the identification by taking the coordinate of the 1 st track point in the track points belonging to the same graph as a reference coordinate.
In one possible implementation, the display template control includes:
and displaying the template control at a position corresponding to a track formed by track points belonging to the same graph.
Therefore, the display position of the mark of the recommended graph can be adjusted corresponding to the position of the drawing track input by the user, so that the user operation is more convenient and faster, and particularly, the user operation is more convenient for a large-screen terminal such as an electronic whiteboard device with a touch screen more than 55 inches.
In one possible implementation manner, after the displaying the template control, the method further includes:
and if the length of the track formed by the track points belonging to the same graph is greater than a preset length threshold value, stopping displaying the template control.
In a specific example, after obtaining, in step S30, a coordinate system angle interval corresponding to a trajectory offset included in a trajectory formed by trajectory points belonging to the same graph, performing graph recognition to determine a recommended graph, and performing a recommendation process, for example:
for example, in the interface of the electronic whiteboard application shown in fig. 6, the user draws a substantially vertical trajectory from top to bottom, the electronic whiteboard device 100 acquires the drawing trajectory input by the user and determines, through steps S10-S30, that the trajectory only includes one trajectory offset corresponding to the fourth angle interval, at this time, based on the foregoing "determining that the recommended graph is a straight line when the trajectory only includes the trajectory offset in one coordinate system angle interval", determining that the recommended graph is a straight line, such as the interface shown in fig. 6, displaying the template control 61, and displaying the text identifier "straight line" in the template control 61 (it may also be understood that the text identifier is replaced by a straight line, such as a thumbnail image, or the text identifier and the text identifier are displayed at the same time).
And then:
in a first case, if a user applies a touch operation, such as finger touch and click, to the text identifier "straight line" in the interface shown in fig. 6, the electronic whiteboard device 100 displays the interface shown in fig. 7 in response to the operation, that is, the display template control is closed, and a standard straight line is displayed with the 1 st track point of the "approximately vertical track drawn by the user from top to bottom" as a starting point, and the user may adjust parameters, such as the length of the standard straight line, through an operation manner, such as a dragging operation;
second, if the user draws a substantially horizontal trajectory from left to right within a time interval defined by a time threshold of, for example, 1 second (S) after drawing a substantially vertical trajectory from top to bottom, wherein a distance between the 1 st trajectory point of the substantially horizontal trajectory and one or more of the first trajectory points of the previously drawn substantially vertical trajectory is less than a first distance threshold of, for example, 200 pixels, the electronic whiteboard device 100 acquires the drawing trajectory input by the user and goes through steps S10-S30, and after determining that the substantially horizontal trajectory and the previously acquired substantially vertical trajectory belong to the same pattern, determines that two trajectories of the pattern include two trajectory offsets corresponding to a fourth angle interval and a first angle interval, at this time, based on the above-mentioned "when the trajectory includes two trajectory offsets in two adjacent two coordinate system angle intervals, determining that the recommended graph comprises at least one of a rectangle, a triangle and a trapezoid, determining that the recommended graph is at least one of a rectangle, a triangle and a trapezoid, displaying a template control 81 as an interface shown in fig. 8, and displaying text labels "rectangle" and "triangle" in the template control 81. If the user applies a touch operation, such as finger touch and click, to the character identifier "rectangle" in the interface shown in fig. 8, the electronic whiteboard device 100 displays the interface shown in fig. 9 in response to the operation, that is, the display template control is closed, and a standard rectangle is displayed with the 1 st track point of the "user draws an approximately vertical track from top to bottom" as the top left vertex, and the user can adjust parameters, such as the length and the width of the standard rectangle through operation modes, such as a dragging operation;
and in the third case, if the user draws a section of approximately vertical track from top to bottom and then continues to draw the track until the length of the track is greater than the length threshold of, for example, a distance of 1000 pixels, the template control 61 is closed.
For another example, in the interface of the electronic whiteboard application shown in fig. 10, the user draws an arc-shaped trajectory counterclockwise, the electronic whiteboard device 100 obtains the drawing trajectory input by the user, and determines, through steps S10-S30, that the trajectory includes three trajectory offsets corresponding to a third angle interval, a fourth angle interval, and a first angle interval, which are arranged in sequence, at this time, based on the foregoing, "when the trajectory includes three trajectory offsets of three adjacent coordinate system angle intervals which are arranged in sequence in a clockwise direction or a counterclockwise direction, it is determined that the recommended graph includes at least one of a circle, an ellipse, a rectangle, a triangle, and a trapezoid," it is determined that the recommended graph is at least one of a circle, an ellipse, a rectangle, a triangle, and a trapezoid, "the template control 101 is displayed in the interface shown in fig. 10," the circle "is displayed in the template control 101", it can be seen that a circle can be recommended when the user only draws an arc corresponding to a roughly semicircular shape. Then, if the user applies a touch operation, such as finger touch and click, to the text label "circle" in the interface shown in fig. 10, the electronic whiteboard device 100 displays the interface shown in fig. 11 in response to the operation, that is, the display template control is closed, and a standard circle is displayed by using the 1 st track point of the "arc track drawn by the user from top to bottom" as the upper tangent point, and the user may adjust parameters, such as the diameter of the standard circle, through an operation mode, such as a dragging operation.
In summary, according to the graph drawing method provided in the embodiment of the present application, the electronic whiteboard device 100 can recognize the graph drawn by the touch of the user in real time based on the coordinate system angle interval corresponding to the offset included in the track, so that the standard graph meeting the drawing intention of the user can be recommended in real time, and the method has the advantages of being convenient and fast to operate, strong in real-time performance, high in drawing efficiency, and the like, and improves the interactive experience of drawing. The graph drawn by the touch of the user is identified based on the coordinate system angle interval corresponding to the offset contained in the track, so that the drawn track which does not need to be input by the user is very standard and strictly continuous, the drawn graph can be accurately identified, and the effectiveness and the applicability of the graph drawing method provided by the embodiment of the application are ensured.
An embodiment of the present application further provides a chip system, as shown in fig. 12, where the chip system includes at least one processor 1201 and at least one interface circuit 1202. The processor 1201 and the interface circuit 1202 may be interconnected by wires. For example, the interface circuit 1202 may be used to receive signals from other devices, such as a memory of the mobile terminal 100. Also for example, the interface circuit 1202 may be used to send signals to other devices, such as the processor 1201. Illustratively, the interface circuit 1202 may read instructions stored in a memory and send the instructions to the processor 1201. The instructions, when executed by the processor 1201, may cause the electronic device to perform the various steps performed by the electronic device 100 (e.g., an electronic whiteboard device) in the embodiments described above. Of course, the chip system may further include other discrete devices, which is not specifically limited in this embodiment of the present application.
It is to be understood that the above-mentioned terminal and the like include hardware structures and/or software modules corresponding to the respective functions for realizing the above-mentioned functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
In the embodiment of the present application, the terminal and the like may be divided into functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
It should be understood that the above-mentioned examples are given for the purpose of illustrating the present application clearly and not for the purpose of limiting the same, and that various other modifications and variations of the present invention may be made by those skilled in the art in light of the above teachings, and it is not intended to be exhaustive or to limit the invention to the precise form disclosed.

Claims (10)

1. A method for drawing a graph is applied to a terminal with a touch screen, and comprises the following steps:
acquiring a plurality of track points input on a touch screen;
determining track points belonging to the same graph according to the input time and the coordinates of each track point;
determining a coordinate system angle interval corresponding to a track offset contained in a track formed by the track points belonging to the same graph according to the coordinates of the track points belonging to the same graph;
determining a recommended graph when a coordinate system angle interval corresponding to the track offset contained in the track conforms to a preset rule, and displaying a template control, wherein the template control comprises an identifier of the recommended graph;
wherein, according to the coordinates of the track points belonging to the same figure, determining the coordinate system angle interval corresponding to the track offset contained in the track formed by the track points belonging to the same figure comprises:
determining the offset of adjacent track points according to the coordinates of the adjacent track points in the track points belonging to the same graph, and determining the track offset contained in the track formed by the track points belonging to the same graph according to the offset of the adjacent track points;
before determining the offset of the adjacent track points according to the coordinates of the adjacent track points in the track points belonging to the same graph, the method further comprises the following steps:
and for the adjacent track point formed by the (N + 1) th track point and the Nth track point, if the distance between the (N + 1) th track point and the Nth track point is less than a second distance threshold value, replacing the (N + 1) th track point with the (N + 2) th track point to serve as the adjacent track point of the Nth track point.
2. The method of claim 1, wherein determining the trace points belonging to the same graph according to the input time and the coordinates of each trace point comprises:
determining a plurality of continuous track points as belonging to the same graph; and the coordinate distance of any track point in the plurality of continuous track points is smaller than a preset first distance threshold value, and the time interval of the input moment of the last track point in the plurality of continuous track points is smaller than the track point of the preset time threshold value, and the plurality of continuous track points are determined to belong to the same graph.
3. The method according to claim 1, wherein the determining the track offset included in the track formed by the track points belonging to the same graph according to the adjacent track point offset comprises:
and combining the continuous adjacent track point offsets in the same coordinate system angle interval into a track offset in the coordinate system angle interval.
4. The method according to any one of claims 1-3, wherein the coordinate system angle interval comprises:
a first angle section within +/-45 degrees of an angle with the positive half shaft of the X axis, a second angle section within +/-45 degrees of an angle with the positive half shaft of the Y axis, a third angle section within +/-45 degrees of an angle with the negative half shaft of the X axis and a fourth angle section within +/-45 degrees of an angle with the negative half shaft of the Y axis.
5. The method according to claim 4, wherein the determining the recommended graph when the coordinate system angle interval corresponding to the track offset included in the track meets a preset rule comprises:
when the track only contains track offset in an angle interval of a coordinate system, determining that the recommended graph is a straight line;
when the track comprises two track offsets between two adjacent coordinate system angle intervals, determining that the recommended graph comprises at least one of a rectangle, a triangle and a trapezoid;
when the track comprises two or three track offsets in two opposite coordinate system angle intervals, determining that the recommended graph is a triangle;
and when the track comprises three track offsets of three adjacent coordinate system angle intervals sequentially sequenced in the clockwise direction or the anticlockwise direction, determining that the recommended graph comprises at least one of a circle, an ellipse, a rectangle, a triangle and a trapezoid.
6. The method of claim 1, wherein, after the displaying of the template control,
further comprising: and responding to the first operation of the identification, and displaying the graph corresponding to the identification by taking the coordinate of the 1 st track point in the track points belonging to the same graph as a reference coordinate.
7. The method of claim 1, wherein the displaying the template control comprises:
and displaying the template control at a position corresponding to a track formed by track points belonging to the same graph.
8. The method of claim 1, after the displaying the template control, further comprising:
and if the length of the track formed by the track points belonging to the same graph is greater than a preset length threshold value, stopping displaying the template control.
9. An electronic device, comprising: a processor, a memory, and a touchscreen, the memory and the touchscreen coupled with the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when read by the processor from the memory, cause the electronic device to perform the method of any of claims 1-8.
10. A computer storage medium comprising computer instructions that, when executed on a terminal, cause the terminal to perform the method of any one of claims 1-8.
CN202010489740.1A 2020-06-02 2020-06-02 Graph drawing method, electronic device, and computer storage medium Active CN111625179B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010489740.1A CN111625179B (en) 2020-06-02 2020-06-02 Graph drawing method, electronic device, and computer storage medium
PCT/CN2021/096036 WO2021244367A1 (en) 2020-06-02 2021-05-26 Graph drawing method, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010489740.1A CN111625179B (en) 2020-06-02 2020-06-02 Graph drawing method, electronic device, and computer storage medium

Publications (2)

Publication Number Publication Date
CN111625179A CN111625179A (en) 2020-09-04
CN111625179B true CN111625179B (en) 2021-11-16

Family

ID=72259250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010489740.1A Active CN111625179B (en) 2020-06-02 2020-06-02 Graph drawing method, electronic device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN111625179B (en)
WO (1) WO2021244367A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625179B (en) * 2020-06-02 2021-11-16 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium
CN112083870B (en) * 2020-09-09 2022-03-22 青岛海信商用显示股份有限公司 Information identification method and equipment
CN116324689A (en) * 2020-10-30 2023-06-23 海信视像科技股份有限公司 Display device, geometric figure recognition method and multi-layer stacked display method
CN112529984B (en) * 2020-12-23 2023-12-26 中移(杭州)信息技术有限公司 Method, device, electronic equipment and storage medium for drawing polygon
CN112907697A (en) * 2021-01-21 2021-06-04 广州朗国电子科技有限公司 Drawing method for automatically correcting circle or ellipse based on electronic whiteboard and application thereof
CN112884863B (en) * 2021-01-21 2022-07-19 广州朗国电子科技股份有限公司 Drawing method based on electronic whiteboard for automatically correcting triangles and application thereof
CN113221958A (en) * 2021-04-19 2021-08-06 深圳瀚维智能医疗科技有限公司 Method, device and system for matching massage track with massage area and storage medium
CN113487695A (en) * 2021-06-30 2021-10-08 青岛海信商用显示股份有限公司 Graph generation method and terminal equipment
CN113495663B (en) * 2021-07-05 2022-03-11 北京华大九天科技股份有限公司 Method and device for drawing rectangular layout, storage medium and electronic equipment
CN114461103A (en) * 2021-12-14 2022-05-10 北京鸿合爱学教育科技有限公司 Regional acceleration processing method and device, electronic equipment and storage medium
CN116700659B (en) * 2022-09-02 2024-03-08 荣耀终端有限公司 Interface interaction method and electronic equipment
CN116630994B (en) * 2023-07-19 2023-10-20 腾讯科技(深圳)有限公司 Method for recognizing pen gestures in input method, related device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902209A (en) * 2012-12-25 2014-07-02 联想(北京)有限公司 Electronic device graph input method and electronic device
CN107463331A (en) * 2017-08-15 2017-12-12 上海闻泰电子科技有限公司 Gesture path analogy method, device and electronic equipment
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium
CN108664651A (en) * 2018-05-17 2018-10-16 腾讯科技(深圳)有限公司 A kind of pattern recommends method, apparatus and storage medium
CN110851062A (en) * 2019-08-29 2020-02-28 华为技术有限公司 Drawing method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8726194B2 (en) * 2007-07-27 2014-05-13 Qualcomm Incorporated Item selection using enhanced control
CN111625179B (en) * 2020-06-02 2021-11-16 京东方科技集团股份有限公司 Graph drawing method, electronic device, and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902209A (en) * 2012-12-25 2014-07-02 联想(北京)有限公司 Electronic device graph input method and electronic device
CN107463331A (en) * 2017-08-15 2017-12-12 上海闻泰电子科技有限公司 Gesture path analogy method, device and electronic equipment
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium
CN108664651A (en) * 2018-05-17 2018-10-16 腾讯科技(深圳)有限公司 A kind of pattern recommends method, apparatus and storage medium
CN110851062A (en) * 2019-08-29 2020-02-28 华为技术有限公司 Drawing method and electronic equipment

Also Published As

Publication number Publication date
WO2021244367A1 (en) 2021-12-09
CN111625179A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN111625179B (en) Graph drawing method, electronic device, and computer storage medium
CN111651116B (en) Split screen interaction method, electronic equipment and computer storage medium
US9619106B2 (en) Methods and apparatus for simultaneous user inputs for three-dimensional animation
US10303325B2 (en) Multi-application environment
US9535597B2 (en) Managing an immersive interface in a multi-application immersive environment
US9128605B2 (en) Thumbnail-image selection of applications
US9104440B2 (en) Multi-application environment
US20150339050A1 (en) Ink for Interaction
US20120299968A1 (en) Managing an immersive interface in a multi-application immersive environment
US9405449B2 (en) Layout constraint manipulation via user gesture recognition
WO2019105191A1 (en) Multi-element interaction method, apparatus and device, and storage medium
US10347018B2 (en) Interactive data visualization user interface with hierarchical filtering based on gesture location on a chart
US20210343072A1 (en) Shader binding management in ray tracing
CN108255546A (en) A kind of implementation method and device of data loading animation
US20190372790A1 (en) Live ink presence for real-time collaboration
CN108369486B (en) Universal inking support
US9483171B1 (en) Low latency touch input rendering
CN106598315B (en) Touch display device and background image replacement method thereof
CN113589999A (en) Handwriting processing method, handwriting processing device and non-transient storage medium
WO2023131022A1 (en) Display control method, electronic device, and readable storage medium
US20230289048A1 (en) Managing An Immersive Interface in a Multi-Application Immersive Environment
WO2023184083A1 (en) Smart graphic association method and smart interactive display device
CN116719459A (en) Annotation frame display method, electronic device and readable storage medium
CN112462991A (en) Control method of intelligent interactive tablet, storage medium and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant