Text content marking method, device, electronic device, and computer-readable medium

By identifying the user's touch operation and sliding trajectory, determining the initial marking area and operation intention, and controlling the change speed and style of the candidate marking area, the problem of content marking accuracy and misoperation on large-screen devices is solved, and the accuracy of marking is improved. and user experience.

CN117971102BActive Publication Date: 2024-10-29BEIJING CHANGPEI NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410075513.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-10-29
Estimated Expiration
2044-01-18

AI Technical Summary

Technical Problem

In the process of marking text content, especially on large-screen devices, users need to continue to perform operation gestures for a long time, resulting in gesture deformation, affecting the accuracy of marking, and different operation gestures are difficult to recognize, prone to misoperations and increased operation costs.

Method used

By identifying the user's touch operation dwell time and sliding trajectory, it determines the initial marking area and operation intention, controls the change speed and style of the candidate marking area, reduces the probability of misoperation and improves marking accuracy.

Benefits of technology

It improves the accuracy and user experience of content marking, reduces deformation and misoperation of operating gestures, and reduces the time and cost for users to perform content marking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117971102B_ABST
    Figure CN117971102B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a text content marking method, device, electronic device, and computer-readable medium. A specific implementation of the method includes: in response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, determining an initial marking area according to a starting contact point corresponding to the touch operation; in response to identifying a sliding operation of a target user with the initial marking area as the starting area, determining the operation intention of the target user according to a sliding track corresponding to the sliding operation; in response to the operation intention characterizing the text content marking intention, determining a candidate marking area according to the initial marking area and the sliding track; determining the marking configuration information corresponding to the candidate marking area; and marking the content of the candidate marking area according to the marking color and marking style information included in the marking configuration information. This implementation improves the accuracy of content marking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a text content marking method, device, electronic device, and computer-readable medium. Background Art

[0002] Text content marking is a technology that marks the area where the text selected by the user is located by means of highlighting, etc. At present, in the process of text content marking, the method usually adopted is: according to the change of the user's operation gesture, the content of the area involved in the operation gesture is marked.

[0003] However, when the above method is adopted, the following technical problems often occur:

[0004] First, when the page size of the text content display page is large and the user needs to mark a large area of ​​content, it is often necessary to continuously perform the operation gesture. If the operation gesture is maintained for a long time, the operation gesture may be deformed, which may affect the accuracy of subsequent content marking.

[0005] Second, different operations may correspond to similar operation gestures. Since the user's operation intention of similar operation gestures cannot be effectively identified, the problem of erroneous operation execution may occur;

[0006] Third, content tagging solely based on gestures increases the user's content tagging operation cost and may also further affect the subsequent content tagging accuracy.

[0007] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0008] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0009] Some embodiments of the present disclosure propose a text content marking method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0010] In a first aspect, some embodiments of the present disclosure provide a text content marking method, the method comprising: in response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, determining an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; in response to identifying a sliding operation of the target user with the initial marking area as the starting area, determining the operation intention of the target user according to a sliding trajectory corresponding to the sliding operation; in response to the operation intention representing the text content marking intention, determining a candidate marking area according to the initial marking area and the sliding trajectory, wherein an area change direction of the candidate marking area is in the same direction as a trajectory change direction of the sliding trajectory, and an area change speed of the candidate marking area along the area change direction is greater than or equal to a trajectory change speed of the sliding trajectory along the trajectory change direction; determining marking configuration information corresponding to the candidate marking area, wherein the marking configuration information includes: marking color and marking style information; and performing content marking on the candidate marking area according to the marking color and marking style information included in the marking configuration information.

[0011] In a second aspect, some embodiments of the present disclosure provide a text content marking device, the device comprising: a first determination unit, configured to, in response to identifying a touch operation of a target user on a target page, and the operation residence time of the touch operation is greater than a preset residence time, determine an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; a second determination unit, configured to, in response to identifying a sliding operation of the target user with the initial marking area as the starting area, determine the operation intention of the target user according to a sliding trajectory corresponding to the sliding operation; a third determination unit, configured to, in response to the operation intention The figure represents the text content marking intention, and determines the candidate marking area according to the above-mentioned initial marking area and the above-mentioned sliding trajectory, wherein the area change direction of the above-mentioned candidate marking area is in the same direction as the trajectory change direction of the above-mentioned sliding trajectory, and the area change speed of the above-mentioned candidate marking area along the above-mentioned area change direction is greater than or equal to the trajectory change speed of the above-mentioned sliding trajectory along the above-mentioned trajectory change direction; the fourth determination unit is configured to determine the marking configuration information corresponding to the above-mentioned candidate marking area, wherein the above-mentioned marking configuration information includes: marking color and marking style information; the content marking unit is configured to perform content marking on the above-mentioned candidate marking area according to the marking color and marking style information included in the above-mentioned marking configuration information.

[0012] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0013] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0014] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the text content marking method of some embodiments of the present disclosure, the accuracy of content marking is improved. Specifically, the reason why the accuracy of content marking cannot be guaranteed is that when the page size of the text content display page is large and the user has a large area of ​​content marking requirements, it is often necessary to continuously perform the operation gesture. The long-term guarantee of the operation gesture may cause problems such as deformation of the operation gesture, which may affect the accuracy of subsequent content marking. For example, for touch screen devices with large screen sizes, such as tablet computers, folding screen mobile phones, or laptops with touch screen functions. Due to the large screen size, the text content displayed in each line is large. When there is a large area of ​​content marking requirements, the problem of deformation of the operation gesture is very likely to occur, which in turn affects the accuracy of subsequent content marking. Inaccurate content marking often requires users to re-mark the content, and the user experience is poor. Based on this, the text content marking method of some embodiments of the present disclosure, first, in response to identifying the touch operation of the target user on the target page, and the operation residence time of the above touch operation is greater than the preset residence time, according to the starting contact point corresponding to the above touch operation, the initial marking area is determined, wherein the above target page is a text content page displayed by the touch screen device. In this way, the starting point of the marking area is determined. Secondly, in response to the recognition of the sliding operation of the target user with the initial marking area as the starting area, the operation intention of the target user is determined according to the sliding trajectory corresponding to the sliding operation. In practice, different operations may correspond to similar operation gestures. For example, in the horizontal page turning mode, the operation gestures of the page turning operation and the content marking operation are similar, and it is very easy to cause misoperation. Therefore, it is disclosed to reduce the probability of misoperation by classifying the user's operation intention. Next, in response to the above operation intention characterizing the text content marking intention, the candidate marking area is determined according to the initial marking area and the sliding trajectory, wherein the area change direction of the candidate marking area is in the same direction as the trajectory change direction of the sliding trajectory, and the area change speed of the candidate marking area along the above area change direction is greater than or equal to the trajectory change speed of the sliding trajectory along the above trajectory change direction. By controlling the area change speed of the candidate marking area, the time for the user to perform the operation gesture corresponding to the content marking operation is reduced, and the probability of deformation of the operation gesture is reduced. Further, the marking configuration information corresponding to the candidate marking area is determined, wherein the marking configuration information includes: marking color and marking style information. Finally, by determining the marking color and marking style information, the purpose of effective content marking is achieved from the perspective of color and style. Finally, the candidate marking area is marked with content according to the marking color and marking style information included in the marking configuration information. In this way, the accuracy of content marking is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0016] Figure 1 is a flowchart of some embodiments of the text content marking method according to the present disclosure;

[0017] Figure 2 It is a positional relationship diagram between the target page and the initial marked area;

[0018] Figure 3 It is a schematic diagram of the size relationship between the page size of the target page and the screen size of the touch screen device;

[0019] Figure 4 is a schematic diagram of the generation process of the candidate capacitance value matrix;

[0020] Figure 5 It is a schematic diagram of the intersection matrix mean generation process;

[0021] Figure 6 It is a schematic diagram of the generation process of candidate marked areas;

[0022] Figure 7 is a schematic diagram of the structure of some embodiments of the text content marking device according to the present disclosure;

[0023] Figure 8 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0026] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0029] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0030] Continue to refer Figure 1 , shows a process 100 of some embodiments of the text content marking method according to the present disclosure. The text content marking method comprises the following steps:

[0031] Step 101 , in response to identifying a touch operation of a target user on a target page, and the dwell time of the touch operation being greater than a preset dwell time, an initial marking area is determined according to a starting contact point corresponding to the touch operation.

[0032] In some embodiments, in response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, the execution subject (e.g., a computing device) of the text content marking method can determine the initial marking area according to the starting contact point corresponding to the touch operation. The target page is a text content page displayed by a touch screen device. For example, the target page can be a novel text display page, and the target page can include multiple text lines. The preset dwell time can be a pre-set pressing time corresponding to the touch operation. For example, the preset dwell time can be 1 second. The initial marking area can be an area containing text in the pressing area corresponding to the touch operation. The target user can be a user who browses and operates the target page through the touch screen device.

[0033] As an example, refer to Figure 2 The position relationship diagram of the target page and the initial marked area shown in FIG. Figure 2 The touch screen device 201 shown may be a tablet computer. The target page 202 may be a novel text display page displayed in real time by the touch screen device 201. The initial marking area 203 may be an area containing text that is touched by the target user with a finger on the touch screen device. The gray area included in the target page 202 may be multiple text lines.

[0034] It should be noted that the above computing device can be hardware or software. When the computing device is hardware, it can be implemented as a single terminal device, such as a mobile phone, a tablet computer, a touch-screen laptop, etc. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as a single software or software module. No specific limitation is made here.

[0035] In some embodiments, the execution subject may determine the initial marking area according to the starting contact point corresponding to the touch operation, which may include the following steps:

[0036] The first step is to determine the page size of the target page.

[0037] Wherein, the page size is less than or equal to the screen size of the above-mentioned touch screen device. In practice, the screen size can be represented by the screen area of ​​the touch screen device. The screen size can also be represented by the screen diagonal size of the touch screen device. The page size can be represented by the page area of ​​the target page. The page size can also be represented by the page diagonal size of the target page.

[0038] As an example, Figure 2 As shown in the touch screen device 201 and the target page 202 , the screen size of the touch screen device 201 is equal to the page size of the target page 202 .

[0039] As another example, refer to Figure 3 The schematic diagram of the relationship between the page size of the target page and the screen size of the touch screen device shows that when the page size and the screen size are represented by the diagonal size, the screen size 301 of the touch screen device 201 is larger than the page size 302 of the target page 201. When the screen size and the page size are represented by the area, the screen size 301 of the touch screen device 201 is twice the page size 302 of the target page 201.

[0040] The second step is to determine the character sizes corresponding to the characters included in the target page.

[0041] The character size represents the size of the characters included in the target page. In practice, for example, the execution subject may determine the character size according to the font size of the characters included in the target page. For another example, the execution subject may determine the character size by measuring the font size of a single character.

[0042] The third step is to determine the row object information sequence according to the above page size and the above character size.

[0043] Among them, the number of row object information in the row object information sequence is consistent with the number of text lines accommodated by the above-mentioned target page. The row object information in the row object information sequence may include: row position information and character position information sequence. The character position information sequence represents the character position of each character in the text line corresponding to the row object information. Optionally, the row object information may also include: the text content of the text line corresponding to the row object information, the text line height, the text line width, the beginning mark of the paragraph, the end mark of the paragraph, the paragraph subscript, the top coordinate of the text line, the left coordinate of the text line, the bottom coordinate of the text line, the right coordinate of the text line, the line number of the text line, and the character offset of the first character in the text line. In practice, first, the above-mentioned execution subject may calculate the number of text lines accommodated by the above-mentioned target page according to the character size and the page size, for example, by taking the page size modulo the character size. Then, the above-mentioned execution subject may count the character positions of the characters included in the text line, and the relative position of the text line in the target page to generate the row object information corresponding to the text line, and obtain the above-mentioned row object information sequence.

[0044] The fourth step is to determine the target row object information.

[0045] The target row object information is the row object information that matches the row position information included in the row object information sequence and the contact coordinates of the starting contact. In practice, for example, the execution subject can filter out the target row object information from the row object information sequence by the distance value between the row position information and the contact coordinates. For another example, the execution subject can filter out the target row object information from the row object information sequence by judging whether the contact coordinates are located in the area surrounded by the top coordinates of the text line, the left coordinates of the text line, the bottom coordinates of the text line, and the right coordinates of the text line.

[0046] Optionally, determining the target row object information may include the following steps:

[0047] The first sub-step is to determine the control object of the list control that matches the touch point coordinates of the starting touch point as the target control object.

[0048] In practice, taking the Android operating system as an example, the above execution subject can determine the view object of the item element of the list control that matches the touch point coordinates as the target control object.

[0049] The second sub-step is to determine the control index of the target control object by traversing the list adapter.

[0050] The execution subject may traverse the list adapter to determine the element subscript of the item element corresponding to the target control object (view object) as the control subscript.

[0051] In the third sub-step, the row object information corresponding to the row text corresponding to the control subscript is determined as the target row object information.

[0052] In practice, first, the execution subject can obtain the row object information sequence according to the control index. Then, through the coordinate distance between the top coordinate of the text line and the bottom coordinate of the text line included in the row object information and the touch point coordinate, the row object information with the smallest coordinate distance from the touch point coordinate is determined as the target row object information.

[0053] Optionally, the above-mentioned determination of the target row object information may include the following steps:

[0054] The first sub-step is to determine the initial capacitance value matrix corresponding to the above starting contact point position.

[0055] In practice, when the target user performs a touch operation with a finger, the finger and the touch screen device are often in surface contact. The matrix size and matrix value of the initial capacitance value matrix are determined by the contact surface size between the target user and the touch screen device, and the pressing force.

[0056] In the second sub-step, a matrix difference between the initial capacitance value matrix and the reference capacitance value matrix is ​​used as a candidate capacitance value matrix.

[0057] The reference capacitance values ​​in the reference capacitance value matrix refer to capacitance values ​​when the screen of the touch screen device is not touched.

[0058] As an example, Figure 4 The schematic diagram of the generation process of the candidate capacitance value matrix shown in the figure, the initial capacitance value matrix 401 corresponding to the initial marking area 201 can be [[B, K1, B], [K2, K3, K4], [K5, K6, K7], [B, K8, B]]. Among them, the contact surface between the finger and the touch screen device is often approximately elliptical. In order to facilitate calculation, the present disclosure converts the contact surface into a matrix form. Among them, K1, K2, K3, K4, K5, K6, K7 and K8 represent the specific capacitance value of the contact surface. B represents the reference capacitance value. The matrix size of the reference capacitance value matrix 402 is consistent with the matrix size of the initial capacitance value matrix 401. The capacitance values ​​in the reference capacitance value matrix are all basic capacitance values ​​B. The candidate capacitance value matrix 403 can be obtained by determining the matrix difference between the initial capacitance value matrix 401 and the reference capacitance value matrix 402. The candidate capacitance value matrix 403 may be [[0, K1-B, 0], [K2-B, K3-B, K4-B], [K5-B, K6-B, K7-B], [0, K8-B, 0]].

[0059] The third sub-step is to generate a blank page.

[0060] The page size of the blank page is consistent with the page size of the target page.

[0061] The fourth sub-step is to divide the blank page into pages using the character size as the scanning frame size, the line spacing of the text lines contained in the target page as the vertical step length, and the preset step length as the horizontal step length to generate a page matrix.

[0062] In practice, the matrix value in the page matrix is ​​initially 0. The length of the preset step size may be 1.

[0063] The fifth sub-step is to update the matrix values ​​of the page matrix according to the row object information sequence to generate an updated page matrix.

[0064] The matrix values ​​in the updated page matrix may include: a first matrix value and a second matrix value. In practice, the first matrix value is 1. The second matrix value is 0. Specifically, the matrix value of the position corresponding to the character in the updated page matrix is ​​the first matrix value. The matrix value of the position not corresponding to the character in the updated page matrix is ​​the second matrix value.

[0065] The sixth sub-step is to determine, in units of rows, a mean value of the intersection matrix between each row matrix in the page matrix and the candidate capacitance value matrix.

[0066] like Figure 5 Schematic diagram of intersection matrix mean generation process shown in FIG. 1 , wherein the target page may include a blank row 501, a text row 502, a blank row 503, and a text row 504. The page matrix corresponding to the target page may be [[0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1, 1]]. The local page matrix 506 corresponding to the initial marking area 203 in the page matrix may be [[0, 0, 0], [1, 1, 1], [0, 0, 0], [1, 1, 1]]. The candidate capacitance value matrix 403 may be [[0, K1-B, 0], [K2-B, K3-B, K4-B], [K5-B, K6-B, K7-B], [0, K8-B, 0]]. The intersection matrix mean is calculated in units of rows, that is, the intersection matrix mean calculated by [0, K1-B, 0] and [0, 0, 0] can be 0. The intersection matrix mean calculated by [k2-B, K3-B, K4-B] and [1, 1, 1] can be (K2+K3+K4-3B) / 3. The intersection matrix mean calculated by [k5-B, K6-B, K7-B] and [0, 0, 0] can be 0. The intersection matrix mean calculated by [0, K8-B, 0] and [1, 1, 1] can be K8-B.

[0067] The seventh sub-step is to select, from the above page matrix, a row matrix whose corresponding intersection matrix mean satisfies the first screening condition as the target row matrix.

[0068] Among them, the first screening condition is that the intersection matrix mean corresponding to the row matrix is ​​the maximum value. For example, (K2+K3+K4-3B) / 3 is the maximum intersection matrix mean, and [1, 1, 1] corresponding to text line 502 is determined as the target row matrix. In practice, the above-mentioned execution subject can also filter out the row matrix that meets the first screening condition from the candidate capacitance value matrix as the target row matrix. For example, the target row matrix can be [k2-B, K3-B, K4-B].

[0069] In an eighth sub-step, the row object information corresponding to the positive projection position of the target row matrix on the target page is determined as the target row object information.

[0070] In practice, continuing with the above example, the execution subject may determine the row object information corresponding to the text row 502 as the target row object information.

[0071] The fifth step is to determine the character position information in the character position information sequence included in the target row object information that matches the starting contact point position, so as to generate the initial marking area.

[0072] In practice, the execution subject may determine the position of the character corresponding to the character position information having the smallest distance value from the touch point coordinates as the initial marking area by judging the distance value between the character position information and the touch point coordinates.

[0073] Optionally, the step of determining the character position information in the character position information sequence included in the target row object information that matches the starting contact point position to generate the initial marking area may include the following steps:

[0074] The first sub-step is to match the left side coordinate of the character included in the character position information sequence included in the target row object information with the horizontal coordinate of the touch point coordinate of the starting touch point for each character position information in the character position information sequence included in the target row object information.

[0075] In practice, the execution subject may match the horizontal coordinate distance value between the left side coordinate of the character included in the character position information and the touch point coordinate of the starting touch point.

[0076] The second sub-step is to determine the character position information in the character position information sequence included in the target row object information and matching the horizontal coordinate of the touch point coordinate as the target character position information.

[0077] The horizontal coordinate matching may refer to that the horizontal coordinate distance between the left side coordinate of the character included in the character position information and the touch point coordinate of the above-mentioned starting touch point is the shortest.

[0078] The third sub-step is to determine the position offset according to the above target position information.

[0079] The position offset may be the distance between the horizontal coordinate of the touch point coordinate and the left coordinate of the character included in the target character position information. In practice, the position offset is the starting offset and the ending offset corresponding to the touch operation.

[0080] The fourth sub-step is to perform coordinate transformation on the position offset to generate the initial marking area.

[0081] In practice, the execution entity may calculate the starting cursor coordinates and the ending cursor coordinates according to the starting offset and the ending offset, and use the area enclosed by the starting cursor coordinates and the ending cursor coordinates as the initial marking area.

[0082] Step 102 , in response to identifying a sliding operation of a target user with the initial marked area as a starting area, determining the operation intention of the target user according to a sliding track corresponding to the sliding operation.

[0083] In some embodiments, in response to identifying a sliding operation of the target user with the initial marked area as the starting area, the execution subject may determine the target user's operation intention according to the sliding track corresponding to the sliding operation. The operation intention represents the target user's intention to perform touch operation and sliding operation. The operation intention may include but is not limited to any of the following: text content marking intention, page turning intention.

[0084] In some optional implementations of some embodiments, the execution subject determines the operation intention of the target user according to the sliding track corresponding to the sliding operation, which may include the following steps:

[0085] The first step is to generate a page turning type feature vector according to the page turning type of the target page. The page turning type represents the page turning effect for the target page. In practice, the page turning type may include but is not limited to at least one of the following: left and right cover page turning type, left and right translation cover type, up and down scroll page turning type, up and down translation page turning type, and simulation page turning type. Specifically, the above-mentioned execution subject can generate a page turning type feature vector by a unique hot encoding method. For example, the page turning type feature vector corresponding to the left and right cover page turning type is 001. The page turning type feature vector corresponding to the left and right translation cover type is 010. The page turning type feature vector corresponding to the up and down scroll page turning type is 011. The page turning type feature vector corresponding to the up and down translation page turning type is 100. The page turning type feature vector corresponding to the simulation page turning type is 101.

[0086] In the second step, the page refresh rate of the touch screen device is used as the sampling rate to downsample the track coordinates of the sliding track to generate the track center coordinates and obtain a track center coordinate sequence.

[0087] The page refresh rate is a positive integer, and the value range of the page refresh rate is [1, 144].

[0088] The third step is to determine, for each track center coordinate in the track center coordinate sequence, a capacitance value matrix with the track center coordinate as the contact center coordinate as a target capacitance value matrix.

[0089] The matrix values ​​in the target capacitance value matrix are all capacitance values ​​minus the reference capacitance value.

[0090] The fourth step is to generate an initial main optical flow feature vector and an initial slave optical flow feature vector set according to the obtained target capacitance value matrix sequence.

[0091] In practice, first, the above-mentioned execution subject forms an initial main optical flow feature vector according to the sliding track direction with the maximum capacitance value included in the target capacitance value matrix in the target capacitance value matrix sequence. Then, according to the relative position relationship between the capacitance values ​​other than the maximum capacitance value and the maximum capacitance value in the target capacitance value matrix, multiple capacitance values ​​with the same relative position relationship are formed into an initial slave optical flow feature vector according to the sliding track direction to obtain an initial slave optical flow feature vector set. For example, the target capacitance value matrix sequence includes: a target capacitance value matrix A and a target capacitance value matrix B. The relative position relationship between capacitance value A2 and capacitance value A1 (the maximum capacitance value in target capacitance value matrix A) is "positively above, with an offset of 1". The relative position relationship between capacitance value B2 and capacitance value B1 (the maximum capacitance value in target capacitance value matrix B) is "positively above, with an offset of 1", then the initial slave optical flow feature vector can be [A2, B2].

[0092] The fifth step is to generate the above operation intention through the pre-trained operation intention recognition model, the above page turning type feature vector, the above initial main optical flow feature vector and the initial slave optical flow feature vector set.

[0093] Among them, the operation intention recognition model includes: a first operation intention recognition model, a second operation intention recognition model, a first intention recognition classifier, a second intention recognition classifier and a model connection controller. The first intention recognition classifier is connected to the first operation intention recognition model. The second intention recognition classifier is connected to the second operation intention recognition model. The model connection controller is arranged between the first operation intention recognition model and the second operation intention recognition model. The model connection controller is turned on and off by the page turning type feature vector and the first operation intention output by the first intention recognition classifier. The first operation intention recognition model and the second operation intention recognition model both adopt temporal convolutional neural network. The output of the first operation intention recognition model can be used as the input of the second operation intention recognition model. The first intention recognition classifier and the second intention recognition classifier are both multi-classifiers, which can be realized by a fully connected layer. The classification categories of the first intention recognition classifier and the second intention recognition classifier are determined by the number of categories of the operation intention. The model connection controller can be a control matrix to control whether the output of the first operation intention recognition model is input into the second operation intention recognition model. Specifically, the control matrix can be [A, B]. Among them, A and B have only one true value at the same time. The true value can be represented by 1. The non-true value can be represented by 0. When A is 1, it represents that the output of the first operation intention recognition model is input into the first intention recognition classifier. When B is 1, it represents that the output of the first operation intention recognition model is input into the second operation intention recognition model. In practice, the above-mentioned execution subject can determine the value of the control matrix by calculating the feature similarity between the page turning type feature vector and the output of the first operation intention recognition model. For example, the page turning type feature vector represents the left and right cover page turning type, and the operation intention corresponding to the output of the first operation intention recognition model may be the text content marking intention. Since the operation logic of left and right cover page turning and text content marking is similar, the feature similarity between the page turning type feature vector and the output of the first operation intention recognition model is high, that is, the control matrix can be [0, 1], which means that the output of the first operation intention recognition model is input into the second operation intention recognition model, that is, a more fine-grained intention recognition classification is performed through the second operation intention recognition model and the second intention recognition classifier.

[0094] The above-mentioned content of "in some optional implementation methods of some embodiments" is an inventive point of the present disclosure, which solves the second technical problem mentioned in the background technology, namely, "different operations may correspond to similar operation gestures. Since the user's operation intention of the similar operation gesture cannot be effectively identified, the problem of erroneous operation execution may occur". Based on this, the present disclosure, first, generates a page turning type feature vector according to the page turning type of the above-mentioned target page. Secondly, using the page refresh rate of the above-mentioned touch screen device as the sampling rate, the track coordinates of the above-mentioned sliding track are downsampled to generate the track center coordinates, and a track center coordinate sequence is obtained to achieve downsampling of the track center coordinates and reduce the subsequent data processing amount. Then, for each track center coordinate in the above-mentioned track center coordinate sequence, a capacitance value matrix with the above-mentioned track center coordinate as the contact point center coordinate is determined as the target capacitance value matrix. In practice, the finger and the touch screen device are often in surface contact. Compared with characterizing the direct contact point between the finger and the touch screen device by a single coordinate, the contact behavior between the finger and the touch screen device can be better described by the capacitance value matrix. Further, according to the obtained target capacitance value matrix sequence, an initial main optical flow feature vector and an initial slave optical flow feature vector set are generated. Due to the constraints of the finger area and the screen size of the touch screen device, it is very easy for the contact area between the finger and the touch screen device to contain both the content that the user wants to mark and some non-marked content. Therefore, the present disclosure generates an initial main optical flow feature vector and an initial slave optical flow feature vector set from the perspective of optical flow features, so as to effectively characterize the behavioral characteristics of the sliding operation of the target user. In addition, the above-mentioned operation intention is generated by a pre-trained operation intention recognition model, the above-mentioned page turning type feature vector, the above-mentioned initial main optical flow feature vector and the initial slave optical flow feature vector set, wherein the above-mentioned operation intention recognition model includes: a first operation intention recognition model, a second operation intention recognition model, a first intention recognition classifier, a second intention recognition classifier and a model connection controller, after the above-mentioned first intention recognition classifier is connected to the above-mentioned first operation intention recognition model, after the above-mentioned second intention recognition classifier is connected to the above-mentioned second operation intention recognition model, the above-mentioned model connection controller is set between the above-mentioned first operation intention recognition model and the above-mentioned second operation intention recognition model, and the above-mentioned model connection controller is turned on and off by the page turning type feature vector and the first operation intention output by the above-mentioned first intention recognition classifier. In practice, considering that different operations may correspond to similar operation gestures, the present disclosure sets a model connection controller, that is, when the classification result of the first intention recognition classifier is accurate, only the output of the first intention recognition classifier is used as the operation intention, and when the classification result of the first intention recognition classifier is not accurate enough, further feature extraction and intention recognition are further performed through the second operation intention recognition model and the first intention recognition classifier. In this way, redundant feature processing steps are reduced and the accuracy of intent recognition is improved.

[0095] Step 103, in response to the operation intention characterizing the text content marking intention, a candidate marking area is determined according to the initial marking area and the sliding trajectory.

[0096] In some embodiments, in response to the operation intention to represent the text content marking intention, the above-mentioned execution entity can determine the candidate marking area based on the initial marking area and the sliding trajectory. In practice, the above-mentioned execution entity can use the intersection of the initial marking area and the area where the sliding trajectory passes as the candidate marking area. Among them, the area change direction of the above-mentioned candidate marking area is in the same direction as the trajectory change direction of the above-mentioned sliding trajectory. The area change speed of the above-mentioned candidate marking area along the above-mentioned area change direction is greater than or equal to the trajectory change speed of the above-mentioned sliding trajectory along the above-mentioned trajectory change direction.

[0097] In some optional implementations of some embodiments, the execution subject determines the candidate marking area according to the initial marking area and the sliding track, which may include the following steps:

[0098] In the first step, a heat map of the marked area is generated according to the initial marked area, the sliding track and the blank page.

[0099] In practice, the execution entity may use the initial marked area as the starting area, determine the area passed by the sliding track as the middle area, mark the blank page with a thermal value, and obtain a thermal map of the marked area.

[0100] In the second step, the local page content of the target page is extracted through the marked area heat map to generate local text content.

[0101] refer to Figure 6 The schematic diagram of the generation process of the candidate marking area is shown, wherein the local text content may be "This is a test text for text highlighting test. The horizontal length of the test text is K. The number of words in the test text is M. The font size of the test text is 14pt. The fonts of the test text are Kaiti and New Roman. Assume that the user wants to highlight the content of the first sentence.".

[0102] The third step is to segment the above local text content to generate text content segments and obtain a text content segment set.

[0103] The segment length of the text content segment in the text content segment set is within the segment length interval, and the segment length interval is constrained by the track length of the sliding track. In practice, the segment length interval is [K, K+M]. K is the number of characters spanned by the sliding track. M is the character offset. For example, the character offset is the maximum number of characters included in the text line corresponding to the line object information. For example, Figure 6The local text content shown, the character offset can be 35. In practice, the above execution subject can increase the characters spanned by the sliding track at the word granularity character by character to obtain a text content segment set. Figure 6 The schematic diagram of the generation process of the candidate marking area shown in FIG. 1 , K can be 6, and the obtained text content segment set can be [“This is a paragraph for”, “This is a paragraph for”… “This is a test text for text highlighting test, and the horizontal length of the test text is K.”… “This is a test text for text highlighting test, and the horizontal length of the test text is K. The number of words in the test text”].

[0104] In the fourth step, the text segment content confidence of each text content segment in the above text content segment set is determined through the pre-trained marked region generation model.

[0105] Among them, the marked area generation model includes a semantic feature extraction model and a binary classifier. The text segment content confidence represents the confidence that the area where the corresponding text segment content is located is a candidate marked area. The text segment content confidence represents the confidence that the corresponding text content segment is a complete sentence. In practice, the semantic feature extraction model adopts the BERT model. The classification results of the binary classifier include: a category representing a text content segment as a complete sentence and a category representing a text content segment as an incomplete sentence.

[0106] In the fifth step, the region where the text content segment whose content confidence level in the text content segment set meets the second screening condition is located is determined as the candidate marking region.

[0107] The second screening condition is that the text segment content confidence is the maximum value among the multiple text segment content confidences corresponding to the text content segment set. Figure 6 The schematic diagram of the generation process of the candidate marking area shown in the figure shows that when the user wants to mark "This is a test text for text highlighting test, the horizontal length of the test text is K.", the candidate marking area corresponding to "This is a test text for text highlighting test, the horizontal length of the test text is K." can be determined when the characters spanned by the sliding track are less than 34. This greatly reduces the operation time of the user's sliding operation.

[0108] The content in the above "in some optional implementation methods of some embodiments" as an inventive point of the present disclosure solves the third technical problem mentioned in the background technology, namely "relying only on operation gestures for content marking increases the user's content marking operation cost, and may also further affect the subsequent content marking accuracy". Based on this, the present disclosure, first, generates a marking area heat map according to the above initial marking area, the above sliding trajectory and the above blank page. Then, through the above marking area heat map, the local page content of the above target page is extracted to generate local text content. In this way, the extraction of local text content is realized according to the marking area heat map, reducing the subsequent data processing amount. Next, the above local text content is segmented to generate text content segments and obtain a text content segment set, wherein the segment length of the text content segment in the above text content segment set is within the segment length interval, and the above segment length interval is constrained by the trajectory length of the above sliding trajectory. In this way, fine-grained segmentation of text content segments is realized in combination with the trajectory length. Furthermore, the text segment content confidence of each text content segment in the above-mentioned text content segment set is determined by a pre-trained marked area generation model, wherein the text segment content confidence characterizes the confidence that the area where the corresponding text segment content is located is a candidate marked area. The confidence that the area where the text segment content is located is a candidate marked area is determined by the marked area generation model. Finally, the area where the text content segment corresponding to the text segment content confidence in the above-mentioned text content segment set meets the second screening condition is determined as the above-mentioned candidate marked area. This can greatly reduce the time for users to perform operation gestures and improve content marking efficiency. At the same time, based on the operation gesture, semantic feature extraction is combined to improve the accuracy of content marking.

[0109] Step 104: determine the marking configuration information corresponding to the candidate marking area.

[0110] In some embodiments, the execution entity may determine the mark configuration information corresponding to the candidate mark area. The mark configuration information may include: mark color and mark style information. In practice, the execution entity may read the mark color and mark style preselected by the target user to generate the mark configuration information. Specifically, the mark style information may represent the mark style of the content mark. For example, the mark style information may represent a vector image with a pattern.

[0111] Step 105 , content marking is performed on the candidate marking area according to the marking color and marking style information included in the marking configuration information.

[0112] In some embodiments, the execution subject may perform content marking on the candidate marking area according to the marking color and marking style information included in the marking configuration information. In practice, the execution subject may execute the Android drawRect method to draw a rectangular box whose marking color is the rectangular box color and whose marking style corresponding to the marking style information is the shading.

[0113] In some optional implementations of some embodiments, the execution subject may mark the content of the candidate marking area according to the marking color and marking style information included in the marking configuration information, which may include the following steps:

[0114] The first step is to determine the text color of the text content in the candidate marker area as the target text color.

[0115] The text color may be the character color of the characters in the candidate mark area.

[0116] In the second step, the above-mentioned marking color is superimposed on the target text color to generate the text content brightness.

[0117] In practice, first, the execution subject may mark the color coating corresponding to the color and the color coating corresponding to the target text color. Then, the execution subject may overlay the two color coatings to obtain an overlay coating. The color coating corresponding to the mark color is located on the color coating corresponding to the target text color. Next, the current transparency of the overlay coating is determined as the text content brightness.

[0118] The third step is to adjust the color transparency of the mark color according to the brightness of the text content to obtain the adjusted color transparency.

[0119] The adjusted color transparency is greater than 0. The adjusted color transparency is less than the text content brightness.

[0120] In the fourth step, the adjusted color transparency is used as a transparency constraint, and the candidate marking area is color-drawn using the marking style information and the marking color to achieve content marking of the candidate marking area.

[0121] In practice, the execution subject may use the adjusted color transparency as a transparency constraint, and use the Android drawRect method to draw the candidate marker area with the mark style information and the mark color to achieve content marking of the candidate marker area.

[0122] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the text content marking method of some embodiments of the present disclosure, the accuracy of content marking is improved. Specifically, the reason why the accuracy of content marking cannot be guaranteed is that when the page size of the text content display page is large and the user has a large area of ​​content marking requirements, it is often necessary to continuously perform the operation gesture. The long-term guarantee of the operation gesture may cause problems such as deformation of the operation gesture, which may affect the accuracy of subsequent content marking. For example, for touch screen devices with large screen sizes, such as tablet computers, folding screen mobile phones, or laptops with touch screen functions. Due to the large screen size, the text content displayed in each line is large. When there is a large area of ​​content marking requirements, the problem of deformation of the operation gesture is very likely to occur, which in turn affects the accuracy of subsequent content marking. Inaccurate content marking often requires users to re-mark the content, and the user experience is poor. Based on this, the text content marking method of some embodiments of the present disclosure, first, in response to identifying the touch operation of the target user on the target page, and the operation residence time of the above touch operation is greater than the preset residence time, according to the starting contact point corresponding to the above touch operation, the initial marking area is determined, wherein the above target page is a text content page displayed by the touch screen device. In this way, the starting point of the marking area is determined. Secondly, in response to the recognition of the sliding operation of the target user with the initial marking area as the starting area, the operation intention of the target user is determined according to the sliding trajectory corresponding to the sliding operation. In practice, different operations may correspond to similar operation gestures. For example, in the horizontal page turning mode, the operation gestures of the page turning operation and the content marking operation are similar, and it is very easy to cause misoperation. Therefore, it is disclosed to reduce the probability of misoperation by classifying the user's operation intention. Next, in response to the above operation intention characterizing the text content marking intention, the candidate marking area is determined according to the initial marking area and the sliding trajectory, wherein the area change direction of the candidate marking area is in the same direction as the trajectory change direction of the sliding trajectory, and the area change speed of the candidate marking area along the above area change direction is greater than or equal to the trajectory change speed of the sliding trajectory along the above trajectory change direction. By controlling the area change speed of the candidate marking area, the time for the user to perform the operation gesture corresponding to the content marking operation is reduced, and the probability of deformation of the operation gesture is reduced. Further, the marking configuration information corresponding to the candidate marking area is determined, wherein the marking configuration information includes: marking color and marking style information. Finally, by determining the marking color and marking style information, the purpose of effective content marking is achieved from the perspective of color and style. Finally, the candidate marking area is marked with content according to the marking color and marking style information included in the marking configuration information. In this way, the accuracy of content marking is effectively improved.

[0123] Further references Figure 7As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a text content marking device. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the text content marking device can be specifically applied to various electronic devices.

[0124] like Figure 7 As shown, the text content marking device 700 of some embodiments includes: a first determination unit 701, a second determination unit 702, a third determination unit 703, a fourth determination unit 704 and a content marking unit 705. The first determination unit 701 is configured to, in response to identifying a touch operation of a target user on a target page, and the operation residence time of the touch operation is greater than a preset residence time, determine an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; the second determination unit 702 is configured to, in response to identifying a sliding operation of the target user with the initial marking area as the starting area, determine the operation intention of the target user according to a sliding track corresponding to the sliding operation; the third determination unit 703 is configured to characterize the text content marking intention in response to the operation intention, based on the sliding track corresponding to the sliding operation. According to the above-mentioned initial marking area and the above-mentioned sliding trajectory, a candidate marking area is determined, wherein the area change direction of the above-mentioned candidate marking area is in the same direction as the trajectory change direction of the above-mentioned sliding trajectory, and the area change speed of the above-mentioned candidate marking area along the above-mentioned area change direction is greater than or equal to the trajectory change speed of the above-mentioned sliding trajectory along the above-mentioned trajectory change direction; the fourth determination unit 704 is configured to determine the marking configuration information corresponding to the above-mentioned candidate marking area, wherein the above-mentioned marking configuration information includes: marking color and marking style information; the content marking unit 705 is configured to perform content marking on the above-mentioned candidate marking area according to the marking color and marking style information included in the above-mentioned marking configuration information.

[0125] It is understandable that the units recorded in the text content marking device 700 and the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the text content marking device 700 and the units included therein, and will not be described in detail here.

[0126] Reference below Figure 8 , which shows a structural schematic diagram of an electronic device (eg, a computing device) 800 suitable for implementing some embodiments of the present disclosure. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0127] like Figure 8As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory 802 or a program loaded from a storage device 808 into a random access memory 803. Various programs and data required for the operation of the electronic device 800 are also stored in the random access memory 803. The processing device 801, the read-only memory 802, and the random access memory 803 are connected to each other via a bus 804. An input / output interface 805 is also connected to the bus 804.

[0128] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 8 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0129] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network through a communication device 809, or installed from a storage device 808, or installed from a read-only memory 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0130] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0131] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0132] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, determine an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; in response to identifying a sliding operation of the target user with the initial marking area as the starting area, determine the operation intention of the target user according to a sliding track corresponding to the sliding operation; in response to the operation intention representing the text content marking intention, determine a candidate marking area according to the initial marking area and the sliding track, wherein the area change direction of the candidate marking area is in the same direction as the track change direction of the sliding track, and the area change speed of the candidate marking area along the area change direction is greater than or equal to the track change speed of the sliding track along the track change direction; determine the marking configuration information corresponding to the candidate marking area, wherein the marking configuration information includes: marking color and marking style information; and perform content marking on the candidate marking area according to the marking color and marking style information included in the marking configuration information.

[0133] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0135] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising a first determination unit, a second determination unit, a third determination unit, a fourth determination unit and a content marking unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the content marking unit may also be described as "a unit for content marking the above-mentioned candidate marking area according to the marking color and marking style information included in the above-mentioned marking configuration information".

[0136] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0137] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A text content marking method, comprising: In response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, determining an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; In response to identifying a sliding operation of the target user with the initial marked area as a starting area, determining an operation intention of the target user according to a sliding track corresponding to the sliding operation; In response to the operation intention representing the text content marking intention, determining a candidate marking area according to the initial marking area and the sliding track, wherein an area change direction of the candidate marking area is in the same direction as a track change direction of the sliding track, and an area change speed of the candidate marking area along the area change direction is greater than or equal to a track change speed of the sliding track along the track change direction; Determine the mark configuration information corresponding to the candidate mark area, wherein the mark configuration information includes: mark color and mark style information; The candidate marking area is content marked according to the marking color and marking style information included in the marking configuration information, wherein: Determining the operation intention of the target user according to the sliding track corresponding to the sliding operation includes: Generate a page turning type feature vector according to the page turning type of the target page, wherein the page turning type represents the page turning effect for the target page, and the page turning type includes at least one of the following: left-right covering page turning type, left-right translation covering type, up-down scrolling page turning type, up-down translation page turning type, and simulation page turning type; Taking the page refresh rate of the touch screen device as the sampling rate, down-sampling the track coordinates of the sliding track to generate track center coordinates and obtain a track center coordinate sequence; For each track center coordinate in the track center coordinate sequence, determining a capacitance value matrix with the track center coordinate as the contact center coordinate as a target capacitance value matrix; According to the obtained target capacitance value matrix sequence, an initial main optical flow feature vector and an initial slave optical flow feature vector set are generated; The operation intention is generated by a pre-trained operation intention recognition model, the page turning type feature vector, the initial main optical flow feature vector and the initial slave optical flow feature vector set, wherein the operation intention recognition model includes: a first operation intention recognition model, a second operation intention recognition model, a first intention recognition classifier, a second intention recognition classifier and a model connection controller, the first intention recognition classifier is connected to the first operation intention recognition model, the second intention recognition classifier is connected to the second operation intention recognition model, the model connection controller is set between the first operation intention recognition model and the second operation intention recognition model, the model connection controller is turned on and off by the page turning type feature vector and the first operation intention output by the first intention recognition classifier, the first operation intention recognition model and the second operation intention recognition model both adopt temporal convolutional neural network, the output of the first operation intention recognition model is used as the input of the second operation intention recognition model, the first intention recognition classifier and the second intention recognition classifier are both multi-classifiers, wherein, Determining a candidate marking area according to the initial marking area and the sliding track includes: Generate a heat map of the marked area according to the initial marked area, the sliding track and the blank page, including: taking the initial marked area as the starting area, determining the area passed by the sliding track as the middle area, marking the blank page with a thermal value, and obtaining a heat map of the marked area; Extracting local page content from the target page using the marked area heat map to generate local text content; Segmenting the local text content to generate text content segments, thereby obtaining a text content segment set; Determining the text segment content confidence of each text content segment in the text content segment set by using a pre-trained marked region generation model, wherein the marked region generation model includes: a semantic feature extraction model and a binary classifier; The region where the text content segment corresponding to the text content segment set and whose content confidence meets the second screening condition is located is determined as the candidate marking region.

2. The method according to claim 1, wherein: The determining of the initial marking area according to the starting contact point corresponding to the touch operation includes: Determining a page size of the target page, wherein the page size is smaller than or equal to a screen size of the touch screen device; Determining the character size corresponding to the characters included in the target page; Determine a line object information sequence according to the page size and the character size, wherein the number of line object information in the line object information sequence is consistent with the number of text lines accommodated in the target page, and the line object information in the line object information sequence includes: line position information and a character position information sequence, wherein the character position information sequence represents the character position of each character in the text line corresponding to the line object information; Determine target row object information, wherein the target row object information is row object information whose row position information included in the row object information sequence matches the touch point coordinates of the starting touch point; Character position information matching the starting contact point position in the character position information sequence included in the target row object information is determined to generate the initial marking area.

3. The method according to claim 2, wherein: The determining of the target row object information includes: Determine a control object of the list control that matches the touch point coordinates of the starting touch point as the target control object; By traversing the list adapter, the control index of the target control object is determined; The row object information corresponding to the row text corresponding to the control subscript is determined as the target row object information.

4. The method according to claim 3, wherein: The determining the character position information in the character position information sequence included in the target row object information that matches the starting contact point position to generate the initial marking area includes: For each piece of character position information in the character position information sequence included in the target row object information, matching the left side coordinate of the character included in the character position information with the horizontal coordinate of the touch point coordinate of the starting touch point; Determine the character position information in the character position information sequence included in the target row object information and matching the horizontal coordinate of the touch point coordinate as the target character position information; Determine the position offset according to the target character position information; The position offset is subjected to coordinate transformation to generate the initial marking area.

5. The method according to claim 2, wherein: The determining of the target row object information includes: Determine an initial capacitance value matrix corresponding to the starting contact position; Using a matrix difference between the initial capacitance value matrix and the reference capacitance value matrix as a candidate capacitance value matrix; Generate a blank page, wherein the page size of the blank page is consistent with the page size of the target page; The blank page is divided into pages with the character size as the scanning frame size, the line spacing of the text lines contained in the target page as the vertical step length, and the preset step length as the horizontal step length, so as to generate a page matrix; According to the row object information sequence, updating the matrix values ​​of the page matrix to generate an updated page matrix, wherein the matrix values ​​in the updated page matrix include: a first matrix value and a second matrix value; Determine, in units of rows, a mean value of an intersection matrix between each row matrix in the page matrix and the candidate capacitance value matrix; Filter out a row matrix whose corresponding intersection matrix mean value satisfies a first filtering condition from the page matrix as a target row matrix; The row object information corresponding to the positive projection position of the target row matrix on the target page is determined as the target row object information.

6. The method according to claim 5, wherein: The step of marking the candidate marking area with respect to the marking color and the marking style information included in the marking configuration information includes: Determine the text color of the text content in the candidate mark area as the target text color; superimposing the marking color onto the target text color to generate text content brightness; According to the brightness of the text content, adjusting the color transparency of the mark color to obtain adjusted color transparency; The adjusted color transparency is used as a transparency constraint, and the candidate marking area is color-drawn using the marking style information and the marking color, so as to achieve content marking of the candidate marking area.

7. A text content marking device, comprising: A first determining unit is configured to, in response to identifying a touch operation of a target user on a target page, and the operation dwell time of the touch operation is greater than a preset dwell time, determine an initial marking area according to a starting contact point corresponding to the touch operation, wherein the target page is a text content page displayed by a touch screen device; a second determining unit configured to, in response to identifying a sliding operation of the target user with the initial marked area as a starting area, determine an operation intention of the target user according to a sliding track corresponding to the sliding operation; A third determining unit is configured to determine, in response to the operation intention representing the text content marking intention, a candidate marking area according to the initial marking area and the sliding trajectory, wherein an area change direction of the candidate marking area is in the same direction as a trajectory change direction of the sliding trajectory, and an area change speed of the candidate marking area along the area change direction is greater than or equal to a trajectory change speed of the sliding trajectory along the trajectory change direction; A fourth determining unit is configured to determine the mark configuration information corresponding to the candidate mark area, wherein the mark configuration information includes: mark color and mark style information; The content marking unit is configured to perform content marking on the candidate marking area according to the marking color and marking style information included in the marking configuration information, wherein: Determining the operation intention of the target user according to the sliding track corresponding to the sliding operation includes: Generate a page turning type feature vector according to the page turning type of the target page, wherein the page turning type represents the page turning effect for the target page, and the page turning type includes at least one of the following: left-right covering page turning type, left-right translation covering type, up-down scrolling page turning type, up-down translation page turning type, and simulation page turning type; Taking the page refresh rate of the touch screen device as the sampling rate, down-sampling the track coordinates of the sliding track to generate track center coordinates and obtain a track center coordinate sequence; For each track center coordinate in the track center coordinate sequence, determining a capacitance value matrix with the track center coordinate as the contact center coordinate as a target capacitance value matrix; According to the obtained target capacitance value matrix sequence, an initial main optical flow feature vector and an initial slave optical flow feature vector set are generated; The operation intention is generated by a pre-trained operation intention recognition model, the page turning type feature vector, the initial main optical flow feature vector and the initial slave optical flow feature vector set, wherein the operation intention recognition model includes: a first operation intention recognition model, a second operation intention recognition model, a first intention recognition classifier, a second intention recognition classifier and a model connection controller, the first intention recognition classifier is connected to the first operation intention recognition model, the second intention recognition classifier is connected to the second operation intention recognition model, the model connection controller is set between the first operation intention recognition model and the second operation intention recognition model, the model connection controller is turned on and off by the page turning type feature vector and the first operation intention output by the first intention recognition classifier, the first operation intention recognition model and the second operation intention recognition model both adopt temporal convolutional neural network, the output of the first operation intention recognition model is used as the input of the second operation intention recognition model, the first intention recognition classifier and the second intention recognition classifier are both multi-classifiers, wherein, Determining a candidate marking area according to the initial marking area and the sliding track includes: Generate a heat map of the marked area according to the initial marked area, the sliding track and the blank page, including: taking the initial marked area as the starting area, determining the area passed by the sliding track as the middle area, marking the blank page with a thermal value, and obtaining a heat map of the marked area; Extracting local page content from the target page using the marked area heat map to generate local text content; Segmenting the local text content to generate text content segments, thereby obtaining a text content segment set; Determining the text segment content confidence of each text content segment in the text content segment set by using a pre-trained marked region generation model, wherein the marked region generation model includes: a semantic feature extraction model and a binary classifier; The region where the text content segment corresponding to the text content segment set and whose content confidence meets the second screening condition is located is determined as the candidate marking region.

8. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Text editing method and device for touch screen

    CN105867820A

  • Control method of touch screen, and terminal

    CN108595044A

  • User operation instruction processing method and handwriting reading device

    CN109753179A