WO2019037352A1 - 书写笔迹的对齐显示方法、电子装置及可读存储介质 - Google Patents

书写笔迹的对齐显示方法、电子装置及可读存储介质 Download PDF

Info

Publication number
WO2019037352A1
WO2019037352A1 PCT/CN2017/116632 CN2017116632W WO2019037352A1 WO 2019037352 A1 WO2019037352 A1 WO 2019037352A1 CN 2017116632 W CN2017116632 W CN 2017116632W WO 2019037352 A1 WO2019037352 A1 WO 2019037352A1
Authority
WO
WIPO (PCT)
Prior art keywords
writing
handwriting
coordinate
reference line
alignment
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/CN2017/116632
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Publication of WO2019037352A1 publication Critical patent/WO2019037352A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/00Two-dimensional [2D] image generation
    • G06T11/60Creating or editing images; Combining images with text
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to an alignment display method for writing a handwriting, an electronic device, and a readable storage medium.
  • touch-screen devices eg, electronic whiteboards, smart tablets
  • touch-screen devices are increasingly being used in everyday learning, work, and life instead of traditional paper-and-pencil writing.
  • Most of the existing touch screen devices have the function of writing and recording, and the user can directly write on the touch screen of the touch screen device, and the device does not need to convert the written content, but directly stores the content written by the user, thereby enabling the user to
  • an experience similar to the real pen writing is obtained, and at the same time, the personalization and diversification of the user's writing content can be improved.
  • the content of the content written by the user in the touch screen device may be uneven, affecting the appearance and bringing about a bad user experience.
  • the embodiment of the invention provides an alignment display method for writing handwriting, an electronic device and a readable storage medium, which can automatically align the written handwriting and improve the user experience.
  • Embodiments of the present invention provide an alignment display method for writing a handwriting, including: at an electronic device having a touch-sensitive surface:
  • the identifying obtains at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes, specifically:
  • the determining the unit of arrangement according to the first coordinate of each of the writing strokes is specifically:
  • the generating the alignment reference line corresponding to the selected arrangement unit specifically includes:
  • An alignment reference line is generated based on the start point coordinates and the end point coordinates.
  • the generating the alignment reference line of the selected arrangement unit specifically includes:
  • An alignment reference line of the arrangement unit is generated according to the first coordinate.
  • the method further includes:
  • the writing stroke corresponding to the alignment reference line is correspondingly moved according to the movement of the alignment reference line.
  • the method further includes:
  • the arrangement unit is a row or a column.
  • the present invention also provides an alignment display method for writing a handwriting, comprising: at an electronic device having a touch-sensitive surface:
  • the identifying obtains at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes, specifically:
  • the acquiring at least two writing strokes corresponding to the sliding operation, and generating an alignment reference line corresponding to the sliding operation specifically:
  • An alignment reference line is generated based on the first coordinate of the first passing written handwriting of the sliding operation and the first coordinate of the last passed writing handwriting.
  • the acquiring at least two writing strokes corresponding to the sliding operation, and generating a pair with the sliding operation The alignment line should be aligned, specifically:
  • a writing handwriting having a distance from the alignment reference line smaller than a preset distance is set as a writing handwriting corresponding to the sliding operation.
  • the method further includes:
  • the writing stroke corresponding to the alignment reference line is correspondingly moved according to the movement of the alignment reference line.
  • the method further includes:
  • Embodiments of the present invention also provide an alignment display method for writing a handwriting, including: at an electronic device having a touch-sensitive surface:
  • the alignment reference line corresponding to the associated arrangement unit is generated according to the first coordinate of the first writing stroke of the arrangement unit;
  • an arrangement unit to which the writing handwriting belongs specifically:
  • the identifying the currently input writing handwriting and acquiring the first coordinate of the currently input writing handwriting is specifically:
  • An embodiment of the present invention further provides an electronic device having a touch-sensitive surface, including:
  • a first identifying unit configured to identify at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes
  • An arranging unit determining unit configured to determine an arranging unit to which it belongs according to the first coordinate of each of the writing handwritings
  • a first reference line generating unit configured to generate an alignment reference line corresponding to the selected arrangement unit
  • a first moving unit configured to determine a second coordinate of each of the written handwritings on the selected arrangement unit according to the alignment reference line, and move each of the writing handwritings belonging to the arrangement unit Display to the corresponding second coordinate.
  • An embodiment of the present invention further provides an electronic device having a touch-sensitive surface, including:
  • a second identifying unit configured to identify at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes
  • a sliding operation detecting unit for detecting a sliding operation on the touch-sensitive surface
  • a second reference line generating unit configured to acquire at least two writing handwritings corresponding to the sliding operation, and generate an alignment reference line corresponding to the sliding operation
  • a second moving unit configured to determine second coordinates of the at least two writing strokes according to the alignment reference line, and move each of the writing handwritings to the second coordinates for display.
  • An embodiment of the present invention further provides an electronic device having a touch-sensitive surface, including:
  • a third identifying unit configured to identify a currently input writing handwriting, and acquire a first coordinate of the currently input writing handwriting
  • Arranging unit determining unit configured to determine an arrangement unit to which the writing handwriting belongs according to the first coordinate of the writing handwriting
  • a third moving unit configured to determine a second coordinate of the writing handwriting according to the alignment reference line, and move the writing handwriting to the second coordinate for display.
  • An embodiment of the present invention further provides an electronic device having a touch-sensitive surface, further comprising at least one memory and at least one processor;
  • the memory includes at least one executable program stored therein;
  • the executable program when executed by the at least one processor, causes the processor to implement the aligned display method of the written handwriting described above.
  • An embodiment of the present invention further provides a readable storage medium, the readable storage medium comprising a stored computer program, wherein, when the computer program is running, controlling a device where the readable storage medium is located to perform a writing handwriting as described above
  • the alignment display method is described above.
  • the method for aligning the writing handwriting, the electronic device and the readable storage medium determine the first coordinate of each writing handwriting, determine the arrangement unit of the writing hand according to the first coordinate, and determine the alignment reference line.
  • the automatic alignment of the writing strokes is performed according to the alignment reference line, thereby realizing the automatic alignment of the writing handwriting, so that the user's handwriting book remains beautiful and tidy, and the user experience is improved.
  • the embodiment of the invention has the advantages of simple alignment operation, fast operation and the like.
  • FIG. 1 is a schematic flow chart of a method for displaying an alignment of a writing handwriting according to a first embodiment of the present invention.
  • FIG. 2 is a schematic diagram showing the writing handwriting on the electronic device according to the first embodiment of the present invention.
  • FIG. 3 is a schematic diagram of generating a minimum rectangular frame for each written handwriting provided by the first embodiment of the present invention.
  • FIG. 4 is a schematic diagram of generating an alignment reference line according to a first embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another generation alignment alignment line provided by the first embodiment of the present invention.
  • Figure 6 is a schematic illustration of the alignment of writing strokes in accordance with the alignment reference line generated in Figure 4.
  • Figure 7 is a schematic illustration of the alignment of written strokes in accordance with the alignment reference lines generated in Figure 5.
  • FIG. 8 is a schematic flow chart of a method for displaying an alignment of a writing handwriting according to a second embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a moving alignment reference line according to a second embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another mobile alignment reference line according to a second embodiment of the present invention.
  • FIG. 11 is a schematic flow chart of a method for displaying an alignment of a writing handwriting according to a third embodiment of the present invention.
  • Figure 12 is a schematic illustration of a rotary writing handwriting provided by a third embodiment of the present invention.
  • FIG. 13 is a schematic flow chart of a method for displaying alignment of a writing handwriting according to a fourth embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a sliding operation according to a fourth embodiment of the present invention.
  • Figure 15 is a schematic illustration of the alignment of writing strokes in accordance with the sliding operation of Figure 14.
  • FIG. 16 is a schematic diagram of another sliding operation according to a fourth embodiment of the present invention.
  • Figure 17 is a schematic illustration of the alignment of writing strokes in accordance with the sliding operation of Figure 16;
  • FIG. 18 is a schematic flow chart of a method for displaying alignment of a writing handwriting according to a fifth embodiment of the present invention.
  • 19 is a schematic diagram of a minimum rectangular frame for generating a written handwriting enclosing an input according to a fifth embodiment of the present invention.
  • FIG. 20 is a schematic diagram showing alignment of input writing strokes according to a fifth embodiment of the present invention.
  • FIG. 21 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
  • FIG. 22 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present invention.
  • FIG. 23 is a schematic structural diagram of an electronic device according to an eighth embodiment of the present invention.
  • FIG. 1 is a schematic diagram showing an alignment display method of a writing handwriting according to a first embodiment of the present invention, which may be performed by an electronic device having a touch-sensitive surface, and includes at least the following steps:
  • the electronic device may be an electronic device having a touch-sensitive surface such as a smart tablet, an electronic whiteboard, an electronic tablet, a smart phone, etc., wherein the touch-sensitive surface may be a capacitive screen or a resistive screen.
  • the infrared screen or the like is not specifically limited in the present invention.
  • the user performs writing on the touch-sensitive surface of the electronic device, and after detecting the touch operation of the user, the electronic device generates a corresponding writing handwriting and writes the writing Handwriting is displayed on the display Show.
  • the user can trigger a written handwriting alignment request to align the written handwriting, wherein the written handwriting alignment request can be triggered by triggering a predetermined control provided on the display interface (such as the "handwriting alignment" control shown in FIG. 2)
  • the issuance may also be performed by performing a predefined alignment gesture on the touch-sensitive surface, which is not specifically limited by the present invention.
  • the electronic device after detecting the writing handwriting alignment request, the electronic device first identifies the writing handwriting on the display interface to identify that all the writing handwritings located in the display interface and each of the writing handwritings are currently obtained. The first coordinate.
  • the electronic device after recognizing a writing handwriting, the electronic device generates a minimum rectangular frame 02 surrounding the writing handwriting, and sets the coordinates of the preset reference point 03 of the minimum rectangular frame to The first coordinate of the writing stroke.
  • the preset reference point may be a center point of the minimum rectangular frame, or may be four vertices or an arbitrarily selected one point, which is not specifically limited in the present invention.
  • the rectangular frame may not be limited, and the first coordinate of each written handwriting may be determined by a circular frame or a frame of other shapes, and all of the solutions are in the protection scope of the present invention. Therefore, I will not repeat them here.
  • the minimum rectangular frame may or may not be displayed, and the present invention is not specifically limited.
  • S103 Determine, according to the first coordinate of each of the writing strokes, an arrangement unit to which it belongs.
  • the unit of arrangement to which the writing is to be obtained may be obtained according to the first coordinate thereof.
  • the arrangement unit here may be a row or a column.
  • the user selects one of the writing strokes ("Q" as shown in FIG. 4) as the end, and then executes the first operation gesture, and uses the first coordinate at the end as a starting point to generate the sliding.
  • a ray when the length of the ray is greater than a preset threshold or the user performs the lifting operation, the electronic device takes the end point of the ray as the end point coordinate, and then extracts the first of the arranged units to which the selected ending writing stroke belongs
  • the first coordinate of the writing handwriting ie, "book" is used as the starting point coordinate, and the starting point coordinate and the ending point coordinate are connected to generate an alignment reference line 04.
  • the user can select a writing handwriting as a reference point by performing a second operation gesture (such as long press) (may be any one of the writing strokes, such as the pen in FIG. 5) "), then according to
  • S105 Determine, according to the alignment reference line, a second coordinate of each of the written handwritings on the selected arrangement unit, and move each of the writing handwritings belonging to the arrangement unit to a corresponding second The coordinates are displayed.
  • the second coordinates of each of the written handwritings on the selected arrangement unit may be determined according to the alignment reference line, wherein each The second coordinate of the writing stroke is located on the alignment reference line, and the abscissa of the second coordinate is consistent with the abscissa of the first coordinate.
  • each of the writing strokes belonging to the arrangement unit may be moved to a corresponding second coordinate for display.
  • the method for aligning the writing handwriting determines the first coordinate of each writing handwriting, determines the arrangement unit of the writing handwriting according to the first coordinate, and determines the alignment reference line, and according to the alignment.
  • the reference line automatically aligns the writing handwriting, thereby realizing automatic alignment of the writing handwriting, so that the user's handwritten book is kept beautiful and tidy, and the user experience is improved.
  • the embodiment of the invention has the advantages of simple alignment operation, fast operation and the like.
  • a second embodiment of the present invention provides an alignment display method for writing a handwriting.
  • the second embodiment of the present invention adds the following steps to the first embodiment:
  • the user can move the generated alignment reference line, and after the alignment reference line is moved, the electronic device regenerates the second coordinate of each written handwriting according to the position of the alignment reference line, and according to the The movement of the alignment reference line moves the writing stroke corresponding to the alignment reference line accordingly.
  • the moving alignment reference line may be such that the alignment reference line is rotated around a point (as shown in FIG. 9), or the entire alignment reference line (as shown in FIG. 10) may be translated.
  • the alignment reference line is rotated around a point (as shown in FIG. 9), or the entire alignment reference line (as shown in FIG. 10) may be translated.
  • the user can achieve more diverse alignment, for example, oblique alignment, positive alignment, etc., while the alignment operation of the embodiment Simple, very user-friendly, and improved user experience.
  • a third embodiment of the present invention provides an alignment display method for writing a handwriting.
  • the second embodiment of the present invention adds the following steps to the first embodiment:
  • each of the writing handwritings is After moving to the corresponding second coordinate for display, the angle between the alignment reference line and the horizontal line of the touch-sensitive surface is also obtained, and the angle is correspondingly rotated according to the angle Turn the writing handwriting corresponding to the alignment reference line as shown in FIG.
  • the rotary writing handwriting is corresponding, so that the final displayed writing handwriting is more in line with the user's viewing habit.
  • a fourth embodiment of the present invention provides an alignment display method for writing a handwriting, including:
  • the embodiment may be performed by an electronic device having a touch-sensitive surface, wherein the electronic device may be an electronic device having a touch-sensitive surface such as an electronic whiteboard, a smart tablet, an electronic tablet, a smart phone, etc., wherein the touch-sensitive surface herein It may be a capacitive screen, a resistive screen, an infrared screen, etc., and the invention is not specifically limited.
  • the electronic device may be an electronic device having a touch-sensitive surface such as an electronic whiteboard, a smart tablet, an electronic tablet, a smart phone, etc., wherein the touch-sensitive surface herein It may be a capacitive screen, a resistive screen, an infrared screen, etc., and the invention is not specifically limited.
  • At least two writing strokes located in the display interface may be first identified, and a minimum rectangular frame surrounding each of the writing handwritings may be generated, and then obtained according to coordinates of preset reference points of each of the minimum rectangular frames. The first coordinate of the corresponding written handwriting.
  • S405. Determine second coordinates of the at least two writing strokes according to the alignment reference line, and move each of the writing handwritings to the second coordinates for display.
  • the user can select the writing strokes to be aligned by continuously sliding, and the electronic device detects the sliding strokes that have passed by the sliding operation of the user, according to the sliding operation.
  • a first coordinate of the first passing writing handwriting and a first coordinate of the last passing writing handwriting generate an alignment reference line, and then determine a second coordinate of the at least two writing handwriting according to the alignment reference line, and
  • Each of the writing strokes is moved to the second coordinate for display, as shown in FIG.
  • the user can perform a straight line operation on the touch-sensitive surface.
  • the electronic device generates an alignment reference line according to the line drawn by the user, and then aligns with the line.
  • a writing stroke in which the distance of the reference line is less than the preset distance is set to a writing handwriting corresponding to the sliding operation, determining a second coordinate of the at least two writing handwritings according to the alignment reference line, and each of the writing handwritings Move to the second coordinate for display, as shown in FIG.
  • Fig. 17 since the distance between the writing hand "square" and the alignment reference line is large, it is not selected. If the user wants to select the writing stroke "square", the line can be drawn to the position of the square.
  • the first coordinates of each writing handwriting are first acquired, and then the alignment reference line is determined according to the sliding operation of the user, and the writing handwritings to be aligned are determined, and the writing handwriting is automatically aligned according to the alignment reference line, thereby realizing
  • the automatic alignment of the writing handwriting keeps the user's handwriting book beautiful and tidy, which improves the user experience.
  • the embodiment of the invention has the advantages of simple alignment operation, fast operation and the like.
  • the method further comprises:
  • the alignment reference line is moved when a movement operation on the alignment reference line is detected on the touch-sensitive surface.
  • the writing stroke corresponding to the alignment reference line is correspondingly moved according to the movement of the alignment reference line.
  • the alignment reference line by moving the alignment reference line to simultaneously move the writing strokes on the alignment reference line, the user can achieve more diverse alignment, for example, oblique correspondence, positive alignment, etc., and at the same time, the alignment operation of the embodiment Simple and very user-friendly.
  • the method further comprises:
  • the rotary writing handwriting is corresponding, so that the final displayed writing handwriting is more in line with the user's viewing habit.
  • a fifth embodiment of the present invention provides an alignment display method for writing a handwriting, including:
  • S501 Identify the currently input writing handwriting, and acquire the first coordinate of the currently input writing handwriting.
  • the embodiment may be performed by an electronic device having a touch-sensitive surface, wherein the electronic device may be an electronic device having a touch-sensitive surface such as an electronic whiteboard, a smart tablet, an electronic tablet, a smart phone, etc., wherein the touch-sensitive surface herein It may be a capacitive screen, a resistive screen, an infrared screen, etc., and the invention is not specifically limited.
  • the electronic device may be an electronic device having a touch-sensitive surface such as an electronic whiteboard, a smart tablet, an electronic tablet, a smart phone, etc., wherein the touch-sensitive surface herein It may be a capacitive screen, a resistive screen, an infrared screen, etc., and the invention is not specifically limited.
  • the electronic device After detecting the written handwriting "square" input by the user, the electronic device recognizes the currently input writing handwriting, generates a minimum rectangular frame surrounding the writing handwriting, and according to the minimum The coordinates of the preset reference point of the rectangular frame obtain the first coordinates of the written handwriting.
  • the smallest rectangular frame in FIG. 19 may or may not be displayed, and the present invention does not describe it.
  • S502. Determine an arrangement unit to which the writing stroke belongs according to the first coordinate of the writing handwriting.
  • step S502 is specifically:
  • the arrangement unit of the adjacent writing handwriting is set as the arrangement unit of the writing handwriting.
  • the alignment reference line corresponding to the associated arrangement unit is generated according to the first coordinate of the first writing stroke of the arrangement unit, for example, the alignment reference line is the first through the first writing stroke. Coordinates, and a line that is parallel to the horizontal line of the touch-sensitive surface.
  • the writing handwriting does not belong to the same arrangement unit as the adjacent writing handwriting. If the absolute value of the difference between the absolute value of the difference between the currently written writing handwriting and the abscissa of the adjacent writing handwriting and the ordinate is less than a preset threshold, the writing handwriting is identical to the adjacent writing handwriting. Arrangement unit.
  • the second coordinates of the written handwriting "square” can be acquired according to the alignment reference line, and the writing handwriting is obtained. Move to the second coordinate for display (Fig. 20).
  • the automatic alignment of the written handwriting is realized by acquiring the first coordinate of the currently input writing handwriting and the alignment reference line of the associated arrangement unit, and automatically aligning the input writing handwriting according to the alignment reference line.
  • the user's handwriting book is kept beautiful and tidy, which improves the user experience.
  • the embodiment of the invention has the advantages of simple alignment operation, fast operation and the like.
  • a sixth embodiment of the present invention further provides an electronic device 600, where the electronic device 600 includes:
  • the first alignment request response unit 610 is configured to respond to the written handwriting alignment request.
  • the first identifying unit 620 is configured to identify at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes.
  • the arranging unit determining unit 630 is configured to determine an arranging unit to which it belongs according to the first coordinate of each of the writing handwritings.
  • the first reference line generating unit 640 is configured to generate an alignment reference line corresponding to the selected arrangement unit.
  • a first moving unit 650 configured to determine, according to the alignment reference line, a second coordinate of each of the written handwritings on the selected arrangement unit, and each of the writing handwritings belonging to the arrangement unit Move to the corresponding second coordinate for display.
  • the first identifying unit 620 includes:
  • a minimum rectangular frame generating module for identifying at least two writing handwritings located in the display interface and generating a minimum rectangular frame surrounding each of the writing handwritings;
  • a first coordinate acquiring module configured to obtain a first coordinate of the corresponding written handwriting according to coordinates of the preset reference point of each of the minimum rectangular frames.
  • the arrangement unit determining unit 630 is specifically configured to acquire coordinate difference values of two adjacent writing strokes, and determine the two adjacent writings when the absolute value of the coordinate difference value is less than a preset threshold value.
  • the handwriting belongs to the same arrangement unit.
  • the first baseline generating unit 640 specifically includes:
  • An end point coordinate detecting module configured to detect an end point coordinate generated when the first operation gesture is performed on the selected end writing stroke
  • a starting point coordinate extraction module configured to extract, as the starting point coordinate, a first coordinate of the first writing handwriting of the selected arrangement unit to which the selected writing handwriting belongs;
  • connection module configured to generate an alignment reference line according to the starting point coordinate and the end point coordinate.
  • the first baseline generating unit 640 specifically includes:
  • a reference point extraction module configured to: when detecting a second operation gesture performed on the selected writing hand as the reference point, extract the first coordinate of the writing handwriting as the reference point and the associated arrangement unit;
  • a baseline generating module configured to generate an aligned reference line of the arranged unit according to the first coordinate.
  • the method further comprises:
  • a writing hand movement unit configured to correspondingly move the writing handwriting corresponding to the alignment reference line according to the movement of the alignment reference line.
  • the method further comprises:
  • Writing a handwriting rotation unit for acquiring an angle between the alignment reference line and a horizontal line of the touch-sensitive surface, and rotating a writing handwriting corresponding to the alignment reference line according to the included angle.
  • a seventh embodiment of the present invention further provides an electronic device 700, where the electronic device 700 includes:
  • the second alignment request response unit 710 is configured to respond to the writing stroke alignment request:
  • a second identifying unit 720 configured to identify that at least two writing strokes located in the display interface and a current first coordinate of each of the writing strokes are obtained;
  • a sliding operation detecting unit 730 for detecting a sliding operation on the touch-sensitive surface
  • a second reference line generating unit 740 configured to acquire at least two writing handwritings corresponding to the sliding operation, and generate an alignment reference line corresponding to the sliding operation;
  • the second moving unit 750 is configured to determine second coordinates of the at least two writing strokes according to the alignment reference line, and move each of the writing handwritings to the second coordinates for display.
  • the second identifying unit 720 specifically includes:
  • a minimum rectangular frame generating module for identifying at least two writing handwritings located in the display interface and generating a minimum rectangular frame surrounding each of the writing handwritings;
  • a first coordinate acquiring module configured to obtain a first coordinate of the corresponding written handwriting according to coordinates of the preset reference point of each of the minimum rectangular frames.
  • the second baseline generating unit 740 specifically includes:
  • a first writing handwriting acquiring module configured to acquire at least two writing handwritings through which the sliding operation passes;
  • a first alignment reference line generating module configured to generate an alignment reference line according to the first coordinate of the first passing writing handwriting and the first coordinate of the last passing writing handwriting of the sliding operation.
  • the second baseline generating unit 740 specifically includes:
  • a second alignment reference line generating module configured to set a straight line generated according to the sliding operation as an alignment reference line
  • a second writing handwriting acquiring module configured to set a writing handwriting whose distance from the alignment reference line is less than a preset distance to a writing handwriting corresponding to the sliding operation.
  • the method further comprises:
  • a writing hand movement unit configured to correspondingly move the writing handwriting corresponding to the alignment reference line according to the movement of the alignment reference line.
  • the method further comprises:
  • Writing a handwriting rotation unit for acquiring an angle between the alignment reference line and a horizontal line of the touch-sensitive surface, and rotating a writing handwriting corresponding to the alignment reference line according to the included angle.
  • an eighth embodiment of the present invention further provides an electronic device 800, where the electronic device 800 includes:
  • a third identifying unit 810 configured to identify a currently input writing handwriting, and acquire a first coordinate of the currently input writing handwriting
  • the arranging unit determining unit 820 is configured to determine an arranging unit to which the writing handwriting belongs according to the first coordinate of the writing handwriting;
  • the alignment reference line obtaining unit 830 is configured to acquire an alignment reference line corresponding to the associated arrangement unit
  • the third moving unit 840 is configured to determine a second coordinate of the writing handwriting according to the alignment reference line, and move the writing handwriting to the second coordinate for display.
  • the alignment reference line corresponding to the associated arrangement unit is generated according to the first coordinate of the first writing stroke of the arrangement unit;
  • the arrangement unit determining unit 820 specifically includes:
  • An adjacent writing handwriting acquiring module configured to acquire an adjacent writing handwriting adjacent to the writing handwriting
  • a judging module configured to determine, according to the writing handwriting and the first coordinate of the adjacent writing handwriting, whether the two writing handwritings belong to the same arrangement unit;
  • the third identifying unit 810 specifically includes:
  • a minimum rectangular frame generating module for identifying a currently input writing handwriting and generating a minimum rectangular frame surrounding the writing handwriting
  • a first coordinate acquiring module configured to obtain a first coordinate of the writing handwriting according to coordinates of a preset reference point of the minimum rectangular frame.
  • a ninth embodiment of the present invention also provides an electronic device having a touch-sensitive surface, at least one memory, and at least one processor; the touch-sensitive surface and the memory coupled to the at least one processor .
  • the memory includes at least one executable program stored therein; the executable program, when executed by the at least one processor, causing the processor to implement the writing stroke of any of the above embodiments Align the display method.
  • a tenth embodiment of the present invention further provides a readable storage medium, the readable storage medium comprising a stored computer program, wherein, when the computer program is running, controlling a device in which the readable storage medium is located performs the above An alignment display method for writing a handwriting according to an embodiment.
  • the computer program can be partitioned into one or more units, the one or more units being stored in the memory and executed by the processor, To complete the present invention.
  • the one or more units may be a series of computer program instructions segments capable of performing a particular function for describing the execution of the computer program in an electronic device having a touch-sensitive surface.
  • the electronic device may be a terminal device such as a smart phone, a tablet, or a smart tablet.
  • the electronic device can include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram is merely an example of an electronic device and does not constitute a limitation on an electronic device, which may include more or less components than those illustrated, or combine some components, or Different components, such as the electronic device, may also include input and output devices, network access devices, buses, and the like.
  • the so-called processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device that operates different levels of pictures, and connects the entire electronic device by using various interfaces and lines. Various parts of it.
  • the memory can be used to store the computer program and/or module, the processor implementing the operation by running or executing a computer program and/or module stored in the memory, and recalling data stored in the memory Various functions of terminal devices of different levels of pictures.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created based on the use of the mobile phone (such as audio data, phone book, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the electronic device integrated unit can be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
  • the computer program may be stored in a computer readable storage medium. The steps of the various method embodiments described above may be implemented when the program is executed by the processor.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the device embodiment of the present invention provides a drawing The connection relationship between the modules indicates that there is a communication connection between them, and specifically can be implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement without any creative effort.

Landscapes

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

Abstract

本发明公开了一种书写笔迹的对齐显示方法、电子装置、可读存储介质,所述方法包括:在具有触敏表面的电子装置处:响应书写笔迹对齐请求;识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;根据每个所述书写笔迹的第一坐标确定其所属的排列单位;生成与被选中的排列单位对应的对齐基准线;根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。采用本发明,可以实现书写笔迹的自动对齐,从而保证了显示界面的美观整齐,提高了用户的使用体验。

Description

书写笔迹的对齐显示方法、电子装置及可读存储介质 技术领域
本发明涉及计算机技术领域,尤其涉及一种书写笔迹的对齐显示方法、电子装置及可读存储介质。
背景技术
随着触屏设备(如,电子白板、智能平板)的普及和发展,触屏设备越来越多地代替传统的纸笔书写而应用于日常的学习、工作和生活中。现有的触屏设备大都具有书写记录的功能,用户能够在触屏设备的触摸屏上直接进行书写,设备无需对该书写的内容进行转换,而直接对用户书写的内容进行存储,从而使得用户能够在触屏设备中得到类似于真实纸笔书写的体验,同时能够提高用户书写内容的个性化、多样化。但是,由于环境、书写习惯等各种因素的影响,用户在触屏设备中书写的内容的排列可能会参差不齐,影响美观,带来不良的用户体验。
发明内容
本发明实施例提出了书写笔迹的对齐显示方法、电子装置及可读存储介质,能够对书写的笔迹进行自动对齐,提高用户的使用体验。
本发明实施例提供了一种书写笔迹的对齐显示方法,包括:在具有触敏表面的电子装置处:
响应书写笔迹对齐请求;
识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
根据每个所述书写笔迹的第一坐标确定其所属的排列单位;
生成与被选中的排列单位对应的对齐基准线;
根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
优选地,所述识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标,具体为:
识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框;
根据每个所述最小矩形框上的预设参考点的坐标获得对应的书写笔迹的第一坐标。
优选地,所述根据每个所述书写笔迹的第一坐标确定其所属的排列单位具体为:
获取相邻的两个书写笔迹的坐标差值,且当坐标差值的绝对值小于预设的阈值时,确定这两个相邻的书写笔迹属于同一个排列单位。
优选地,所述生成与被选中的排列单位对应的对齐基准线具体包括:
检测对选中的作为结尾的书写笔迹执行第一操作手势时生成的终点坐标;
提取所述选中的作为结尾的书写笔迹所属的排列单位的首个书写笔迹的第一坐标作为起点坐标;
根据所述起点坐标及所述终点坐标,生成对齐基准线。
优选地,所述生成被选中的排列单位的对齐基准线具体包括:
当检测对选中的作为基准点的书写笔迹执行第二操作手势时,提取所述作为基准点的书写笔迹的第一坐标及所属的排列单位;
根据所述第一坐标生成所述排列单位的对齐基准线。
优选地,在所述根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示之后,还包括:
当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线;
根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
优选地,在所述根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示之后,还包括:
获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
优选地,所述排列单位为行或者列。
本发明还提供了一种书写笔迹的对齐显示方法,包括:在具有触敏表面的电子装置处:
响应书写笔迹对齐请求;
识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
检测在所述触敏表面上的滑动操作;
获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线;
根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
优选地,所述识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标,具体为:
识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框;
根据每个所述最小矩形框上的预设参考点的坐标获得对应的书写笔迹的第一坐标。
优选地,所述获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线,具体为:
获取所述滑动操作所经过的至少两个书写笔迹;
根据所述滑动操作第一个经过的书写笔迹的第一坐标及最后一个经过的书写笔迹的第一坐标生成对齐基准线。
优选地,所述获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对 应的对齐基准线,具体为:
将根据所述滑动操作生成的直线设置为对齐基准线;
将与所述对齐基准线的距离小于预设距离的书写笔迹设置为与所述滑动操作对应的书写笔迹。
优选地,在所述根据所述对齐基准线确定被选中的每个所述书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示之后,还包括:
当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线;
根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
优选地,在所述根据所述对齐基准线确定被选中的每个所述书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示之后,还包括:
获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
本发明实施例还提供了一种书写笔迹的对齐显示方法,包括:在具有触敏表面的电子装置处:
识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标;
根据所述书写笔迹的第一坐标确定其所属的排列单位;
获取所属的排列单位对应的对齐基准线;
根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示。
优选地,所述所属的排列单位对应的对齐基准线根据该排列单位的首个书写笔迹的第一坐标生成;
则所述根据所述书写笔迹的第一坐标确定其所属的排列单位,具体为:
获取与所述书写笔迹相邻的相邻书写笔迹;
根据所述书写笔迹及所述相邻书写笔迹的第一坐标判断这两个书写笔迹是否属于相同的排列单位;
若是,将所述相邻书写笔迹的排列单位设置为所述书写笔迹的排列单位;
若否,则为所述书写笔迹创建新的排列单位和对齐基准线。
优选地,所述识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标具体为:
识别当前输入的书写笔迹,并生成包围所述书写笔迹的最小矩形框;
根据所述最小矩形框上的预设参考点的坐标获得所述书写笔迹的第一坐标。
本发明实施例还提供了一种电子装置,具有触敏表面,包括:
第一对齐请求响应单元,用于响应书写笔迹对齐请求:
第一识别单元,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
排列单位确定单元,用于根据每个所述书写笔迹的第一坐标确定其所属的排列单位;
第一基准线生成单元,用于生成与被选中的排列单位对应的对齐基准线;
第一移动单元,用于根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
本发明实施例还提供了一种电子装置,具有触敏表面,包括:
第二对齐请求响应单元,用于响应书写笔迹对齐请求:
第二识别单元,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
滑动操作检测单元,用于检测在触敏表面上的滑动操作;
第二基准线生成单元,用于获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线;
第二移动单元,用于根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
本发明实施例还提供了一种电子装置,具有触敏表面,包括:
第三识别单元,用于识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标;
排列单位确定单元,用于根据所述书写笔迹的第一坐标确定其所属的排列单位;
对齐基准线获取单元,用于获取所属的排列单位对应的对齐基准线;
第三移动单元,用于根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示。
本发明实施例还提供了一种电子装置,具有触敏表面,还包括至少一个存储器以及至少一个处理器;
所述存储器,包括存储于其中的至少一个可执行程序;
所述可执行程序在由所述至少一个处理器执行时,使得所述处理器实现上述的书写笔迹的对齐显示方法。
本发明实施例还提供了一种可读存储介质,所述可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述可读存储介质所在设备执行如上述的书写笔迹的对齐显示方法。
本发明实施例提供的书写笔迹的对齐显示方法、电子装置及可读存储介质,通过先确定每个书写笔迹的第一坐标,再根据第一坐标判断其所属的排列单位及确定对齐基准线,并根据对齐基准线对书写笔迹进行自动对齐,从而实现了书写笔迹的自动对齐,使得用户的手写板书保持美观整齐,提高了用户的使用体验。此外,本发明实施例还具有对齐操作简单,操作快捷等优点。
附图说明
图1是本发明第一实施例提供的书写笔迹的对齐显示方法的流程示意图。
图2是本发明第一实施例提供的电子装置上显示书写笔迹的示意图。
图3是本发明第一实施例提供的对每个书写笔迹生成最小矩形框的示意图。
图4是本发明第一实施例提供的一种生成对齐基准线的示意图。
图5是本发明第一实施例提供的另一种生成对齐基准线的示意图。
图6是根据图4生成的对齐基准线进行书写笔迹对齐的示意图。
图7是根据图5生成的对齐基准线进行书写笔迹对齐的示意图。
图8是本发明第二实施例提供的书写笔迹的对齐显示方法的流程示意图。
图9是本发明第二实施例提供的一种移动对齐基准线的示意图。
图10是本发明第二实施例提供的另一种移动对齐基准线的示意图。
图11是本发明第三实施例提供的书写笔迹的对齐显示方法的流程示意图。
图12是本发明第三实施例提供的旋转书写笔迹的示意图。
图13是本发明第四实施例提供的书写笔迹的对齐显示方法的流程示意图。
图14是本发明第四实施例提供的一种滑动操作示意图。
图15是根据图14的滑动操作进行书写笔迹对齐的示意图。
图16是本发明第四实施例提供的另一种滑动操作示意图。
图17是根据图16的滑动操作进行书写笔迹对齐的示意图。
图18是本发明第五实施例提供的书写笔迹的对齐显示方法的流程示意图。
图19是本发明第五实施例提供的生成包围输入的书写笔迹的最小矩形框的示意图。
图20是本发明第五实施例提供的对输入的书写笔迹进行对齐的示意图。
图21是本发明第六实施例提供的电子装置的结构示意图。
图22是本发明第七实施例提供的电子装置的结构示意图。
图23是本发明第八实施例提供的电子装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1是本发明第一实施例提供的书写笔迹的对齐显示方法,其可由具有触敏表面的电子装置来执行,并至少包括如下步骤:
S101,响应书写笔迹对齐请求。
在本实施例中,所述电子装置可为智能平板、电子白板、电子书写板、智能手机等具有触敏表面的电子设备,其中,这里的触敏表面可以是电容屏,也可以是电阻屏、红外屏等,本发明不做具体限定。
在本实施例中,如图2所述,用户在所述电子装置的触敏表面上进行书写,所述电子装置在检测到用户的触摸操作后,生成相应的书写笔迹,并将所述书写笔迹在显示屏上进行显 示。其中,由于用户的书写习惯以及各种因素,往往这些书写笔迹是不对齐的。此时,用户可触发书写笔迹对齐请求来对书写笔迹进行对齐,其中,所述书写笔迹对齐请求可以通过触发在显示界面上提供的预定控件(如图2所示的“笔迹对齐”控件)来发出,也可以是通过在触敏表面上执行预先定义的对齐手势来发出,本发明不做具体限定。
S102,识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标。
在本发明实施例中,在检测到书写笔迹对齐请求后,所述电子装置先对显示界面上的书写笔迹进行识别,以识别获得位于显示界面中的所有书写笔迹以及每个所述书写笔迹当前的第一坐标。
具体地,如图3所示,在识别到一个书写笔迹后,所述电子装置生成包围所述书写笔迹的最小矩形框02,并将所述最小矩形框的预设参考点03的坐标设置为所述书写笔迹的第一坐标。
需要说明的是,在本发明实施例中,所述预设参考点可以为所述最小矩形框的中心点,也可以是四个顶点或者任意选定的一个点,本发明不做具体限定。
需要说明的是,在本发明的其他实施例中,可不限定用矩形框,还可以圆形框或其他形状的框来确定每个书写笔迹的第一坐标,这些方案均在本发明的保护范围之内,在此不做赘述。此外,最小矩形框可显示也可不显示,本发明不做具体限定。
S103,根据每个所述书写笔迹的第一坐标确定其所属的排列单位。
在本发明实施例中,在获得每个所述书写笔迹的第一坐标后,即可以根据其第一坐标来获得其所属的排列单位。其中,这里的排列单位可以是行或者列,为方便描述,下文以“行”为例子进行描述,列的情况相似,这里不做赘述。
在本发明实施例中,在根据所述第一坐标确定每个书写笔迹书写的行时,首先从左向右扫描获取第一个书写笔迹(即图3中的“书”),接着继续扫描获取与“书”相邻的书写笔迹(即“写”),然后判断这两个书写笔迹的纵坐标的差的绝对值和横坐标的差的绝对值是否大于预设的阈值,若有一个差的绝对值大于所述阈值,则说明“书”和“写”不位于同一行;若均不大于,则说明“书”和“写”位于同一行。
如图3所示,可以得到,“书”、“写”、“笔”、“迹”、“对”、“齐”这6个书写笔迹是位于同一行的,而“方”、“法”与“书”不位于同一行。
S104,生成与被选中的排列单位对应的对齐基准线。
在一个实现方式中,如图4所示,用户可选中一个书写笔迹(如图4所示的“齐”)作为结尾,然后执行第一操作手势,以结尾的第一坐标作为起点进行滑动生成一条射线,当射线的长度大于预设的阈值或者用户执行抬起操作后,电子装置将所述射线的终点作为终点坐标,然后提取所述选中的作为结尾的书写笔迹所属的排列单位的首个书写笔迹(即“书”)的第一坐标作为起点坐标,并连接所述起点坐标及所述终点坐标,生成对齐基准线04。
在另一个实现方式中,如图5所示,用户可通过执行第二操作手势(如长按)来选择一个作为基准点的书写笔迹(可以是任意一个书写笔迹,例如图5中的“笔”),然后根据作为 基准点的书写笔迹的第一坐标生成所述排列单位的对齐基准线,例如,所述对齐基准线为经过所述作为基准点的书写笔迹的第一坐标且与所述触敏表面的水平线平行的直线。即y=a的直线,其中,a为作为基准点的书写笔迹的第一坐标中的纵坐标的值。
S105,根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
在本发明实施例中,在确定了所述对齐基准线后,即可用根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,其中,每个所述书写笔迹的第二坐标位于所述对齐基准线上,且第二坐标的横坐标与第一坐标的横坐标保持一致。
如图6和图7所示,在本发明实施例中,在确定第二坐标后,即可将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
综上所述,本发明实施例提供的书写笔迹的对齐显示方法,通过先确定每个书写笔迹的第一坐标,再根据第一坐标判断其所属的排列单位及确定对齐基准线,并根据对齐基准线对书写笔迹进行自动对齐,从而实现了书写笔迹的自动对齐,使得用户的手写板书保持美观整齐,提高了用户的使用体验。此外,本发明实施例还具有对齐操作简单,操作快捷等优点。
请参阅图8,本发明第二实施例提供了另一种书写笔迹的对齐显示方法,本发明第二实施例在第一实施例的基础上增加了如下步骤:
S206,当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线。
S207,根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
在本实施例中,用户可以对生成的对齐基准线进行移动,在对齐基准线被移动后,所述电子装置会根据对齐基准线的位置重新生成每个书写笔迹的第二坐标,并根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
其中,所述移动对齐基准线可以是令所述对齐基准线绕一个点做转动(如图9所示),也可以是整体平移所述对齐基准线(如图10所示),这些方案都在本发明的保护范围之内,在此不做赘述。
本实施例中,通过移动对齐基准线来同时移动位于对齐基准线上的书写笔迹,使得用户可以实现更多样化的对齐,例如,斜对齐、正对齐等,同时,本实施例的对齐操作简单,非常便于用户的操作,提高了用户的使用体验。
请参阅图11,本发明第三实施例提供了另一种书写笔迹的对齐显示方法,本发明第二实施例在第一实施例的基础上增加了如下步骤:
S308,获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
在本实施例中,如果所述对齐基准线本身的倾斜的,这时为了适应用户的查阅习惯,一般也将书写笔迹设置成倾斜的,为此,本实施例在将每个所述书写笔迹移动至对应的第二坐标进行显示后,还获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋 转与所述对齐基准线对应的书写笔迹,如图12所示。
本实施例中,根据所述对齐基准线与触敏表面的水平线的夹角对应旋转书写笔迹,使得最终显示的书写笔迹更符合用户的查阅习惯。
请参阅图13,本发明第四实施例提供了另一种书写笔迹的对齐显示方法,包括:
S401,响应书写笔迹对齐请求。
本实施例可由具有触敏表面的电子装置来执行,其中,所述电子装置可为电子白板、智能平板、电子手写板、智能手机等具有触敏表面的电子设备,其中,这里的触敏表面可以是电容屏,也可以是电阻屏、红外屏等,本发明不做具体限定。
S402,识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标。
其中,具体地,可以先识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框,再根据每个所述最小矩形框的预设参考点的坐标获得对应的书写笔迹的第一坐标。
S403,检测在所述触敏表面上的滑动操作。
S404,获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线。
S405,根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
在一个实现方式中,如图14所示,用户可通过连续滑动的方式来选择需要对齐的书写笔迹,电子装置在检测到被用户的滑动操作所述经过的书写笔迹后,根据所述滑动操作第一个经过的书写笔迹的第一坐标及最后一个经过的书写笔迹的第一坐标生成对齐基准线,然后根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示,如图15所示。
在一个实现方式中,如图16所示,用户可以在触敏表面上进行划直线操作,此时,所述电子装置根据所述用户划出的直线生成对齐基准线,然后将与所述对齐基准线的距离小于预设距离的书写笔迹设置为与所述滑动操作对应的书写笔迹根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示,如图17所示。其中,图17中,由于书写笔迹“方”与所述对齐基准线的距离较大,因而没有被选中。若用户想要选中书写笔迹“方”,可将直线往朝向方的位置划出即可。
本实施例中,首先获取每个书写笔迹的第一坐标,再根据用户的滑动操作来生成对齐基准线及确定需要对齐的书写笔迹,并根据对齐基准线对书写笔迹进行自动对齐,从而实现了书写笔迹的自动对齐,使得用户的手写板书保持美观整齐,提高了用户的使用体验。此外,本发明实施例还具有对齐操作简单,操作快捷等优点。
优选地,还包括:
当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线。
根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
本实施例中,通过移动对齐基准线来同时移动位于对齐基准线上的书写笔迹,使得用户可以实现更多样化的对齐,例如,斜对应、正对齐等,同时,本实施例的对齐操作简单,非常便于用户的操作。
优选地,还包括:
获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
本实施例中,根据所述对齐基准线与触敏表面的水平线的夹角对应旋转书写笔迹,使得最终显示的书写笔迹更符合用户的查阅习惯。
请参阅图18,本发明第五实施例提供了另一种书写笔迹的对齐显示方法,包括:
S501,识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标。
本实施例可由具有触敏表面的电子装置来执行,其中,所述电子装置可为电子白板、智能平板、电子手写板、智能手机等具有触敏表面的电子设备,其中,这里的触敏表面可以是电容屏,也可以是电阻屏、红外屏等,本发明不做具体限定。
如图19所示,在本实施例中,电子装置在检测到用户输入的书写笔迹“方”后,识别当前输入的书写笔迹,生成包围所述书写笔迹的最小矩形框,并根据所述最小矩形框的预设参考点的坐标获得所述书写笔迹的第一坐标。其中,图19中的最小矩形框可以显示,也可以不显示,本发明不做赘述。
S502,根据所述书写笔迹的第一坐标确定其所属的排列单位。
具体地,步骤S502具体为:
获取与所述书写笔迹相邻的相邻书写笔迹。
根据所述书写笔迹及所述相邻书写笔迹的第一坐标判断这两个书写笔迹是否属于相同的排列单位。
若是,将所述相邻书写笔迹的排列单位设置为所述书写笔迹的排列单位。
若否,则为所述书写笔迹创建新的排列单位和对齐基准线。
S503,获取所属的排列单位对应的对齐基准线。
在本实施例中,所述所属的排列单位对应的对齐基准线根据该排列单位的首个书写笔迹的第一坐标生成,例如,所述对齐基准线为经过所述首个书写笔迹的第一坐标,且与所述触敏表面的水平线保持平行的直线。
如图19所示,在判断时,若当前输入的书写笔迹与其相邻书写笔迹的横坐标的差的绝对值大于预设的阈值或者纵坐标的差的绝对值大于预设的阈值时,则说明所述书写笔迹与所述相邻书写笔迹不属于相同的排列单位。若当前输入的书写笔迹与其相邻书写笔迹的横坐标的差的绝对值和纵坐标的差的绝对值均小于预设的阈值时,则说明所述书写笔迹与所述相邻书写笔迹属于相同的排列单位。
S504,根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所 述第二坐标进行显示。
如图19和图20所示,由于判断出“方”与“齐”位于同一排列单元,因而可根据对齐基准线来获取所述书写笔迹“方”的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示(图20)。
本实施例中,通过获取当前输入的书写笔迹的第一坐标及其所属的排列单位的对齐基准线,并根据对齐基准线对输入的书写笔迹进行自动对齐,从而实现了书写笔迹的自动对齐,使得用户的手写板书保持美观整齐,提高了用户的使用体验。此外,本发明实施例还具有对齐操作简单,操作快捷等优点。
请参阅图21,本发明第六实施例还提供了一种电子装置600,所述电子装置600包括:
第一对齐请求响应单元610,用于响应书写笔迹对齐请求。
第一识别单元620,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标。
排列单位确定单元630,用于根据每个所述书写笔迹的第一坐标确定其所属的排列单位。
第一基准线生成单元640,用于生成与被选中的排列单位对应的对齐基准线。
第一移动单元650,用于根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
优选地,所述第一识别单元620包括:
最小矩形框生成模块,用于识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框;
第一坐标获取模块,用于根据每个所述最小矩形框的预设参考点的坐标获得对应的书写笔迹的第一坐标。
优选地,所述排列单位确定单元630具体用于,获取相邻的两个书写笔迹的坐标差值,且当坐标差值的绝对值小于预设的阈值时,确定这两个相邻的书写笔迹属于同一个排列单位。
优选地,所述第一基准线生成单元640具体包括:
终点坐标检测模块,用于检测对选中的作为结尾的书写笔迹执行第一操作手势时生成的终点坐标;
起点坐标提取模块,用于提取所述选中的作为结尾的书写笔迹所属的排列单位的首个书写笔迹的第一坐标作为起点坐标;
连接模块,用于根据所述起点坐标及所述终点坐标,生成对齐基准线。
优选地,所述第一基准线生成单元640具体包括:
基准点提取模块,用于当检测对选中的作为基准点的书写笔迹执行第二操作手势时,提取所述作为基准点的书写笔迹的第一坐标及所属的排列单位;
基准线生成模块,用于根据所述第一坐标生成所述排列单位的对齐基准线。
优选地,还包括:
对齐基准线移动单元,用于当在触敏表面上检测到对所述对齐基准线的移动操作时,移 动所述对齐基准线;
书写笔迹移动单元,用于根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
优选地,还包括:
书写笔迹旋转单元,用于获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
请参阅图22,本发明第七实施例还提供了一种电子装置700,所述电子装置700包括:
第二对齐请求响应单元710,用于响应书写笔迹对齐请求:
第二识别单元720,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
滑动操作检测单元730,用于检测在触敏表面上的滑动操作;
第二基准线生成单元740,用于获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线;
第二移动单元750,用于根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
优选地,所述第二识别单元720具体包括:
最小矩形框生成模块,用于识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框;
第一坐标获取模块,用于根据每个所述最小矩形框的预设参考点的坐标获得对应的书写笔迹的第一坐标。
优选地,所述第二基准线生成单元740具体包括:
第一书写笔迹获取模块,用于获取所述滑动操作所经过的至少两个书写笔迹;
第一对齐基准线生成模块,用于根据所述滑动操作第一个经过的书写笔迹的第一坐标及最后一个经过的书写笔迹的第一坐标生成对齐基准线。
优选地,所述第二基准线生成单元740具体包括:
第二对齐基准线生成模块,用于将根据所述滑动操作生成的直线设置为对齐基准线;
第二书写笔迹获取模块,用于将与所述对齐基准线的距离小于预设距离的书写笔迹设置为与所述滑动操作对应的书写笔迹。
优选地,还包括:
对齐基准线移动单元,用于当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线;
书写笔迹移动单元,用于根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
优选地,还包括:
书写笔迹旋转单元,用于获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
请参阅图23,本发明第八实施例还提供了一种电子装置800,所述电子装置800包括:
第三识别单元810,用于识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标;
排列单位确定单元820,用于根据所述书写笔迹的第一坐标确定其所属的排列单位;
对齐基准线获取单元830,用于获取所属的排列单位对应的对齐基准线;
第三移动单元840,用于根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示。
优选地,所述所属的排列单位对应的对齐基准线根据该排列单位的首个书写笔迹的第一坐标生成;
则所述排列单位确定单元820具体包括:
相邻书写笔迹获取模块,用于获取与所述书写笔迹相邻的相邻书写笔迹;
判断模块,用于根据所述书写笔迹及所述相邻书写笔迹的第一坐标判断这两个书写笔迹是否属于相同的排列单位;
若是,将所述相邻书写笔迹的排列单位设置为所述书写笔迹的排列单位;
若否,则为所述书写笔迹创建新的排列单位和对齐基准线。
优选地,所述第三识别单元810具体包括:
最小矩形框生成模块,用于识别当前输入的书写笔迹,并生成包围所述书写笔迹的最小矩形框;
第一坐标获取模块,用于根据所述最小矩形框的预设参考点的坐标获得所述书写笔迹的第一坐标。
本发明第九实施例还提供了一种电子装置,所述电子装置具有触敏表面、至少一个存储器以及至少一个处理器;所述触敏表面及所述存储器耦接至所述至少一个处理器。其中,所述存储器,包括存储于其中的至少一个可执行程序;所述可执行程序在由所述至少一个处理器执行时,使得所述处理器实现上述任一实施例所述的书写笔迹的对齐显示方法。
本发明第十实施例还提供了一种可读存储介质,所述可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述可读存储介质所在设备执行如上述任一实施例所述的书写笔迹的对齐显示方法。
示例性的,第九及第十实施例中,所述计算机程序可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在具有触敏表面的电子装置中的执行过程。
所述电子装置可以是智能手机、手写板、智能平板等终端设备。所述电子装置可包括但不仅限于处理器、存储器。本领域技术人员可以理解,所述示意图仅仅是电子装置的示例,并不构成对电子装置的限定,所述电子装置可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子装置还可以包括输入输出设备、网络接入设备、总线等。
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述操作不同层级图片的终端设备的控制中心,利用各种接口和线路连接整个电子装置的各个部分。
所述存储器可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述操作不同层级图片的终端设备的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
其中,所述电子装置集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图 中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (18)

  1. 一种书写笔迹的对齐显示方法,其特征在于,包括:在具有触敏表面的电子装置处:
    响应书写笔迹对齐请求;
    识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
    根据每个所述书写笔迹的第一坐标确定其所属的排列单位;
    生成与被选中的排列单位对应的对齐基准线;
    根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
  2. 根据权利要求1所述的书写笔迹的对齐显示方法,其特征在于,所述识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标,具体为:
    识别位于显示界面中的至少两个书写笔迹,并生成包围每个所述书写笔迹的最小矩形框;
    根据每个所述最小矩形框上的预设参考点的坐标获得对应的书写笔迹的第一坐标。
  3. 根据权利要求1所述的书写笔迹的对齐显示方法,其特征在于,所述根据每个所述书写笔迹的第一坐标确定其所属的排列单位具体为:
    获取相邻的两个书写笔迹的坐标差值,且当坐标差值的绝对值小于预设的阈值时,确定这两个相邻的书写笔迹属于同一个排列单位。
  4. 根据权利要求1所述的书写笔迹的对齐显示方法,其特征在于,所述生成与被选中的排列单位对应的对齐基准线具体包括:
    检测对选中的作为结尾的书写笔迹执行第一操作手势时生成的终点坐标;
    提取所述选中的作为结尾的书写笔迹所属的排列单位的首个书写笔迹的第一坐标作为起点坐标;
    根据所述起点坐标及所述终点坐标,生成对齐基准线。
  5. 根据权利要求1所述的书写笔迹的对齐显示方法,其特征在于,所述生成被选中的排列单位的对齐基准线具体包括:
    当检测对选中的作为基准点的书写笔迹执行第二操作手势时,提取所述作为基准点的书写笔迹的第一坐标及所属的排列单位;
    根据所述第一坐标生成所述排列单位的对齐基准线。
  6. 根据权利要求1至5任意一项所述的书写笔迹的对齐显示方法,其特征在于,在所述根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示之后,还包括:
    当在触敏表面上检测到对所述对齐基准线的移动操作时,移动所述对齐基准线;
    根据所述对齐基准线的移动相应移动与所述对齐基准线对应的书写笔迹。
  7. 根据权利要求1至5任意一项所述的书写笔迹的对齐显示方法,其特征在于,在所述根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示之后,还包括:
    获取所述对齐基准线与触敏表面的水平线的夹角,并根据所述夹角相应旋转与所述对齐基准线对应的书写笔迹。
  8. 根据权利要求1所述的书写笔迹的对齐显示方法,其特征在于,所述排列单位为行或者列。
  9. 一种书写笔迹的对齐显示方法,其特征在于,包括:在具有触敏表面的电子装置处:
    响应书写笔迹对齐请求;
    识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
    检测在所述触敏表面上的滑动操作;
    获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线;
    根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
  10. 根据权利要求9所述的书写笔迹的对齐显示方法,其特征在于,所述获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线,具体为:
    获取所述滑动操作所经过的至少两个书写笔迹;
    根据所述滑动操作第一个经过的书写笔迹的第一坐标及最后一个经过的书写笔迹的第一坐标生成对齐基准线。
  11. 根据权利要求9所述的书写笔迹的对齐显示方法,其特征在于,所述获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线,具体为:
    将根据所述滑动操作生成的直线设置为对齐基准线;
    将与所述对齐基准线的距离小于预设距离的书写笔迹设置为与所述滑动操作对应的书写笔迹。
  12. 一种书写笔迹的对齐显示方法,其特征在于,包括:在具有触敏表面的电子装置处:
    识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标;
    根据所述书写笔迹的第一坐标确定其所属的排列单位;
    获取所属的排列单位对应的对齐基准线;
    根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示。
  13. 根据权利要求12所述的书写笔迹的对齐显示方法,其特征在于,所述所属的排列单位对应的对齐基准线根据该排列单位的首个书写笔迹的第一坐标生成;
    则所述根据所述书写笔迹的第一坐标确定其所属的排列单位,具体为:
    获取与所述书写笔迹相邻的相邻书写笔迹;
    根据所述书写笔迹及所述相邻书写笔迹的第一坐标判断这两个书写笔迹是否属于相同的排列单位;
    若是,将所述相邻书写笔迹的排列单位设置为所述书写笔迹的排列单位;
    若否,则为所述书写笔迹创建新的排列单位和对齐基准线。
  14. 一种电子装置,具有触敏表面,其特征在于,包括:
    第一对齐请求响应单元,用于响应书写笔迹对齐请求;
    第一识别单元,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
    排列单位确定单元,用于根据每个所述书写笔迹的第一坐标确定其所属的排列单位;
    第一基准线生成单元,用于生成与被选中的排列单位对应的对齐基准线;
    第一移动单元,用于根据所述对齐基准线确定所述被选中的排列单位上的每个所述书写笔迹的第二坐标,并将属于所述排列单位上的每个所述书写笔迹移动至对应的第二坐标进行显示。
  15. 一种电子装置,具有触敏表面,其特征在于,包括:
    第二对齐请求响应单元,用于响应书写笔迹对齐请求:
    第二识别单元,用于识别获得位于显示界面中的至少两个书写笔迹以及每个所述书写笔迹当前的第一坐标;
    滑动操作检测单元,用于检测在触敏表面上的滑动操作;
    第二基准线生成单元,用于获取与所述滑动操作对应的至少两个书写笔迹,并生成与所述滑动操作对应的对齐基准线;
    第二移动单元,用于根据所述对齐基准线确定所述的至少两个书写笔迹的第二坐标,并将每个所述书写笔迹移动至所述第二坐标进行显示。
  16. 一种电子装置,具有触敏表面,其特征在于,包括:
    第三识别单元,用于识别当前输入的书写笔迹,并获取当前输入的所述书写笔迹的第一坐标;
    排列单位确定单元,用于根据所述书写笔迹的第一坐标确定其所属的排列单位;
    对齐基准线获取单元,用于获取所属的排列单位对应的对齐基准线;
    第三移动单元,用于根据所述对齐基准线确定所述书写笔迹的第二坐标,并将所述书写笔迹移动至所述第二坐标进行显示。
  17. 一种电子装置,具有触敏表面,其特征在于,还包括至少一个存储器以及至少一个处理器;
    所述存储器,包括存储于其中的至少一个可执行程序;
    所述可执行程序在由所述至少一个处理器执行时,使得所述处理器实现如权利要求1至13中任一项所述的书写笔迹的对齐显示方法。
  18. 一种可读存储介质,其特征在于,所述可读存储介质包括存储的计算机程序,其中,在所述计算机程序运行时控制所述可读存储介质所在设备执行如权利要求1至13中任意一项所述的书写笔迹的对齐显示方法。
PCT/CN2017/116632 2017-08-21 2017-12-15 书写笔迹的对齐显示方法、电子装置及可读存储介质 Ceased WO2019037352A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710722555.0A CN107608612A (zh) 2017-08-21 2017-08-21 书写笔迹的对齐显示方法、电子装置及可读存储介质
CN201710722555.0 2017-08-21

Publications (1)

Publication Number Publication Date
WO2019037352A1 true WO2019037352A1 (zh) 2019-02-28

Family

ID=61065458

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116632 Ceased WO2019037352A1 (zh) 2017-08-21 2017-12-15 书写笔迹的对齐显示方法、电子装置及可读存储介质

Country Status (2)

Country Link
CN (1) CN107608612A (zh)
WO (1) WO2019037352A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860157A (zh) * 2019-11-12 2021-05-28 广州视源电子科技股份有限公司 显示元素调整方法、装置、设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805108B (zh) * 2018-07-17 2024-03-12 珠海向导科技有限公司 一种板书笔迹记录方法
CN113335825B (zh) * 2020-03-03 2022-12-23 兰剑智能科技股份有限公司 货位动态定位方法、装置和电子设备
CN112434489B (zh) * 2020-11-24 2024-03-12 深圳市明源云科技有限公司 图表文件处理方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060045345A1 (en) * 2004-08-26 2006-03-02 Yuan-Heng Wu Method for inputting and permuting original scripts to external mobile phone and the device for performing the same
CN106547730A (zh) * 2015-09-22 2017-03-29 北大方正集团有限公司 版面对象自动调整方法及装置
CN107003994A (zh) * 2014-11-25 2017-08-01 三星电子株式会社 用于修正手写字符的方法和设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183283A (zh) * 2007-12-04 2008-05-21 哈尔滨工业大学深圳研究生院 一种直接写入手写体信息的方法
CN101916174B (zh) * 2010-06-28 2013-01-09 汉王科技股份有限公司 电子文档笔迹的显示方法及装置、处理方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060045345A1 (en) * 2004-08-26 2006-03-02 Yuan-Heng Wu Method for inputting and permuting original scripts to external mobile phone and the device for performing the same
CN107003994A (zh) * 2014-11-25 2017-08-01 三星电子株式会社 用于修正手写字符的方法和设备
CN106547730A (zh) * 2015-09-22 2017-03-29 北大方正集团有限公司 版面对象自动调整方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860157A (zh) * 2019-11-12 2021-05-28 广州视源电子科技股份有限公司 显示元素调整方法、装置、设备及存储介质
CN112860157B (zh) * 2019-11-12 2022-06-24 广州视源电子科技股份有限公司 显示元素调整方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN107608612A (zh) 2018-01-19

Similar Documents

Publication Publication Date Title
CN104123078B (zh) 输入信息的方法和设备
CN108459836A (zh) 批注显示方法、装置、设备及存储介质
CN108733296B (zh) 书写笔迹的擦除方法、装置和设备
CN103718149B (zh) 一种文本的处理方法及触屏设备
CN108334486A (zh) 表格控制方法、装置、设备及存储介质
CN103902222B (zh) 触摸屏滑动调整方法、调整装置及触控设备
TWI656472B (zh) 介面調整方法及電子裝置
EP2869174A1 (en) Method and device for text input and display of intelligent terminal
WO2019037352A1 (zh) 书写笔迹的对齐显示方法、电子装置及可读存储介质
CN110045840A (zh) 一种书写轨迹关联的方法、装置、终端设备和存储介质
CN110045909A (zh) 基于书写轨迹的椭圆处理方法、装置、设备及存储介质
WO2018010316A1 (zh) 桌面页面管理的方法及装置
CN106598623A (zh) 一种图片组合模板的生成方法及移动终端
CN110069205A (zh) 一种书写轨迹调整的方法、装置、终端设备和存储介质
CN104881225A (zh) 一种调节条的控制方法和装置
WO2020215719A1 (zh) 基于键盘的操作处理方法、装置、设备及介质
CN103235694A (zh) 一种电子书阅读器的翻页方法、装置和移动终端
CN105022579A (zh) 基于图像处理的虚拟键盘的实现方法和装置
KR101891306B1 (ko) 사람과 기계의 상호작용을 구현하는 방법 및 장치
CN106528080A (zh) 一种移动终端的应用图标的放置方法和移动终端
CN108492349B (zh) 书写笔画的处理方法、装置、设备和存储介质
CN102707891B (zh) 一种校准触屏输入的方法和移动终端
CN107479729A (zh) 触控点的定位方法、装置、系统、显示终端以及书写笔
CN108363485A (zh) 非触摸屏显示终端的控制方法、装置、系统和计算机设备
CN110333780A (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: 17922772

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: 17922772

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17922772

Country of ref document: EP

Kind code of ref document: A1