CN113849106A - Page-turning handwriting processing method and device, electronic device and storage medium - Google Patents

Page-turning handwriting processing method and device, electronic device and storage medium Download PDF

Info

Publication number
CN113849106A
CN113849106A CN202110994733.1A CN202110994733A CN113849106A CN 113849106 A CN113849106 A CN 113849106A CN 202110994733 A CN202110994733 A CN 202110994733A CN 113849106 A CN113849106 A CN 113849106A
Authority
CN
China
Prior art keywords
page
sliding track
information
sliding
touch
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.)
Granted
Application number
CN202110994733.1A
Other languages
Chinese (zh)
Other versions
CN113849106B (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.)
Beijing Honghe Aixue Education Technology Co ltd
Original Assignee
Beijing Honghe Aixue Education Technology 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 Beijing Honghe Aixue Education Technology Co ltd filed Critical Beijing Honghe Aixue Education Technology Co ltd
Priority to CN202110994733.1A priority Critical patent/CN113849106B/en
Publication of CN113849106A publication Critical patent/CN113849106A/en
Application granted granted Critical
Publication of CN113849106B publication Critical patent/CN113849106B/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/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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a page-turning handwriting processing method, device, electronic device and storage medium, which includes: acquiring sliding track information on a writing page; generating a sliding track on the writing page according to the sliding track information; judging whether the sliding track information belongs to page turning gesture information or not; and responding to the sliding track information belonging to the page turning gesture information, performing page turning operation on the writing page, and deleting the sliding track information. According to the method and the device, the generation of the writing track and the confirmation of the page turning gesture are carried out on the writing page at the same time, whether the current touch operation is the page turning gesture or not is confirmed according to the sliding track information, the page turning operation is executed after confirmation, the originally generated sliding track is deleted, and other operations are carried out, so that the leaving of the page turning track is avoided, and the watching experience of a user is improved.

Description

Page-turning handwriting processing method and device, electronic device and storage medium
Technical Field
The present application relates to the field of gesture recognition technologies, and in particular, to a method and device for processing page-turning handwriting, an electronic device, and a storage medium.
Background
Along with the continuous improvement of science and technology education level, more and more classrooms have deployed large-screen equipment, and the teacher can easily give lessons, and the teacher can realize writing on the large-screen, erasing handwriting, turning pages by gestures and other common functions. However, when the teacher is in a lecture and the writing function is turned on, and the courseware is turned over by sliding with the multi-finger gesture, the courseware may perform the page turning operation, but may leave sliding handwriting stains, which may greatly reduce the viewing experience of the student and may affect the normal writing handwriting.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, device, electronic device and storage medium for processing page-turning handwriting, so as to solve the problem in the prior art that handwriting is left when a page is turned.
According to an aspect of the present application, there is provided a page-turning handwriting processing method, including:
acquiring sliding track information on a writing page;
generating a sliding track on the writing page according to the sliding track information;
judging whether the sliding track information belongs to page turning gesture information or not;
and responding to the sliding track information belonging to the page turning gesture information, performing page turning operation on the writing page, and deleting the sliding track information.
In some embodiments, the sliding track information includes touch down information and touch up information; the touch pressing information comprises touch pressing coordinates and touch pressing time; the touch lifting information comprises touch lifting coordinates and touch lifting time;
the judging whether the sliding track information belongs to page turning gesture information includes:
calculating a sliding length according to the touch pressing coordinate and the touch lifting coordinate;
calculating sliding time length according to the touch pressing time and the touch lifting time;
determining whether the sliding speed is not less than a preset speed threshold value according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not less than the speed threshold value, and determining whether a sliding angle is within a preset range according to the touch pressing coordinate and the touch lifting coordinate;
and determining that the sliding track information belongs to the page turning gesture information in response to the sliding angle being within a preset range.
In some embodiments, before calculating the sliding length according to the touch down coordinate and the touch up coordinate, the method further comprises:
determining whether a writing mode on the writing page is a single-finger writing mode;
responding to the writing mode is the single-finger writing mode, and judging whether the number of touch points is more than one according to the touch pressing information;
responding to the condition that the number of the touch points is more than one, and judging whether the distance between the touch points of two adjacent touch points is within a preset distance range;
and responding to the fact that the distance between the touch points is within the preset distance range, and continuing to calculate the sliding length according to the touch pressing coordinate and the touch lifting coordinate.
In some embodiments, the performing a page-turning operation on the writing page in response to the sliding track information belonging to the page-turning gesture information includes:
responding to the sliding track information belonging to the page turning gesture information, and determining the page turning direction of the writing page according to the sliding angle;
and executing page turning operation on the writing page according to the page turning direction.
In some embodiments, after the obtaining of the sliding track information on the written page, the method further includes:
adding a first mark to the sliding track information;
after judging whether the sliding track information belongs to page turning gesture information, the method further comprises the following steps:
changing the first mark into a second mark in response to the sliding track information not belonging to the page-turning gesture information;
and responding to the display of the writing page again, and displaying the sliding track marked as the second mark corresponding to the sliding track information.
In some embodiments, the deleting the slide track information in response to the slide track information belonging to the page-turning gesture information includes:
changing the first mark into a third mark in response to the sliding track information belonging to the page-turning gesture information;
and deleting the sliding track information marked as the third mark and the corresponding sliding track.
In some embodiments, before the deleting process of the sliding track information, the method further includes:
in response to that the sliding track information belongs to the page-turning gesture information, changing the first mark into a third mark, and determining whether the sliding track information marked as the third mark needs to be reserved;
in response to that the sliding track information marked as the third mark needs to be reserved, when the writing page is displayed again, performing non-drawing processing or hiding processing on the sliding track corresponding to the sliding track information marked as the third mark;
in response to that the sliding track information marked as the third mark does not need to be reserved, continuing to execute the deletion processing of the sliding track information.
Based on the same concept, the application also provides page-turning handwriting processing equipment, which comprises:
the acquisition module is used for acquiring sliding track information on the writing page;
the generating module is used for generating a sliding track on the writing page according to the sliding track information;
the judging module is used for judging whether the sliding track information belongs to page turning gesture information or not;
and the execution module is used for responding to the sliding track information belonging to the page turning gesture information, executing page turning operation on the writing page and deleting the sliding track information.
Based on the same concept, the present application also provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method according to any one of the above.
Based on the same concept, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to implement the method of any one of the above.
As can be seen from the foregoing, according to the page-turning handwriting processing method, the page-turning handwriting processing device, the electronic device and the storage medium provided by the application, through performing generation of the writing track and confirmation of the page-turning gesture on the writing page at the same time, confirming whether the current touch operation is the page-turning gesture according to the sliding track information, performing the page-turning operation after confirmation, and deleting and the like the originally generated sliding track, the leaving of the page-turning track is avoided, and the viewing experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or related technologies, the drawings needed to be used in the description of the embodiments or related technologies are briefly introduced below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for processing page-turning handwriting according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of a page-turning handwriting processing device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present specification more apparent, the present specification is further described in detail below with reference to the accompanying drawings in combination with specific embodiments.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that a element, article, or method step that precedes the word, and includes the element, article, or method step that follows the word, and equivalents thereof, does not exclude other elements, articles, or method steps. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As described in the background section, in a specific application scenario of education and the like, when a teacher speaks on a large screen, if a comment mode or other writing mode capable of writing on a large screen or other intelligent devices is opened, when a page is turned over in a sliding manner, the interface receives a corresponding touch event message (e.g., a touch press-down message, a touch slide message, a touch lift-up message, etc.) due to the fact that the comment mode is opened, so that handwriting can be drawn in real time. After the sliding is completed, whether the sliding is a page turning operation is judged according to the specific information of the sliding. If the operation is a page turning operation, the page turning is performed, and redundant sliding handwriting is left in the previous page. Greatly discounting the student's viewing experience and possibly affecting normal writing due to the useless sliding notes left.
In combination with the above actual situation, the embodiment of the application provides a page-turning handwriting processing scheme, which is characterized in that a writing track is generated and a page-turning gesture is confirmed on a writing page at the same time, whether the current touch operation is the page-turning gesture is confirmed according to sliding track information, a page-turning operation is executed after confirmation, and the originally generated sliding track is deleted and the like, so that the leaving of the page-turning track is avoided, and the viewing experience of a user is improved.
As shown in fig. 1, a schematic flow chart of a page-turning handwriting processing method provided by the present application specifically includes:
step 101, obtaining sliding track information on a writing page.
In this step, touch information on the writing page is acquired, and sliding track information in the writing page is analyzed according to continuous movement of the touch point. In a specific application scenario, the writing page is a page of a specific touch intelligent device, which can be used for touch handwriting input. The touch-control smart device can be a relatively convenient mobile smart device: cell-phone, flat board etc. also can be comparatively large-scale smart machine: intelligent touch televisions, intelligent touch large screens, intelligent touch whiteboards, and the like. The touch information is information generated by executing touch operation on the large touch screen by a user finger or other components capable of simulating human fingers. For example, the touch information may include touch point selection information (touch point position, touch point area, etc.), touch sliding information (start position, end position, start time, end time, position information of a certain point in the sliding process, time information of sliding to the point, etc.), and the like. Further, the sliding track information is touch data related to sliding, for example: the starting and ending position, the starting and ending time, the number of sliding touch points and the like.
In some application scenarios, the writing mode on the writing page may be in various forms, such as single-finger writing and multi-finger writing, and the page-turning handwriting processing scheme of the scheme can be performed in different writing modes. In other application scenarios, for devices in which single-finger writing and multi-finger writing exist, for convenience of distinguishing, the scheme may be set to only one writing mode, for example, only the single-finger writing mode is processed, and if the multi-finger writing mode is set, no page turning operation is performed no matter whether a page turning condition is satisfied during sliding, and only a normal multi-finger writing operation is performed; or only processing the multi-finger writing mode, if the single-finger writing mode is set, no matter whether the page turning condition is met or not, the page turning operation is not executed during sliding, and only the normal single-finger writing operation is executed.
And 102, generating a sliding track on the writing page according to the sliding track information.
In this step, a slide trajectory is generated to be displayed on the written page. In the embodiment of the application, handwriting on the writing page is displayed in real time so as to prevent a user from missing writing notes under a normal writing condition.
In some embodiments, a user performs a touch operation on the touch device, and each touch operation necessarily needs to be completed after a certain time. Taking sliding as an example, in the sliding process of a user, because the whole track is not completed, it cannot be determined whether the track belongs to a page-turning gesture and is left, and if the handwriting is not displayed in real time, if it is determined in the subsequent determination process that the sliding track information belongs to information corresponding to normal writing operation, problems such as missing or delayed display of the track may be caused.
Furthermore, for the information of the sliding track that is occurring, since it has not been finally confirmed whether the information of the sliding track is the page-turning gesture information, in order not to affect the acquisition and display of the writing track in the writing mode, it is necessary to display the information of the sliding track on the current writing page, that is, to generate the sliding track.
In a specific teaching application scene, when a teacher speaks a class, when the teacher enters a writing mode or an annotation mode, manual sliding page turning is performed at the moment, due to the fact that the writing mode is opened, a sliding track and handwriting left by normal writing cannot be distinguished, the sliding track left by the sliding page turning can be drawn in real time, and the handwriting is left on a large screen. And judging whether the operation meets the page turning requirement or not in the following steps while manually sliding, and executing the page turning operation if the operation meets the page turning requirement.
And 103, judging whether the sliding track information belongs to page turning gesture information.
In the step, whether the current gesture is the page-turning gesture information or not is determined according to the sliding track information, and the current gesture can be accurately identified, quickly identified and accurately distinguished by utilizing various conditions.
In some embodiments, no matter whether single-finger writing or multi-finger writing is performed on the touch writing page, when a general user wants to turn a page, the speed of performing touch sliding is very fast, and meanwhile, the general user inevitably has a page-turning tendency direction, and thus whether current sliding track information is page-turning gesture information can be determined through the sliding speed and the sliding angle.
The sliding speed is the speed of the touch point during sliding, and the overall average speed can be calculated through the total length and the total time consumption of the whole sliding track, or the dynamic speed can be calculated according to the length and the moving time consumption of two opposite points on the sliding track in real time during sliding, that is, the sliding speed can be the whole average speed or the real-time speed.
The sliding angle is the direction angle when the touch point slides. Regarding the sliding angle, according to normal operation, if the page turning is necessarily a sliding within a certain angle from the middle toward a certain direction edge, the page turning is considered to be a page turning in the certain direction, and thus the sliding angle needs to be confirmed to be within a certain range, for example, within a circle with a horizontal line on the right side of the origin as the touch down coordinate being zero degrees, within a range of 0 degrees to 45 degrees and 315 degrees to 360 degrees, within a range of 135 degrees to 225 degrees, the page turning is left, and within the range of 135 degrees to 225 degrees, the sliding angle deviates from the certain range, the page turning is not considered to be a page turning operation. Of course, the sliding angle may be the overall direction angle, or may be the real-time direction angle, etc.
In a specific embodiment, the sliding track information includes touch down information and touch up information; the touch pressing information comprises touch pressing coordinates and touch pressing time; the touch up information includes touch up coordinates and touch up time. The touch pressing coordinate is a contact coordinate point when a finger contacts the screen, and the touch lifting coordinate is a touch point of the finger on the screen before the finger lifts off the screen after a stroke of writing on the writing page. It should be understood that for single-finger writing, a writing trace corresponds to a set of touch down information, i.e., a trace corresponds to a touch down coordinate, a touch down time, a touch up coordinate, and a touch up time. For multi-finger writing, a plurality of writing tracks are corresponding at the same time, and each writing track corresponds to one touch pressing coordinate and one touch lifting coordinate. In the page turning application scenario of the application, if the plurality of writing tracks are all tracks corresponding to the page turning gesture, the touch pressing time and the touch lifting time corresponding to the plurality of writing tracks are the same.
When the sliding speed is calculated, calculating the sliding length according to the touch pressing coordinate and the touch lifting coordinate; calculating the sliding time length according to the touch pressing time and the touch lifting time; and determining the sliding speed according to the ratio of the sliding length to the sliding time length. For multi-finger sliding, because the difference of the sliding speed of each finger is not large when the page is turned, the sliding track information corresponding to any finger is selected to determine the sliding speed.
And when the sliding angle is calculated, determining the sliding angle according to the touch pressing coordinate and the touch lifting coordinate. Assume that the touch down coordinates (x0, y0) and the touch up coordinates (x1, y1) at the end of the slide determine the slide angle. Specifically, assuming that the touch-down coordinate and the touch-up coordinate are both coordinate values obtained in a planar rectangular coordinate system, and the sliding angle is an angle between the sliding track and the X-axis, the sliding angle value is
Figure BDA0003233580120000071
If the sliding angle is the angle between the sliding track and the Y axis, the sliding angle value is
Figure BDA0003233580120000072
For multi-finger sliding, because the sliding tracks of all the fingers are parallel when the pages are turned, the sliding track information corresponding to any one finger is selected to determine the sliding angle.
And if the sliding speed is not less than the preset speed threshold value, further determining whether the sliding angle is within a preset range, and if the sliding angle is within the preset range, determining that the sliding track information belongs to page turning gesture information. If the sliding speed is smaller than the preset speed threshold, the sliding track information is directly determined not to belong to the page turning gesture information without further determining whether the sliding angle is within the preset range. In other embodiments, it may also be determined whether the sliding angle is within a preset range, and if so, it is further determined whether the sliding speed is not less than a preset speed threshold. The embodiment of the present application is not limited to the determination order of the sliding speed and the sliding angle.
When the sliding track information meets the condition of the page turning gesture information, the current sliding track information can be considered as the page turning gesture information; if the condition is not met, the current sliding track information is not the page turning gesture information, the current page cannot be turned, and the sliding track information is the normal writing track information on the current page with a higher probability, so that the current sliding track is used as the writing track.
And 104, responding to the sliding track information belonging to the page turning gesture information, executing page turning operation on the writing page, and deleting the sliding track information.
In this step, after it is determined that the current touch information is the page-turning gesture information, a page-turning operation is performed, and a touch trajectory generated by the touch information is deleted, so that the touch trajectory written normally is not affected.
In some embodiments, when the sliding is finished, it is immediately determined whether the sliding is a page-turning operation according to step 103, and a determination result is given. The judgment result is divided into two conditions: the first method comprises the following steps: if the page turning action is carried out, the sliding track of the sliding track information is handwriting data generated by mistake during page turning. And the second method comprises the following steps: if the page turning action is not carried out, the sliding track information represents normal writing information on the writing page, and the sliding track is writing handwriting. And deleting the sliding track corresponding to the page turning operation.
As can be seen from the above, in the embodiment of the application, the writing track is generated and the page turning gesture is confirmed on the writing page at the same time, whether the current touch operation is the page turning gesture is confirmed according to the sliding track information, the page turning operation is executed after the confirmation, and the originally generated sliding track is deleted, so that the leaving of the page turning track is avoided, and the viewing experience of a user is improved.
It should be noted that the method of the embodiment of the present application may be executed by a single device, such as a computer or a server. The method of the embodiment of the application can also be applied to a distributed scene and is completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment, and the multiple devices interact with each other to complete the method.
It should be noted that the above-mentioned description describes specific embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In other embodiments, a determination is first made as to whether the writing mode on the written page is a one-finger writing mode before calculating the sliding length based on the touch down coordinates and the touch up coordinates. If the writing mode of the current written page is single-finger writing, other judgment elements can be added to further confirm on the basis of the previous embodiment, for example: number of touch points, touch point spacing, and the like.
Taking two conditions of the number of the touch points and the distance between the touch points as an example, responding to that the writing mode is a single-finger writing mode, and judging whether the number of the touch points is more than one according to touch pressing information; responding to the condition that the number of the touch points is more than one, and judging whether the distance between the touch points of two adjacent touch points is within a preset distance range; and responding to the fact that the distance between the touch points is within the preset distance range, and continuing to calculate the sliding length according to the touch pressing coordinate and the touch lifting coordinate. Therefore, whether the sliding track information belongs to the page turning gesture information or not can be judged more accurately in the single-finger writing mode.
The number of touch points is the number of points that are in contact with the touch screen when a user performs a touch operation on the touch screen, for example, when the user slides on the touch screen with two fingers, there are two touch points. The touch point distance is the determined relative distance between adjacent touch points. In a specific application scenario, since the current mode is a single-finger writing mode, when the number of touch points is more than one, it can be determined that the user wants to perform a page turning operation. When a user wants to perform a multi-finger page turning operation, several fingers in touch are usually closed together for sliding, so that when the number of touch points is more than one, whether the distance between every two adjacent touch points is smaller than a certain threshold value or not is determined, and if the distance is smaller than the certain threshold value, the user is considered to be performing multi-finger closing sliding, and the user is considered to desire to perform the page turning operation.
In this embodiment, since there may be a multi-finger input mode in the handwriting writing mode of the existing smart device, and the input of each finger is a part of the current writing in this mode, it is difficult to distinguish whether the current multi-finger gesture is writing or turning pages. Therefore, the scheme can be executed only in the single-finger writing mode, and in the multi-finger writing mode, page turning operation is not executed no matter whether page turning conditions are met or not during sliding, and normal multi-finger writing operation is executed. When in the single-finger writing mode, the number of touch points and the distance between the touch points can be added to determine the page-turning gesture information based on the previous embodiment.
In a specific application scenario, for the number of touch points, in a common writing mode, a user generally operates with a single finger, otherwise, overlapping handwriting is generated. Therefore, when a user writes normally, only one corresponding touch point is provided. Therefore, if at least two touch points (i.e., the number of fingers is 2 or more pages) are detected, for example, the range of the number of touch points specified for page turning can be set to 2 to 4, then it is considered that the sliding page-turning operation may occur. Then, for the distance between the touch points, which is the distance between the adjacent fingers operated by the user, in order to determine the distance between the adjacent fingers, the sliding page turning operation is considered to possibly occur only if the distance between all the touch points is within a certain range, and if two sliding tracks with too large distance appear on the screen, the sliding page turning operation is not considered to be normal page turning.
In some embodiments, the determination of the slide-and-turn gesture under the single-finger writing can be based on only two conditions, i.e., the number of touch points and the distance between touch points. The swipe page flip gesture can also be determined in combination with the swipe speed and swipe angle in the previous embodiment. And when the four conditions are judged to be all in accordance with the conditions, the current sliding track information is considered as page turning gesture information. Of course, the order of the determination conditions may be freely adjusted, i.e., may be performed in an order different from that in the above-described embodiment and still achieve a desired result.
In some embodiments, after it is confirmed that the sliding track information belongs to the page turning gesture information, the page turning direction may also be determined by the sliding angle. That is, the slide angle may also determine whether to flip to the previous page or the next page. For example: in a circle with the touch down coordinate as the origin and the horizontal line at the right side as zero degrees, pages are turned left (page forward) in a range of 0 to 45 degrees and 315 to 360 degrees, pages are turned right (page backward) in a range of 135 to 225 degrees, and the like. The corresponding relationship between the sliding direction and the page turning direction can be customized, and the embodiment of the application is not limited to this.
In other embodiments, after the sliding track information on the written page is acquired, the sliding track corresponding to the page turning operation is not immediately deleted through the judgment in the above embodiments, so as to avoid the execution of the deletion operation from affecting the response speed of display and writing. That is, the priority of processing the page-turning handwriting is low, and the processing of the page-turning handwriting is executed when the processor is idle. And adding a first mark to the sliding track information no matter whether the obtained sliding track belongs to the sliding track corresponding to the page turning operation or not. And if the sliding track information does not belong to the page turning gesture information, changing the first mark into a second mark. And when the writing page is displayed again, displaying the sliding track marked as the second mark corresponding to the sliding track information. Therefore, the sliding track information and the sliding track of each time can be conveniently processed.
The first mark and the second mark may be different numeric marks or different alphabetical marks, and the specific types of the first mark and the second mark are not limited in the embodiments of the present application. For example, the first label is 0 and the second label is 1. When the written page is displayed again (for example, when the user turns the page back to the page), the sliding track information marked as 1 is directly recognized as normal note data, and the corresponding sliding tracks are directly displayed in normal tracks.
In contrast, when it is determined that the current sliding track information belongs to the page-turning gesture information, the state flag of the sliding track information is modified from the first flag to the third flag. The third mark, the first mark and the second mark are different marks. For example, if the third mark is 2, the sliding track information marked as 2 is directly deleted, or when the current page is displayed again, the sliding tracks corresponding to the sliding track information marked as 2 are not drawn or displayed. In a specific application scenario, for handwriting which is generated by sliding page turning in error, if no meaning exists in terms of business, the sliding track information with the marking state of 2 is deleted during page turning. If the data information needs to be preserved, the sliding track information with the marking state of 2 is not deleted, and only the track corresponding to the information is not drawn or hidden when the drawing is refreshed.
It should be understood that, whether the sliding track corresponding to the third mark needs to be reserved or not may be set in advance for the presentation file. For example, a reserved mark is added in the stage of editing the display file, the sliding track information corresponding to the file marked with the reserved mark is reserved, and the sliding track information corresponding to the file not marked with the reserved mark is deleted. By the embodiment of the application, the sliding track information during page turning can be reserved, so that the staying time of a user in each page display page can be determined according to the sliding track information, and the content of interest of the user can be determined.
Based on the same concept, the application also provides page-turning handwriting processing equipment corresponding to the method of any embodiment.
Referring to fig. 2, the page-turning handwriting processing apparatus includes:
an obtaining module 210, configured to obtain sliding track information on a writing page;
the generating module 220 is configured to generate a sliding track on the writing page according to the sliding track information;
the judging module 230 is configured to judge whether the sliding track information belongs to page turning gesture information;
and the executing module 240 is configured to execute a page turning operation on the writing page and delete the sliding track information in response to that the sliding track information belongs to the page turning gesture information.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functions of the modules may be implemented in the same or multiple software and/or hardware when implementing the embodiments of the present application.
The device of the above embodiment is used for implementing the corresponding page-turning handwriting processing method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
As an alternative embodiment, the sliding track information includes touch down information and touch up information; the touch pressing information comprises touch pressing coordinates and touch pressing time; the touch lifting information comprises touch lifting coordinates and touch lifting time;
the determining module 230 is further configured to:
calculating a sliding length according to the touch pressing coordinate and the touch lifting coordinate;
calculating the sliding time length according to the touch pressing time and the touch lifting time;
determining whether the sliding speed is not less than a preset speed threshold value according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not less than the speed threshold value, and determining whether the sliding angle is within a preset range according to the touch pressing coordinate and the touch lifting coordinate;
and determining that the sliding track information belongs to the page turning gesture information in response to the sliding angle being within the preset range.
As an alternative embodiment, the determining module 230 is further configured to:
determining whether a writing mode on a writing page is a single-finger writing mode;
judging whether the number of touch points is more than one according to the touch pressing information in response to the fact that the writing mode is the single-finger writing mode;
responding to the condition that the number of the touch points is more than one, and judging whether the distance between the touch points of two adjacent touch points is within a preset distance range;
and responding to the fact that the distance between the touch points is within the preset distance range, and continuing to calculate the sliding length according to the touch pressing coordinate and the touch lifting coordinate.
As an alternative embodiment, the determining module 230 is further configured to:
determining the page turning direction of the writing page according to the sliding angle in response to the sliding track information belonging to the page turning gesture information;
and executing page turning operation on the writing page according to the page turning direction.
As an alternative embodiment, the obtaining module 210 is further configured to:
adding a first mark to the sliding track information;
after judging whether the sliding track information belongs to the page turning gesture information, the method further comprises the following steps:
changing the first mark into a second mark in response to the sliding track information not belonging to the page turning gesture information;
and responding to the display of the writing page again, and displaying the sliding track marked as the second mark corresponding to the sliding track information.
As an alternative embodiment, the execution module 240 is further configured to:
changing the first mark into a third mark in response to the sliding track information belonging to the page turning gesture information;
and deleting the sliding track information marked as the third mark and the corresponding sliding track.
As an alternative embodiment, the execution module 240 is further configured to:
responding to the sliding track information belonging to the page turning gesture information, changing the first mark into a third mark, and determining whether the sliding track information marked as the third mark needs to be reserved;
in response to the fact that the sliding track information marked as the third mark needs to be reserved, when the writing page is displayed again, the sliding track corresponding to the sliding track information marked as the third mark is subjected to non-drawing processing or hiding processing;
and in response to that the sliding track information marked as the third mark does not need to be reserved, continuing to execute the deleting process of the sliding track information.
Based on the same concept, corresponding to any embodiment of the method, the application further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the method for processing page-turning handwriting as described in any embodiment of the invention is implemented.
Fig. 3 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the above embodiment is used to implement the corresponding page-turning handwriting processing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same concept, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the page turning handwriting processing method according to any of the above embodiments, corresponding to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the page-turning handwriting processing method according to any one of the above embodiments, and have the beneficial effects of the corresponding method embodiment, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A page-turning handwriting processing method is characterized by comprising the following steps:
acquiring sliding track information on a writing page;
generating a sliding track on the writing page according to the sliding track information;
judging whether the sliding track information belongs to page turning gesture information or not;
and responding to the sliding track information belonging to the page turning gesture information, performing page turning operation on the writing page, and deleting the sliding track information.
2. The method of claim 1, wherein the sliding track information includes touch down information and touch up information; the touch pressing information comprises touch pressing coordinates and touch pressing time; the touch lifting information comprises touch lifting coordinates and touch lifting time;
the judging whether the sliding track information belongs to page turning gesture information includes:
calculating a sliding length according to the touch pressing coordinate and the touch lifting coordinate;
calculating sliding time length according to the touch pressing time and the touch lifting time;
determining whether the sliding speed is not less than a preset speed threshold value according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not less than the speed threshold value, and determining whether a sliding angle is within a preset range according to the touch pressing coordinate and the touch lifting coordinate;
and determining that the sliding track information belongs to the page turning gesture information in response to the sliding angle being within a preset range.
3. The method of claim 2, wherein prior to calculating a slide length from the touch down coordinates and the touch up coordinates, further comprising:
determining whether a writing mode on the writing page is a single-finger writing mode;
responding to the writing mode is the single-finger writing mode, and judging whether the number of touch points is more than one according to the touch pressing information;
responding to the condition that the number of the touch points is more than one, and judging whether the distance between the touch points of two adjacent touch points is within a preset distance range;
and responding to the fact that the distance between the touch points is within the preset distance range, and continuing to calculate the sliding length according to the touch pressing coordinate and the touch lifting coordinate.
4. The method according to claim 2 or 3, wherein performing a page-turning operation on the written page in response to the sliding track information belonging to the page-turning gesture information comprises:
responding to the sliding track information belonging to the page turning gesture information, and determining the page turning direction of the writing page according to the sliding angle;
and executing page turning operation on the writing page according to the page turning direction.
5. The method of claim 1, wherein after obtaining the sliding track information on the written page, the method further comprises:
adding a first mark to the sliding track information;
after judging whether the sliding track information belongs to page turning gesture information, the method further comprises the following steps:
changing the first mark into a second mark in response to the sliding track information not belonging to the page-turning gesture information;
and responding to the display of the writing page again, and displaying the sliding track marked as the second mark corresponding to the sliding track information.
6. The method according to claim 5, wherein the deleting the sliding track information in response to the sliding track information belonging to the page-turning gesture information comprises:
changing the first mark into a third mark in response to the sliding track information belonging to the page-turning gesture information;
and deleting the sliding track information marked as the third mark and the corresponding sliding track.
7. The method according to claim 5, wherein before the deleting process of the sliding track information, the method further comprises:
in response to that the sliding track information belongs to the page-turning gesture information, changing the first mark into a third mark, and determining whether the sliding track information marked as the third mark needs to be reserved;
in response to that the sliding track information marked as the third mark needs to be reserved, when the writing page is displayed again, performing non-drawing processing or hiding processing on the sliding track corresponding to the sliding track information marked as the third mark;
in response to that the sliding track information marked as the third mark does not need to be reserved, continuing to execute the deletion processing of the sliding track information.
8. A page-turning handwriting processing apparatus, comprising:
the acquisition module is used for acquiring sliding track information on the writing page;
the generating module is used for generating a sliding track on the writing page according to the sliding track information;
the judging module is used for judging whether the sliding track information belongs to page turning gesture information or not;
and the execution module is used for responding to the sliding track information belonging to the page turning gesture information, executing page turning operation on the writing page and deleting the sliding track information.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to implement the method of any one of claims 1 to 7.
CN202110994733.1A 2021-08-27 2021-08-27 Page turning handwriting processing method, device, electronic device and storage medium Active CN113849106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110994733.1A CN113849106B (en) 2021-08-27 2021-08-27 Page turning handwriting processing method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110994733.1A CN113849106B (en) 2021-08-27 2021-08-27 Page turning handwriting processing method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN113849106A true CN113849106A (en) 2021-12-28
CN113849106B CN113849106B (en) 2023-12-29

Family

ID=78976328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110994733.1A Active CN113849106B (en) 2021-08-27 2021-08-27 Page turning handwriting processing method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113849106B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415931A (en) * 2022-01-13 2022-04-29 湖南新云网科技有限公司 Electronic whiteboard display method and device, electronic whiteboard and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533317A (en) * 2008-03-13 2009-09-16 三星电子株式会社 Fast recording device with handwriting identifying function and method thereof
CN103268198A (en) * 2013-05-24 2013-08-28 广东国笔科技股份有限公司 Gesture input method and device
US20150253851A1 (en) * 2014-03-06 2015-09-10 Samsung Electronics Co., Ltd. Electronic device and method for outputting feedback
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 Interaction method and interaction device for electronic product desktop
CN112527183A (en) * 2020-12-23 2021-03-19 北京华宇信息技术有限公司 Method and device for deleting text by hand drawing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533317A (en) * 2008-03-13 2009-09-16 三星电子株式会社 Fast recording device with handwriting identifying function and method thereof
CN103268198A (en) * 2013-05-24 2013-08-28 广东国笔科技股份有限公司 Gesture input method and device
US20150253851A1 (en) * 2014-03-06 2015-09-10 Samsung Electronics Co., Ltd. Electronic device and method for outputting feedback
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 Interaction method and interaction device for electronic product desktop
CN112527183A (en) * 2020-12-23 2021-03-19 北京华宇信息技术有限公司 Method and device for deleting text by hand drawing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415931A (en) * 2022-01-13 2022-04-29 湖南新云网科技有限公司 Electronic whiteboard display method and device, electronic whiteboard and storage medium

Also Published As

Publication number Publication date
CN113849106B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN107273002B (en) Handwriting input answering method, terminal and computer readable storage medium
EP2608007A2 (en) Method and apparatus for providing a multi-touch interaction in a portable terminal
CN106919333B (en) Method and device for recording writing content on electronic writing board
CN106168870A (en) A kind of split screen window display method and terminal
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US10359920B2 (en) Object management device, thinking assistance device, object management method, and computer-readable storage medium
US9372622B2 (en) Method for recording a track and electronic device using the same
CN110941382B (en) Display operation method, device, equipment and storage medium of intelligent interactive panel
US20210027007A1 (en) Online document commenting method and apparatus
KR102075433B1 (en) Handwriting input apparatus and control method thereof
CN103699259A (en) Cursor positioning method, cursor positioning system and touch equipment
WO2021068412A1 (en) Interaction method and apparatus for intelligent interaction tablet, terminal device, and storage medium
KR102337157B1 (en) Electronic blackboard apparatus and the controlling method thereof
CN113741753A (en) Revocation method, electronic device, storage medium, and computer program product
US11209975B2 (en) Enhanced canvas environments
US9170733B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
TWI485616B (en) Method for recording trajectory and electronic apparatus
CN113849106B (en) Page turning handwriting processing method, device, electronic device and storage medium
JP2015095066A (en) Information processing apparatus and information processing program
CN109358799B (en) Method for adding handwritten annotation information input by user on handwriting equipment
US9141286B2 (en) Electronic device and method for displaying software input interface
JP2015022524A (en) Terminal device and system
CN108491139B (en) Object fixing method and device, terminal equipment and storage medium
CN105867763A (en) Information processing method and terminal
US20180129466A1 (en) Display control device and display system

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