WO2020113410A1 - 调节方法、电子显示装置和书写显示系统 - Google Patents

调节方法、电子显示装置和书写显示系统 Download PDF

Info

Publication number
WO2020113410A1
WO2020113410A1 PCT/CN2018/119127 CN2018119127W WO2020113410A1 WO 2020113410 A1 WO2020113410 A1 WO 2020113410A1 CN 2018119127 W CN2018119127 W CN 2018119127W WO 2020113410 A1 WO2020113410 A1 WO 2020113410A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
collection
collection point
interpolation
pressure value
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.)
Ceased
Application number
PCT/CN2018/119127
Other languages
English (en)
French (fr)
Inventor
黄必勇
张宏雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Priority to PCT/CN2018/119127 priority Critical patent/WO2020113410A1/zh
Priority to CN201880097642.4A priority patent/CN113168252A/zh
Publication of WO2020113410A1 publication Critical patent/WO2020113410A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present application relates to the field of input devices, and in particular to an adjustment method for restoring the effect of stroke depth, an electronic display device, and a writing display system.
  • the current electronic writing board usually uses a stroke as a texture, and then when setting the transparency of the stroke, each texture is set with a transparency to restore the effect of different shades of the stroke when writing, however, a stroke is used as a texture To change the transparency, it is impossible to restore the change in the depth of the strokes between the same strokes in the real writing process.
  • the embodiments of the present application provide an adjustment method, an electronic display device, and a writing display system for restoring the stroke depth effect, which can enable the change of the stroke depth between the same strokes during the restoration writing process.
  • the present application provides an adjustment method for restoring the effect of pen touch depth, which is applied to an electronic display device, and the electronic display device can communicate with a writing board.
  • the adjusting method includes acquiring the writing track formed when the writing board receives a writing operation Writing data of multiple collection points, wherein the writing data includes a first coordinate value, a 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 writing tablet Converting the first coordinate value to a second coordinate value, the second coordinate value is the coordinate value of the collection point under the coordinate system corresponding to the electronic display device; according to the second coordinate value and the The writing time is interpolated between a plurality of the collection points to obtain an interpolation point; mapping the collection point and the interpolation point; and adjusting according to the pressure value of the collection point and the pressure value of the interpolation point Transparency of the texture.
  • the present application also provides an electronic display device capable of communicating with a writing board, the writing board is used to receive a writing operation to receive a writing operation and form a writing track, the writing track has a plurality of collection points, A plurality of collection points correspond to writing data, wherein the writing data includes a first coordinate value, a writing time, and a pressure value, and the first coordinate value is a coordinate of the collection point under a coordinate system corresponding to the writing tablet Value; the electronic display device includes a processor for acquiring writing data of a plurality of collection points on a writing track formed when the writing pad receives a writing operation, and converting the first coordinate value into a second A coordinate value, the second coordinate value is a coordinate value of the collection point in a coordinate system corresponding to the electronic display device, and between a plurality of collection points according to the second coordinate value and the writing time Perform interpolation to obtain an interpolation point, draw a texture on the collection point and the interpolation point, and adjust the transparency of the texture according to the pressure value of the collection
  • the present application also provides a writing display system, which includes a writing board and the above electronic display device.
  • the writing board is used to receive a writing operation and form a writing trajectory, the writing trajectory has a plurality of collection points, and the plurality of collection points correspond to writing data, wherein the writing data includes a first coordinate value, writing time and pressure Value, the first coordinate value is the coordinate value of the collection point in the coordinate system corresponding to the tablet.
  • the adjustment method, the electronic display device and the writing display system of the embodiment of the present application collect the collection points on the multiple writing tracks, and map the collection points and the interpolation points to restore the shape of the stroke, according to the pressure values and the interpolation points of the collection points Pressure value to change the transparency of the corresponding texture, so as to achieve the change of the depth of the stroke between the same stroke, and the depth effect of the stroke of each stroke is determined according to the pressure value of the collection point and the pressure value of the interpolation point.
  • the degree of change of the brush stroke depth is higher.
  • FIG. 1 is a schematic flowchart of an adjustment method in some embodiments of the present application.
  • FIG. 2 is a schematic structural diagram of a writing display system according to some embodiments of the present application.
  • FIG. 3 is a schematic flowchart of an adjustment method of some embodiments of the present application.
  • FIG. 4 is a schematic flowchart of an adjustment method of some embodiments of the present application.
  • FIG. 5 is a schematic diagram of a scene of an adjustment method in some embodiments of the present application.
  • FIG. 6 is a schematic flowchart of an adjustment method of some embodiments of the present application.
  • FIG. 7 is a schematic diagram of the adjustment method of some embodiments of the present application.
  • FIG. 8 is a schematic flowchart of an adjustment method in some embodiments of the present application.
  • 9 and 10 are schematic diagrams of the adjustment method of some embodiments of the present application.
  • 11 is a schematic flowchart of an adjustment method of some embodiments of the present application.
  • 15 and 16 are schematic flowcharts of adjustment methods in certain embodiments of the present application.
  • FIG. 17 is a schematic diagram of the adjustment method of some embodiments of the present application.
  • 18 to 20 are schematic flowcharts of the adjustment method of some embodiments of the present application.
  • FIG. 21 is a schematic diagram of the adjustment method of some embodiments of the present application.
  • 22 is a schematic flowchart of an adjustment method of some embodiments of the present application.
  • the adjustment method according to the embodiment of the present application is applied to the electronic display device 10.
  • the electronic display device 10 can communicate with the tablet 20.
  • the adjustment method includes the following steps:
  • the writing board 20 receives writing data of a plurality of collection points on a writing track formed during a writing operation, where the writing data includes a first coordinate value, a writing time and a pressure value, and the first coordinate value is the collection point on the writing board 20 coordinate values under the corresponding coordinate system;
  • 015 Draw maps on acquisition points and interpolation points.
  • 016 Adjust the transparency of the map according to the pressure value at the collection point and the pressure value at the interpolation point.
  • the electronic display device 10 may be a mobile phone, a tablet computer, a notebook computer, a smart wearable device, etc.
  • the electronic display device 10 can communicate with the writing pad 20, and the writing pad 20 is used to receive writing operations and form a writing track, writing There are multiple collection points on the trajectory, and the multiple collection points correspond to the writing data, where the writing data includes the first coordinate value, the writing time and the pressure value, and the first coordinate value is the collection point under the coordinate system corresponding to the writing board 20 Coordinate value.
  • the electronic display device 10 includes a processor 12 for acquiring writing data of a plurality of collection points on a writing trajectory formed by the writing pad 20 when receiving a writing operation, converting the first coordinate value into the second coordinate value, and according to the first
  • the two coordinate values and writing time are interpolated between multiple collection points to obtain interpolation points, map the collection points and interpolation points, and adjust the transparency of the map according to the pressure values of the multiple collection points and interpolation points.
  • the second coordinate value is the coordinate value of the collection point in the coordinate system corresponding to the electronic display device 10.
  • step 011, step 012, step 013, step 015 and step 016 may be executed by the processor 12.
  • the writing pad 20 is used to receive a user’s writing operation and form a writing trajectory.
  • the writing trajectory has multiple collection points (P1, P2, etc.), and the multiple collection points (P1, P2, etc.) correspond to writing. data.
  • the collection point is obtained when the user writes on the tablet 20, and the tablet 20 samples the user's writing trajectory at a predetermined sampling frequency (such as 300 collection points per second), and the writing data is included in the tablet 20 coordinate system
  • the processor 12 converts the first coordinate value in the coordinate system of the tablet 20 into the second coordinate value in the coordinate system of the corresponding electronic display device 10.
  • the processor 12 interpolates between the collection points according to the second coordinate value of the collection point and the writing time to obtain interpolation points (S1, S2, etc.), where the interpolation point is not actually obtained by the tablet 20, but the processor 12 is It is obtained by logically interpolating the written track.
  • the processor 12 maps the collection points (P1 and P5) and the interpolation points (S1 to S8).
  • the writing data of the interpolation point can be calculated from the writing data of the two collection points adjacent to the interpolation point.
  • the interpolation points S1 to S8 can be calculated from the writing data of the collection point P1 and the collection point P2.
  • the adjustment method of the embodiment of the present application collects multiple collection points (P1, P2, etc.) on the writing track, and maps the collection point and the interpolation point, and changes the correspondence according to the pressure value of the collection point and the pressure value of the interpolation point
  • the transparency of the texture of the map, so as to achieve the change of the depth of the stroke between the same stroke, and the effect of the depth of the stroke of each stroke is determined according to the pressure value of the collection point and the pressure value of the interpolation point. Degree is higher.
  • the adjustment method further includes:
  • Step 011 includes the following steps:
  • the processor 12 is also used to determine whether the tablet 20 is in communication with the electronic display device 10, and when the tablet 20 is in communication with the electronic display device 10, the tablet 20 is acquired and sent to the electronic display device 10 Writing data.
  • step 010 and step 0112 can be implemented by the processor 12.
  • the processor 12 determines whether the tablet 20 and the electronic display device 10 are in communication connection.
  • the communication connection can be either a wired connection or a wired connection. It can be a wireless connection, a wired connection such as a USB connection, etc., and a wireless connection such as a Bluetooth connection.
  • the processor 12 can obtain the writing data sent from the tablet 20 to the electronic display device 10, and the processor 12 can obtain the writing data by: the processor 12 controls the communication module to send a request to The writing board 20, the writing board 20 feeds back the writing data to the processor 12 through the communication module; it may also be: after the communication connection, the writing board 20 actively sends the writing data to the processor 12 through the communication module.
  • step 012 includes the following steps:
  • 0124 Calculate the horizontal coordinate of the second coordinate value according to the scaling factor and the horizontal coordinate of the first coordinate value, and calculate the vertical coordinate of the second coordinate value according to the scaling factor and the vertical coordinate of the first coordinate value.
  • 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
  • the scaling factor between the first coordinate value and the second coordinate value is obtained 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 the horizontal coordinate calculation based on the scaling factor and the first coordinate value
  • the abscissa of the second coordinate value, and the ordinate of the second coordinate value are calculated according to the scaling factor and the ordinate of the first coordinate value.
  • the size of the writing pad 20 and the size of the electronic display device 10 are generally different, so the first coordinate value of the acquisition point acquired on the writing pad 20 cannot be directly applied to the electronic display device 10, and needs to be converted.
  • the width and height of the area 22, 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; or, the scaling factor f is based on The ratio PH/BH of the length PH of the display area 14 of the electronic display device 10 and the length BH of the writing area 22 of the tablet 20 is determined.
  • the processor 12 may multiply the horizontal and vertical coordinates of the first coordinate value by a scaling factor to convert to the second coordinate value.
  • the scaling factor f1 of the horizontal coordinate is based on the writing area 22 of the tablet 20
  • any three collection points adjacent to the writing time are the first collection point P1, the second collection point P2 and the third collection point in sequence according to the writing time.
  • P3, step 013 includes the following steps:
  • 0131 Taking the first collection point P1 as the start point, the second collection point P2 as the control point, and the third collection point P3 as the end point, according to the quadratic Bezier curve formula at the first collection point P1 to the third collection point P3 Interpolate between to get the interpolation point.
  • the processor 12 is further configured to take the first collection point P1 as a start point, the second collection point P2 as a control point, and the third collection point P3 as an end point, according to the quadratic Bezier curve formula in Interpolation is performed between the first collection point P1 and the third collection point P3 to obtain an interpolation point.
  • step 0131 can be implemented by the processor 12.
  • each stroke includes multiple collection points
  • the three collection points adjacent to the writing time are the first collection point P1, the second collection point P2, and the third collection point P3, and one of the three collection points can be drawn.
  • the quadratic Bezier curve takes the first collection point P1 as the start point, the second collection point P2 as the control point, and the third collection point P3 as the end point, and then according to the quadratic Bezier curve formula at the first collection point P1 Interpolate with the third acquisition point P3 to obtain the interpolation point.
  • the acquisition points (P1, P2, P3) and the interpolation points (S1 to S8) are on the quadratic Bezier curve.
  • the acquisition points (P1 and P5) and the interpolated points (S1 to S8) are used to draw textures, which can make the strokes smoother and display better.
  • the earliest collection point of each stroke writing time is the first first collection point P1.
  • the third collection point P3 in (P1 ⁇ P3) can be used as the first collection point P1 of the next three adjacent collection points (that is, P3 as the first collection point P1, P4 as the second collection point P2 and P5 as the first Three acquisition points (P3), so that there are interpolation points between any two adjacent acquisition points (between P1 and P2, between P2 and P3, between P3 and P4, and between P4 and P5) of the entire stroke.
  • step 013 further includes the following steps:
  • 0132 Calculate the step size according to the straight-line distance D between the first collection point P1 and the third collection point P3;
  • 0133 Interpolate between the first collection point P1 and the third collection point P3 at every other step according to the quadratic Bezier curve formula to obtain an interpolation point.
  • the processor 12 is further configured to calculate the step size according to the straight-line distance D between the first collection point P1 and the third collection point P3, and according to the quadratic Bezier curve formula Interpolate between the collection point P1 and the third collection point P3 to obtain the interpolation point.
  • step 0132 and step 0133 can be implemented by the processor 12.
  • the current electronic display device 10 generally displays in units of pixels, so the interpolation is also performed in units of pixels when performing interpolation, and the processor 12 first calculates the first collection point P1 and the third collection point P3
  • each acquisition point (P1, P2, P3) or interpolation point (S1 to S8) occupies one pixel.
  • FIG. 9 when drawing, one texture is drawn on each of P1 and P3, and one texture is drawn on each of interpolation points S1 to S4 between P1 and P3.
  • the step size can be 2/D, 3/D, etc., without interpolating once for each pixel, which can reduce the amount of calculation.
  • each texture will occupy multiple pixels.
  • the texture is square and the pixels occupied are X*X.
  • the step size can be determined according to the number of pixels occupied by the width or length of the texture, as shown in Figure 10.
  • the step size can be 2, because the texture occupies 2 pixels, so every two pixels between P1 and P3 are interpolated to get the interpolation points (S1 to S4) just so that Each map corresponds to a collection point or interpolation point, so that the transparency of the corresponding map can be adjusted according to the pressure values of the collection point and the interpolation point.
  • FIG. 9 and FIG. 10 are exemplary descriptions, and are not intended to limit the present application.
  • the collection point further includes an initial collection point PS and an end collection point PE.
  • the initial collection point PS is the collection point with the earliest writing time;
  • the end collection point PE is pressure
  • Step 015 includes the following steps:
  • 0152 Map the initial collection point PS, the end collection point PE, and the collection point and the interpolation point between the initial collection point PS and the end collection point PE.
  • the processor 12 is further configured to map 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.
  • step 0152 can be implemented by the processor 12.
  • the user when writing, the user generally writes one stroke after another stroke, and the collection point with the earliest writing time (ie, the first collection point P1 with the earliest writing time) is the initial collection point PS of the stroke.
  • the collection point (P1, P2, P3, etc.) at the end of each stroke is subject to the smallest pressure, so it can be used as a stroke end collection point PE when a collection point with a pressure value less than a predetermined pressure value is detected.
  • the processor 12 draws a texture between the initial collection point PS and the end collection point PE to achieve the display of a stroke, and when the user writes the next stroke, the writing time is re-timed to obtain the next initial collection point PS and the corresponding end collection Point PE, so that you can accurately break the stroke between different strokes.
  • the writing time is re-timed to obtain the next initial collection point PS and the corresponding end collection Point PE, so that you can accurately break the stroke between different strokes.
  • some strokes only get two collection points or even one collection point during the writing process may only get two collection points (ie P1 and P2), that is, P1 is the initial collection Points PS and P2 are the end collection points PE, and the processor 12 can interpolate according to the first-order Bezier curve formula (that is, linear interpolation formula) to obtain interpolation points (that is, S1 and S2), and then collect the points (P1 and P2) and Interpolate points (S1 and S2) to draw the map.
  • P1 that is, the initial collection point PS and the end collection point PE are both P1
  • the processor 12 draws a map on the collection point P1.
  • the end acquisition point PE is the second acquisition point P2.
  • the first-order Bezier curve formula that is, linear interpolation formula
  • the end acquisition point PE and the corresponding first acquisition point Interpolate between points P1 to obtain interpolation points.
  • the processor 12 interpolates between P3 and P4 through a Bezier curve formula (that is, a linear interpolation formula) to obtain an interpolation point (that is, S9, S10, and S11). .
  • the texture includes a first texture corresponding to the acquisition point and a second texture corresponding to the interpolation point.
  • Step 016 includes:
  • 0161 Calculate the pressure gradient according to the pressure value of the first collection point P1, the pressure value of the third collection point P3, and the linear distance D between the first collection point P1 and the third collection point P3;
  • 0163 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 processor 12 is further configured to determine the linear distance D between the first collection point P1 and the third collection point P3 according to the pressure value of the first collection point P1, the pressure value of the third collection point P3 Calculate the pressure gradient, 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.
  • step 0161, step 0162 and step 0163 can be implemented by the processor 12.
  • the processor 12 firstly uses the pressure value of the first collection point P1, the pressure value of the third collection point P3, and between the first collection point P1 and the third collection point P3
  • the straight line distance D calculates the pressure gradient, that is, the ratio of the pressure difference between the first collection point P1 and the third collection point P3 to the distance D, and then calculates the pressure value of the interpolation point according to the pressure gradient. For example, as shown in FIG.
  • the processor 12 adjusts the transparency of the corresponding first texture according to the pressure value of the collection point, and adjusts the transparency of the corresponding second texture according to the pressure value of the interpolation point, thereby realizing the restoration of the shade effect between strokes, and the restoration effect is relatively it is good.
  • any three collection points adjacent to the writing time are the first collection point P1, the second collection point P2 and the third collection point in sequence according to the writing time.
  • P3, step 013 includes the following steps:
  • 0134 Interpolate between the first collection point P1 and the second collection point P2 to obtain the first intermediate coordinate point M1;
  • 0136 Taking the first intermediate coordinate point M1 as the starting point, the second acquisition point P2 as the control point, and the second intermediate coordinate point M2 as the ending point, according to the quadratic Bezier curve formula, from the first intermediate coordinate point M1 to the second Interpolation is performed between the intermediate coordinate points M2 to obtain interpolation points.
  • the processor 12 is further configured to interpolate between the first collection point P1 and the second collection point P2 to obtain the first intermediate coordinate point M1, the second collection point P2 and the third collection point P3 Interpolate between to get the second intermediate coordinate point M2, and take the first intermediate coordinate point M1 as the starting point, the second acquisition point P2 as the control point, and the second intermediate coordinate point M2 as the end point, according to the second Bezier
  • the curve formula interpolates between the first intermediate coordinate point M1 and the second intermediate coordinate point M2 to obtain an interpolation point.
  • M2, P3 and M3 can also draw a quadratic Bezier curve, where the second intermediate coordinate point M2 can be used as the starting point of the next quadratic Bezier curve (ie the first intermediate coordinate point M1), and the collection point P3 is used as the control point of the next quadratic Bezier curve.
  • the collection point P3 and the collection point P4 are interpolated to obtain M3 (that is, the second intermediate coordinate point M2) as the next quadratic Bezier curve
  • the end point of, that is to say, each acquisition point (such as P2, P3, etc.) between the initial acquisition point PS and the end acquisition point PE can be used as the control point of each quadratic Bezier curve.
  • step 0134, step 0135 and step 0136 may be implemented by the processor 12.
  • the first intermediate coordinate point M1 is an intermediate point between the first acquisition point P1 and the second acquisition point P2
  • the second intermediate coordinate point M2 is the second acquisition point P2 and the third The middle point of collection point P3. In this way, the calculation of the first intermediate coordinate point M1 and the second intermediate coordinate point M2 is more convenient.
  • the first intermediate coordinate point M1 and the second intermediate coordinate point M2 are the midpoint (ie, 1/2) of the line connecting the first collection point P1 and the second collection point P2, and the second collection point P2 and the second At the midpoint (ie 1/2) of the connection line of the three collection points P3, the writing data of the first intermediate coordinate point M1 is equal to half of the sum of the writing data of the first collection point P1 and the second collection point P2.
  • the coordinate of the first collection point P1 is (1,3)
  • the coordinate of the second collection point P2 is (3,5)
  • the coordinate of the first intermediate coordinate point M1 is ((1+3)/2, (3+5)/2), which is (2,4).
  • the calculator 12 may calculate the writing data of the second intermediate coordinate point M2 according to the writing data of the second collection point P2 and the third collection point P3.
  • the first intermediate coordinate point M1 may also be located at 1/3 of the line connecting the first collection point P1 and the second collection point P2 and close to the first collection point P1
  • the second intermediate coordinate point M2 may also Located at 1/3 of the line connecting the second collection point P2 and the third collection point P3 and close to the second collection point P2; or, the first intermediate coordinate point M1 may also be located at the first collection point P1 and the second collection point P2 1/3 of the connection line and close to the second collection point P2, the second intermediate coordinate point M2 can also be located at 1/3 of the connection line of the second collection point P2 and the third collection point P3 and close to the third collection point P2; no restrictions here.
  • the calculation method of the above situation and the first intermediate coordinate point M1 and the second intermediate coordinate point M2 are the midpoint of the connection of the first collection point P1 and the second collection point P2 and the second collection point P2 and the third collection point P3, respectively
  • the calculation method at the midpoint of the connection is basically similar, and will not be repeated here.
  • step 013 further includes the following steps:
  • 0138 Interpolate between the first intermediate coordinate point M1 and the second intermediate coordinate point M2 at every other step according to the quadratic Bezier curve formula to obtain an interpolation point.
  • the processor 12 is further configured to calculate the step size according to the straight-line distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2, and every other step according to the quadratic Bezier curve formula The length is interpolated between the first intermediate coordinate point M1 to the second intermediate coordinate point M2 to obtain an interpolation point.
  • step 0137 and step 0138 can be implemented by the processor 12.
  • the processor 12 calculates the step size according to the straight-line distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2, and the calculation method is the same as that mentioned above with the first acquisition point P1 as the starting point and the second acquisition Point P2 is the control point and the method for calculating the step length when the third collection point P3 is the end point is also based on the linear distance D1 (the number of pixels separated by the first intermediate coordinate point M1 and the second intermediate coordinate point M2) The reciprocal of the number) is the step size. Then interpolate every other step to get the interpolation points (S1, S2, etc.).
  • the texture includes a first texture corresponding to the acquisition point and a second texture corresponding to the interpolation point.
  • Step 016 includes the following steps:
  • 0164 Calculate the 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 the linear distance D1 between the first intermediate coordinate point M1 and the second intermediate coordinate point M2;
  • 0166 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 processor 12 is further configured to: according to the pressure value of the first intermediate coordinate point M1, the pressure value of the second intermediate coordinate point M2, and between the first intermediate coordinate point M1 and the second intermediate coordinate point M2
  • the straight line distance D1 calculates the pressure gradient, calculates the pressure value of the interpolation point according to the pressure gradient, and adjusts the transparency of the first map according to the pressure value of the collection point, and adjusts the transparency of the second map according to the pressure value of the interpolation point.
  • step 0164, step 0165 and step 0166 may be implemented by the processor 12.
  • the processor 12 first calculates the first intermediate coordinate point M1 and the second intermediate coordinate according to the writing data of the first collection point P1, the second collection point P2, and the third collection point P3 At the writing data of the point M2, after calculating the writing data of the first intermediate coordinate point M1 and the second intermediate coordinate point M2, the processor 12 then calculates the pressure value and the straight line according to the first intermediate coordinate point M1 and the second intermediate coordinate point M2
  • the pressure gradient is calculated from the distance D1, and then the pressure value of the interpolation point (S1, S2, etc.) is calculated according to the pressure gradient.
  • the processor 12 adjusts the transparency of the corresponding first texture according to the pressure value of the collection point, and adjusts the transparency of the corresponding second texture according to the pressure value of the interpolation point, thereby realizing the restoration of the shade effect between strokes.
  • the pressure gradient, the pressure value of the interpolation point, and the calculation method of the transparency are the same as the above-mentioned calculation pressure when the first collection point P1 is the start point, the second collection point P2 is the control point, and the third collection point P3 is the end point Gradient, interpolation point and transparency are calculated in the same way, and will not be repeated here.
  • the collection point further includes an initial collection point PS and an end collection point PE.
  • the initial collection point PS is the collection point with the earliest writing time;
  • the end collection point PE is pressure
  • the collection point whose value is less than the predetermined pressure value;
  • Step 013 includes the following steps:
  • the processor 12 is further configured to calculate an initial step size according to the straight-line distance D2 between the initial point and the corresponding first intermediate coordinate point M1, and according to a Bezier curve formula, every other initial step size is Interpolate between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 to obtain an interpolation point, calculate the end step based on the distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2, and based on the first shell The Serre curve formula interpolates between the end acquisition point PE and the corresponding second intermediate coordinate point M2 every other end step to obtain an interpolation point.
  • step 0139, step 0140 and step 0141 can be implemented by the processor 12.
  • 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 determines the initial point and the corresponding first intermediate coordinate point M1 (ie The linear distance D2 between M1) in Fig. 21 calculates the initial step size, and then interpolates every other initial step size according to a Bezier curve formula to obtain an interpolation point (ie, S1 and S2).
  • the acquisition ends There are only two points between the point PE and the corresponding second intermediate acquisition point.
  • the processor 12 calculates the end step based on the distance D3 between the end acquisition point PE and the corresponding second intermediate coordinate point M2 (ie, M4 in FIG. 21) , And then interpolate every other end step to get an interpolation point (ie S7 and S8).
  • the calculation method of the initial step size and the end step size is the same as the calculation method of the step size mentioned above, which will not be repeated here.
  • the texture includes a first texture corresponding to the acquisition point and a second texture corresponding to the interpolation point.
  • Step 016 further includes the following steps:
  • 0167 Calculate the initial value based on the pressure value of the initial collection point PS, the pressure value of the first intermediate coordinate point M1 corresponding to the initial collection point PS, and the linear distance D2 between the initial collection point PS and the corresponding first intermediate coordinate point M1 Pressure gradient
  • 0169 Calculate the pressure value of the interpolation point between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 according to the initial pressure gradient and the end pressure gradient, and between the end acquisition point PE and the corresponding second intermediate coordinate point M2 The pressure value at the interpolation point of;
  • 0170 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 processor 12 is further configured to determine the pressure value of the initial acquisition point PS, the pressure value of the corresponding first intermediate coordinate point M1, and between the initial collection point PS and the corresponding first intermediate coordinate point M1
  • the straight line distance D2 calculates the initial pressure gradient, according to the pressure value of the end collection point PE, the pressure value of the second intermediate coordinate point M2 corresponding to the end collection point PE, and the end collection point PE and the corresponding second intermediate coordinate point M1
  • the linear distance D3 between the end pressure gradient is calculated, the pressure value of the interpolation point between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 is calculated according to the initial pressure gradient and the end pressure gradient, and the end acquisition point PE and the corresponding
  • the pressure value of the interpolation point between the second intermediate coordinate point M2, and the transparency of the first texture are adjusted according to the pressure value of the collection point, and the transparency of the second texture is adjusted according to the pressure value of the interpolation point.
  • Step 0167 to Step 0170 can be implemented by the processor 12.
  • the processor 12 is based on the pressure difference between the initial acquisition point PS and the corresponding first intermediate coordinate point M1, and the straight line between the initial acquisition point PS and the corresponding first intermediate coordinate point M1 (ie, M1 in FIG. 21)
  • the ratio of the distance D2 to obtain the initial pressure gradient according to the pressure difference between the end acquisition point PE and the corresponding second intermediate coordinate point M2, and the end acquisition point PE and the corresponding second intermediate coordinate point M2 (that is, M4 in FIG. 21)
  • the ratio of the straight-line distance D3 between them is the end pressure gradient.
  • the calculation method of the initial pressure gradient and the end pressure gradient is the same as the calculation method of the pressure gradient mentioned above, which will not be repeated here.
  • the processor 12 calculates the transparency of the corresponding first texture according to the pressure value of the collection point, and adjusts the transparency of the corresponding second texture according to the pressure value of the interpolation point,
  • the pressure value of the first intermediate coordinate point M1 is based on the pressure values of the first collection point P1 and the second collection point P2, and the first intermediate coordinate point M1 and the first collection point The relative position of P1 and the second collection point P2 is calculated; the pressure value of the second intermediate coordinate point M2 is based on the pressure values of the second collection point P2 and the third collection point P3, and the second intermediate coordinate point M2 and the second collection point The relative position of P2 and the third collection point P3 is calculated.
  • first intermediate coordinate point M1 and the second intermediate coordinate point M2 are respectively the midpoint (ie 1/2) of the line connecting the first collection point P1 and the second collection point P2 and the second collection point P2 and
  • the midpoint (ie, 1/2) of the connection line of the third collection point P3 the pressure value of the first collection point P1 is 10, and the pressure value of the second collection point P2 is 20, then the first intermediate coordinate point M1
  • the writing display system 100 of the present application includes a writing pad 20 and the electronic display device 10 of the above embodiment.
  • the writing board 20 is used to receive a writing operation and form a writing trajectory.
  • the writing trajectory has a plurality of collection points, and the plurality of collection points correspond to writing data, where the writing data includes a first coordinate value, a writing time and a pressure value, and the first coordinate
  • the value is the coordinate value of the collection point in the coordinate system corresponding to the tablet 20.
  • the writing display system 100 collects a plurality of collection points on a writing track, and draws a texture on the collection point and the interpolation point to restore the shape of the stroke, and changes the correspondence according to the pressure value of the collection point and the pressure value of the interpolation point
  • the transparency of the texture of the map thus achieving the change of the depth of the stroke between the same stroke, and the depth of the stroke of each stroke is determined according to the pressure value of the collection point and the pressure value of the interpolation point, and the restoration of the change of the depth of the stroke of the writing process Degree is higher.
  • the writing display system 100 further includes a stylus 30, and the writing board 20 is used to receive the writing operation of the stylus 30 to form writing data.
  • the user can restore the true writing experience by holding the stylus pen 30 for writing operations.
  • the stylus 30 includes a pressure sensor 32, and the pressure sensor 32 is disposed at the position of the tip of the pen.
  • the pressure sensor 32 can collect pressure data when the stylus 30 performs a writing operation on the tablet 20. The corresponding relationship between the data and the collection point can be calculated to obtain the pressure value of the collection point.
  • the stylus 30 detects the pressure, it is only necessary to detect the pressure of the part (ie, the pen tip) that the stylus 30 contacts with the writing pad 20. Compared with the detection of the pressure of the entire writing area through the writing pad 20, the detection accuracy is higher. It is beneficial to restore the depth effect of brush strokes.
  • the stylus 30 is a pencil, and the pressure sensor 32 is provided at the position of the tip of the pencil.

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

一种还原笔触深浅效果的调节方法、电子显示装置(10)和书写显示系统(100)。调节方法应用于书写显示系统(100),电子显示装置(10)能够与写字板(20)通信,调节方法包括以下步骤:获取写字板(20)接收书写操作时形成的书写轨迹上的多个采集点的书写数据(011),其中,书写数据包括第一坐标值、书写时间和压力值,第一坐标值为采集点在写字板(20)对应的坐标系下的坐标值;将第一坐标值转换为第二坐标值,第二坐标值为采集点在电子显示装置(10)对应的坐标系下的坐标值(012);根据第二坐标值和书写时间在多个采集点之间进行插值以得到插值点(013);对采集点和插值点绘制贴图(015);及根据采集点的压力值和插值点的压力值调节贴图的透明度(016)。

Description

调节方法、电子显示装置和书写显示系统 技术领域
本申请涉及输入设备领域,特别涉及一种还原笔触深浅效果的调节方法、电子显示装置和书写显示系统。
背景技术
目前的电子写字板在书写时,通常以一个笔画作为一个贴图,然后在进行笔画的透明度设置时,每个贴图设置一个透明度以还原书写时笔画深浅不一的效果,然而,一个笔画作为一个贴图来改变透明度,无法还原真实书写过程中同一笔画之间的笔触的深浅变化。
发明内容
本申请的实施例提供一种还原笔触深浅效果的调节方法、电子显示装置和书写显示系统,能够使得还原书写过程中同一笔画之间的笔触深浅变化。
本申请提供一种还原笔触深浅效果的调节方法,应用于电子显示装置,所述电子显示装置能够与写字板通信,所述调节方法包括获取所述写字板接收书写操作时形成的书写轨迹上的多个采集点的书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值;将所述第一坐标值转换为第二坐标值,所述第二坐标值为所述采集点在所述电子显示装置对应的坐标系下的坐标值;根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点;对所述采集点和所述插值点绘制贴图;及根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度。
本申请还提供一种电子显示装置,所述电子显示装置能够与写字板进行通信,所述写字板用于接收书写操作接收书写操作并形成书写轨迹,所述书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值;所述电子显示装置包括处理器,所述处理器用于获取所述写字板接收书写操作时形成的书写轨迹上的多个采集点的书写数据、将所述第一坐标值转换为第二坐标值,所述第二坐标值为所述采集点在所述电子显示装置对应的坐标系下的坐标值、根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点、对所述采集点和所述插值点绘制贴图、及根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度。
本申请还提供一种书写显示系统,所述书写显示系统包括写字板和上述电子显示装置。 所述写字板用于接收书写操作并形成书写轨迹,所述书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值。
本申请实施方式的调节方法、电子显示装置和书写显示系统通过采集多个书写轨迹上的采集点,对采集点和插值点均绘制贴图以还原笔画的形状,根据采集点的压力值和插值点的压力值来改变对应的贴图的透明度,从而实现了同一笔画之间的笔触的深浅变化,且每一笔画的笔触的深浅效果根据采集点的压力值和插值点的压力值确定,对于书写过程的笔触深浅变化的还原度较高。
本申请的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施方式的实践了解到。
附图说明
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:
图1是本申请某些实施方式的调节方法的流程示意图。
图2是本申请某些实施方式的书写显示系统的结构示意图。
图3是本申请某些实施方式的调节方法的流程示意图。
图4是本申请某些实施方式的调节方法的流程示意图。
图5是本申请某些实施方式的调节方法的场景示意图。
图6是本申请某些实施方式的调节方法的流程示意图。
图7是本申请某些实施方式的调节方法的原理示意图。
图8是本申请某些实施方式的调节方法的流程示意图。
图9和图10是本申请某些实施方式的调节方法的原理示意图。
图11是本申请某些实施方式的调节方法的流程示意图。
图12至图14是本申请某些实施方式的调节方法的原理示意图。
图15和图16是本申请某些实施方式的调节方法的流程示意图。
图17是本申请某些实施方式的调节方法的原理示意图。
图18至图20是本申请某些实施方式的调节方法的流程示意图。
图21是本申请某些实施方式的调节方法的原理示意图。和
图22是本申请某些实施方式的调节方法的流程示意图。
具体实施方式
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。
请参阅图1至图2,本申请实施方式的调节方法应用于电子显示装置10,电子显示装置10能够与写字板20通信,调节方法包括以下步骤:
011:获取写字板20接收书写操作时形成的书写轨迹上的多个采集点的书写数据,其中,书写数据包括第一坐标值、书写时间和压力值,第一坐标值为采集点在写字板20对应的坐标系下的坐标值;
012:将第一坐标值转换为第二坐标值,第二坐标值为采集点在电子显示装置10对应的坐标系下的坐标值;
013:根据第二坐标值和书写时间在多个采集点之间进行插值以得到插值点;
015:对采集点和插值点绘制贴图;及
016:根据采集点的压力值和插值点的压力值调节贴图的透明度。
本申请实施方式的电子显示装置10可以是手机、平板电脑、笔记本电脑、智能穿戴设备等,电子显示装置10能够与写字板20进行通信,写字板20用于接收书写操作并形成书写轨迹,书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,书写数据包括第一坐标值、书写时间和压力值,第一坐标值为采集点在写字板20对应的坐标系下的坐标值。电子显示装置10包括处理器12,处理器12用于获取写字板20接收书写操作时形成的书写轨迹上的多个采集点的书写数据、将第一坐标值转换为第二坐标值、根据第二坐标值和书写时间在多个采集点之间进行插值以得到插值点、对采集点和插值点绘制贴图、及根据多个采集点和插值点的压力值调节贴图的透明度。其中,第二坐标值为采集点在电子显示装置10对应的坐标系下的坐标值。
也即是说,步骤011、步骤012、步骤013、步骤015和步骤016可以由处理器12执行。
具体地,请结合图7,写字板20用于接收用户书写操作并形成书写轨迹,书写轨迹上具有多个采集点(P1、P2等),多个采集点(P1、P2等)对应有书写数据。其中,采集点为用户在写字板20上书写时,写字板20按预定采样频率(如每秒采集300个采集点)对用户的书写轨迹进行采样得到,书写数据包括在写字板20坐标系下的第一坐标值、采集点的书写时间及采集点的压力值。处理器12将写字板20坐标系下的第一坐标值转换为对应的电子显示装置10坐标系下的第二坐标值。处理器12根据采集点的第二坐标值和书写时间在采集点之间进行插值得到插值点(S1、S2等),其中,插值点不是写字板20实际采样得到的,而是处理器12为还原书写轨迹而进行逻辑上的插值得到的。然后处理器12对采 集点(P1和P5)绘制贴图,对插值点(S1至S8)绘制贴图。插值点的书写数据可根据与插值点相邻的两个采集点的书写数据计算得到,例如,插值点S1至S8均可根据采集点P1和采集点P2的书写数据计算得到,最后,处理器12根据采集点(如P1、P2、P3)的压力值调节与采集点(如P1、P2、P3)对应的贴图的透明度、及根据插值点(如S1~S8)的压力值调节与插值点(如S1~S8)对应的贴图的透明度。
本申请实施方式的调节方法通过采集多个书写轨迹上的采集点(P1、P2等),对采集点和插值点均进行绘制贴图,根据采集点的压力值和插值点的压力值来改变对应的贴图的透明度,从而实现了同一笔画之间的笔触的深浅变化,且每一笔画的笔触的深浅效果根据采集点的压力值和插值点的压力值确定,对于书写过程的笔触深浅变化的还原度较高。
请参阅图2和3,在某些实施方式中,调节方法还包括:
010:判断写字板20与电子显示装置10是否通信连接;
步骤011包括以下步骤:
0112:在写字板20与电子显示装置10通信连接时,获取写字板20发送至电子显示装置10的书写数据。
在某些实施方式中,处理器12还用于判断写字板20与电子显示装置10是否通信连接、及在写字板20与电子显示装置10通信连接时,获取写字板20发送至电子显示装置10的书写数据。
也即是说,步骤010和步骤0112可以由处理器12实现。
具体地,在进行书写时,写字板20需要先与电子显示装置10进行通信连接才可以传输数据,处理器12判断写字板20与电子显示装置10是否通信连接,通信连接既可以是有线连接也可以是无线连接,有线连接如USB连接等,无线连接如蓝牙连接等。然后在写字板20与电子显示装置10通信连接后,处理器12可以获取写字板20发送到电子显示装置10的书写数据,处理器12获取书写数据可以是:处理器12控制通信模块发送请求给写字板20,写字板20通过通信模块反馈给处理器12该书写数据;也可以是:在通信连接后写字板20通过通信模块主动发送书写数据到处理器12。
请参阅图2、图4和图5,在某些实施方式中,步骤012包括以下步骤:
0122:根据电子显示装置10的显示区域14的宽度与写字板20的书写区域22的宽度获取第一坐标值与第二坐标值之间的缩放系数或根据电子显示装置10的显示区域14的长度与写字板20的书写区域22的长度获取第一坐标值与第二坐标值之间的缩放系数;及
0124:根据缩放系数及第一坐标值的横坐标计算第二坐标值的横坐标,及根据缩放系数及第一坐标值的纵坐标计算第二坐标值的纵坐标。
在某些实施方式中,处理器12还用于根据电子显示装置10的显示区域14的宽度与写 字板20的书写区域22的宽度获取第一坐标值与第二坐标值之间的缩放系数或根据电子显示装置10的显示区域14的长度与写字板20的书写区域22的长度获取第一坐标值与第二坐标值之间的缩放系数、及根据缩放系数及第一坐标值的横坐标计算第二坐标值的横坐标,及根据缩放系数及第一坐标值的纵坐标计算第二坐标值的纵坐标。
具体地,写字板20尺寸和电子显示装置10的尺寸一般是不同的,所以在写字板20上获取的采集点的第一坐标值不能直接应用到电子显示装置10,需要经过转换,转换过程满足关系式:PX=BX*f,PY=BY*f;其中,PX和PY分别为采集点的第二坐标值的横坐标和纵坐标,BX和BY分别为采集点的第一坐标值的横坐标和纵坐标,f为缩放系数;也就是说,处理器12根据缩放系数及第一坐标值的横坐标计算第二坐标值的横坐标、及根据缩放系数及第一坐标值的纵坐标计算第二坐标值的纵坐标。缩放系数f满足条件式:f=PW/BW,或者f=PH/BH;其中,PW和PH分别为电子显示装置10的显示区域14的宽度和高度,BW和BH分别为写字板20的书写区域22的宽度和高度,也就是说,缩放系数f根据电子显示装置10的显示区域14的宽度PW和写字板20的书写区域22的宽度BW的比值PW/BW确定;或者,缩放系数f根据电子显示装置10的显示区域14的长度PH和写字板20的书写区域22的长度BH的比值PH/BH确定。
在其他实施方式,处理器12可将第一坐标值的横纵坐标分别乘以一个的缩放系数来转换为第二坐标值,具体地,横坐标的缩放系数f1根据写字板20的书写区域22的宽度与电子显示装置10的显示区域14的宽度的比值确定,即满足PX=BX*f1;而纵坐标的缩放系数写字板20的书写区域22的长度与电子显示装置10的显示区域14的长度的比值确定,即满足PY=BY*f2,f1与f2可以相同也可以不同。
请参阅图2、图6和图7,在某些实施方式中,任意三个书写时间相邻的采集点按书写时间先后依次为第一采集点P1、第二采集点P2和第三采集点P3,步骤013包括以下步骤:
0131:以第一采集点P1为开始点、第二采集点P2为控制点、第三采集点P3为结束点,根据二次贝塞尔曲线公式在第一采集点P1至第三采集点P3之间进行插值以得到插值点。
在某些实施方式中,处理器12还用于以第一采集点P1为开始点、第二采集点P2为控制点、第三采集点P3为结束点,根据二次贝塞尔曲线公式在第一采集点P1至第三采集点P3之间进行插值以得到插值点。
也即是说,步骤0131可以由处理器12实现。
具体地,一般每一笔画都包括多个采集点,书写时间相邻的三个采集点依次为第一采集点P1、第二采集点P2和第三采集点P3,三个采集点可以绘制一条二次贝塞尔曲线,以第一采集点P1为开始点、第二采集点P2为控制点、第三采集点P3为结束点,然后根据二次贝塞尔曲线公式在第一采集点P1和第三采集点P3之间进行插值以得到插值点,采集点 (P1、P2、P3)和插值点(S1至S8)都在二次贝塞尔曲线上,因此,对采集点(P1和P5)及插值点(S1至S8)分别绘制贴图后,可使得笔画较为平滑,显示效果较好。每一笔画书写时间最早的采集点为第一个第一采集点P1,在下一个相邻的三个采集点(P3至P5)进行插值以得到插值点时,上一个相邻的三个采集点(P1~P3)中的第三采集点P3可作为下一个相邻的三个采集点的第一采集点P1(即P3作为第一采集点P1、P4作为第二采集点P2及P5作为第三采集点P3),从而使得整个笔画任意相邻的两个采集点之间(P1与P2之间、P2与P3之间、P3与P4之间、P4与P5之间)均存在插值点。
请参阅图2、图7和图8,在某些实施方式中,步骤013还包括以下步骤:
0132:根据第一采集点P1与第三采集点P3的直线距离D计算步长;及
0133:根据二次贝塞尔曲线公式每隔一个步长在第一采集点P1至第三采集点P3之间进行插值以得到插值点。
在某些实施方式中,处理器12还用于根据第一采集点P1与第三采集点P3的直线距离D计算步长、及根据二次贝塞尔曲线公式每隔一个步长在第一采集点P1至第三采集点P3之间进行插值以得到插值点。
也即是说,步骤0132和步骤0133可以由处理器12实现。
具体地,目前的电子显示装置10一般是以像素为单位进行显示的,所以在进行插值时也是以像素为单位进行插值的,处理器12首先计算第一采集点P1和第三采集点P3之间的直线距离D,D具体为第一采集点P1和第三采集点P3之间的像素的个数;然后根据距离D计算步长,步长为距离D的倒数1/D,根据二次贝塞尔公式B(t)=(1-t) 2P1+2t(1-t)P2+t 2P3,t∈[0,1],其中,t=0时,B(t)表示第一采集点P1的第二坐标值,t=1时,B(t)表示第三采集点P3的第二坐标值,t∈(0,1)时,B(t)表示插值点(S1至S8)的坐标的第二坐标值,P1、P2和P3分别是第一采集点P1、第二采集点P2和第三采集点P3的第二坐标值,然后在t∈(0,1)时,每隔1/D插入一个值以得到一个插值点(S1、S2等)的第二坐标值,即t依次为1/D、2/D、3/D、...、直到D-1/D分别代入二次贝塞尔公式得到插值点(S1至S8)的第二坐标值。例如D=8,即第一采集点P1和第三采集点P3之间的距离D为8个像素点,然后每隔一个像素点进行一次插值得到一个插值点,共得到8个插值点(S1至S8),每个采集点(P1、P2、P3)或插值点(S1至S8)均占一个像素。如图9所示,在绘图时,在P1和P3各绘制一个贴图,在P1和P3之间的插值点S1至S4上各绘制一个贴图。在其他实施方式中,步长可以是2/D、3/D等,无需每个像素均进行一次插值,可减少计算量。在绘制贴图时,有时每个贴图会占用多个像素,贴图为正方形、占用的像素为X*X个,步长可以根据贴图宽度或长度方向占用的像素个数确定,如图10所示,例如贴图为2*2的贴图,那么步长可以为2,因为贴图占用2个像素,所以在P1和P3之间每隔两个像素进行 一次插值以得到插值点(S1至S4)刚好可以使得每个贴图和一个采集点或插值点对应,以便后续根据采集点和插值点的压力值来调节对应的贴图的透明度。需要指出的是,图9和图10均为示例性说明,并不作为对本申请的限定。
请参阅图2、图11和图12,在某些实施方式中,采集点还包括初始采集点PS和结束采集点PE,初始采集点PS为书写时间最早的采集点;结束采集点PE为压力值小于预定压力值的采集点;步骤015包括以下步骤:
0152:对初始采集点PS、结束采集点PE、及处于初始采集点PS和结束采集点PE之间的采集点和插值点绘制贴图。
在某些实施方式中,处理器12还用于对初始采集点PS、结束采集点PE、及处于初始采集点PS和结束采集点PE之间的采集点和插值点绘制贴图。
也即是说,步骤0152可以由处理器12实现。
具体地,用户在书写时一般是以一个笔画接着一个笔画进行书写的,书写时间最早的采集点(即书写时间最早的第一采集点P1)即为笔画的初始采集点PS,根据书写习惯,一般每个笔画结束时的采集点(P1、P2、P3等)所受的压力最小,所以在检测到压力值小于预定压力值的采集点时可以作为一个笔画的结束采集点PE。处理器12在初始采集点PS和结束采集点PE之间绘制贴图以实现一个笔画的显示,在用户书写下一个笔画时,书写时间重新计时,从而得到下一个初始采集点PS及对应的结束采集点PE,如此,可准确的在不同笔画之间进行断笔。另外,请参阅图13,有些笔画书写过程中仅获取到两个采集点甚至一个采集点,例如“丶”笔画,可能仅获取到两个采集点(即P1和P2),即P1为初始采集点PS和P2为结束采集点PE,处理器12可以根据一次贝塞尔曲线公式(即线性插值公式)来进行插值得到插值点(即S1和S2),然后对采集点(P1和P2)和插值点(S1和S2)绘制贴图。仅存在一个采集点即P1时,即初始采集点PS和结束采集点PE均为P1,处理器12对采集点P1绘制贴图。
请参阅图2和图14,在某些实施方式中,结束采集点PE为第二采集点P2,根据一次贝塞尔曲线公式(即线性插值公式)在结束采集点PE和对应的第一采集点P1之间进行插值以得到插值点。
具体地,结束采集点PE为第二采集点P2(即图14中的P4)时,即仅剩两个采集点(即P3和P4)之间未进行插值,两个采集点无法通过二次贝塞尔曲线公式进行插值来得到插值点,这时处理器12通过一次贝塞尔曲线公式(即线性插值公式)在P3和P4之间进行插值以得到插值点(即S9、S10和S11)。
请参阅图2、图15和图16,在某些实施方式中,贴图包括与采集点对应的第一贴图及与插值点对应的第二贴图,步骤016包括:
0161:根据第一采集点P1的压力值、第三采集点P3的压力值、和第一采集点P1与第三采集点P3之间的直线距离D计算压力梯度;
0162:根据压力梯度计算插值点的压力值;及
0163:根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
在某些实施方式中,处理器12还用于根据第一采集点P1的压力值、第三采集点P3的压力值、和第一采集点P1与第三采集点P3之间的直线距离D计算压力梯度、根据压力梯度计算插值点的压力值、及根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
也即是说,步骤0161、步骤0162和步骤0163可以由处理器12实现。
具体地,在进行贴图的透明度调节的过程中,处理器12先根据第一采集点P1的压力值、第三采集点P3的压力值、和第一采集点P1和第三采集点P3之间的直线距离D计算压力梯度,即第一采集点P1和第三采集点P3压力差与距离D的比值,然后根据压力梯度计算插值点的压力值,例如,如图9所示,第一采集点P1和第三采集点P3的距离D是4个像素,第一采集点P1和第三采集点P3的压力差为10,那么压力梯度为10/(6-1)=2,每个像素进行一次插值得到插值点,若Pa1>Pa2,其中,第一采集点P1的压力值为Pa1=10,第三采集点P3的压力值为Pa2=20,那么第一次插值得到的插值点S1的压力值为Pa1+2=12,第二次插值得到的插值点S2的压力值为Pa1+2*2=14,依此类推,最后的第四次插值得到的插值点S4的压力值为Pa1+2*4=18。若Pa1<Pa2,如Pa1=20;Pa2=10,则第一次插值得到的插值点S1的压力值为Pa1-2=18,第二次插值得到的插值点S2的压力值为Pa1-2*2=16,依次类推,最后的第四次插值得到的插值点S4的压力值则为Pa1-2*4=12。在计算得到插值点的压力值后,根据贴图所占的像素个数,例如,如图9所示,贴图占1个像素,在采集点(P1和P3)各绘制一个第一贴图,在P1和P3之间的插值点(S1至S4等)上各绘制一个第二贴图;再例如,如图11所示,贴图所占的像素为2*2,这时可以将步长设置为2/D,然后每隔2/D个步长(即两个像素)进行插值以得到一个插值点,在采集点(P1和P3)各绘制一个第一贴图,在P1和P3之间的插值点(S1至S4等)上各绘制一个第二贴图。然后处理器12通过压力值和透明度的映射关系得到采集点或插值点的压力值对应的透明度,可以理解,用户书写越用力,笔画颜色越深(即透明度越低),例如,透明度可根据以下公式得出:T=((press-MaxPress)*3+MaxPress)/NormalPress/1.6,其中,press为采集点或插值点的压力值,MaxPress为写字板20可承受的最大书写压力,NormalPress为用户体温为37度时的预定的正常书写压力。最后,处理器12根据采集点的压力值调节对应的第一贴图的透明度,根据插值点的压力值调节对应的第二贴图的透明度,从而实现笔画之间的深浅效 果的还原,且还原效果较好。
请参阅图2、图16和图17,在某些实施方式中,任意三个书写时间相邻的采集点按书写时间先后依次为第一采集点P1、第二采集点P2和第三采集点P3,步骤013包括以下步骤:
0134:在第一采集点P1和第二采集点P2之间进行插值以得到第一中间坐标点M1;
0135:在第二采集点P2和第三采集点P3之间进行插值以得到第二中间坐标点M2;及
0136:以第一中间坐标点M1为开始点、第二采集点P2为控制点、第二中间坐标点M2为结束点,根据二次贝塞尔曲线公式在第一中间坐标点M1至第二中间坐标点M2之间进行插值以得到插值点。
在某些实施方式中,处理器12还用于在第一采集点P1和第二采集点P2之间进行插值以得到第一中间坐标点M1、在第二采集点P2和第三采集点P3之间进行插值以得到第二中间坐标点M2、及以第一中间坐标点M1为开始点、第二采集点P2为控制点、第二中间坐标点M2为结束点,根据二次贝塞尔曲线公式在第一中间坐标点M1至第二中间坐标点M2之间进行插值以得到插值点。如图17所示,M2、P3和M3也可以绘制一条二次贝塞尔曲线,其中,第二中间坐标点M2可以作为下一条二次贝塞尔曲线的开始点(即第一中间坐标点M1),而采集点P3则作为下一条二次贝塞尔曲线的控制点,采集点P3和采集点P4进行插值得到M3(即第二中间坐标点M2)作为下一条二次贝塞尔曲线的结束点,也即是说,初始采集点PS和结束采集点PE之间的每个采集点(如P2、P3等)均可以作为每一条二次贝塞尔曲线的控制点,而分别在与每个控制点相邻的两个采集点(如P3作为控制点时相邻的两个采集点P2和P4)之间分别进行插值即可分别得到第一中间坐标点M1和第二中间控制点M2,从而在初始轨迹点PS和结束采集点PE之间绘制连续的多条二次贝塞尔曲线,且初始采集点PS和结束采集点PE之间的采集点的数量即为可绘制的二次贝塞尔曲线的条数。
也即是说,步骤0134、步骤0135和步骤0136可以由处理器12实现。
请比对图12和图17所示,同样是五个采集点(即P1至P5),相较于图12所示的以第一采集点P1为开始点、第三采集点P3为结束点仅有2条贝塞尔曲线可以插值,而在图17所示的实施例中存在3条贝塞尔曲线进行插值,且笔画整体更为平滑,笔画还原效果较好。
请再次参阅图17,在某些实施方式中,第一中间坐标点M1为第一采集点P1和第二采集点P2的中间点,第二中间坐标点M2为第二采集点P2和第三采集点P3的中间点。如此,第一中间坐标点M1和第二中间坐标点M2的计算较为方便。
具体地,第一中间坐标点M1和第二中间坐标点M2分别为第一采集点P1和第二采集点P2的连线的中点(即1/2处)和第二采集点P2和第三采集点P3的连线的中点(即1/2处),第一中间坐标点M1的书写数据就等于第一采集点P1和第二采集点P2的书写数据之和的一半。例如,第一采集点P1的坐标为(1,3),第二采集点P2的坐标为(3,5),那么第一中间坐标点M1的坐标即为((1+3)/2,(3+5)/2),即(2,4)。再例如,第一采集点P1的压力值为10,第二采集点P2的压力值为20,那么第一中间坐标点M1的压力值为(10+20)/2=15;同理,处理器12可以根据第二采集点P2和第三采集点P3的书写数据计算第二中间坐标点M2的书写数据。在其他实施方式中,第一中间坐标点M1还可位于第一采集点P1和第二采集点P2的连线的1/3处且靠近第一采集点P1,第二中间坐标点M2还可位于第二采集点P2和第三采集点P3的连线的1/3处且靠近第二采集点P2;或者,第一中间坐标点M1还可位于第一采集点P1和第二采集点P2的连线的1/3处且靠近第二采集点P2,第二中间坐标点M2还可位于第二采集点P2和第三采集点P3的连线的1/3处且靠近第三采集点P2;在此不做限制。上述情况的计算方式与第一中间坐标点M1和第二中间坐标点M2分别为第一采集点P1和第二采集点P2的连线的中点和第二采集点P2和第三采集点P3连线的中点时的计算方式基本类似,在此不再赘述。
请参阅图2、图17和图18,在某些实施方式中,步骤013还包括以下步骤:
0137:根据第一中间坐标点M1与第二中间坐标点M2之间的直线距离D1计算步长;及
0138:根据二次贝塞尔曲线公式每隔一个步长在第一中间坐标点M1至第二中间坐标点M2之间进行插值以得到插值点。
在某些实施方式中,处理器12还用于根据第一中间坐标点M1与第二中间坐标点M2之间的直线距离D1计算步长、及根据二次贝塞尔曲线公式每隔一个步长在第一中间坐标点M1至第二中间坐标点M2之间进行插值以得到插值点。
也即是说,步骤0137和步骤0138可以由处理器12实现。
具体地,处理器12根据第一中间坐标点M1与第二中间坐标点M2之间的直线距离D1计算步长,计算方法与前述提到的以第一采集点P1为开始点、第二采集点P2为控制点及以第三采集点P3为结束点时计算步长的方法相同,同样是根据第一中间坐标点M1和第二中间坐标点M2的直线距离D1(相隔的像素点的个数)的倒数作为步长。然后每隔一个步长进行一次插值以得到插值点(S1、S2等)。
请参阅图2、图17和图19,在某些实施方式中,贴图包括与采集点对应的第一贴图及与插值点对应的第二贴图,步骤016包括以下步骤:
0164:根据第一中间坐标点M1的压力值、第二中间坐标点M2的压力值、及第一中 间坐标点M1和第二中间坐标点M2之间的直线距离D1计算压力梯度;
0165:根据压力梯度计算插值点的压力值;及
0166:根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
在某些实施方式中,处理器12还用于根据第一中间坐标点M1的压力值、第二中间坐标点M2的压力值、及第一中间坐标点M1和第二中间坐标点M2之间的直线距离D1计算压力梯度、根据压力梯度计算插值点的压力值、及根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
也即是说,步骤0164、步骤0165和步骤0166可以由处理器12实现。
具体地,在进行贴图的透明度调节的过程中,处理器12先根据第一采集点P1、第二采集点P2和第三采集点P3的书写数据计算第一中间坐标点M1和第二中间坐标点M2的书写数据,在计算得到第一中间坐标点M1和第二中间坐标点M2的书写数据后,处理器12再根据第一中间坐标点M1和第二中间坐标点M2的压力值和直线距离D1计算压力梯度,然后根据压力梯度计算得到插值点(S1、S2等)的压力值。最后处理器12根据采集点的压力值调节对应的第一贴图的透明度,根据插值点的压力值调节对应的第二贴图的透明度,从而实现笔画之间的深浅效果的还原。压力梯度、插值点的压力值、及透明度的计算方式与上述提到的以第一采集点P1为开始点、第二采集点P2为控制点及以第三采集点P3为结束点时计算压力梯度、插值点和透明度的计算方式相同,在此不再赘述。
请参阅图2、图20和图21,在某些实施方式中,采集点还包括初始采集点PS和结束采集点PE,初始采集点PS为书写时间最早的采集点;结束采集点PE为压力值小于预定压力值的采集点;步骤013包括以下步骤:
0139:根据初始点和对应的第一中间坐标点M1之间的直线距离D2计算初始步长;
0140:根据一次贝塞尔曲线公式每隔一个初始步长在初始采集点PS和对应的第一中间坐标点M1之间进行插值以得到插值点;
0141:根据结束采集点PE与对应的第二中间坐标点M2之间的距离D3计算结束步长;及
0142:根据一次贝塞尔曲线公式每隔一个结束步长在结束采集点PE与对应的第二中间坐标点M2之间进行插值以得到插值点。
在某些实施方式中,处理器12还用于根据初始点和对应的第一中间坐标点M1之间的直线距离D2计算初始步长、根据一次贝塞尔曲线公式每隔一个初始步长在初始采集点PS和对应的第一中间坐标点M1之间进行插值以得到插值点、根据结束采集点PE与对应的第二中间坐标点M2之间的距离D3计算结束步长、及根据一次贝塞尔曲线公式每隔一个结束 步长在结束采集点PE与对应的第二中间坐标点M2之间进行插值以得到插值点。
也即是说,步骤0139、步骤0140和步骤0141可以由处理器12实现。
具体地,初始采集点PS和第一中间坐标点M1因为只有两个点,不能通过二次贝塞尔曲线公式进行插值,处理器12先根据初始点和对应的第一中间坐标点M1(即图21中的M1)之间的直线距离D2计算初始步长,然后根据一次贝塞尔曲线公式每隔一个初始步长进行一次插值得到一个插值点(即S1和S2),同样的,结束采集点PE和对应的第二中间采集点也只有两个点,处理器12根据结束采集点PE与对应的第二中间坐标点M2(即图21中的M4)之间的距离D3计算结束步长,然后每隔一个结束步长进行一次插值得到一个插值点(即S7和S8)。初始步长和结束步长的计算方式和上述提到的步长的计算方式相同,在此不再赘述。
请参阅图2、图21和图22,在某些实施方式中,贴图包括与采集点对应的第一贴图及与插值点对应的第二贴图,步骤016还包括以下步骤:
0167:根据初始采集点PS的压力值、与初始采集点PS对应的第一中间坐标点M1的压力值、及初始采集点PS和对应的第一中间坐标点M1之间的直线距离D2计算初始压力梯度;
0168:根据结束采集点PE的压力值、与结束采集点PE对应的第二中间坐标点M2的压力值、及结束采集点PE和对应的第二中间坐标点M1之间的直线距离D3计算结束压力梯度;
0169:根据初始压力梯度和结束压力梯度分别计算初始采集点PS和对应的第一中间坐标点M1之间的插值点的压力值、及结束采集点PE和对应的第二中间坐标点M2之间的插值点的压力值;及
0170:根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
在某些实施方式中,处理器12还用于根据初始采集点PS的压力值、对应的第一中间坐标点M1的压力值、及初始采集点PS和对应的第一中间坐标点M1之间的直线距离D2计算初始压力梯度、根据结束采集点PE的压力值、与结束采集点PE对应的第二中间坐标点M2的压力值、及结束采集点PE和对应的第二中间坐标点M1之间的直线距离D3计算结束压力梯度、根据初始压力梯度和结束压力梯度分别计算初始采集点PS和对应的第一中间坐标点M1之间的插值点的压力值、及结束采集点PE和对应的第二中间坐标点M2之间的插值点的压力值、及根据采集点的压力值调节第一贴图的透明度、及根据插值点的压力值调节第二贴图的透明度。
也即是说,步骤0167至步骤0170可以由处理器12实现。
具体地,处理器12根据初始采集点PS和对应的第一中间坐标点M1的压力差、及初始采集点PS和对应的第一中间坐标点M1(即图21中的M1)之间的直线距离D2的比值得到初始压力梯度,根据结束采集点PE和对应的第二中间坐标点M2的压力差、及结束采集点PE和对应第二中间坐标点M2(即图21中的M4)的之间的直线距离D3的比值得到结束压力梯度,初始压力梯度和结束压力梯度的计算方法与上述提到的压力梯度的计算方法相同,在此不再赘述。然后根据初始压力梯度计算得到初始采集点PS和对应的第一中间坐标点M1之间的插值点(即S1和S2)的压力值,根据结束压力梯度计算得到结束采集点PE和对应的第二中间坐标点M2之间的插值点(即S7和S8)的压力值。最后处理器12根据采集点的压力值调节对应的第一贴图的透明度,根据插值点的压力值调节对应的第二贴图的透明度,
请再次参阅图21,在某些实施方式中,第一中间坐标点M1的压力值根据第一采集点P1和第二采集点P2的压力值、及第一中间坐标点M1与第一采集点P1和第二采集点P2的相对位置计算得到;第二中间坐标点M2的压力值根据第二采集点P2和第三采集点P3的压力值、及第二中间坐标点M2与第二采集点P2和第三采集点P3的相对位置计算得到。
具体地,以第一中间坐标点M1和第二中间坐标点M2分别为第一采集点P1和第二采集点P2的连线的中点(即1/2处)和第二采集点P2和第三采集点P3的连线的中点(即1/2处)为例,第一采集点P1的压力值为10,第二采集点P2的压力值为20,那么第一中间坐标点M1的压力值为(10+20)/2=15;同理,处理器12可以根据第二采集点P2和第三采集点P3的压力值计算第二中间坐标点M2的压力值。
请再次参阅图2,本申请的书写显示系统100包括写字板20和上述实施方式的电子显示装置10。写字板20用于接收书写操作并形成书写轨迹,书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,书写数据包括第一坐标值、书写时间和压力值,第一坐标值为采集点在写字板20对应的坐标系下的坐标值。
本申请实施方式的书写显示系统100通过采集多个书写轨迹上的采集点,对采集点和插值点均绘制贴图以还原笔画的形状,根据采集点的压力值和插值点的压力值来改变对应的贴图的透明度,从而实现了同一笔画之间的笔触的深浅变化,且每一笔画的笔触的深浅效果根据采集点的压力值和插值点的压力值确定,对于书写过程的笔触深浅变化的还原度较高。
请再次参阅图2,在某些实施方式中,书写显示系统100还包括手写笔30,写字板20用于接收手写笔30的书写操作以形成书写数据。用户通过握持手写笔30进行书写操作,可还原真实的书写体验。
在某些实施方式中,手写笔30包括压力传感器32,压力传感器32设置在笔尖的位置, 压力传感器32可以采集手写笔30在写字板20上进行书写操作时的压力数据,处理器12根据压力数据与采集点的对应关系即可计算得到采集点的压力值。手写笔30检测压力时,只需检测手写笔30与写字板20接触的部件(即笔尖)的压力即可,相较于通过写字板20检测整个书写区域的压力而言,检测精度较高,有利于对笔触的深浅效果的还原。本实施方式中,该手写笔30为铅笔,所述压力传感器32设置在铅笔的笔尖的位置。
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。

Claims (21)

  1. 一种还原笔触深浅效果的调节方法,应用于电子显示装置,所述电子显示装置能够与写字板通信,其特征在于,所述调节方法包括:
    获取所述写字板接收书写操作时形成的书写轨迹上的多个采集点的书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值;
    将所述第一坐标值转换为第二坐标值,所述第二坐标值为所述采集点在所述电子显示装置对应的坐标系下的坐标值;
    根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点;
    对所述采集点和所述插值点绘制贴图;及
    根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度。
  2. 根据权利要求1所述的调节方法,其特征在于,任意三个所述书写时间相邻的所述采集点按所述书写时间先后依次为第一采集点、第二采集点和第三采集点,所述根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点包括:
    以所述第一采集点为开始点、所述第二采集点为控制点、所述第三采集点为结束点,根据二次贝塞尔曲线公式在所述第一采集点至所述第三采集点之间进行插值以得到所述插值点。
  3. 根据权利要求2所述的调节方法,其特征在于,所述根据二次贝塞尔曲线公式在所述第一采集点至所述第三采集点之间进行插值以得到所述插值点包括:
    根据所述第一采集点与所述第三采集点的直线距离计算步长;及
    根据二次贝塞尔曲线公式每隔一个所述步长在所述第一采集点至所述第三采集点之间进行插值以得到所述插值点。
  4. 根据权利要求2所述的调节方法,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度包括:
    根据所述第一采集点的压力值、所述第三采集点的压力值、和所述第一采集点和所述第三采集点之间的直线距离计算压力梯度;
    根据所述压力梯度计算所述插值点的压力值;及
    根据所述采集点的压力值调节所述第一贴图的透明度、及根据所述插值点的压力值调节所述第二贴图的透明度。
  5. 根据权利要求1所述的调节方法,其特征在于,任意三个所述书写时间相邻的所述采集点按所述书写时间先后依次为第一采集点、第二采集点和第三采集点,所述根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点包括:
    在所述第一采集点和所述第二采集点之间进行插值以得到第一中间坐标点;
    在所述第二采集点和所述第三采集点之间进行插值以得到第二中间坐标点;及
    以所述第一中间坐标点为开始点、所述第二采集点为控制点、所述第二中间坐标点为结束点,根据二次贝塞尔曲线公式在所述第一中间坐标点至所述第二中间坐标点之间进行插值以得到所述插值点。
  6. 根据权利要求5所述的调节方法,其特征在于,所述根据二次贝塞尔曲线公式在所述第一中间坐标点至所述第二中间坐标点之间进行插值以得到所述插值点包括:
    根据所述第一中间坐标点与所述第二中间坐标点之间的直线距离计算步长;及
    根据二次贝塞尔曲线公式每隔一个所述步长在所述第一中间坐标点至所述第二中间坐标点之间进行插值以得到所述插值点。
  7. 根据权利要求5所述的调节方法,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度包括:
    根据所述第一中间坐标点的压力值、所述第二中间坐标点的压力值、及所述第一中间坐标点和所述第二中间坐标点之间的直线距离计算压力梯度;
    根据所述压力梯度计算所述插值点的压力值;及
    根据所述采集点的压力值调节所述第一贴图的透明度、及根据所述插值点的压力值调节所述第二贴图的透明度。
  8. 根据权利要求5所述的调节方法,其特征在于,所述采集点还包括初始采集点和结束采集点,所述初始采集点为所述书写时间最早的所述采集点;所述结束采集点为所述压力值小于预定压力值的所述采集点;所述根据所述第二坐标值和所述书写时间在多个所述采集点之间进行插值以得到插值点还包括:
    根据所述初始点和对应的所述第一中间坐标点之间的直线距离计算初始步长;
    根据一次贝塞尔曲线公式每隔一个所述初始步长在所述初始采集点和对应的所述第一中间坐标点之间进行插值以得到所述插值点;
    根据所述结束采集点与对应的所述第二中间坐标点之间的直线距离计算结束步长;及根据一次贝塞尔曲线公式每隔一个所述结束步长在所述结束采集点与对应的所述第二中间坐标点之间进行插值以得到所述插值点。
  9. 根据权利要求8所述的调节方法,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度包括:
    根据所述初始采集点的压力值、与所述初始采集点对应的所述第一中间坐标点的压力值、及所述初始采集点和对应的所述第一中间坐标点之间的直线距离计算初始压力梯度;
    根据所述结束采集点的压力值、与所述结束采集点对应的所述第二中间坐标点的压力值、及所述结束采集点和对应的所述第二中间坐标点之间的直线距离计算结束压力梯度;
    根据所述初始压力梯度计算所述初始采集点和对应的所述第一中间坐标点之间的所述插值点的压力值、及根据所述结束压力梯度计算所述结束采集点和对应的所述第二中间坐标点之间的所述插值点的压力值;及
    根据所述采集点的压力值调节所述第一贴图的透明度、及根据所述插值点的压力值调节所述第二贴图的透明度。
  10. 根据权利要求1所述的调节方法,其特征在于,所述采集点还包括初始采集点和结束采集点,所述初始采集点为所述书写时间最早的所述采集点;所述结束采集点为所述压力值小于预定压力值的所述采集点;所述对所述采集点和所述插值点绘制贴图包括:
    对所述初始采集点、所述结束采集点、及处于所述初始采集点和所述结束采集点之间的所述采集点和所述插值点绘制贴图。
  11. 一种电子显示装置,其特征在于,所述电子显示装置能够与写字板进行通信,所述写字板用于接收书写操作并形成书写轨迹,所述书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值;所述电子显示装置包括处理器,所述处理器用于获取所述写字板接收书写操作时形成的书写轨迹上的多个采集点的书写数据、将所述第一坐标值转换为第二坐标值,所述第二坐标值为所述采集点在所述电子显示装置对应的坐标系下的坐标值、根据所述第二坐标值和所述书写时间在多个所述采集 点之间进行插值以得到插值点、对所述采集点和所述插值点绘制贴图、及根据所述采集点的压力值和所述插值点的压力值调节所述贴图的透明度。
  12. 根据权利要求11所述的电子显示装置,其特征在于,任意三个所述书写时间相邻的所述采集点按所述书写时间先后依次为第一采集点、第二采集点和第三采集点,所述处理器还用于以所述第一采集点为开始点、所述第二采集点为控制点、所述第三采集点为结束点,根据二次贝塞尔曲线公式在所述第一采集点至所述第三采集点之间进行插值以得到所述插值点。
  13. 根据权利要求12所述的电子显示装置,其特征在于,所述处理器还用于根据所述第一采集点与所述第三采集点的直线距离计算步长、及根据二次贝塞尔曲线公式每隔一个所述步长在所述第一采集点至所述第三采集点之间进行插值以得到所述插值点。
  14. 根据权利要求12所述的电子显示装置,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述处理器还用于根据所述第一采集点的压力值、所述第三采集点的压力值及所述第一采集点和所述第三采集点之间的直线距离计算压力梯度、根据所述压力梯度计算所述插值点的压力值、及根据所述采集点的压力值调节所述第一贴图的透明度及根据所述插值点的压力值调节所述第二贴图的透明度。
  15. 根据权利要求11所述的电子显示装置,其特征在于,任意三个所述书写时间相邻的所述采集点按所述书写时间先后依次为第一采集点、第二采集点和第三采集点,所述处理器还用于在所述第一采集点和所述第二采集点之间进行插值以得到第一中间坐标点、在所述第二采集点和所述第三采集点之间进行插值以得到第二中间坐标点、及以所述第一中间坐标点为开始点、所述第二采集点为控制点、所述第二中间坐标点为结束点,根据二次贝塞尔曲线公式在所述第一中间坐标点至所述第二中间坐标点之间进行插值以得到所述插值点。
  16. 根据权利要求15所述的电子显示装置,其特征在于,所述处理器还用于根据所述第一中间坐标点与所述第二中间坐标点之间的直线距离计算步长、及根据二次贝塞尔曲线公式每隔一个所述步长在所述第一中间坐标点至所述第二中间坐标点之间进行插值以得到所述插值点。
  17. 根据权利要求15所述的电子显示装置,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述处理器还用于根据所述第一中间坐标点的压力值、所述第二中间坐标点的压力值及所述第一中间坐标点和所述第二中间坐标点之间的直线距离计算压力梯度、根据所述压力梯度计算所述插值点的压力值、及根据所述采集点的压力值调节所述第一贴图的透明度及根据所述插值点的压力值调节所述第二贴图的透明度。
  18. 根据权利要求15所述的电子显示装置,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述采集点还包括初始采集点和结束采集点,所述初始采集点为所述书写时间最早的所述采集点;所述结束采集点为所述压力值小于预定压力值的所述采集点;所述处理器还用于根据所述初始点和对应的所述第一中间坐标点之间的直线距离计算初始步长、根据一次贝塞尔曲线公式每隔一个所述初始步长在所述初始采集点和对应的所述第一中间坐标点之间进行插值以得到所述插值点、根据所述结束采集点与对应的所述第二中间坐标点之间的直线距离计算结束步长、及根据一次贝塞尔曲线公式每隔一个所述结束步长在所述结束采集点与对应的所述第二中间坐标点之间进行插值以得到所述插值点。
  19. 根据权利要求18所述的电子显示装置,其特征在于,所述贴图包括与所述采集点对应的第一贴图及与所述插值点对应的第二贴图,所述处理器还用于根据所述初始采集点的压力值、与所述初始采集点对应的所述第一中间坐标点的压力值及所述初始采集点和对应的所述第一中间坐标点之间的直线距离计算初始压力梯度、根据所述结束采集点的压力值、与所述结束采集点对应的所述第二中间坐标点的压力值及所述结束采集点和对应的所述第二中间坐标点之间的直线距离计算结束压力梯度、根据所述初始压力梯度计算所述初始采集点和对应的所述第一中间坐标点之间的所述插值点的压力值及根据所述结束压力梯度计算所述结束采集点和对应的所述第二中间坐标点之间的所述插值点的压力值、及根据所述采集点的压力值调节所述第一贴图的透明度及根据所述插值点的压力值调节所述第二贴图的透明度。
  20. 根据权利要求11所述的电子显示装置,其特征在于,所述采集点还包括初始采集点和结束采集点,所述初始采集点为所述书写时间最早的所述采集点;所述结束采集点为所述压力值小于预定压力值的所述采集点;所述处理器还用于对所述初始采集点、所述结束采集点、及处于所述初始采集点和所述结束采集点之间的所述采集点和所述插值点绘制 贴图。
  21. 一种书写显示系统,其特征在于,所述书写显示系统包括:
    手写笔;
    写字板,所述写字板用于接收所述手写笔的书写操作并形成书写轨迹,所述书写轨迹上具有多个采集点,多个采集点对应有书写数据,其中,所述书写数据包括第一坐标值、书写时间和压力值,所述第一坐标值为所述采集点在所述写字板对应的坐标系下的坐标值;及
    权利要求11至20任意一项所述的电子显示装置。
PCT/CN2018/119127 2018-12-04 2018-12-04 调节方法、电子显示装置和书写显示系统 Ceased WO2020113410A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/119127 WO2020113410A1 (zh) 2018-12-04 2018-12-04 调节方法、电子显示装置和书写显示系统
CN201880097642.4A CN113168252A (zh) 2018-12-04 2018-12-04 调节方法、电子显示装置和书写显示系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/119127 WO2020113410A1 (zh) 2018-12-04 2018-12-04 调节方法、电子显示装置和书写显示系统

Publications (1)

Publication Number Publication Date
WO2020113410A1 true WO2020113410A1 (zh) 2020-06-11

Family

ID=70973707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119127 Ceased WO2020113410A1 (zh) 2018-12-04 2018-12-04 调节方法、电子显示装置和书写显示系统

Country Status (2)

Country Link
CN (1) CN113168252A (zh)
WO (1) WO2020113410A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115205423A (zh) * 2022-09-19 2022-10-18 北京猎户座信息技术有限公司 基于电子设备的手写方法及系统
CN116009725A (zh) * 2022-12-31 2023-04-25 重庆傲雄在线信息技术有限公司 支持多终端触屏信息采集还原的系统、方法、设备、存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05273133A (ja) * 1992-03-25 1993-10-22 Toppan Printing Co Ltd 外観検査機のための検査エリア設定治具及び装置
CN1598869A (zh) * 2003-09-17 2005-03-23 宏碁股份有限公司 可模拟不同笔触的手写笔
CN101893945A (zh) * 2009-05-18 2010-11-24 精博科技股份有限公司 具有压力检知功能的手写输入系统
CN102521857A (zh) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 电子毛笔书写笔形角度控制方法
CN102521856A (zh) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 电子毛笔书写笔形变形方法
CN103593100A (zh) * 2013-05-21 2014-02-19 敦泰科技有限公司 一种电容屏触摸控制方法及其相关设备
CN103955304A (zh) * 2014-05-21 2014-07-30 友达光电股份有限公司 一种电子笔触控系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593418B2 (en) * 2010-08-08 2013-11-26 Qualcomm Incorporated Method and system for adjusting display content
CN102520849B (zh) * 2011-11-28 2013-08-07 北京盛世宣合信息科技有限公司 电子毛笔书写方法及系统
CN107391016B (zh) * 2017-07-20 2021-04-13 联想(北京)有限公司 手写输入笔迹校准方法及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05273133A (ja) * 1992-03-25 1993-10-22 Toppan Printing Co Ltd 外観検査機のための検査エリア設定治具及び装置
CN1598869A (zh) * 2003-09-17 2005-03-23 宏碁股份有限公司 可模拟不同笔触的手写笔
CN101893945A (zh) * 2009-05-18 2010-11-24 精博科技股份有限公司 具有压力检知功能的手写输入系统
CN102521857A (zh) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 电子毛笔书写笔形角度控制方法
CN102521856A (zh) * 2011-11-28 2012-06-27 北京盛世宣合信息科技有限公司 电子毛笔书写笔形变形方法
CN103593100A (zh) * 2013-05-21 2014-02-19 敦泰科技有限公司 一种电容屏触摸控制方法及其相关设备
CN103955304A (zh) * 2014-05-21 2014-07-30 友达光电股份有限公司 一种电子笔触控系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115205423A (zh) * 2022-09-19 2022-10-18 北京猎户座信息技术有限公司 基于电子设备的手写方法及系统
CN116009725A (zh) * 2022-12-31 2023-04-25 重庆傲雄在线信息技术有限公司 支持多终端触屏信息采集还原的系统、方法、设备、存储介质

Also Published As

Publication number Publication date
CN113168252A (zh) 2021-07-23

Similar Documents

Publication Publication Date Title
CN102937848B (zh) 对手写笔迹进行编辑处理的方法及电子设备
CN100520692C (zh) 一种实现笔锋效果的手写输入方法
CN103247031B (zh) 一种畸变图像校正的方法、终端及系统
US8952906B2 (en) Apparatus and method for inputting writing information according to writing pattern
US20230377221A1 (en) Generating vector graphics by processing raster graphics
US10168984B2 (en) Image receiving apparatus and method thereof for determining an orientation of a screen of an electronic apparatus
EP3575947B1 (en) Systems and methods for interactive image caricaturing by an electronic device
CN102799358A (zh) 光标显示位置的确定方法及装置
TWI480768B (zh) 具調校功能之顯示方法與系統
TW200928933A (en) Method for calibrating coordinates of touch screen
WO2018035843A1 (zh) 信号发射方法、信号解析方法、主动笔及触控屏
CN111142770A (zh) 一种生成笔锋的方法及处理装置
WO2020113410A1 (zh) 调节方法、电子显示装置和书写显示系统
CN103544492A (zh) 基于深度图像三维曲面几何特征的目标识别方法和装置
CN103399629B (zh) 获取手势屏幕显示坐标的方法和装置
CN104252306A (zh) 笔触显示方法
CN103838429A (zh) 触摸屏上毛笔效果的绘制方法及系统
CN107992607A (zh) 台风预报图的绘制方法、装置、计算机设备和存储介质
CN101634929B (zh) 在数码相框上实现可控媒体变换的方法
CN113362418B (zh) 基于贝塞尔曲线的曲线平滑方法、系统、设备及存储介质
CN104092958A (zh) 视频信号标注方法、系统以及装置
CN102981673B (zh) 为支持多点触摸屏幕的测量仪器设定测量参数的方法
CN112433647A (zh) 一种电容式触摸屏通道映射矩阵数据获取方法
CN116385565B (zh) 图像处理方法和装置、芯片、电子设备及介质
CN111124180B (zh) 一种生成笔迹线条的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18942160

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18942160

Country of ref document: EP

Kind code of ref document: A1