CN113168252A - Adjusting method, electronic display device and writing display system - Google Patents
Adjusting method, electronic display device and writing display system Download PDFInfo
- Publication number
- CN113168252A CN113168252A CN201880097642.4A CN201880097642A CN113168252A CN 113168252 A CN113168252 A CN 113168252A CN 201880097642 A CN201880097642 A CN 201880097642A CN 113168252 A CN113168252 A CN 113168252A
- Authority
- CN
- China
- Prior art keywords
- point
- acquisition
- acquisition point
- interpolation
- coordinate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
An adjusting method for restoring a pen touch depth effect, an electronic display device (10) and a writing display system (100). The adjusting method is applied to a writing display system (100), the electronic display device (10) can communicate with a writing board (20), and the adjusting method comprises the following steps: acquiring writing data (011) of a plurality of acquisition points on a writing track formed by the writing operation received by the writing board (20), wherein the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the writing board (20); converting the first coordinate value into a second coordinate value, wherein the second coordinate value is a coordinate value (012) of the acquisition point in a coordinate system corresponding to the electronic display device (10); interpolating between the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point (013); mapping (015) the collection points and the interpolation points; and adjusting the transparency (016) of the map according to the pressure values of the acquisition points and the pressure values of the interpolation points.
Description
The present disclosure relates to the field of input devices, and in particular, to an adjusting method for restoring a pen-touch depth effect, an electronic display device, and a writing display system.
When writing, the current electronic writing board usually uses a stroke as a map, and then when setting the transparency of the stroke, each map sets a transparency to restore the effect of different stroke depths during writing, however, a stroke as a map changes the transparency, and the change of the stroke depth between the same strokes in the real writing process cannot be restored.
Disclosure of Invention
The embodiment of the application provides an adjusting method for restoring a stroke depth effect, an electronic display device and a writing display system, which can enable the stroke depth between the same strokes to be changed in the restoring writing process.
The application provides an adjusting method for restoring a pen touch depth effect, which is applied to an electronic display device, wherein the electronic display device can be communicated with a writing board, the adjusting method comprises the steps of acquiring writing data of a plurality of acquisition points on a writing track formed when the writing board receives writing operation, wherein the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the writing board; converting the first coordinate value into a second coordinate value, wherein the second coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the electronic display device; interpolating among the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point; drawing a mapping for the acquisition points and the interpolation points; and adjusting the transparency of the map according to the pressure value of the acquisition point and the pressure value of the interpolation point.
The application also provides an electronic display device, which can communicate with a writing board, wherein the writing board is used for receiving writing operation, receiving the writing operation and forming a writing track, the writing track is provided with a plurality of acquisition points, the acquisition points correspond to writing data, the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is the coordinate value of the acquisition point in a coordinate system corresponding to the writing board; the electronic display device comprises a processor, wherein the processor is used for acquiring writing data of a plurality of acquisition points on a writing track formed when the writing board receives writing operation, converting the first coordinate value into a second coordinate value, the second coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the electronic display device, interpolating between the acquisition points according to the second coordinate value and the writing time to obtain an interpolation point, drawing a map on the acquisition points and the interpolation point, and adjusting the transparency of the map according to the pressure values of the acquisition points and the pressure values of the interpolation point.
The application also provides a writing display system, which comprises a writing board and the electronic display device. The writing board is used for receiving writing operation and forming a writing track, the writing track is provided with a plurality of acquisition points, the acquisition points correspond to writing data, the writing data comprise a first coordinate value, writing time and a pressure value, and the first coordinate value is the coordinate value of the acquisition points in a coordinate system corresponding to the writing board.
According to the adjusting method, the electronic display device and the writing display system, the collection points on the plurality of writing tracks are collected, the mapping is drawn on the collection points and the interpolation points to restore the shapes of the strokes, the transparency of the corresponding mapping is changed according to the pressure values of the collection points and the pressure values of the interpolation points, accordingly, the depth change of the strokes of the same stroke is achieved, the depth effect of the strokes of each stroke is determined according to the pressure values of the collection points and the pressure values of the interpolation points, and the restoration degree of the depth change of the strokes in the writing process is high.
Additional aspects and advantages of embodiments of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the present application.
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow diagram of a conditioning method according to certain embodiments of the present application.
FIG. 2 is a schematic block diagram of a writing display system according to some embodiments of the present application.
FIG. 3 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
FIG. 4 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
Fig. 5 is a schematic view of a scenario of an adjustment method according to some embodiments of the present application.
FIG. 6 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
FIG. 7 is a schematic diagram of the conditioning method of certain embodiments of the present application.
FIG. 8 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
Fig. 9 and 10 are schematic diagrams of the conditioning method of certain embodiments of the present application.
FIG. 11 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
Fig. 12-14 are schematic diagrams illustrating the conditioning method of certain embodiments of the present application.
Fig. 15 and 16 are schematic flow charts of conditioning methods according to certain embodiments of the present application.
FIG. 17 is a schematic diagram of the conditioning method of certain embodiments of the present application.
Fig. 18-20 are flow diagrams illustrating a conditioning method according to certain embodiments of the present application.
FIG. 21 is a schematic diagram of the conditioning method of certain embodiments of the present application. And
FIG. 22 is a schematic flow chart of a conditioning method according to certain embodiments of the present application.
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
Referring to fig. 1 to 2, an adjusting method according to an embodiment of the present application is applied to an electronic display device 10, the electronic display device 10 can communicate with a tablet 20, and the adjusting method includes the following steps:
011: acquiring writing data of a plurality of acquisition points on a writing track formed when the tablet 20 receives writing operation, wherein the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the tablet 20;
012: converting the first coordinate value into a second coordinate value, wherein the second coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the electronic display device 10;
013: interpolating among the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point;
015: drawing a mapping for the acquisition points and the interpolation points; and
016: and adjusting the transparency of the map according to the pressure values of the acquisition points and the pressure values of the interpolation points.
The electronic display device 10 of the embodiment of the application can be a mobile phone, a tablet computer, a notebook computer, an intelligent wearable device and the like, the electronic display device 10 can communicate with the tablet 20, the tablet 20 is used for receiving writing operation and forming a writing track, a plurality of collecting points are arranged on the writing track, the plurality of collecting points correspond to writing data, wherein the writing data comprise a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the collecting point under a coordinate system corresponding to the tablet 20. The electronic display device 10 includes a processor 12, and the processor 12 is configured to obtain writing data of a plurality of collection points on a writing track formed during a writing operation received by the tablet 20, convert a first coordinate value into a second coordinate value, interpolate between the plurality of collection points according to the second coordinate value and writing time to obtain interpolation points, draw a map of the collection points and the interpolation points, and adjust transparency of the map according to pressure values of the plurality of collection points and the interpolation points. The second coordinate value is a coordinate value of the collection point in a coordinate system corresponding to the electronic display device 10.
That is, step 011, step 012, step 013, step 015 and step 016 may be executed by processor 12.
Specifically, referring to fig. 7, the tablet 20 is configured to receive a user writing operation and form a writing track, where the writing track has a plurality of capture points (P1, P2, etc.), and the plurality of capture points (P1, P2, etc.) correspond to writing data. The acquisition points are obtained by sampling the writing track of the user by the tablet 20 according to a predetermined sampling frequency (for example, 300 acquisition points per second) when the user writes on the tablet 20, and the writing data includes a first coordinate value in a coordinate system of the tablet 20, writing time of the acquisition points, and pressure values of the acquisition points. The processor 12 converts the first coordinate values in the coordinate system of the tablet 20 into the corresponding second coordinate values in the coordinate system of the electronic display device 10. The processor 12 interpolates between the acquisition points according to the second coordinate values of the acquisition points and the writing time to obtain interpolated points (S1, S2, etc.), wherein the interpolated points are not actually sampled by the tablet 20, but are logically interpolated by the processor 12 to restore the writing trajectory. The processor 12 then maps the acquisition points (P1 and P5) and maps the interpolation points (S1 to S8). The writing data of the interpolation points can be calculated according to the writing data of two acquisition points adjacent to the interpolation point, for example, the interpolation points S1 to S8 can be calculated according to the writing data of the acquisition point P1 and the acquisition point P2, and finally, the processor 12 adjusts the transparency of the map corresponding to the acquisition points (e.g., P1, P2, P3) according to the pressure values of the acquisition points (e.g., P1, P2, P3), and adjusts the transparency of the map corresponding to the interpolation points (e.g., S1 to S8) according to the pressure values of the interpolation points (e.g., S1 to S8).
According to the adjusting method, the collection points (P1, P2 and the like) on the writing tracks are collected, the maps are drawn for the collection points and the interpolation points, the transparency of the corresponding maps is changed according to the pressure values of the collection points and the pressure values of the interpolation points, accordingly, the depth change of strokes of the same stroke is achieved, the depth effect of the strokes of each stroke is determined according to the pressure values of the collection points and the pressure values of the interpolation points, and the reduction degree of the depth change of the strokes in the writing process is high.
Referring to fig. 2 and 3, in some embodiments, the adjusting method further includes:
010: judging whether the tablet 20 is in communication connection with the electronic display device 10;
0112: when tablet 20 is communicatively coupled to electronic display device 10, the writing data sent by tablet 20 to electronic display device 10 is obtained.
In some embodiments, processor 12 is further configured to determine whether tablet 20 is communicatively coupled to electronic display device 10 and to obtain writing data that tablet 20 transmits to electronic display device 10 when tablet 20 is communicatively coupled to electronic display device 10.
That is, step 010 and step 0112 may be implemented by processor 12.
Specifically, when writing, the tablet 20 needs to be in communication connection with the electronic display device 10 before data can be transmitted, and the processor 12 determines whether the tablet 20 is in communication connection with the electronic display device 10, where the communication connection may be a wired connection or a wireless connection, such as a USB connection, and the wireless connection is a bluetooth connection. After tablet 20 is then communicatively coupled to electronic display device 10, processor 12 may obtain writing data that tablet 20 sends to electronic display device 10, and processor 12 may obtain the writing data as: the processor 12 controls the communication module to send a request to the tablet 20, and the tablet 20 feeds back the writing data to the processor 12 through the communication module; it can also be: the tablet 20 actively sends the written data to the processor 12 via the communication module after the communication connection.
Referring to fig. 2,4 and 5, in some embodiments, step 012 includes the following steps:
0122: acquiring a scaling factor between the first coordinate value and the second coordinate value according to the width of the display area 14 of the electronic display device 10 and the width of the writing area 22 of the tablet 20 or acquiring a scaling factor between the first coordinate value and the second coordinate value according to the length of the display area 14 of the electronic display device 10 and the length of the writing area 22 of the tablet 20; and
0124: and calculating the abscissa of the second coordinate value according to the scaling coefficient and the abscissa of the first coordinate value, and calculating the ordinate of the second coordinate value according to the scaling coefficient and the ordinate of the first coordinate value.
In some embodiments, the processor 12 is further configured to obtain a scaling factor between the first coordinate value and the second coordinate value according to the width of the display area 14 of the electronic display device 10 and the width of the writing area 22 of the tablet 20 or obtain a scaling factor between the first coordinate value and the second coordinate value according to the length of the display area 14 of the electronic display device 10 and the length of the writing area 22 of the tablet 20, calculate an abscissa of the second coordinate value according to the scaling factor and the abscissa of the first coordinate value, and calculate an ordinate of the second coordinate value according to the scaling factor and the ordinate of the first coordinate value.
Specifically, the size of the tablet 20 and the size of the electronic display device 10 are generally different, so the first coordinate values of the capturing points acquired on the tablet 20 cannot be directly applied to the electronic display device 10, and need to be converted, and the conversion process satisfies the relation: PX is BX f, PY is BY f; wherein PX and PY are respectively an abscissa and an ordinate of a second coordinate value of the acquisition point, BX and BY are respectively an abscissa and an ordinate of a first coordinate value of the acquisition point, and f is a scaling coefficient; that is, the processor 12 calculates the abscissa of the second coordinate value based on the scaling factor and the abscissa of the first coordinate value, and calculates the ordinate of the second coordinate value based on the scaling factor and the ordinate of the first coordinate value. The scaling factor f satisfies the conditional expression: f is PW/BW, or F is PH/BH; where PW and PH are the width and height, respectively, of the display area 14 of the electronic display device 10, BW and BH are the width and height, respectively, of the writing area 22 of the tablet 20, that is, the scaling factor f is determined according to the ratio PW/BW of the width PW of the display area 14 of the electronic display device 10 and the width BW of the writing area 22 of the tablet 20; alternatively, the scaling factor f is determined based on the ratio PH/BH of the length PH of the display region 14 of the electronic display device 10 and the length BH of the writing region 22 of the tablet 20.
In other embodiments, the processor 12 may multiply the abscissa and ordinate of the first coordinate value by one scaling factor to convert the first coordinate value into the second coordinate value, specifically, the scaling factor f1 of the abscissa is determined according to the ratio of the width of the writing area 22 of the tablet 20 to the width of the display area 14 of the electronic display device 10, that is, PX × BX f1 is satisfied; the ratio of the length of the writing area 22 of the ordinate scale factor tablet 20 to the length of the display area 14 of the electronic display device 10 is determined, that is, PY BY f2 is satisfied, and f1 and f2 may be the same or different.
Referring to FIGS. 2, 6 and 7, in certain embodiments, any three acquisition points that are temporally adjacent in writing are a first acquisition point P1, a second acquisition point P2 and a third acquisition point P3 in chronological order, and step 013 comprises the steps of:
0131: interpolation is performed between first acquisition point P1 and third acquisition point P3 according to the quadratic Bezier curve formula, with first acquisition point P1 as the starting point, second acquisition point P2 as the control point, and third acquisition point P3 as the ending point, to obtain interpolated points.
In certain embodiments, processor 12 is further configured to interpolate between first acquisition point P1 and third acquisition point P3 according to the quadratic Bezier curve equation for interpolation points starting at first acquisition point P1, ending at second acquisition point P2, and ending at third acquisition point P3.
That is, step 0131 may be implemented by processor 12.
Specifically, each stroke generally includes a plurality of acquisition points, three acquisition points that are adjacent in writing time are a first acquisition point P1, a second acquisition point P2, and a third acquisition point P3 in this order, the three acquisition points may draw a quadratic bezier curve, the first acquisition point P1 is a starting point, the second acquisition point P2 is a control point, and the third acquisition point P3 is an end point, and then interpolation is performed between the first acquisition point P1 and the third acquisition point P3 according to a quadratic bezier curve formula to obtain interpolation points, and the acquisition points (P1, P2, and P3) and the interpolation points (S1 to S8) are all on the quadratic bezier curve, so that after mapping is respectively drawn for the acquisition points (P1 and P5) and the interpolation points (S1 to S8), the stroke may be smooth, and the display effect may be better. When the first acquisition point of each stroke is the first acquisition point P1, and interpolation is performed on the next adjacent three acquisition points (P3 to P5) to obtain interpolation points, the third acquisition point P3 of the last adjacent three acquisition points (P1 to P3) can be used as the first acquisition point P1 of the next adjacent three acquisition points (i.e., P3 is used as the first acquisition point P1, P4 is used as the second acquisition point P2, and P5 is used as the third acquisition point P3), so that interpolation points exist between any two adjacent acquisition points (between P1 and P2, between P2 and P3, between P3 and P4, between P4 and P5) of the whole stroke.
Referring to fig. 2, 7 and 8, in some embodiments, step 013 further includes the following steps:
0132: calculating the step size based on the linear distance D between the first acquisition point P1 and the third acquisition point P3; and
0133: interpolation points are interpolated between the first acquisition point P1 and the third acquisition point P3 every other step according to a quadratic Bezier curve formula.
In certain embodiments, processor 12 is further configured to calculate a step size based on linear distance D between first acquisition point P1 and third acquisition point P3, and interpolate between first acquisition point P1 and third acquisition point P3 at intervals according to the quadratic Bezier curve formula to obtain interpolated points.
That is, step 0132 and step 0133 may be implemented by processor 12.
Specifically, the present electronic display device 10 generally performs display in units of pixels, so that interpolation is performed in units of pixels, and the processor 12 first calculates a straight-line distance D between the first captured point P1 and the third captured point P3, specifically, the number of pixels between the first captured point P1 and the third captured point P3; then calculating the step length according to the distance D, wherein the step length is the reciprocal 1/D of the distance D, and the step length is calculated according to the quadratic Bessel formula B (t) ═ 1-t2P1+2t(1-t)P2+t 2P3,t∈[0,1]Where, when t is 0, b (t) represents a second coordinate value of the first collection point P1, when t is 1, b (t) represents a second coordinate value of the third collection point P3, and when t ∈ (0, 1), b (t) representsAnd (3) second coordinate values of coordinates of interpolation points (S1 to S8), wherein P1, P2 and P3 are respectively second coordinate values of a first acquisition point P1, a second acquisition point P2 and a third acquisition point P3, and then when t epsilon (0, 1), inserting a value every 1/D to obtain the second coordinate value of an interpolation point (S1, S2 and the like), namely t is sequentially 1/D, 2/D, 3/D, 1.. and until D-1/D is respectively substituted into a quadratic Bessel formula to obtain the second coordinate values of the interpolation points (S1 to S8). For example, D is 8, that is, the distance D between the first collection point P1 and the third collection point P3 is 8 pixel points, then interpolation is performed once every other pixel point to obtain an interpolation point, so as to obtain 8 interpolation points (S1 to S8), and each collection point (P1, P2, P3) or each interpolation point (S1 to S8) occupies one pixel. As shown in fig. 9, in drawing, one map is drawn at each of P1 and P3, and one map is drawn at each of interpolation points S1 to S4 between P1 and P3. In other embodiments, the step size can be 2/D, 3/D and the like, and the calculation amount can be reduced without carrying out interpolation once for each pixel. When the map is drawn, sometimes each map occupies a plurality of pixels, the map is a square, the occupied pixels are X × X, and the step size can be determined according to the number of pixels occupied in the width direction or the length direction of the map, as shown in fig. 10, for example, a map with a map of 2 × 2, the step size can be 2, and since the map occupies 2 pixels, interpolation is performed every two pixels between P1 and P3 to obtain interpolation points (S1 to S4) just enables each map to correspond to one capture point or interpolation point, so that the transparency of the corresponding map can be adjusted according to the pressure values of the capture point and the interpolation point in the following process. It should be noted that fig. 9 and 10 are exemplary illustrations and are not intended to limit the present application.
Referring to fig. 2, 11 and 12, in some embodiments, the acquisition points further include an initial acquisition point PS and an end acquisition point PE, the initial acquisition point PS being the acquisition point with the earliest writing time; the collection ending point PE is a collection point with a pressure value smaller than a preset pressure value; step 015 includes the steps of:
0152: and drawing a mapping for the initial acquisition point PS, the end acquisition point PE, and the acquisition point and the interpolation point between the initial acquisition point PS and the end acquisition point PE.
In certain embodiments, the processor 12 is further configured to map the initial acquisition point PS, the end acquisition point PE, and the acquisition points and interpolation points between the initial acquisition point PS and the end acquisition point PE.
That is, step 0152 may be implemented by processor 12.
Specifically, a user generally writes one stroke after another when writing, the collection point with the earliest writing time (i.e., the first collection point P1 with the earliest writing time) is the initial collection point PS of the stroke, and according to the writing habit, the pressure applied to the collection points (P1, P2, P3, etc.) at the end of each stroke is generally the smallest, so that the collection points can be used as the end collection point PE of one stroke when detecting the collection points with the pressure values smaller than the predetermined pressure value. The processor 12 draws a map between the initial acquisition point PS and the end acquisition point PE to realize the display of one stroke, and when the user writes the next stroke, the writing time is re-timed to obtain the next initial acquisition point PS and the corresponding end acquisition point PE, so that the stroke break can be accurately performed between different strokes. In addition, referring to fig. 13, in some stroke writing processes, only two acquisition points or even one acquisition point, for example, a stroke of "left-falling stroke", may only be acquired, i.e., P1 and P2, i.e., P1 is the initial acquisition point PS and P2 is the end acquisition point PE, and the processor 12 may interpolate according to a one-time bezier curve formula (i.e., a linear interpolation formula) to obtain interpolation points (i.e., S1 and S2), and then draw a map of the acquisition points (P1 and P2) and the interpolation points (S1 and S2). When only one acquisition point, P1, exists, i.e., both the initial acquisition point PS and the end acquisition point PE are P1, processor 12 maps acquisition point P1.
Referring to FIGS. 2 and 14, in some embodiments, the end acquisition point PE is the second acquisition point P2, and interpolation is performed between the end acquisition point PE and the corresponding first acquisition point P1 according to a one-time Bezier curve formula (i.e., a linear interpolation formula) to obtain an interpolation point.
Specifically, when the end acquisition point PE is the second acquisition point P2 (i.e., P4 in FIG. 14), i.e., only two acquisition points remain uninterpolated between P3 and P4, which cannot be interpolated by the quadratic Bezier curve equation to obtain interpolation points, processor 12 interpolates between P3 and P4 by the first-order Bezier curve equation (i.e., the linear interpolation equation) to obtain interpolation points (i.e., S9, S10, and S11).
Referring to fig. 2, 15 and 16, in some embodiments, the maps include a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and step 016 includes:
0161: calculating a pressure gradient based on the pressure value for first acquisition point P1, the pressure value for third acquisition point P3, and the linear distance D between first acquisition point P1 and third acquisition point P3;
0162: calculating the pressure value of the interpolation point according to the pressure gradient; and
0163: and adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
In certain embodiments, processor 12 is further configured to calculate a pressure gradient based on the pressure values for first acquisition point P1, third acquisition point P3, and linear distance D between first acquisition point P1 and third acquisition point P3, calculate pressure values for interpolation points based on the pressure gradient, adjust the transparency of the first map based on the pressure values for acquisition points, and adjust the transparency of the second map based on the pressure values for interpolation points.
That is, step 0161, step 0162 and step 0163 may be implemented by processor 12.
Specifically, in the process of performing the transparency adjustment of the map, processor 12 calculates a pressure gradient, i.e., a ratio of a pressure difference between first acquisition point P1 and third acquisition point P3 to distance D, according to the pressure values of first acquisition point P1, third acquisition point P3, and straight-line distance D between first acquisition point P1 and third acquisition point P3, and then calculates the pressure values of the interpolation points according to the pressure gradient, for example, as shown in fig. 9, distance D between first acquisition point P1 and third acquisition point P3 is 4 pixels, pressure difference between first acquisition point P1 and third acquisition point P3 is 10, pressure gradient is 10/(6-1) to 2, interpolation is performed once for each pixel to obtain an interpolation point, if Pa1 > Pa2, where pressure value of first acquisition point P1 is Pa1 to 10, pressure value of third acquisition point P3 is 2 to obtain a pressure value of first interpolation point S5820 to S + S5812 to obtain a pressure value of Pa 3629 Pa + 12, the pressure value of the interpolation point S2 obtained by the second interpolation is Pa1+2 × 2 equal to 14, and so on, and the pressure value of the interpolation point S4 obtained by the last fourth interpolation is Pa1+2 × 4 equal to 18. If Pa1 < Pa2, such as Pa1 ═ 20; when Pa2 is 10, the pressure value of the interpolation point S1 obtained by the first interpolation is Pa1-2 is 18, the pressure value of the interpolation point S2 obtained by the second interpolation is Pa1-2 is 16, and so on, and the pressure value of the interpolation point S4 obtained by the last fourth interpolation is Pa1-2 is 4 is 12. After the pressure values of the interpolation points are calculated, the maps occupy 1 pixel, for example, as shown in fig. 9, the maps each draw a first map at the acquisition points (P1 and P3), and a second map at the interpolation points (S1 to S4, etc.) between P1 and P3, according to the number of pixels occupied by the maps; for another example, as shown in fig. 11, the pixels occupied by the maps are 2 × 2, the step size may be set to 2/D, then interpolation is performed every 2/D steps (i.e., two pixels) to obtain an interpolation point, a first map is respectively drawn at the acquisition points (P1 and P3), and a second map is respectively drawn at the interpolation points (S1 to S4) between P1 and P3. Then, the processor 12 obtains the transparency corresponding to the pressure value of the collection point or the interpolation point through the mapping relationship between the pressure value and the transparency, and it can be understood that the stronger the user writes, the deeper the stroke color (i.e. the lower the transparency), for example, the transparency can be obtained according to the following formula: t ═ press-MaxPress — (3+ MaxPress)/normalpraplpress/1.6, where press is a pressure value of an acquisition point or an interpolation point, MaxPress is a maximum writing pressure that can be borne by the tablet 20, and normalprompress is a predetermined normal writing pressure when the body temperature of the user is 37 degrees. Finally, the processor 12 adjusts the transparency of the corresponding first map according to the pressure value of the collection point, and adjusts the transparency of the corresponding second map according to the pressure value of the interpolation point, so that the reduction of the depth effect among strokes is realized, and the reduction effect is good.
Referring to FIGS. 2, 16 and 17, in certain embodiments, any three acquisition points that are temporally adjacent in writing are a first acquisition point P1, a second acquisition point P2 and a third acquisition point P3 in chronological order, and step 013 comprises the steps of:
0134: interpolating between first acquisition point P1 and second acquisition point P2 to obtain a first intermediate coordinate point M1;
0135: interpolating between second acquisition point P2 and third acquisition point P3 to obtain a second intermediate coordinate point M2; and
0136: interpolation is performed between the first intermediate coordinate point M1 and the second intermediate coordinate point M2 according to a quadratic Bezier curve formula by taking the first intermediate coordinate point M1 as a starting point, the second acquisition point P2 as a control point and the second intermediate coordinate point M2 as an ending point to obtain an interpolation point.
In certain embodiments, processor 12 is further configured to interpolate between first acquisition point P1 and second acquisition point P2 to obtain first intermediate coordinate point M1, interpolate between second acquisition point P2 and third acquisition point P3 to obtain second intermediate coordinate point M2, and interpolate between first intermediate coordinate point M1 and second intermediate coordinate point M2 according to a quadratic Bezier curve formula starting at first intermediate coordinate point M1, ending at second acquisition point P2, and ending at second intermediate coordinate point M2 to obtain interpolated points. As shown in fig. 17, M2, P3, and M3 may also draw a secondary bezier curve, where the second intermediate coordinate point M2 may serve as a starting point of the next secondary bezier curve (i.e., the first intermediate coordinate point M1), the collection point P3 may serve as a control point of the next secondary bezier curve, the collection point P3 and the collection point P4 may interpolate to obtain M3 (i.e., the second intermediate coordinate point M2) as an ending point of the next secondary bezier curve, that is, each collection point (e.g., P2, P3, etc.) between the initial collection point PS and the ending collection point PE may serve as a control point of each secondary bezier curve, and the first intermediate coordinate point M1 and the second intermediate control point M2 may be obtained by interpolating between two collection points adjacent to each control point (e.g., two collection points P2 and P4 adjacent to each control point when P3 serves as a control point), therefore, a plurality of continuous secondary Bezier curves are drawn between the initial track point PS and the end acquisition point PE, and the number of acquisition points between the initial acquisition point PS and the end acquisition point PE is the number of drawable secondary Bezier curves.
That is, step 0134, step 0135 and step 0136 may be implemented by processor 12.
Please refer to FIG. 12 and FIG. 17, which show the same five collection points (i.e., P1-P5), only 2 Bezier curves can be interpolated compared to the case shown in FIG. 12 where the first collection point P1 is the starting point and the third collection point P3 is the ending point, while in the embodiment shown in FIG. 17, there are 3 Bezier curves for interpolation, and the stroke is smoother overall and the stroke restoring effect is better.
Referring again to FIG. 17, in certain embodiments, first intermediate coordinate point M1 is a point intermediate first acquisition point P1 and second acquisition point P2, and second intermediate coordinate point M2 is a point intermediate second acquisition point P2 and third acquisition point P3. Thus, the calculation of the first intermediate coordinate point M1 and the second intermediate coordinate point M2 is facilitated.
Specifically, first intermediate coordinate point M1 and second intermediate coordinate point M2 are respectively a midpoint of a connecting line of first acquisition point P1 and second acquisition point P2 (i.e., at 1/2) and a midpoint of a connecting line of second acquisition point P2 and third acquisition point P3 (i.e., at 1/2), and written data of first intermediate coordinate point M1 is equal to half of the sum of written data of first acquisition point P1 and second acquisition point P2. For example, if the coordinates of first acquisition point P1 is (1,3) and the coordinates of second acquisition point P2 is (3,5), then the coordinates of first intermediate coordinate point M1 are ((1+3)/2, (3+5)/2), i.e., (2, 4). For another example, if the pressure value at first collection point P1 is 10 and the pressure value at second collection point P2 is 20, then the pressure value at first intermediate coordinate point M1 is (10+ 20)/2-15; similarly, processor 12 may calculate the written data for second intermediate coordinate point M2 from the written data for second acquisition point P2 and third acquisition point P3. In other embodiments, first intermediate coordinate point M1 may also be located at 1/3 of the connection between first acquisition point P1 and second acquisition point P2 and proximate to first acquisition point P1, and second intermediate coordinate point M2 may also be located at 1/3 of the connection between second acquisition point P2 and third acquisition point P3 and proximate to second acquisition point P2; alternatively, first intermediate coordinate point M1 may also be located 1/3 of the connection between first acquisition point P1 and second acquisition point P2 and proximate to second acquisition point P2, and second intermediate coordinate point M2 may also be located 1/3 of the connection between second acquisition point P2 and third acquisition point P3 and proximate to third acquisition point P2; and are not intended to be limiting herein. The calculation manner in the above case is substantially similar to that when the first intermediate coordinate point M1 and the second intermediate coordinate point M2 are respectively the midpoint of the line connecting the first acquisition point P1 and the second acquisition point P2 and the midpoint of the line connecting the second acquisition point P2 and the third acquisition point P3, and will not be described again here.
Referring to fig. 2, 17 and 18, in some embodiments, step 013 further includes the following steps:
0137: calculating a step size according to a straight-line distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2; and
0138: interpolation is performed between the first intermediate coordinate point M1 and the second intermediate coordinate point M2 every other step according to a quadratic bezier curve formula to obtain interpolation points.
In some embodiments, processor 12 is further configured to calculate a step size based on a linear distance D1 between first intermediate coordinate point M1 and second intermediate coordinate point M2, and interpolate between first intermediate coordinate point M1 and second intermediate coordinate point M2 every other step size based on a quadratic Bezier curve formula to obtain interpolated points.
That is, step 0137 and step 0138 may be implemented by processor 12.
Specifically, processor 12 calculates the step size based on the straight-line distance D1 between first intermediate coordinate point M1 and second intermediate coordinate point M2, in the same manner as the aforementioned method of calculating the step size when starting at first collection point P1, ending at second collection point P2, and starting at third collection point P3, again based on the reciprocal of the straight-line distance D1 (the number of spaced apart pixel points) between first intermediate coordinate point M1 and second intermediate coordinate point M2. Interpolation is then performed every other step to obtain interpolation points (S1, S2, etc.).
Referring to fig. 2, 17 and 19, in some embodiments, the maps include a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the step 016 includes the following steps:
0164: calculating a pressure gradient according to the pressure value of the first intermediate coordinate point M1, the pressure value of the second intermediate coordinate point M2 and a straight-line distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2;
0165: calculating the pressure value of the interpolation point according to the pressure gradient; and
0166: and adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
In some embodiments, the processor 12 is further configured to calculate a pressure gradient based on the pressure value of the first intermediate coordinate point M1, the pressure value of the second intermediate coordinate point M2, and the straight-line distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2, calculate a pressure value of the interpolation point based on the pressure gradient, and adjust the transparency of the first map based on the pressure value of the collection point, and adjust the transparency of the second map based on the pressure value of the interpolation point.
That is, step 0164, step 0165 and step 0166 may be implemented by processor 12.
Specifically, in the process of adjusting the transparency of the map, the processor 12 calculates writing data of a first intermediate coordinate point M1 and a second intermediate coordinate point M2 according to writing data of a first acquisition point P1, a second acquisition point P2 and a third acquisition point P3, calculates writing data of a first intermediate coordinate point M1 and a second intermediate coordinate point M2, calculates a pressure gradient according to pressure values of the first intermediate coordinate point M1 and the second intermediate coordinate point M2 and a straight-line distance D1, and calculates a pressure value of an interpolation point (S1, S2, etc.) according to the pressure gradient. Finally, the processor 12 adjusts the transparency of the corresponding first map according to the pressure value of the acquisition point, and adjusts the transparency of the corresponding second map according to the pressure value of the interpolation point, so that the depth effect between strokes is restored. The calculation of the pressure gradient, the pressure values of the interpolation points and the transparency is the same as the above-mentioned calculation of the pressure gradient, the interpolation points and the transparency with the first acquisition point P1 as the starting point, the second acquisition point P2 as the control point and the third acquisition point P3 as the ending point, and will not be described again.
Referring to fig. 2, 20 and 21, in some embodiments, the acquisition points further include an initial acquisition point PS and an end acquisition point PE, the initial acquisition point PS being the acquisition point with the earliest writing time; the collection ending point PE is a collection point with a pressure value smaller than a preset pressure value; step 013 comprises the following steps:
0139: calculating an initial step size according to a straight-line distance D2 between the initial point and the corresponding first intermediate coordinate point M1;
0140: interpolating between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 every other initial step length according to a primary Bezier curve formula to obtain an interpolation point;
0141: calculating an end step size according to the distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2; and
0142: and interpolating between the end acquisition point PE and the corresponding second middle coordinate point M2 every other end step according to a primary Bezier curve formula to obtain an interpolation point.
In certain embodiments, processor 12 is further configured to calculate an initial step size from a linear distance D2 between the initial point and the corresponding first intermediate coordinate point M1, interpolate between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 every other initial step size according to a one-time bezier curve formula to obtain interpolated points, calculate an end step size from a distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2, and interpolate between the end acquisition point PE and the corresponding second intermediate coordinate point M2 every other end step size according to a one-time bezier curve formula to obtain interpolated points.
That is, step 0139, step 0140 and step 0141 may be implemented by the processor 12.
Specifically, the initial acquisition point PS and the first intermediate coordinate point M1 cannot be interpolated by the quadratic bezier curve formula because there are only two points, the processor 12 first calculates an initial step size according to a straight-line distance D2 between the initial point and the corresponding first intermediate coordinate point M1 (i.e., M1 in fig. 21), then performs interpolation once every other initial step size according to the one-time bezier curve formula to obtain one interpolation point (i.e., S1 and S2), similarly, the end acquisition point PE and the corresponding second intermediate acquisition point also have only two points, the processor 12 calculates an end step size according to a distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2 (i.e., M4 in fig. 21), and then performs interpolation once every other end step size to obtain one interpolation point (i.e., S7 and S8). The calculation method of the initial step length and the ending step length is the same as the aforementioned calculation method of the step length, and is not described herein again.
Referring to fig. 2, 21 and 22, in some embodiments, the maps include a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the step 016 further includes the following steps:
0167: calculating an initial pressure gradient according to the pressure value of the initial acquisition point PS, the pressure value of a first intermediate coordinate point M1 corresponding to the initial acquisition point PS, and a straight-line distance D2 between the initial acquisition point PS and the corresponding first intermediate coordinate point M1;
0168: calculating an end pressure gradient according to the pressure value of the end acquisition point PE, the pressure value of a second intermediate coordinate point M2 corresponding to the end acquisition point PE and a straight-line distance D3 between the end acquisition point PE and a corresponding second intermediate coordinate point M1;
0169: respectively calculating the pressure value of an interpolation point between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 and the pressure value of an interpolation point between the end acquisition point PE and the corresponding second intermediate coordinate point M2 according to the initial pressure gradient and the end pressure gradient; and
0170: and adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
In some embodiments, processor 12 is also configured to calculate an initial pressure gradient from the pressure values of initial acquisition point PS, the corresponding first intermediate coordinate point M1, and the rectilinear distance D2 between initial acquisition point PS and the corresponding first intermediate coordinate point M1, from the pressure values of end acquisition point PE, the second intermediate coordinate point M2 corresponding to end acquisition point PE, and calculating an ending pressure gradient according to a straight-line distance D3 between the ending acquisition point PE and the corresponding second intermediate coordinate point M1, respectively calculating a pressure value of an interpolation point between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 and a pressure value of an interpolation point between the ending acquisition point PE and the corresponding second intermediate coordinate point M2 according to the initial pressure gradient and the ending pressure gradient, adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
That is, steps 0167 to 0170 may be implemented by the processor 12.
Specifically, the processor 12 obtains an initial pressure gradient according to the pressure difference between the initial acquisition point PS and the corresponding first intermediate coordinate point M1, and the ratio of the linear distance D2 between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 (i.e., M1 in fig. 21), and obtains an end pressure gradient according to the pressure difference between the end acquisition point PE and the corresponding second intermediate coordinate point M2, and the ratio of the linear distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2 (i.e., M4 in fig. 21). Then, the pressure values of the interpolation points (i.e., S1 and S2) between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 are calculated from the initial pressure gradient, and the pressure values of the interpolation points (i.e., S7 and S8) between the end acquisition point PE and the corresponding second intermediate coordinate point M2 are calculated from the end pressure gradient. Finally, the processor 12 adjusts the transparency of the corresponding first map according to the pressure values of the acquisition points, adjusts the transparency of the corresponding second map according to the pressure values of the interpolation points,
referring again to FIG. 21, in some embodiments, the pressure values for first intermediate coordinate point M1 are calculated based on the pressure values for first acquisition point P1 and second acquisition point P2 and the relative positions of first intermediate coordinate point M1 and first acquisition point P1 and second acquisition point P2; the pressure values of second intermediate coordinate point M2 were calculated from the pressure values of second acquisition point P2 and third acquisition point P3, and the relative positions of second intermediate coordinate point M2 and second acquisition point P2 and third acquisition point P3.
Specifically, taking as an example that first intermediate coordinate point M1 and second intermediate coordinate point M2 are respectively a midpoint of a connecting line of first acquisition point P1 and second acquisition point P2 (i.e., at 1/2) and a midpoint of a connecting line of second acquisition point P2 and third acquisition point P3 (i.e., at 1/2), the pressure value of first acquisition point P1 is 10, the pressure value of second acquisition point P2 is 20, and then the pressure value of first intermediate coordinate point M1 is (10+20)/2 ═ 15; similarly, processor 12 may calculate the pressure value for second intermediate coordinate point M2 based on the pressure values for second acquisition point P2 and third acquisition point P3.
Referring again to fig. 2, the writing display system 100 of the present application includes the tablet 20 and the electronic display device 10 of the above-mentioned embodiment. The tablet 20 is configured to receive a writing operation and form a writing track, where the writing track has a plurality of collection points, and the collection points correspond to writing data, where the writing data includes a first coordinate value, writing time, and a pressure value, and the first coordinate value is a coordinate value of the collection point in a coordinate system corresponding to the tablet 20.
The writing display system 100 of the embodiment of the application is through gathering the collection point on a plurality of writing trails, all draw the map in order to restore the shape of stroke to collection point and interpolation point, the transparency of the map that corresponds is changed according to the pressure value of collection point and the pressure value of interpolation point to the depth change of the stroke that has realized between the same stroke, and the depth effect of the stroke of each stroke is confirmed according to the pressure value of collection point and the pressure value of interpolation point, and is higher to the degree of restoration of the stroke depth change of the process of writing.
Referring again to FIG. 2, in some embodiments, the writing display system 100 further includes a stylus 30, and the tablet 20 is configured to receive writing operations from the stylus 30 to form writing data. The user can restore the real writing experience by holding the stylus 30 for writing.
In some embodiments, the stylus 30 includes a pressure sensor 32, the pressure sensor 32 is disposed at a position of the pen tip, the pressure sensor 32 can collect pressure data of the stylus 30 during writing operation on the tablet 20, and the processor 12 can calculate a pressure value of the collection point according to a corresponding relationship between the pressure data and the collection point. When the stylus 30 detects the pressure, only the pressure of the part (i.e., the pen tip) of the stylus 30 contacting with the tablet 20 needs to be detected, and compared with the pressure of the whole writing area detected by the tablet 20, the detection precision is higher, which is beneficial to restoring the depth effect of the pen touch. In the present embodiment, the stylus 30 is a pencil, and the pressure sensor 32 is provided at a position of a tip of the pencil.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations of the above embodiments may be made by those of ordinary skill in the art within the scope of the present application, which is defined by the claims and their equivalents.
Claims (21)
- An adjusting method for restoring a pen touch depth effect is applied to an electronic display device, the electronic display device can communicate with a tablet, and the adjusting method is characterized by comprising the following steps:acquiring writing data of a plurality of acquisition points on a writing track formed when the writing board receives writing operation, wherein the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition points in a coordinate system corresponding to the writing board;converting the first coordinate value into a second coordinate value, wherein the second coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the electronic display device;interpolating among the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point;drawing a mapping for the acquisition points and the interpolation points; andand adjusting the transparency of the map according to the pressure value of the acquisition point and the pressure value of the interpolation point.
- The adjustment method according to claim 1, wherein any three of the acquisition points adjacent to each other in the writing time are sequentially a first acquisition point, a second acquisition point, and a third acquisition point according to the writing time, and interpolating between the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point comprises:and interpolating between the first acquisition point and the third acquisition point according to a quadratic Bezier curve formula by taking the first acquisition point as a starting point, the second acquisition point as a control point and the third acquisition point as an end point to obtain the interpolation point.
- The adjustment method of claim 2, wherein said interpolating between said first acquisition point to said third acquisition point according to a quadratic Bezier curve formula to obtain said interpolated points comprises:calculating a step length according to the linear distance between the first acquisition point and the third acquisition point; andinterpolating between the first acquisition point and the third acquisition point every other step according to a quadratic Bezier curve formula to obtain the interpolation points.
- The adjustment method according to claim 2, wherein the map comprises a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the adjusting the transparency of the map according to the pressure values of the acquisition point and the interpolation point comprises:calculating a pressure gradient according to the pressure value of the first acquisition point, the pressure value of the third acquisition point and the straight-line distance between the first acquisition point and the third acquisition point;calculating a pressure value of the interpolation point according to the pressure gradient; andand adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
- The adjustment method according to claim 1, wherein any three of the acquisition points adjacent to each other in the writing time are sequentially a first acquisition point, a second acquisition point, and a third acquisition point according to the writing time, and interpolating between the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point comprises:interpolating between the first acquisition point and the second acquisition point to obtain a first intermediate coordinate point;interpolating between the second acquisition point and the third acquisition point to obtain a second intermediate coordinate point; andand interpolating between the first intermediate coordinate point and the second intermediate coordinate point according to a quadratic Bezier curve formula by taking the first intermediate coordinate point as a starting point, the second acquisition point as a control point and the second intermediate coordinate point as an ending point to obtain the interpolation point.
- The adjustment method according to claim 5, wherein the interpolating between the first intermediate coordinate point to the second intermediate coordinate point according to the quadratic Bezier curve formula to obtain the interpolated point comprises:calculating a step length according to a linear distance between the first intermediate coordinate point and the second intermediate coordinate point; andand interpolating between the first middle coordinate point and the second middle coordinate point every other step according to a quadratic Bezier curve formula to obtain the interpolation point.
- The adjustment method according to claim 5, wherein the map comprises a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the adjusting the transparency of the map according to the pressure values of the acquisition point and the interpolation point comprises:calculating a pressure gradient according to the pressure value of the first intermediate coordinate point, the pressure value of the second intermediate coordinate point and a linear distance between the first intermediate coordinate point and the second intermediate coordinate point;calculating a pressure value of the interpolation point according to the pressure gradient; andand adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
- The method of conditioning of claim 5, wherein said acquisition points further comprise an initial acquisition point and an end acquisition point, said initial acquisition point being said acquisition point having the earliest writing time; the end acquisition point is the acquisition point of which the pressure value is less than a preset pressure value; the interpolating between the plurality of acquisition points according to the second coordinate value and the writing time to obtain an interpolation point further includes:calculating an initial step length according to the linear distance between the initial point and the corresponding first intermediate coordinate point;interpolating between the initial acquisition point and the corresponding first intermediate coordinate point every other initial step length according to a primary Bezier curve formula to obtain an interpolation point;calculating an ending step length according to the linear distance between the ending acquisition point and the corresponding second intermediate coordinate point; and interpolating between the ending acquisition point and the corresponding second middle coordinate point every other ending step length according to a primary Bezier curve formula to obtain the interpolation point.
- The adjustment method according to claim 8, wherein the map comprises a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the adjusting the transparency of the map according to the pressure value of the acquisition point and the pressure value of the interpolation point comprises:calculating an initial pressure gradient according to the pressure value of the initial acquisition point, the pressure value of the first intermediate coordinate point corresponding to the initial acquisition point and the linear distance between the initial acquisition point and the corresponding first intermediate coordinate point;calculating an ending pressure gradient according to the pressure value of the ending acquisition point, the pressure value of the second intermediate coordinate point corresponding to the ending acquisition point and the linear distance between the ending acquisition point and the corresponding second intermediate coordinate point;calculating a pressure value of the interpolation point between the initial acquisition point and the corresponding first intermediate coordinate point according to the initial pressure gradient, and calculating a pressure value of the interpolation point between the end acquisition point and the corresponding second intermediate coordinate point according to the end pressure gradient; andand adjusting the transparency of the first map according to the pressure value of the acquisition point, and adjusting the transparency of the second map according to the pressure value of the interpolation point.
- The method of conditioning of claim 1, wherein said acquisition points further comprise an initial acquisition point and an end acquisition point, said initial acquisition point being said acquisition point having the earliest writing time; the end acquisition point is the acquisition point of which the pressure value is less than a preset pressure value; the mapping the collection points and the interpolation points comprises:and drawing a map of the initial acquisition point, the end acquisition point, the acquisition point between the initial acquisition point and the end acquisition point and the interpolation point.
- An electronic display device is characterized in that the electronic display device can communicate with a writing board, the writing board is used for receiving writing operation and forming a writing track, a plurality of acquisition points are arranged on the writing track, writing data correspond to the acquisition points, the writing data comprise a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the writing board; the electronic display device comprises a processor, wherein the processor is used for acquiring writing data of a plurality of acquisition points on a writing track formed when the writing board receives writing operation, converting the first coordinate value into a second coordinate value, the second coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the electronic display device, interpolating between the acquisition points according to the second coordinate value and the writing time to obtain an interpolation point, drawing a map on the acquisition points and the interpolation point, and adjusting the transparency of the map according to the pressure values of the acquisition points and the interpolation point.
- The electronic display device of claim 11, wherein any three of the acquisition points that are adjacent to each other in the writing time are sequentially a first acquisition point, a second acquisition point, and a third acquisition point according to the writing time, and the processor is further configured to interpolate between the first acquisition point and the third acquisition point according to a quadratic bezier curve formula with the first acquisition point as a starting point, the second acquisition point as a control point, and the third acquisition point as an ending point to obtain the interpolation point.
- The electronic display device of claim 12, wherein the processor is further configured to calculate a step size based on a linear distance between the first acquisition point and the third acquisition point, and interpolate between the first acquisition point and the third acquisition point for every other step size according to a quadratic bezier curve formula to obtain the interpolated points.
- The electronic display device of claim 12, wherein the map comprises a first map corresponding to the collection point and a second map corresponding to the interpolation point, and wherein the processor is further configured to calculate a pressure gradient according to the pressure value of the first collection point, the pressure value of the third collection point, and a linear distance between the first collection point and the third collection point, calculate the pressure value of the interpolation point according to the pressure gradient, and adjust the transparency of the first map according to the pressure value of the collection point and adjust the transparency of the second map according to the pressure value of the interpolation point.
- The electronic display device of claim 11, wherein any three of the acquisition points that are adjacent in the writing time are a first acquisition point, a second acquisition point, and a third acquisition point in sequence at the writing time, wherein the processor is further configured to interpolate between the first acquisition point and the second acquisition point to obtain a first intermediate coordinate point, interpolate between the second acquisition point and the third acquisition point to obtain a second intermediate coordinate point, and interpolate between the first intermediate coordinate point and the second intermediate coordinate point to obtain the interpolation point according to a quadratic bezier curve formula with the first intermediate coordinate point as a starting point, the second acquisition point as a control point, and the second intermediate coordinate point as an ending point.
- The electronic display device of claim 15, wherein the processor is further configured to calculate a step size according to a linear distance between the first intermediate coordinate point and the second intermediate coordinate point, and interpolate between the first intermediate coordinate point and the second intermediate coordinate point according to a quadratic bezier curve formula for every other step size to obtain the interpolated point.
- The electronic display device according to claim 15, wherein the map comprises a first map corresponding to the collection point and a second map corresponding to the interpolation point, and the processor is further configured to calculate a pressure gradient according to the pressure value of the first intermediate coordinate point, the pressure value of the second intermediate coordinate point, and the linear distance between the first intermediate coordinate point and the second intermediate coordinate point, calculate the pressure value of the interpolation point according to the pressure gradient, and adjust the transparency of the first map according to the pressure value of the collection point and adjust the transparency of the second map according to the pressure value of the interpolation point.
- The electronic display device of claim 15, wherein the map comprises a first map corresponding to the acquisition point and a second map corresponding to the interpolation point, and the acquisition points further comprise an initial acquisition point and an end acquisition point, and the initial acquisition point is the acquisition point with the earliest writing time; the end acquisition point is the acquisition point of which the pressure value is less than a preset pressure value; the processor is further configured to calculate an initial step length according to a linear distance between the initial point and the corresponding first intermediate coordinate point, interpolate between the initial acquisition point and the corresponding first intermediate coordinate point every other initial step length according to a one-time Bezier curve formula to obtain the interpolated point, calculate an end step length according to a linear distance between the end acquisition point and the corresponding second intermediate coordinate point, and interpolate between the end acquisition point and the corresponding second intermediate coordinate point every other end step length according to a one-time Bezier curve formula to obtain the interpolated point.
- The electronic display device according to claim 18, wherein the map comprises a first map corresponding to the collection point and a second map corresponding to the interpolation point, and the processor is further configured to calculate an initial pressure gradient from the pressure value of the initial collection point, the pressure value of the first intermediate coordinate point corresponding to the initial collection point and the linear distance between the initial collection point and the corresponding first intermediate coordinate point, calculate an end pressure gradient from the pressure value of the end collection point, the pressure value of the second intermediate coordinate point corresponding to the end collection point and the linear distance between the end collection point and the corresponding second intermediate coordinate point, calculate a pressure value of the interpolation point between the initial collection point and the corresponding first intermediate coordinate point from the initial pressure gradient, and calculate an end collection point and the corresponding second intermediate coordinate point from the end pressure gradient And adjusting the transparency of the first map according to the pressure value of the acquisition point and adjusting the transparency of the second map according to the pressure value of the interpolation point.
- The electronic display device of claim 11, wherein the acquisition points further comprise an initial acquisition point and an end acquisition point, the initial acquisition point being the acquisition point with the earliest writing time; the end acquisition point is the acquisition point of which the pressure value is less than a preset pressure value; the processor is further configured to map the initial acquisition point, the end acquisition point, and the acquisition points and the interpolation points between the initial acquisition point and the end acquisition point.
- A writing display system, comprising:a stylus pen;the handwriting pen comprises a writing board, a handwriting module and a control module, wherein the writing board is used for receiving writing operation of the handwriting pen and forming a writing track, the writing track is provided with a plurality of acquisition points, the acquisition points correspond to writing data, the writing data comprises a first coordinate value, writing time and a pressure value, and the first coordinate value is a coordinate value of the acquisition point in a coordinate system corresponding to the writing board; andan electronic display device as claimed in any one of claims 11 to 20.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/119127 WO2020113410A1 (en) | 2018-12-04 | 2018-12-04 | Adjustment method, electronic display apparatus and writing display system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113168252A true CN113168252A (en) | 2021-07-23 |
Family
ID=70973707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880097642.4A Pending CN113168252A (en) | 2018-12-04 | 2018-12-04 | Adjusting method, electronic display device and writing display system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113168252A (en) |
WO (1) | WO2020113410A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115205423B (en) * | 2022-09-19 | 2022-12-13 | 北京猎户座信息技术有限公司 | Handwriting method and system based on electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101893945A (en) * | 2009-05-18 | 2010-11-24 | 精博科技股份有限公司 | Handwritten input system with pressure detecting function |
CN102521857A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Angle control method for writing brush shape of electronic writing brush |
CN102520849A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Electronic brush writing method and system |
JP2013538397A (en) * | 2010-08-08 | 2013-10-10 | クアルコム,インコーポレイテッド | Method and system for adjusting display content |
CN107391016A (en) * | 2017-07-20 | 2017-11-24 | 联想(北京)有限公司 | Handwriting input person's handwriting calibration method and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2751720B2 (en) * | 1992-03-25 | 1998-05-18 | 凸版印刷株式会社 | Inspection area setting jig and device for visual inspection machine |
CN100351759C (en) * | 2003-09-17 | 2007-11-28 | 宏碁股份有限公司 | Hand-write pen capable of analog different pen touch |
CN102521856B (en) * | 2011-11-28 | 2013-11-13 | 北京盛世宣合信息科技有限公司 | Writing brush shape changing method for writing of electronic writing brush |
CN103593100B (en) * | 2013-05-21 | 2017-09-29 | 敦泰科技有限公司 | A kind of capacitance plate method of toch control and its relevant device |
CN103955304A (en) * | 2014-05-21 | 2014-07-30 | 友达光电股份有限公司 | Electronic stylus touch system |
-
2018
- 2018-12-04 CN CN201880097642.4A patent/CN113168252A/en active Pending
- 2018-12-04 WO PCT/CN2018/119127 patent/WO2020113410A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101893945A (en) * | 2009-05-18 | 2010-11-24 | 精博科技股份有限公司 | Handwritten input system with pressure detecting function |
JP2013538397A (en) * | 2010-08-08 | 2013-10-10 | クアルコム,インコーポレイテッド | Method and system for adjusting display content |
CN102521857A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Angle control method for writing brush shape of electronic writing brush |
CN102520849A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Electronic brush writing method and system |
CN107391016A (en) * | 2017-07-20 | 2017-11-24 | 联想(北京)有限公司 | Handwriting input person's handwriting calibration method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2020113410A1 (en) | 2020-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112880687B (en) | Indoor positioning method, device, equipment and computer readable storage medium | |
CN102810008B (en) | A kind of air input, method and input collecting device in the air | |
CN102937848B (en) | Method for editing handwritings and electronic equipment | |
CN103206919A (en) | Device and method used for measuring object size in portable terminal | |
TWI480768B (en) | Display method and system with adjustment function | |
JP2015531510A (en) | Absolute and relative positioning sensor cooperation in interactive display system | |
CN104833953B (en) | Multipoint positioning monitoring system and method under a kind of airport non line of sight channel circumstance | |
JP2014192901A (en) | Image processing system and image processing method | |
CN104049874A (en) | Touch handwriting generation method and system of stylus | |
CN103686281A (en) | Method for simulating mouse to control smart television, remote-control unit and mobile terminal | |
CN105159500A (en) | Pressure display method and apparatus for touch screen | |
CN105094440A (en) | Touch screen anti-shaking method and system based on mobile terminal and mobile terminal | |
CN105468279A (en) | Touch screen operation identification method and device, touch screen operation response method and device, and game control method and device | |
CN113168252A (en) | Adjusting method, electronic display device and writing display system | |
CN113848696A (en) | Multi-sensor time synchronization method based on position information | |
EP2650771A2 (en) | Apparatus and method for sensing 3D object | |
CN103838429A (en) | Method and system for conducting drawing on touch screen to achieve writing brush effect | |
KR20190094881A (en) | System of recognizing a continuous gesture | |
CN106559711A (en) | A kind of control method and device of screen touch-control | |
CN105160696A (en) | Computer image drawing optimization method | |
CN101634929B (en) | Method for utilizing controlled media conversion on digital photo frame | |
CN105138269A (en) | Zooming method and system for touch screen | |
CN106471446B (en) | Drawing pen, electronic equipment and drawing practice | |
CN102262492A (en) | Touch control identifying method | |
CN104090719A (en) | Method and system for display content translation according to acceleration variation for mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210723 |
|
WD01 | Invention patent application deemed withdrawn after publication |