Electronic whiteboard writing method, system, readable storage medium and computer

By defining the original point and two-dimensional coordinate system on the electronic whiteboard, verifying the contact coordinates and rendering regularly, the problem of low multi-contact recognition accuracy of infrared electronic whiteboards is solved, and high-precision contact recognition and fast writing are achieved Font display.

CN118819325BActive Publication Date: 2024-12-06ZIGUANG MODU EDUCATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411295917.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-06
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

Infrared electronic whiteboards are prone to errors when identifying multi-contacts, and the surrounding environment interferes with the contact coordinates are not accurate enough, affecting the use effect.

Method used

By defining the original points of the electronic whiteboard, collecting stroke data in real time, building a two-dimensional coordinate system, calculating contact coordinates, and performing angle verification and rule rendering, selection decisions and data fusion, forming the final writing font to ensure that touch Accuracy and quick display of point recognition.

Benefits of technology

It improves the accuracy of contact recognition, saves calculation time, realizes the effect of quickly simulating the writing of Chinese characters by brush, and improves the writing font recognition and display effect of electronic whiteboards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819325B_ABST
    Figure CN118819325B_ABST
Patent Text Reader

Abstract

The present invention provides an electronic whiteboard writing method, system, readable storage medium and computer, the method comprising: collecting stroke line data formed by a user writing on an electronic whiteboard in real time according to the original point position; performing regular rendering on the starting data, the running data and the ending data respectively to form corresponding simulation data; performing selection decision on the starting data, the turning data and the ending data, and performing data fusion on the selection decision result and the simulation data to obtain corresponding preliminary font data; performing morphological casting on the preliminary font data, and performing smoothing processing according to the morphological casting result to obtain the final writing font, and dynamically displaying the writing font. The present invention performs regular rendering and selection decision on the stroke line data respectively, and performs data fusion on the corresponding results to quickly simulate the effect of writing Chinese characters with a brush, thereby achieving rapid recognition and display of the writing font.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an electronic whiteboard writing method, system, readable storage medium and computer. Background Art

[0002] With the rapid development of science and technology and the accelerated update of artificial intelligence, the level of the education industry is also constantly improving. As a new product in the education industry, the electronic whiteboard is a digital teaching demonstration device that replaces the traditional blackboard and chalk. The electronic whiteboard can be completely separated from the mouse and keyboard, and the user can use fingers or a specific pen to edit, annotate and save computer files on the electronic whiteboard, which brings great convenience to users.

[0003] At present, the screen technology in electronic whiteboards is usually capacitive, resistive and infrared. Infrared electronic whiteboards are widely used in the education industry due to their low price and high stability. However, infrared scanning technology is prone to errors in the recognition of multiple touch points, and when there is interference such as emission and refraction in the surrounding environment, the propagation direction of the infrared will change, resulting in the coordinates of the touch points finally recognized by the system to be inaccurate, affecting the use effect. Summary of the invention

[0004] Based on this, the purpose of the present invention is to provide an electronic whiteboard writing method, system, readable storage medium and computer to at least solve the deficiencies in the above-mentioned technology.

[0005] The present invention provides an electronic whiteboard writing method, comprising:

[0006] The steps of defining the original point position of the electronic whiteboard, collecting the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and processing the stroke line data to obtain corresponding stroke data, wherein the stroke data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data, and defining the original point position of the electronic whiteboard, collecting the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and processing the stroke line data to obtain corresponding stroke data include:

[0007] Constructing a two-dimensional coordinate system according to the original point position, and calculating the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system;

[0008] respectively calculating the angles between the touch point coordinates corresponding to the stroke line data and the frame of the electronic whiteboard, and performing coordinate verification on the touch point coordinates corresponding to the stroke line data according to the angles, and if the coordinate verification passes, converting the touch point coordinates corresponding to the stroke line data into corresponding stroke data;

[0009] Performing regular rendering on the stroke start data, the stroke run data and the stroke end data respectively to form corresponding simulation data;

[0010] Performing a selection decision on the stroke start data, the turning point data and the stroke end data, and fusing the selection decision result with the simulation data to obtain corresponding preliminary font data;

[0011] The preliminary font data is morphologically casted, and smoothed according to the morphological casting result to obtain a final writing font, and the final writing font is dynamically displayed.

[0012] Furthermore, the step of verifying the coordinates of the touch points corresponding to the stroke line data according to the angle includes:

[0013] Dividing the angle into four groups of verification data according to the border points of the electronic whiteboard, and calculating the verification coordinates of the touch point coordinates corresponding to the stroke line data using each of the verification data;

[0014] If the verification coordinates calculated by the verification data are the same, the touch point coordinates corresponding to the verification coordinates are marked as having passed verification.

[0015] Further, the four corner points of the frame of the electronic whiteboard are defined as , , as well as , where the border points , and the angle , For the first set of verification data, border points , And the angle , For the second set of verification data, the border points , and the angle , For the third set of verification data, border points , and the angle , Verify data for the fourth group;

[0016] The calculation formula for the horizontal and vertical coordinates calculated by the first set of verification data is:

[0017] ;

[0018] ;

[0019] In the formula, Represents border points , Length between or border points , The length between is the length of the entire electronic whiteboard;

[0020] The calculation formula for the horizontal and vertical coordinates calculated by the second set of verification data is:

[0021] ;

[0022] ;

[0023] In the formula, Represents border points , Length between or border points , The length between them is the height of the entire electronic whiteboard;

[0024] The calculation formula for the horizontal and vertical coordinates calculated by the third set of verification data is:

[0025] ;

[0026] ;

[0027] The calculation formula for the horizontal and vertical coordinates calculated by the fourth set of verification data is:

[0028] ;

[0029] .

[0030] Furthermore, the steps of respectively rendering the stroke start data, the stroke stroke data and the stroke end data according to rules to form corresponding simulation data include:

[0031] Acquire corresponding rendering rules based on the writing parameters of the user, and adjust the brush sizes of the starting stroke data and the ending stroke data;

[0032] The stroke data, the adjusted stroke start data and the adjusted stroke end data are rendered according to the rendering rules to simulate the writing behavior of a brush and form corresponding simulation data.

[0033] The present invention also provides an electronic whiteboard writing system, comprising:

[0034] The data acquisition module is used to define the original point position of the electronic whiteboard, and collect the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and perform data processing on the stroke line data to obtain corresponding stroke data, wherein the stroke data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data. The data acquisition module includes:

[0035] A coordinate system construction unit, used to construct a two-dimensional coordinate system according to the original point position, and calculate the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system;

[0036] A coordinate verification unit, used to calculate the angles between the touch point coordinates corresponding to the stroke line data and the frame of the electronic whiteboard, and verify the touch point coordinates corresponding to the stroke line data according to the angles. If the coordinate verification passes, the touch point coordinates corresponding to the stroke line data are converted into corresponding stroke data;

[0037] A rule rendering module, used for performing rule rendering on the stroke start data, the stroke run data and the stroke end data respectively to form corresponding simulation data;

[0038] A selection decision module is used to make a selection decision on the stroke start data, the turning data and the stroke end data, and fuse the selection decision result with the simulation data to obtain corresponding preliminary font data;

[0039] The font data processing module is used to perform morphological casting on the preliminary font data, and perform smoothing according to the morphological casting result to obtain a final writing font, and dynamically display the final writing font.

[0040] Furthermore, the coordinate verification unit is specifically used for:

[0041] Dividing the angle into four groups of verification data according to the border points of the electronic whiteboard, and calculating the verification coordinates of the touch point coordinates corresponding to the stroke line data using each of the verification data;

[0042] If the verification coordinates calculated by the verification data are the same, the touch point coordinates corresponding to the verification coordinates are marked as having passed verification.

[0043] Furthermore, the rule rendering module includes:

[0044] A rule acquisition unit, configured to acquire a corresponding rendering rule based on the writing parameters of the user, and adjust the brush sizes of the starting stroke data and the ending stroke data;

[0045] A rule rendering unit is used to perform rule rendering on the stroke data, the adjusted stroke start data and the adjusted stroke end data using the rendering rule to simulate the writing behavior of a brush and form corresponding simulation data.

[0046] The present invention also provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned electronic whiteboard writing method is implemented.

[0047] The present invention also provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned electronic whiteboard writing method when executing the computer program.

[0048] The electronic whiteboard writing method, system, readable storage medium and computer of the present invention define the original points of the electronic whiteboard, use the original points to collect the corresponding stroke line data, and use multi-touch point coordinate positioning to ensure the accuracy of touch point recognition and save a lot of computing time; respectively perform rule rendering and selection decisions on the stroke line data, and perform data fusion on the corresponding results to quickly simulate the effect of writing Chinese characters with a brush, thereby achieving rapid recognition and display of written fonts. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a flow chart of the electronic whiteboard writing method in the first embodiment of the present invention;

[0050] Figure 2 for Figure 1 Detailed flow chart of step S101;

[0051] Figure 3 A point distribution diagram calculated for coordinate verification of the electronic whiteboard in the first embodiment of the present invention;

[0052] Figure 4 for Figure 1 Detailed flow chart of step S102;

[0053] Figure 5 is a structural block diagram of an electronic whiteboard writing system in a second embodiment of the present invention;

[0054] Figure 6 FIG. 4 is a structural block diagram of a computer in a third embodiment of the present invention.

[0055] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0056] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0058] Embodiment 1

[0059] See also Figure 1 , which shows the electronic whiteboard writing method in the first embodiment of the present invention, and the method specifically includes steps S101 to S104:

[0060] S101, defining the original point position of the electronic whiteboard, and collecting the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and performing data processing on the stroke line data to obtain corresponding stroke data, wherein the stroke data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data;

[0061] For further information, see Figure 2 , the step S101 specifically includes steps S1011~S1012:

[0062] S1011, constructing a two-dimensional coordinate system according to the original point position, and calculating the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system;

[0063] S1012, respectively calculate the angles between the touch point coordinates corresponding to the stroke line data and the border of the electronic whiteboard, and verify the touch point coordinates corresponding to the stroke line data according to the angles. If the coordinate verification passes, convert the touch point coordinates corresponding to the stroke line data into corresponding stroke data.

[0064] In the specific implementation, the original point position of the electronic whiteboard is defined. In this embodiment, the original point position is the upper left corner of the electronic whiteboard. A two-dimensional coordinate system is constructed according to the original point position, wherein the right direction is the X axis and the bottom is the Y axis. The original point position and the two-dimensional coordinate system are used to calculate the coordinates of all the touch points of the stroke line data formed by the user writing on the electronic whiteboard, and the angles between the touch point coordinates of the stroke line data and the frame of the electronic whiteboard are calculated respectively. Taking a single touch point A as an example, refer to Figure 3 , assuming that the four corner points of the border of the electronic whiteboard are , , as well as , the angles between contact point A and the frame of the electronic whiteboard are , , as well as , according to the above border points , , as well as The angle , , as well as Divided into four groups of verification data, among which the border points , and the angle , For the first set of verification data, border points , and the angle , For the second set of verification data, the border points , and the angle , For the third set of verification data, border points , and the angle , Verify data for the fourth group;

[0065] Specifically, the coordinates of the touch point A are calculated using the above four sets of verification data to determine the horizontal and vertical coordinates of the touch point A (i.e., verification coordinates). The horizontal and vertical coordinates calculated by the four sets of verification data are compared. If the horizontal and vertical coordinates calculated by the four sets of verification data are the same, the touch point coordinates corresponding to the verification coordinates are marked as verified, and the touch point A corresponding to the touch point coordinates is the real touch point. All touch points are verified in this way in turn to obtain the corresponding stroke line data. The calculation formulas for the horizontal and vertical coordinates calculated by each set of verification data are:

[0066] 1. The calculation formula for the horizontal and vertical coordinates calculated by the first set of verification data is:

[0067] ;

[0068] ;

[0069] In the formula, Represents border points , Length between or border points , The length between is the length of the entire electronic whiteboard;

[0070] 2. The calculation formula for the horizontal and vertical coordinates calculated by the second set of verification data is:

[0071] ;

[0072] ;

[0073] In the formula, Represents border points , Length between or border points , The length between them is the height of the entire electronic whiteboard;

[0074] 3. The calculation formula for the horizontal and vertical coordinates calculated by the third set of verification data is:

[0075] ;

[0076] ;

[0077] 4. The calculation formula for the horizontal and vertical coordinates calculated by the fourth set of verification data is:

[0078] ;

[0079] .

[0080] In this embodiment, the stroke data includes the user's starting data, stroke data, turning data and ending data, wherein each time the user clicks the screen is a starting stroke, moves the screen trigger point is a stroke, and lifts the screen contact point is an ending stroke, forming a stroke. The whole is a writing process. The strokes obtained in the user's writing process are drawn with a line width of 1 to form a stroke skeleton line, and the stroke skeleton is divided into four stages: starting segment, stroke, turning segment and ending segment.

[0081] S102, respectively performing regular rendering on the stroke start data, the stroke stroke data and the stroke end data to form corresponding simulation data;

[0082] For further information, see Figure 4 , the step S102 specifically includes steps S1021~S1022:

[0083] S1021, acquiring a corresponding rendering rule based on the writing parameters of the user, and adjusting the brush sizes of the starting stroke data and the ending stroke data;

[0084] S1022, using the rendering rule to perform regular rendering on the stroke data, the adjusted stroke start data and the adjusted stroke end data to simulate the writing behavior of a brush to form corresponding simulation data.

[0085] In a specific implementation, corresponding rendering rules are obtained according to the writing parameters of the user, wherein the writing parameters are the parameters selected by the user when writing, such as brush size, brush type, etc. The brush used in the starting data is changed from thin to thick, the brush thickness in the stroke data is kept unchanged, and the brush used in the ending data is made thinner. The adjusted data are rendered regularly using the rendering rules obtained above to imitate the writing behavior of a brush, thereby forming corresponding simulation data.

[0086] S103, performing a selection decision on the stroke start data, the turning data and the stroke end data, and fusing the selection decision result with the simulation data to obtain corresponding preliminary font data;

[0087] In the specific implementation, the starting data, turning data and ending data are selected and decided. Among them, the decision-making selection of the starting data refers to taking twice the length of the brush as a reference, and judging in combination with the skeleton line of the basic stroke. For example, the European style generally starts with an exposed tip, and the stroke changes from light to medium, and the stroke changes from thin to thick within the length range; if there is a turning tip, the brush becomes thicker and then thinner. The so-called turning tip means that the line connected by the starting and stroke data has a broken line segment, which can be determined based on the highest point of the two ends and the connecting line at the two ends. If the distance from the highest point to the connecting line is large, it is a turning tip for the starting pen, and then the direction (angle) is used to determine which type of stroke (dot, horizontal, vertical, lifting, etc.) it is. The stroke width becomes wider at the turning point, about 1.6 times; among them, the three sample points are the starting point, the end point and the highest point connected with the relative starting and end points;

[0088] The decision-making selection of the stroke data is that the width of the line is the writing width, and its width becomes thicker or thinner from the width of the last line segment to the normal brush width; if there is a turning peak in the stroke process, such as a place where there is a fold in the writing, the selection is made according to the horizontal fold and vertical fold method, and the data within the range of 2-3 times the length of the end is used for decision-making. The horizontal fold turning point is widened, and the vertical fold turning point is thinned; among the three sample points, the highest point between the starting point, the end point and the relative starting and end points is taken;

[0089] The decision-making and selection of the end-of-stroke data is that when the pen-lifting message is received, the data within the range of 2-3 times the width of the end is taken, and the processing method is the same as the start-of-stroke data to determine whether there is a tip turn and determine what type of stroke the tail is. The tail generally changes from thick to thin; the three sample points are the highest points of the starting point, the end point and the relative starting and end points;

[0090] Specifically, the above selection decision results are fused with the simulation data to obtain the corresponding preliminary font data, and the three-point size-driven forming is adopted in the places that meet the characteristics of European style writing. The so-called three-point size-driven forming, the starting segment, turning segment, and ending segment of the vertical hook, with the self-width as the unit of 1, are compared with the standard European style stroke joints to determine its width factor. Since the brush width is controlled between the two points, the outer edge of the drawn figure is a straight line. Some strokes can be interpolated with a width change to match the European style strokes, forming a driveable call method; the length and angle of the line segment formed by the three points input by the user are different from the standard template, which increases the variability of writing.

[0091] S104, performing morphological casting on the preliminary font data, and performing smoothing processing according to the morphological casting result to obtain a final writing font, and dynamically displaying the final writing font.

[0092] In the specific implementation, this embodiment takes the Ou style as an example. In order to increase the cultural heritage of writing regular script Chinese characters, combined with the stroke characteristics of the Ou style, a standard template method for the key parts of the basic strokes is produced to form an Ou style processing module, with three sample points as input parameters, and multiple forming point data with width factors are output. The three sample points and segment types obtained above are processed by calling the method corresponding to the Ou style module, and the morphological casting is performed for rendering, and the final writing font is rendered and displayed in real time and dynamically, combined with the position and width of each end of each small line segment, smooth overdrawing is performed, and it is immediately processed and displayed to the user, thereby completing a stroke writing.

[0093] In this embodiment, the cloud storage and sharing of brush calligraphy on the electronic whiteboard allows users to select a set of Chinese characters composed of brush strokes, convert the rendering data of these brushes into storable files through binary data, and upload or share them to the cloud; users can also download and open files in this format in the whiteboard, reload them, and display the brush calligraphy.

[0094] Furthermore, in this embodiment, the electronic whiteboard can support multiple people and multiple input points to write calligraphy at the same time. For each input point, the system will automatically generate an ID identifier. The collected contact data can be branched through the ID. The rendering module will start a separate thread to draw graphics for these branched data in real time, and finally display the rendering results to the user.

[0095] In summary, the electronic whiteboard writing method in the above-mentioned embodiment of the present invention defines the original point positions of the electronic whiteboard, and uses the original point positions to collect the corresponding stroke line data, and uses the multi-touch point coordinate positioning method to ensure the accuracy of touch point recognition and save a lot of calculation time; the stroke line data are respectively rendered according to rules and selected, and the corresponding results are data-fused to quickly simulate the effect of writing Chinese characters with a brush, thereby achieving rapid recognition and display of written fonts.

[0096] Embodiment 2

[0097] Another aspect of the present invention is to provide an electronic whiteboard writing system. Figure 5 , which shows an electronic whiteboard writing system in a second embodiment of the present invention, the system comprises:

[0098] The data acquisition module 11 is used to define the original point position of the electronic whiteboard, and collect the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, wherein the stroke line data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data;

[0099] Furthermore, the data acquisition module 11 includes:

[0100] A coordinate system construction unit, used to construct a two-dimensional coordinate system according to the original point position, and calculate the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system;

[0101] A coordinate verification unit is used to calculate the angles between the touch point coordinates corresponding to the stroke line data and the frame of the electronic whiteboard, and to verify the touch point coordinates corresponding to the stroke line data according to the angles. If the coordinate verification passes, the touch point coordinates corresponding to the stroke line data are converted into corresponding stroke line data.

[0102] Furthermore, the coordinate verification unit is specifically used for:

[0103] Dividing the angle into four groups of verification data according to the border points of the electronic whiteboard, and calculating the verification coordinates of the touch point coordinates corresponding to the stroke line data using each of the verification data;

[0104] If the verification coordinates calculated by the verification data are the same, the touch point coordinates corresponding to the verification coordinates are marked as having passed verification.

[0105] A rule rendering module 12, used for performing rule rendering on the stroke start data, the stroke run data and the stroke end data respectively to form corresponding simulation data;

[0106] Furthermore, the rule rendering module 12 includes:

[0107] A rule acquisition unit, configured to acquire a corresponding rendering rule based on the writing parameters of the user, and adjust the brush sizes of the starting stroke data and the ending stroke data;

[0108] A rule rendering unit is used to perform rule rendering on the stroke data, the adjusted stroke start data and the adjusted stroke end data using the rendering rule to simulate the writing behavior of a brush and form corresponding simulation data.

[0109] A selection decision module 13 is used to make a selection decision on the stroke start data, the turning data and the stroke end data, and fuse the selection decision result with the simulation data to obtain corresponding preliminary font data;

[0110] The font data processing module 14 is used to perform morphological casting on the preliminary font data, and perform smoothing according to the morphological casting result to obtain a final writing font, and dynamically display the final writing font.

[0111] The functions or operation steps implemented when the above modules and units are executed are generally the same as those in the above method embodiments, and will not be repeated here.

[0112] The electronic whiteboard writing system provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0113] Embodiment 3

[0114] The present invention also provides a computer, see Figure 6 , shown is a computer in the third embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned electronic whiteboard writing method is implemented.

[0115] The memory 10 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.

[0116] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.

[0117] It should be pointed out that Figure 6 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0118] The embodiment of the present invention further provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the electronic whiteboard writing method as described above is implemented.

[0119] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0120] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0121] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0122] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for writing on an electronic whiteboard, characterized in that: include: The steps of defining the original point position of the electronic whiteboard, collecting the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and processing the stroke line data to obtain corresponding stroke data, wherein the stroke data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data, and defining the original point position of the electronic whiteboard, collecting the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and processing the stroke line data to obtain corresponding stroke data include: Constructing a two-dimensional coordinate system according to the original point position, and calculating the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system; The angles between the touch point coordinates corresponding to the stroke line data and the frame of the electronic whiteboard are calculated respectively, and the touch point coordinates corresponding to the stroke line data are verified according to the angles. If the coordinate verification passes, the touch point coordinates corresponding to the stroke line data are converted into corresponding stroke data, wherein the step of verifying the touch point coordinates corresponding to the stroke line data according to the angles includes: Dividing the angle into four groups of verification data according to the border points of the electronic whiteboard, and calculating the verification coordinates of the touch point coordinates corresponding to the stroke line data using each of the verification data; The four corner points of the border of the electronic whiteboard are defined as , , as well as , where the border points , and the angle , For the first set of verification data, border points , and the angle , For the second set of verification data, the border points , and the angle , For the third set of verification data, border points , and the angle , Verify data for the fourth group; The calculation formula for the horizontal and vertical coordinates calculated by the first set of verification data is: ; ; In the formula, Represents border points , Length between or border points , The length between is the length of the entire electronic whiteboard; The calculation formula for the horizontal and vertical coordinates calculated by the second set of verification data is: ; ; In the formula, Represents border points , Length between or border points , The length between is the height of the entire electronic whiteboard; The calculation formula for the horizontal and vertical coordinates calculated by the third set of verification data is: ; ; The calculation formula for the horizontal and vertical coordinates calculated by the fourth set of verification data is: ; ; If the verification coordinates calculated by the verification data are the same, then the touch point coordinates corresponding to the verification coordinates are marked as having passed verification; Performing regular rendering on the stroke start data, the stroke run data and the stroke end data respectively to form corresponding simulation data; Performing a selection decision on the stroke start data, the turning point data and the stroke end data, and fusing the selection decision result with the simulation data to obtain corresponding preliminary font data; The preliminary font data is morphologically casted, and smoothed according to the morphological casting result to obtain a final writing font, and the final writing font is dynamically displayed.

2. The electronic whiteboard writing method according to claim 1, characterized in that: The steps of respectively rendering the stroke start data, the stroke stroke data and the stroke end data according to rules to form corresponding simulation data include: Acquire corresponding rendering rules based on the writing parameters of the user, and adjust the brush sizes of the starting stroke data and the ending stroke data; The stroke data, the adjusted stroke start data and the adjusted stroke end data are rendered according to the rendering rules to simulate the writing behavior of a brush and form corresponding simulation data.

3. An electronic whiteboard writing system, characterized in that: include: The data acquisition module is used to define the original point position of the electronic whiteboard, and collect the stroke line data formed by the user writing on the electronic whiteboard in real time according to the original point position, and perform data processing on the stroke line data to obtain corresponding stroke data, wherein the stroke data includes the user's starting stroke data, stroke data, turning stroke data and ending stroke data. The data acquisition module includes: A coordinate system construction unit, used to construct a two-dimensional coordinate system according to the original point position, and calculate the touch point coordinates corresponding to the stroke line data according to the original point position and the two-dimensional coordinate system; A coordinate verification unit is used to calculate the angle between the touch point coordinates corresponding to the stroke line data and the frame of the electronic whiteboard, and to verify the touch point coordinates corresponding to the stroke line data according to the angle. If the coordinate verification passes, the touch point coordinates corresponding to the stroke line data are converted into corresponding stroke data, wherein the coordinate verification unit is specifically used to: Dividing the angle into four groups of verification data according to the border points of the electronic whiteboard, and calculating the verification coordinates of the touch point coordinates corresponding to the stroke line data using each of the verification data; The four corner points of the border of the electronic whiteboard are defined as , , as well as , where the border points , and the angle , For the first set of verification data, border points , and the angle , For the second set of verification data, the border points , and the angle , For the third set of verification data, border points , and the angle , Verify data for the fourth group; The calculation formula for the horizontal and vertical coordinates calculated by the first set of verification data is: ; ; In the formula, Represents border points , Length between or border points , The length between is the length of the entire electronic whiteboard; The calculation formula for the horizontal and vertical coordinates calculated by the second set of verification data is: ; ; In the formula, Represents border points , Length between or border points , The length between is the height of the entire electronic whiteboard; The calculation formula for the horizontal and vertical coordinates calculated by the third set of verification data is: ; ; The calculation formula for the horizontal and vertical coordinates calculated by the fourth set of verification data is: ; ; If the verification coordinates calculated by the verification data are the same, then the touch point coordinates corresponding to the verification coordinates are marked as having passed verification; A rule rendering module, used for performing rule rendering on the stroke start data, the stroke run data and the stroke end data respectively to form corresponding simulation data; A selection decision module is used to make a selection decision on the stroke start data, the turning data and the stroke end data, and fuse the selection decision result with the simulation data to obtain corresponding preliminary font data; The font data processing module is used to perform morphological casting on the preliminary font data, and perform smoothing according to the morphological casting result to obtain a final writing font, and dynamically display the final writing font.

4. The electronic whiteboard writing system according to claim 3, characterized in that: The rule rendering module includes: A rule acquisition unit, configured to acquire a corresponding rendering rule based on the writing parameters of the user, and adjust the brush sizes of the starting stroke data and the ending stroke data; A rule rendering unit is used to perform rule rendering on the stroke data, the adjusted stroke start data and the adjusted stroke end data using the rendering rule to simulate the writing behavior of a brush and form corresponding simulation data.

5. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the electronic whiteboard writing method as described in any one of claims 1 to 2 is implemented.

6. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic whiteboard writing method as described in any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Handwriting drawing method and device, medium and interaction panel

    CN114972558A

  • Writing method and device of electronic whiteboard

    CN116204108A