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

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

Info

Publication number
CN113849106B
CN113849106B CN202110994733.1A CN202110994733A CN113849106B CN 113849106 B CN113849106 B CN 113849106B CN 202110994733 A CN202110994733 A CN 202110994733A CN 113849106 B CN113849106 B CN 113849106B
Authority
CN
China
Prior art keywords
sliding track
touch
page
information
sliding
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
CN202110994733.1A
Other languages
Chinese (zh)
Other versions
CN113849106A (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

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

Abstract

The application provides a page turning handwriting processing method, equipment, electronic equipment and storage medium, which comprise 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, executing 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 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, device, electronic device and storage medium
Technical Field
The present disclosure relates to the field of gesture recognition technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for processing page turning handwriting.
Background
Along with the continuous improvement of the level of science and technology education, large-screen equipment is deployed in more classrooms, so that teachers can easily give lessons, and the teachers can realize common functions of writing, handwriting erasing, gesture page turning and the like on the large screen. However, when the teacher is in the lecture, under the condition that the writing function is opened, when the page is turned by sliding by using the multi-finger gesture, the courseware can execute the page turning operation, but the sliding handwriting stain is left at the same time, so that the watching experience of the student is greatly discounted, and the normal writing handwriting can be influenced.
Disclosure of Invention
In view of the above, the present application aims to provide a method, an apparatus, an electronic device and a storage medium for processing page turning handwriting, which are used for solving the problem of writing page turning handwriting in the prior art.
According to one 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, executing 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 a touch lifting coordinate and a touch lifting moment;
the judging whether the sliding track information belongs to page turning gesture information comprises the following steps:
calculating a sliding length according to the touch pressing coordinate and the touch lifting coordinate;
calculating a 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 according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not smaller than the speed threshold value, and determining whether the sliding angle is in a preset range according to the touch pressing coordinate and the touch lifting coordinate;
and responding to the sliding angle in a preset range, and determining that the sliding track information belongs to the page turning gesture information.
In some embodiments, before the calculating the sliding length according to the touch down coordinate and the touch up coordinate, the method further includes:
determining whether a writing mode on the writing page is a single-finger writing mode;
responding to the writing mode being the single-finger writing mode, and judging whether the number of touch points is larger than one according to the touch pressing information;
judging whether the distance between the touch points of two adjacent touch points is within a preset distance range or not in response to the number of the touch points being larger than one;
and responding to the touch point spacing within the preset spacing range, and continuously executing the calculation of 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 the sliding track information on the writing page, the method further includes:
adding a first mark to the sliding track information;
after the determining whether the sliding track information belongs to the page turning gesture information, the method further includes:
changing the first mark to a second mark in response to the sliding track information not belonging to the page-turning gesture information;
and displaying the sliding track corresponding to the sliding track information marked as the second mark in response to displaying the writing page again.
In some embodiments, the deleting the sliding track information in response to the sliding track information belonging to the page-turning gesture information includes:
changing the first mark to 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 the sliding track information, the method further includes:
in response 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 or not;
responding to the sliding track information marked as the third mark to be reserved, and when the writing page is displayed again, carrying out non-drawing processing or hiding processing on the sliding track corresponding to the sliding track information marked as the third mark;
and responding to the sliding track information marked as the third mark without being reserved, and continuing to execute the deleting process on the sliding track information.
Based on the same conception, the application also provides page turning handwriting processing equipment, which comprises the following steps:
the acquisition module is used for acquiring sliding track information on the writing page;
the generation 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 conception, the application also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of the above when executing the program.
Based on the same conception, the present application also provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to implement the method as described in any one of the above.
From the above, it can be seen that, according to the page turning handwriting processing method, device, electronic device and storage medium provided by the present application, by simultaneously generating a writing track and confirming a page turning gesture on a writing page, confirming whether a current touch operation is the page turning gesture according to sliding track information, executing the page turning operation after confirming, deleting the originally generated sliding track, and the like, 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 embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a schematic flow chart of a method for processing page turning handwriting according to an embodiment of the present application;
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
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the present specification will be further described in detail below with reference to the accompanying drawings.
It should be noted that unless otherwise defined, technical or scientific terms used in the embodiments of the present application should be given the ordinary meaning as understood by one of ordinary skill in the art to which the present application belongs. The terms "first," "second," and the like, as used in embodiments of the present application, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements, articles, or method steps preceding the word are included in the listed elements, articles, or method steps following the word, and equivalents thereof, without precluding other elements, articles, or method steps. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
As described in the background art, in a specific application scenario such as education, if a teacher opens a writing mode such as an annotation mode that can optionally write on an intelligent device such as a large screen when the teacher lectures on the large screen, when the user turns over a page in a sliding manner, the interface receives a corresponding touch event message (e.g., a touch down message, a touch slide message, a touch up message, etc.) due to the opening of the annotation mode, so handwriting can be drawn in real time. After the sliding is completed, whether the sliding is a page turning operation or not is judged according to the specific information of the sliding. If the page turning operation is performed, so that redundant sliding handwriting is left on the previous page. The viewing experience of the student is greatly discounted and normal writing may be affected by the useless sliding notes left behind.
In combination with the above practical situation, the embodiment of the application provides a page turning handwriting processing scheme, by simultaneously generating a writing track and confirming a page turning gesture on a writing page, confirming whether the current touch operation is the page turning gesture according to sliding track information, executing the page turning operation after confirming, deleting the originally generated sliding track and the like, thereby avoiding the leaving of the page turning track and improving the watching experience of a user.
Fig. 1 is a schematic flow chart of a page turning handwriting processing method, which specifically includes:
step 101, obtaining sliding track information on a writing page.
In this step, touch information on the writing page is acquired, and the sliding track information is resolved according to the continuous movement of the touch point. In a specific application scene, a writing page is a page of a specific touch intelligent device, which can be subjected to touch handwriting input. The touch intelligent device can be a more convenient mobile intelligent device: cell-phone, tablet 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 performing touch operation on the touch large screen by using 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 slide information (start position, end position, start time, end time, position information of a point in the slide process, time information of a slide to the point, etc.), and the like. Furthermore, the sliding track information is touch data related to sliding, for example: start-stop position, start-stop time, number of touch points sliding, etc.
In some application scenarios, the writing mode on the writing page can 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, in the equipment with single-finger writing and multi-finger writing, in order to facilitate distinction, the scheme can be set to only aim at one writing mode, for example, only the single-finger writing mode is processed, if the multi-finger writing mode is set, the page turning operation is not executed no matter whether the page turning condition is met or not during sliding, and only the normal multi-finger writing operation is executed; or only processing the multi-finger writing mode, if the single-finger writing mode is set, the page turning operation is not executed no matter whether the page turning condition is met or not during sliding, and only 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 for display on the writing page. In the embodiment of the application, handwriting on the writing page is displayed in real time, so that a user is prevented from missing writing notes under the normal writing condition.
In some embodiments, a user performs a touch operation on a touch device, and each touch operation must take a specific time to be completed. Taking sliding as an example, in the sliding process of the user, since the whole track is not completed, whether the track belongs to the page turning gesture is not determined at this time, if the handwriting is not displayed in real time, if the sliding track information is confirmed to belong to the information corresponding to the normal writing operation in the subsequent judging process, the problems of track omission or delayed display and the like may be caused.
Further, with respect to the sliding track information that is occurring, since whether or not the sliding track information is the page-turning gesture information has not been finally confirmed, it is necessary to display the sliding track information on the current writing page, that is, to generate the sliding track, so as not to affect the acquisition and display of the writing track in the writing mode.
In a specific teaching application scene, when a teacher speaks a class, when entering a writing mode or an annotating mode, a manual sliding page turning is performed at the moment, and as the writing mode is opened, a sliding track cannot be distinguished from handwriting left by normal writing, the sliding track left by sliding page turning can be drawn in real time, and writing handwriting is left on a large screen. While manually sliding, judging whether the operation meets the page turning requirement or not in the following steps, and if so, executing the page turning operation.
Step 103, judging whether the sliding track information belongs to the page turning gesture information.
In the step, whether the current gesture is the page turning gesture information 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, when a general user wants to turn pages, whether the user writes with one or more fingers on the touch writing page, the speed of touch sliding is very fast, and the user must have a direction of page turning tendency, so that whether the current sliding track information is the page turning gesture information can be determined by 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 overall length and the overall time consumption of the whole section of sliding track, or the dynamic speed can be calculated in real time during sliding according to the lengths of two opposite points on the sliding track and the moving time consumption, i.e. the sliding speed can be the overall average speed or the real-time speed.
The sliding angle is the direction angle when the touch point slides. For the sliding angle, if the page turning is necessarily a page turning in a certain direction from the middle to the edge of a certain direction within a certain angle, the page turning is considered to be a page turning in the certain direction, so that the sliding angle needs to be confirmed within a certain range, for example, a range of 0 to 45 degrees and 315 to 360 degrees is a page turning to the left and a range of 135 to 225 degrees is a page turning operation within a circle with the touch down coordinate as the origin right horizontal line being zero, and the page turning is not considered to be a page turning operation when the sliding angle deviates from the range. Of course, the sliding angle may be the overall direction angle, or may be the real-time direction angle, or the like.
In a specific embodiment, the sliding track information includes touch down information and touch up information; the touch press information comprises touch press coordinates and touch press time; the touch-up information includes touch-up coordinates and touch-up time. The touch pressing coordinate is a contact coordinate point when the finger contacts the screen, and the touch lifting coordinate is a touch point of the finger on the screen before the finger is lifted off the screen after writing on the writing page by one pen. It should be understood that for single-finger writing, one writing track corresponds to a set of touch down information, i.e., one track corresponds to one touch down coordinate, one touch down time, one touch up coordinate, and one touch up time. For multi-finger writing, a plurality of writing tracks are corresponding at the same time, and each writing track corresponds to a touch pressing coordinate and a touch lifting coordinate. In the page turning application scene, if the plurality of writing tracks are tracks corresponding to the page turning gesture, touch pressing time and 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 down coordinate and the touch up coordinate; calculating the sliding time 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 duration. For multi-finger sliding, the sliding speeds of the fingers are not greatly different when the page is turned, so that the sliding speed is determined by selecting the sliding track information corresponding to any finger.
When calculating the sliding angle, the sliding angle is determined according to the touch down coordinate and the touch up coordinate. The sliding angle is determined assuming touch down coordinates (x 0, y 0) and touch up coordinates (x 1, y 1) at the end of sliding. Specifically, it is assumed that both the touch down coordinate and the touch up coordinateFor the coordinate values obtained in the rectangular planar coordinate system, the sliding angle is the angle between the sliding track and the X-axis, and the sliding angle value isIf the sliding angle is the angle between the sliding track and the Y-axis, the sliding angle value is +.>For multi-finger sliding, the sliding track of each finger is parallel when the page is turned, so that the sliding angle is determined by selecting the sliding track information corresponding to any finger.
If the sliding speed is not less than the preset speed threshold, 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 the page turning gesture information. If the sliding speed is smaller than the preset speed threshold, whether the sliding angle is within the preset range or not is not needed to be further determined, and the sliding track information is directly determined not to belong to the page turning gesture information. In other embodiments, it may 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 order of determination 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 satisfied, the current sliding track information is considered to be not page turning gesture information, the page turning cannot occur on the current page, and the sliding track information is more probable to be normal writing track information on the current page, so that the current sliding track is taken as the writing track.
And 104, executing page turning operation on the writing page in response to the sliding track information belonging to the page turning gesture information, and deleting the sliding track information.
In this step, after determining that the current touch information is the page turning gesture information, a page turning operation is performed, and a deletion process is performed on the touch track generated by the touch information, so that the touch track cannot be affected by the normally written touch track.
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 cases: first kind: if the page turning action is performed, the sliding track of the sliding track information is handwriting data generated by mistake during page turning. Second kind: if the page turning action is not performed, the information representing the sliding track is 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.
From the above, it can be seen that, in the embodiment of the present application, by simultaneously performing the generation of the writing track and the confirmation of the page turning gesture on the writing page, whether the current touch operation is the page turning gesture is confirmed according to the sliding track information, after confirmation, the page turning operation is performed, and the operations such as deleting the originally generated sliding track are performed, thereby avoiding the leaving of the page turning track, and improving the viewing experience of the user.
It should be noted that, the method of the embodiments of the present application may be performed by a single device, for example, 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 mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the methods of embodiments of the present application, and the devices may interact with each other to complete the methods.
It should be noted that the foregoing 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 are also possible or may be advantageous.
In other embodiments, before calculating the swipe length from the touch down coordinates and the touch up coordinates, it is first determined whether the writing pattern on the writing page is a single-finger writing pattern. If the writing mode of the current writing page is single-finger writing, other judging elements can be added to further confirm on the basis of the previous embodiment, for example: the number of touch points, the distance between touch points, etc.
Taking two conditions of the number of the touch points and the distance between the touch points as an example, responding to a single-finger writing mode, and judging whether the number of the touch points is larger than one according to touch pressing information; judging whether the distance between the touch points of two adjacent touch points is within a preset distance range or not in response to the number of the touch points being greater than one; and in response to the distance between the touch points being within the preset distance range, continuing to execute the calculation of the sliding length according to the touch down coordinate and the touch up coordinate. Therefore, whether the sliding track information belongs to the page turning gesture information is accurately judged in the single-finger writing mode.
The number of touch points is the number of points that a user contacts with the touch screen when performing touch operation on the touch screen, for example, the user slides on the touch screen by using two fingers, and then the number of touch points is two. The touch point distance is the determined relative distance between adjacent touch points. In a specific application scenario, because the current single-finger writing mode is adopted, when the number of touch points is more than one, it can be determined that the user wants to perform page turning operation. When the user wants to perform multi-finger page turning operation, the user usually gathers and slides several fingers of the touch control, so that when the number of touch control points is more than one, whether the distance between every two adjacent touch control points is smaller than a certain threshold value can be determined, and if the distance is smaller than the certain threshold value, the user is considered to be in multi-finger gathering and sliding, and is considered to want to perform page turning operation.
In this embodiment, since the handwriting mode of the existing smart device may have a multi-finger input mode, in which each finger input is part of the current writing, it is difficult to distinguish whether the current multi-finger gesture is writing or turning pages at all. Therefore, the scheme can be executed only in the single-finger writing mode, and in the multi-finger writing mode, the page turning operation is not executed no matter whether the page turning condition is met or not in the sliding process, and the normal multi-finger writing operation is executed. And when in the single-finger writing mode, the number of touch points and the distance between the touch points can be added on the basis of the previous embodiment to judge the page turning gesture information.
In a specific application scenario, for the number of touch points, in a normal writing mode, a user generally performs single-finger operation, otherwise, overlapping handwriting is generated. Therefore, when the user writes normally, there is typically only one corresponding touch point. Therefore, if at least two touch points are detected (i.e., the number of fingers is 2 or more for page turning), for example, a range of the number of touch points designated for page turning may be set to 2 to 4, then it is considered that a sliding page turning operation may occur. Then, for the distance between the touch points, namely the distance between the adjacent fingers operated by the user, only if the distance between all the touch points is within a certain range, the sliding page turning operation is considered to be possible, and if two sliding tracks with overlarge distances appear on the screen, the page turning operation is not considered to be normal.
In some embodiments, the determination of the single-finger writing swipe page-turning gesture may be based on only two conditions, i.e., the number of touch points and the distance between touch points. The swipe page-flip gesture may also be determined in combination with the swipe speed and swipe angle in the previous embodiment. And when all the four conditions are judged to be in accordance with the conditions, the current sliding track information is considered to be page turning gesture information. Of course, the order of the judgment conditions can be freely adjusted, i.e., can be performed in an order different from that in the above-described embodiment and still achieve the desired result.
In some embodiments, after confirming 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 sliding angle can also determine whether to turn up or down. For example: in the circumference of zero degree of the right horizontal line with the touch press coordinates as the origin, the range of 0 degree to 45 degrees and 315 degrees to 360 degrees is page-turning to the left (page-turning forward), the range of 135 degrees to 225 degrees is page-turning to the right (page-turning backward), and so on. The correspondence between the specific sliding direction and the page turning direction may be customized, which is not limited in this embodiment.
In other embodiments, after the sliding track information on the writing page is obtained, the sliding track corresponding to the page turning operation is not deleted immediately through the judgment in the above embodiments, so that the execution of the deletion operation does not affect the response speed of display and writing. That is, the priority of processing the page turning handwriting is low, and the processor is idle to execute the processing of the page turning handwriting. And adding a first mark to the obtained 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 the second mark. And displaying the sliding track corresponding to the sliding track information marked as the second mark when the writing page is displayed again. Thus, the sliding track information and the sliding track of each time are conveniently processed.
The first mark and the second mark may be different number marks or different letter marks, and the specific types of the first mark and the second mark are not limited in the embodiment of the present application. For example, the first flag is 0 and the second flag is 1. When the writing page is displayed again (for example, when the user turns the page back again), the sliding track information marked as 1 is directly identified 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 mark of the sliding track information is modified from the first mark to the third mark. The third mark, the first mark and the second mark are different marks. For example, if the third mark is 2, the deleting operation is directly performed on the sliding track information marked as 2, or when the current page is displayed again, the operation of not drawing or not displaying the sliding track corresponding to the sliding track information marked as 2 is performed. In a specific application scene, aiming at handwriting generated by sliding page turning error, if no meaning is given to business, the sliding track information with the mark state of 2 is deleted when the page is turned. If the data information needs to be reserved, the sliding track information with the mark 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, as to whether the sliding track corresponding to the third mark needs to be reserved, the setting may be performed in advance for the presentation file. For example, a reservation mark is added in the stage of editing the display file, the sliding track information corresponding to the file marked with the reservation mark is reserved, and the sliding track information corresponding to the file not marked with the reservation mark is deleted. According to the embodiment of the application, the sliding track information during page turning can be reserved, so that the stay time of a user on each page of the display page can be determined according to the sliding track information, and the content of interest of the user is determined.
Based on the same conception, 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 execution module 240 is configured to execute a page turning operation on the writing page in response to the sliding track information belonging to the page turning gesture information, and delete the sliding track information.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in one or more pieces of software and/or hardware when implementing the embodiments of the present application.
The device of the foregoing embodiment is used to implement the corresponding page turning handwriting processing method of the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
As an alternative embodiment, the sliding track information includes touch down information and touch up information; the touch press information comprises touch press coordinates and touch press time; the touch lifting information comprises a touch lifting coordinate and a touch lifting moment;
the judging module 230 is further configured to:
calculating the sliding length according to the touch down coordinate and the touch up coordinate;
calculating the sliding time according to the touch pressing time and the touch lifting time;
determining whether the sliding speed is not less than a preset speed threshold according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not smaller than the speed threshold value, and determining whether the sliding angle is in a preset range according to the touch down coordinate and the touch up coordinate;
and determining that the sliding track information belongs to the page turning gesture information in response to the sliding angle being in a preset range.
As an optional embodiment, the determining module 230 is further configured to:
determining whether a writing mode on the writing page is a single-finger writing mode;
responding to the single-finger writing mode, and judging whether the number of touch points is larger than one according to the touch pressing information;
judging whether the distance between the touch points of two adjacent touch points is within a preset distance range or not in response to the number of the touch points being greater than one;
and in response to the distance between the touch points being within the preset distance range, continuing to execute the calculation of the sliding length according to the touch down coordinate and the touch up coordinate.
As an optional embodiment, the determining module 230 is further configured to:
responding to the sliding track information belonging to the page turning gesture information, and determining the page turning direction of the written page according to the sliding angle;
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 to a second mark in response to the sliding track information not belonging to the page turning gesture information;
and displaying the sliding track corresponding to the sliding track information marked as the second mark in response to displaying the writing page again.
As an alternative embodiment, the execution module 240 is further configured to:
changing the first mark to 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 fact 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 or not;
responding to the sliding track information marked as the third mark to be reserved, and when the writing page is displayed again, carrying out non-drawing processing or hiding processing on the sliding track corresponding to the sliding track information marked as the third mark;
and in response to the sliding track information marked as the third mark not needing to be reserved, continuing to execute the deleting process on the sliding track information.
Based on the same conception, the application also provides electronic equipment corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the page turning handwriting processing method of any embodiment when executing the program.
Fig. 3 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured 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 is not described herein.
Based on the same conception, corresponding to the method of any embodiment, the application also provides a non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores computer instructions for causing the computer to execute the page turning handwriting processing method according to any embodiment.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to 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 storage media for a computer 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, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiment stores computer instructions for causing the computer to execute the page turning handwriting processing method described in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the present application, the 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.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present 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 on which the embodiments of the present application are to be implemented (i.e., such 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 embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Accordingly, any omissions, modifications, equivalents, improvements and/or the like which are within the spirit and principles of the embodiments are intended to be included within the scope of the present application.

Claims (8)

1. A page turning handwriting processing method is characterized by comprising the following steps:
acquiring sliding track information on a writing page of a display file, and adding a first mark to the sliding track information; the sliding track information comprises touch time information;
generating a sliding track for handwriting display on the writing page in real time according to the sliding track information;
judging whether the sliding track information belongs to page turning gesture information or not;
responding to the sliding track information belonging to the page turning gesture information, executing page turning operation on the writing page, and changing the first mark into a third mark;
the method comprises the steps that a preset reserved mark is marked on a display file, a target sliding track corresponding to a third mark in the display file is subjected to hiding treatment, and the stay time of a user on each display page is determined according to touch time information of the target sliding track; otherwise, deleting the target sliding track.
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 a touch lifting coordinate and a touch lifting moment;
the judging whether the sliding track information belongs to page turning gesture information comprises the following steps:
calculating a sliding length according to the touch pressing coordinate and the touch lifting coordinate;
calculating a 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 according to the ratio of the sliding length to the sliding duration;
responding to the sliding speed not smaller than the speed threshold value, and determining whether the sliding angle is in a preset range according to the touch pressing coordinate and the touch lifting coordinate;
and responding to the sliding angle in a preset range, and determining that the sliding track information belongs to the page turning gesture information.
3. The method of claim 2, wherein before calculating the sliding length from the touch down coordinate and the touch up coordinate, further comprising:
determining whether a writing mode on the writing page is a single-finger writing mode;
responding to the writing mode being the single-finger writing mode, and judging whether the number of touch points is larger than one according to the touch pressing information;
judging whether the distance between the touch points of two adjacent touch points is within a preset distance range or not in response to the number of the touch points being larger than one;
and responding to the touch point spacing within the preset spacing range, and continuously executing the calculation of the sliding length according to the touch pressing coordinate and the touch lifting coordinate.
4. A method according to claim 2 or 3, wherein said 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 the determining whether the sliding track information belongs to page-flip gesture information, the method further comprises:
changing the first mark to a second mark in response to the sliding track information not belonging to the page-turning gesture information;
and displaying the sliding track corresponding to the sliding track information marked as the second mark in response to displaying the writing page again.
6. A page turning handwriting processing apparatus, comprising:
the acquisition module is used for acquiring sliding track information on a writing page of the display file and adding a first mark to the sliding track information; the sliding track information comprises touch time information;
the generation module is used for generating a sliding track for handwriting display on the writing page in real time 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;
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 changing the first mark into a third mark; the method comprises the steps that a preset reserved mark is marked on a display file, a target sliding track corresponding to a third mark in the display file is subjected to hiding treatment, and the stay time of a user on each display page is determined according to touch time information of the target sliding track; otherwise, deleting the target sliding track.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when the program is executed by the processor.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to implement the method of any one of claims 1 to 5.
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 CN113849106A (en) 2021-12-28
CN113849106B true 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)

Families Citing this family (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 (4)

* 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
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 A kind of exchange method and its interactive device of electronic product desktop
CN112527183A (en) * 2020-12-23 2021-03-19 北京华宇信息技术有限公司 Method and device for deleting text by hand drawing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150104808A (en) * 2014-03-06 2015-09-16 삼성전자주식회사 Electronic device and method for outputing feedback

Patent Citations (4)

* 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
CN109101175A (en) * 2018-06-27 2018-12-28 珠海格力电器股份有限公司 A kind of exchange method and its interactive device of electronic product desktop
CN112527183A (en) * 2020-12-23 2021-03-19 北京华宇信息技术有限公司 Method and device for deleting text by hand drawing

Also Published As

Publication number Publication date
CN113849106A (en) 2021-12-28

Similar Documents

Publication Publication Date Title
CN107273002B (en) Handwriting input answering method, terminal and computer readable storage medium
CN106919333B (en) Method and device for recording writing content on electronic writing board
US10359920B2 (en) Object management device, thinking assistance device, object management method, and computer-readable storage medium
US9600094B2 (en) Apparatus, method, and program product for directing motion of a writing device
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US10386931B2 (en) Toggling between presentation and non-presentation of representations of input
CN110941382B (en) Display operation method, device, equipment and storage medium of intelligent interactive panel
CN105573696B (en) Electronic blackboard device and its control method
CN103699259A (en) Cursor positioning method, cursor positioning system and touch equipment
CN114138165B (en) Pattern recognition method, apparatus, device and storage medium
WO2021077539A1 (en) Graphic adjustment method and apparatus, device and storage medium
EP2965181B1 (en) Enhanced canvas environments
KR20160024583A (en) Electronic device and method for providing a drawing function thereof
CN111782131A (en) Pen point implementation method, device, equipment and readable storage medium
CN113849106B (en) Page turning handwriting processing method, device, electronic device and storage medium
CN109814787B (en) Key information determination method, device, equipment and storage medium
US9170733B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
JP6238648B2 (en) Information processing apparatus, information processing method, and program
CN113741753A (en) Revocation method, electronic device, storage medium, and computer program product
CN109358799B (en) Method for adding handwritten annotation information input by user on handwriting equipment
CN108491139B (en) Object fixing method and device, terminal equipment and storage medium
JP2015022524A (en) Terminal device and system
CN111352563A (en) Content deleting method of interactive service and related equipment
CN111435442A (en) Character selection method and device, point reading equipment, electronic equipment and storage medium
CN113934394B (en) Method, device and terminal equipment for realizing memory display in display screen

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