Electronic whiteboard file saving method and device, electronic whiteboard and storage medium

文档序号:1952873 发布日期:2021-12-10 浏览:18次 中文

阅读说明:本技术 一种电子白板文件保存方法、装置、电子白板及存储介质 (Electronic whiteboard file saving method and device, electronic whiteboard and storage medium ) 是由 杨佳林 于 2021-09-06 设计创作,主要内容包括:本发明公开了一种电子白板文件保存方法、装置、电子白板及存储介质,所述方法包括:监测是否满足电子白板文件预置的自动保存条件;当满足电子白板文件预置的自动保存条件时,自动保存当前电子白板文件为临时文件;当接收到对电子白板文件保存的触发指令时,基于所述临时文件进行增量保存所述电子白板文件。在本发明中当监测到满足自动保存电子白板文件的条件时,自动生成当前电子白板文件的临时文件,在接收到电子文件保存指令时,就不需要遍历有电子白板文件的所有页面进行保存,仅需结合最新版的临时文件进行增量保存即可得到电子白板文件。由此,极大地提高了电子白板文件的保存效率,提高了用户的体验性。(The invention discloses a method and a device for saving an electronic whiteboard file, an electronic whiteboard and a storage medium, wherein the method comprises the following steps: monitoring whether an automatic storage condition preset by an electronic whiteboard file is met; when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file; and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file. When the condition of automatically storing the electronic whiteboard file is monitored, the temporary file of the current electronic whiteboard file is automatically generated, when an electronic file storing instruction is received, all pages of the electronic whiteboard file do not need to be traversed for storing, and the electronic whiteboard file can be obtained only by combining the latest version of the temporary file for incremental storing. Therefore, the storage efficiency of the electronic whiteboard file is greatly improved, and the user experience is improved.)

1. An electronic whiteboard file saving method is characterized by comprising the following steps:

monitoring whether an automatic storage condition preset by an electronic whiteboard file is met;

when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file;

and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file.

2. The electronic whiteboard file saving method according to claim 1, wherein the step of monitoring whether the automatic saving condition of the electronic whiteboard file is satisfied comprises:

monitoring whether the electronic whiteboard executes page addition, deletion, data updating or program suspension operation;

and if any operation meets the condition of automatically saving the electronic whiteboard file, the electronic whiteboard file is automatically saved.

3. The method for saving an electronic whiteboard file according to claim 1, wherein the step of monitoring whether the automatic saving condition of the electronic whiteboard file is satisfied further comprises:

monitoring whether the size of data input by an electronic whiteboard editing area reaches a preset threshold value or not;

and if the monitored data input by the electronic whiteboard editing area reaches a preset threshold value, the automatic storage condition of the electronic whiteboard file is met.

4. The electronic whiteboard file saving method according to claim 1, wherein the step of automatically saving the current electronic whiteboard file as a temporary file comprises:

traversing all page data of the current electronic whiteboard file and storing the page data into a local json configuration file;

and packaging the json configuration file and the imported picture data to generate a temporary wbs file of the electronic whiteboard file.

5. The electronic whiteboard file saving method according to claim 1, wherein the step of automatically saving the current electronic whiteboard file as a temporary file comprises:

traversing all page data and imported pictures of the current electronic whiteboard file;

and drawing a data index map of all pages of the electronic whiteboard file according to the page data and the imported picture data.

6. The method for saving an electronic whiteboard file according to claim 1, wherein the step of incrementally saving the electronic whiteboard file based on the temporary file when receiving a trigger instruction for saving the electronic whiteboard file further comprises:

acquiring an automatically-stored latest version temporary file according to a received electronic whiteboard file storage instruction;

and combining the newly added data in the electronic whiteboard file with the temporary file of the latest version to obtain and store the electronic whiteboard file.

7. The electronic whiteboard file saving method according to claim 1, further comprising:

detecting whether effective operation exists on the electronic whiteboard within a preset time length, wherein the effective operation comprises handwriting drawing, graph drawing and data importing;

if no effective operation exists within the preset time length, triggering an instruction for storing the electronic whiteboard file;

and saving the current electronic whiteboard file to the saving address of the temporary file by combining the automatically saved temporary file with the latest version.

8. An electronic whiteboard file saving apparatus, comprising:

the monitoring module is used for monitoring whether an automatic storage condition preset by the electronic whiteboard file is met or not and monitoring whether a trigger instruction for storing the electronic whiteboard file is received or not;

the automatic saving module is used for automatically saving the current electronic whiteboard file as a temporary file;

and the storage module is used for performing increment storage on the electronic whiteboard file based on the temporary file.

9. An electronic whiteboard, comprising: a memory, a processor and an electronic whiteboard file saving program stored on the memory and executable on the processor, the electronic whiteboard file saving program being configured to implement the steps of the electronic whiteboard file saving method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an electronic whiteboard file saving program, which when executed by a processor, implements the steps of the electronic whiteboard file saving method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of computers, in particular to an electronic whiteboard file saving method and device, an electronic whiteboard and a storage medium.

Background

In recent years, with the deep progress of education informatization, China enters the 2.0 era of education informatization. Numerous schools and education enterprises join in intelligent education teams in a dispute. The development of intelligent education brings great changes to education forms and learning modes, promotes the education reform, and has great impact on traditional education ideas, concepts, modes, contents and methods. Along with the continuous advance of education reform, the effect of wisdom education is gradually highlighted, receives the unanimous good comment of education. Various education software also appears, the whiteboard software plays a very important role in information education, the whiteboard software can completely replace the traditional blackboard function, and a plurality of functions which are not available in the traditional black and white are added, and the traditional function is more convenient than that of the blackboard. The user can scribble at will in whiteboard software, there are different writing pens, different figures, different colours, can also remove the content in the whiteboard simultaneously, zoom, erase, support many pages, but along with the data bulk is more and more, the processing of saving data, also become more and more consuming time, the efficiency of saving this moment, become a very important technical standard, the side, also be important user experience standard, the speed of saving directly influences user experience, consequently develop one set of quick save mechanism, and is vital. The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.

Disclosure of Invention

The invention mainly aims to provide an electronic whiteboard file storage method, and aims to solve the technical problems that the storage time of the existing electronic whiteboard file is too long, and the storage efficiency is low.

In order to achieve the above object, the present invention provides an electronic whiteboard file saving method, including:

monitoring whether an automatic storage condition preset by an electronic whiteboard file is met;

when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file;

and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file.

Preferably, the step of monitoring whether the automatic saving condition of the electronic whiteboard file is met includes:

monitoring whether the electronic whiteboard executes page addition, deletion, data updating or program suspension operation;

and if any operation meets the condition of automatically saving the electronic whiteboard file, the electronic whiteboard file is automatically saved.

Preferably, the step of monitoring whether the automatic saving condition of the electronic whiteboard file is met further includes:

monitoring whether the size of data input by an electronic whiteboard editing area reaches a preset threshold value or not;

and if the monitored data input by the electronic whiteboard editing area reaches a preset threshold value, the automatic storage condition of the electronic whiteboard file is met.

Preferably, the step of automatically saving the current electronic whiteboard file as a temporary file includes:

traversing all page data of the current electronic whiteboard file and storing the page data into a local json configuration file;

and packaging the json configuration file and the imported picture data to generate a temporary wbs file of the electronic whiteboard file.

Preferably, the step of automatically saving the current electronic whiteboard file as a temporary file includes:

traversing all page data and imported pictures of the current electronic whiteboard file;

and drawing a data index map of all pages of the electronic whiteboard file according to the page data and the imported picture data.

Preferably, when a trigger instruction for saving the electronic whiteboard file is received, the step of incrementally saving the electronic whiteboard file based on the temporary file further includes:

acquiring an automatically-stored latest version temporary file according to a received electronic whiteboard file storage instruction;

and combining the newly added data in the electronic whiteboard file with the temporary file of the latest version to obtain and store the electronic whiteboard file.

Preferably, the method further comprises:

the method further comprises the following steps:

detecting whether effective operation exists on the electronic whiteboard within a preset time length, wherein the effective operation comprises handwriting drawing, graph drawing and data importing;

if no effective operation exists within the preset time length, triggering an instruction for storing the electronic whiteboard file;

and saving the current electronic whiteboard file to the saving address of the temporary file by combining the automatically saved temporary file with the latest version.

In addition, in order to achieve the above object, the present invention further provides an electronic whiteboard file saving apparatus, including:

the monitoring module is used for monitoring whether an automatic storage condition preset by the electronic whiteboard file is met or not and monitoring whether a trigger instruction for storing the electronic whiteboard file is received or not;

the automatic saving module is used for automatically saving the current electronic whiteboard file as a temporary file;

and the storage module is used for performing increment storage on the electronic whiteboard file based on the temporary file.

In addition, in order to achieve the above object, the present invention further provides an electronic whiteboard, including: the electronic whiteboard file saving method comprises a memory, a processor and an electronic whiteboard file saving program which is stored on the memory and can be operated on the processor, wherein the electronic whiteboard file saving program is configured to realize the steps of the electronic whiteboard file saving method.

In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, on which an electronic whiteboard file saving program is stored, wherein the electronic whiteboard file saving program, when executed by a processor, implements the steps of the electronic whiteboard file saving method according to any one of the above items.

The invention provides an electronic whiteboard file saving method, which comprises the following steps: monitoring whether an automatic storage condition preset by an electronic whiteboard file is met; when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file; and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file. According to the method and the device, when the condition for automatically storing the electronic whiteboard file is monitored, the temporary file of the current electronic whiteboard file is automatically generated, when the electronic file storing instruction is received, all pages of all the electronic whiteboard files do not need to be traversed for storing, and the electronic whiteboard file can be obtained and stored only by combining the latest version of the temporary file for incremental storing. Therefore, the storage efficiency of the electronic whiteboard file is greatly improved, and the user experience is improved.

Drawings

FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;

fig. 2 is a schematic flow chart of a first embodiment of an electronic whiteboard file saving method according to the present invention;

FIG. 3 is a schematic diagram of a bitmap picture format of an electronic whiteboard file;

fig. 4 is a schematic flowchart of a method for saving an electronic whiteboard file according to a third embodiment of the present invention;

fig. 5 is a schematic structural diagram of the electronic whiteboard file saving device according to the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The main solution of the embodiment of the invention is as follows: an electronic whiteboard file saving method is characterized by comprising the following steps: monitoring whether an automatic storage condition preset by an electronic whiteboard file is met; when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file to generate a temporary file; and when a triggering instruction of the user for saving the electronic whiteboard file is received, saving the electronic whiteboard file by combining the temporary file.

As the processing of data storage becomes more and more time-consuming along with the increasing of the data quantity on the electronic whiteboard in the prior art, the storage efficiency becomes an important technical standard, the side and important user experience standards are also important, and the storage speed directly influences the user experience, so that a set of quick storage mechanism is developed and is very important. The invention provides a solution, which enables a user to be close to a final storage result when storing the file and only needs to store the file for a short time, greatly increases user experience and achieves the effect of quickly storing the electronic whiteboard file.

As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.

The terminal of the embodiment of the invention can be a PC, and can also be a mobile terminal device with a display function, such as a smart phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compress standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compress standard Audio Layer 3) player, a portable computer, and the like.

As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.

Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.

Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an electronic whiteboard file saving program.

In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the net electronic whiteboard file saving program stored in the memory 1005, and perform the following operations:

monitoring whether an automatic storage condition preset by an electronic whiteboard file is met;

when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file;

and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

the step of monitoring whether the automatic storage condition of the electronic whiteboard file is met comprises the following steps:

monitoring whether the electronic whiteboard executes page addition, deletion, data updating or program suspension operation;

and if any operation meets the condition of automatically saving the electronic whiteboard file, the electronic whiteboard file is automatically saved.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

the step of monitoring whether the automatic saving condition of the electronic whiteboard file is met further comprises the following steps:

monitoring whether the size of data input by an electronic whiteboard editing area reaches a preset threshold value or not;

and if the monitored data input by the electronic whiteboard editing area reaches a preset threshold value, the automatic storage condition of the electronic whiteboard file is met.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

the step of automatically saving the current electronic whiteboard file as a temporary file comprises the following steps:

traversing all page data of the current electronic whiteboard file and storing the page data into a local json configuration file;

and packaging the json configuration file and the imported picture data to generate a temporary wbs file of the electronic whiteboard file.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

the step of automatically saving the current electronic whiteboard file as a temporary file comprises the following steps:

traversing all page data and imported pictures of the current electronic whiteboard file;

and drawing a data index map of all pages of the electronic whiteboard file according to the page data and the imported picture data.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

when a trigger instruction for saving the electronic whiteboard file is received, the step of incrementally saving the electronic whiteboard file based on the temporary file further comprises:

acquiring an automatically-stored latest version temporary file according to a received electronic whiteboard file storage instruction;

and combining the newly added data in the electronic whiteboard file with the temporary file of the latest version to obtain and store the electronic whiteboard file.

Further, the processor 1001 may call the electronic whiteboard file saving program stored in the memory 1005, and further perform the following operations:

detecting whether effective operation exists on the electronic whiteboard within a preset time length, wherein the effective operation comprises handwriting drawing, graph drawing and data importing;

if no effective operation exists within the preset time length, triggering an instruction for storing the electronic whiteboard file;

and saving the current electronic whiteboard file to the saving address of the temporary file by combining the automatically saved temporary file with the latest version.

Referring to fig. 2, a first embodiment of an electronic whiteboard file saving method according to the present invention provides an electronic whiteboard file saving method, where the method includes:

step S10, monitoring whether the preset automatic storage condition of the electronic whiteboard file is met;

step S20, when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file;

and step S30, when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file.

Specifically, in this embodiment, the electronic whiteboard is designed to display one or two pages of contents in the display interface, and the user may newly create a document in the electronic whiteboard (only one page is default), open a stored document in the electronic whiteboard format or a document in another format in the electronic whiteboard, add a page or delete a page in the electronic whiteboard (at least one remaining page is default), insert a picture in the currently displayed page, write strokes, and the like. Based on the above design, in this embodiment, when it is detected that the electronic whiteboard is started, the operating condition of the electronic whiteboard software is monitored, and when it is detected that a preset condition for automatically storing the current electronic whiteboard file is met, the current electronic whiteboard file is stored, wherein data on the current electronic whiteboard file is stored according to a data type, including storing the imported document, the imported picture, and the audio and video, and storing the data in a temporary buffer area of the terminal. When a user triggers a storage instruction of the electronic whiteboard file, the terminal finds out the latest electronic whiteboard temporary file from the temporary buffer area, and stores the latest electronic whiteboard temporary file and the newly generated data on the electronic whiteboard after executing the automatic storage operation to obtain a final electronic whiteboard file for storage. The last electronic whiteboard file is saved according to a path specified by the user or a preset path, which is not limited in this embodiment.

It should be noted that, in the process of the user operating the display content in the electronic whiteboard display interface, for example, adding a page, deleting a page, inserting a picture, rotating a picture, writing a stroke, deleting a stroke, and the like, the terminal device may update the electronic whiteboard file data according to the operation of the user.

In the embodiment, whether the preset automatic saving condition of the electronic whiteboard file is met or not is monitored; when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file to generate a temporary file; and when a triggering instruction of the user for saving the electronic whiteboard file is received, saving the electronic whiteboard file by combining the temporary file. By generating the temporary file closest to the electronic whiteboard file and storing the temporary file in the buffer area of the terminal, the electronic whiteboard file can be obtained and stored in combination with the temporary file when the electronic whiteboard file storage instruction of the user is received, so that the electronic whiteboard file storage speed is greatly increased, and the user experience is improved.

Further, a second embodiment of the electronic whiteboard file saving method according to the present invention provides an electronic whiteboard file saving method, based on the embodiment shown in fig. 2, where step S10 further includes:

step S101, monitoring whether the electronic whiteboard executes page addition, deletion, data updating or program suspension operation;

and if any operation meets the condition of automatically saving the electronic whiteboard file, the electronic whiteboard file is automatically saved.

Specifically, a person skilled in the art may set, in advance, a condition for triggering storage of the current electronic whiteboard file in the terminal control module according to an actual situation. In this embodiment, whether the user executes the following steps on the current electronic whiteboard software is selected and monitored: adding a page, deleting the page, updating page data (such as introducing new pictures and audio/video data), executing an automatic saving instruction when a terminal monitors that a user executes any one of the operations on the electronic whiteboard software, and performing background saving on data on the current electronic whiteboard to generate a temporary file of the electronic whiteboard file and store the temporary file in a background buffer area. When the user needs to store the electronic whiteboard file, only the newly added data which is not automatically stored is combined with the temporary file to obtain the electronic whiteboard file.

In addition, in this embodiment, when the terminal monitors that the user has a behavior of suspending or exiting the electronic whiteboard file software, for example, the user has executed a background to the electronic whiteboard program, but the user has not triggered the operation of saving the current electronic whiteboard file, at this time, the terminal performs an automatic saving operation on the current electronic whiteboard file, saves the electronic whiteboard file that is not saved as a temporary file and stores the temporary file in a background buffer area of the terminal, and when the user enters the electronic whiteboard software next time, the terminal prompts whether the electronic whiteboard file that is not saved needs to be restored, so that the data loss of the electronic whiteboard file due to the fact that the electronic whiteboard file is exited due to a power failure or other irresistible reasons is avoided, and the user experience is greatly improved.

In this embodiment, when the terminal monitors that the user performs any one of operations of adding, deleting or updating a page on the electronic whiteboard software, that is, automatically saving the current electronic whiteboard file, the electronic whiteboard file is temporarily saved in time when the data of the electronic whiteboard file changes, so that a large amount of time is required to check the node data of page increase and decrease or data update when the electronic whiteboard file saving instruction is subsequently executed, and the whiteboard file is automatically saved when the user temporarily exits from editing the electronic whiteboard file, thereby greatly facilitating the subsequent saving of the electronic whiteboard file, and preventing the risk of data loss caused by pressing the electronic whiteboard software into the background.

Further, a third embodiment of the electronic whiteboard file saving method according to the present invention provides an electronic whiteboard file saving method, based on the first embodiment shown in fig. 2, where step S10 further includes:

step S101', monitoring whether the size of data input by an electronic whiteboard editing area reaches a preset threshold value;

and step S102', if the data input by the electronic whiteboard editing area reaches a preset threshold value, the automatic saving condition of the electronic whiteboard file is met.

Specifically, in this embodiment, when the data size of the electronic whiteboard file editing area reaches the preset data threshold according to the idle thread condition of the background of the terminal processor, an instruction for automatically saving the current electronic whiteboard file is sent to the background of the terminal, so as to avoid that too much data is generated and the saving efficiency is affected when the user inputs and saves the electronic whiteboard file.

Further, step S20 based on fig. 2 further includes:

step S201, traversing all page data of the current electronic whiteboard file and saving the page data to a local json configuration file;

step S202, packaging the json configuration file and the imported picture data to generate wbs temporary files of the electronic whiteboard file.

Specifically, in this embodiment, a user draws note data on a screen of the electronic whiteboard device, imports and stores the picture data to a path specified by the picture data, and when a background receives an instruction to automatically store a current electronic whiteboard file, traverses all page note data of the electronic whiteboard file on a current electronic whiteboard program to a local json configuration file, and then packs the json configuration file and the imported picture data to generate a temporary wbs (Work break down Structure) file. Therefore, the effect of automatically storing while inputting by a user is achieved, when the user wants to store the electronic whiteboard file, the wbs file of the electronic whiteboard file can be obtained only by configuring the json file with the newly-added page data and combining the json file with the automatic temporary file, the process of traversing all the page data of the current electronic whiteboard file to the json file is reduced, and the storage efficiency of the whiteboard file is greatly improved.

Further, referring to fig. 2, in the method for saving an electronic whiteboard file according to this embodiment, step 20 further includes:

step S201', all page data and imported pictures of the current electronic whiteboard file are traversed;

and step S202', drawing a data index map of all pages of the electronic whiteboard file according to the page data and the imported picture data.

Specifically, in this embodiment, a user draws note data on the electronic whiteboard screen, and imports picture data, when a preset condition of automatic saving is reached, the terminal background automatically traverses all page data of the current electronic whiteboard file, obtains a bitmap of the screen size according to the data drawn by the user, and saves the page data in the memory, and data existing in other pages except the current page is not in the form of a picture, but is a description of the data. As shown in fig. 3, taking the current page as the 2 nd page as an example, it can be seen that, the graphs on the 1 st and 3 rd pages are descriptions of graph coordinates, the note is a description of note coordinates, and the picture is a description of picture path, these descriptions can be used as data bases for the page of recovery data, that is, after the user switches to the third page, the program recovers the picture data of the screen size according to the description of the data path of the third page, and the second page is recovered to the description format. And subsequently, when the user wants to store the current electronic whiteboard file in a PDF format, a png picture is generated based on the picture bitmap in the embodiment, and a PDF document is constructed by using a PDF generation tool.

Further, referring to fig. 2, in a second embodiment of the electronic whiteboard file saving method according to the present invention, the step S30 further includes:

step S301, according to the received electronic whiteboard file saving instruction, obtaining an automatically saved latest version temporary file;

and step S302, combining the newly added data in the electronic whiteboard file with the temporary file of the latest version to obtain and store the electronic whiteboard file.

Specifically, in this embodiment, when the user triggers an instruction to save the electronic whiteboard file, the manner in which the user triggers the saving instruction includes: the user clicks the save icon or saves the instruction quickly, and the invention is not limited herein. When the background detects a storage instruction triggered by a user, the latest version of the temporary file automatically stored by the background is acquired and then is stored to a storage path specified by the user or a preset storage path in combination with the newly added page data. Therefore, splitting isolation of user operation and task storage is achieved, user experience is not affected under the condition of large data volume, and smoothness of user operation is guaranteed. Meanwhile, the threads are automatically saved, the saving time of a user is greatly prolonged, and the user experience is also improved.

Referring to fig. 4, a third embodiment of the electronic whiteboard file saving method according to the present invention provides an electronic whiteboard file saving method, where the method includes:

step S40, detecting whether effective operation exists on the electronic whiteboard within a preset time, wherein the effective operation comprises handwriting drawing, graph drawing and data importing;

step S50, if no effective operation exists within the preset time, triggering an instruction for saving the electronic whiteboard file;

and step S60, saving the current electronic whiteboard file to the saving address of the temporary file by combining the temporary file with the latest version automatically saved.

Specifically, in this embodiment, when the terminal detects that the user has not performed any effective operation for a preset time period on the display screen of the electronic whiteboard, for example, when the interval time such as the inter-class communication time appearing when a teacher gives a lecture is relatively long, but the condition for automatically storing the current electronic whiteboard file is not met, the terminal detects that the terminal has not performed any data input, no picture import, no handwriting drawing, and the like for the preset time period in the editing area of the electronic whiteboard, and the terminal sets the operation by a person skilled in the art according to the actual situation. The terminal issues an instruction for storing the current electronic whiteboard file, and the instruction is stored to the storage address of the temporary file by combining the latest version of the temporary file and newly-added data after the last automatic storage, so as to prevent the electronic whiteboard file from being lost due to the fact that the electronic whiteboard application program is not used for a long time.

In the embodiment, when no operation on the electronic whiteboard within a preset time length is detected; triggering an instruction for storing the electronic whiteboard file; and saving the current electronic whiteboard file to the saving address of the temporary file by combining the automatically saved temporary file with the latest version. When the electronic whiteboard file is stored quickly, the loss of the current electronic whiteboard file data caused by operating the electronic whiteboard application program for a long time is avoided.

In addition, referring to fig. 5, an embodiment of the present invention further provides a whiteboard file saving apparatus, including:

the monitoring module 10 is configured to monitor whether an automatic saving condition preset for the electronic whiteboard file is met and whether a trigger instruction for saving the electronic whiteboard file is received;

the automatic saving module 20 is configured to automatically save the current electronic whiteboard file as a temporary file;

and the saving module 30 is configured to perform incremental saving on the electronic whiteboard file based on the temporary file.

In addition, an embodiment of the present invention further provides an electronic whiteboard, including: the electronic whiteboard file saving method includes a memory, a processor, and an electronic whiteboard file saving program stored in the memory and executable on the processor, where the electronic whiteboard file saving program is configured to implement the steps of the electronic whiteboard file saving method according to any of the embodiments.

Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where an electronic whiteboard file saving program is stored on the computer-readable storage medium, and when executed by a processor, the electronic whiteboard file saving program implements the following operations:

monitoring whether an automatic storage condition preset by an electronic whiteboard file is met;

when the preset automatic saving condition of the electronic whiteboard file is met, automatically saving the current electronic whiteboard file as a temporary file;

and when a trigger instruction for saving the electronic whiteboard file is received, the electronic whiteboard file is saved in an increment mode based on the temporary file.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

the step of monitoring whether the automatic storage condition of the electronic whiteboard file is met comprises the following steps:

monitoring whether the electronic whiteboard executes page addition, deletion, data updating or program suspension operation;

and if any operation meets the condition of automatically saving the electronic whiteboard file, the electronic whiteboard file is automatically saved.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

the step of monitoring whether the automatic saving condition of the electronic whiteboard file is met further comprises the following steps:

monitoring whether the size of data input by an electronic whiteboard editing area reaches a preset threshold value or not;

and if the monitored data input by the electronic whiteboard editing area reaches a preset threshold value, the automatic storage condition of the electronic whiteboard file is met.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

the step of automatically saving the current electronic whiteboard file as a temporary file comprises the following steps:

traversing all page data of the current electronic whiteboard file and storing the page data into a local json configuration file;

and packaging the json configuration file and the imported picture data to generate a temporary wbs file of the electronic whiteboard file.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

the step of automatically saving the current electronic whiteboard file as a temporary file comprises the following steps:

traversing all page data and imported pictures of the current electronic whiteboard file;

and drawing a data index map of all pages of the electronic whiteboard file according to the page data and the imported picture data.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

when a trigger instruction for saving the electronic whiteboard file is received, the step of incrementally saving the electronic whiteboard file based on the temporary file further comprises:

acquiring an automatically-stored latest version temporary file according to a received electronic whiteboard file storage instruction;

and combining the newly added data in the electronic whiteboard file with the temporary file of the latest version to obtain and store the electronic whiteboard file.

Further, when executed by the processor, the electronic whiteboard file saving program further implements the following operations:

detecting whether effective operation exists on the electronic whiteboard within a preset time length, wherein the effective operation comprises handwriting drawing, graph drawing and data importing;

if no effective operation exists within the preset time length, triggering an instruction for storing the electronic whiteboard file;

and saving the current electronic whiteboard file to the saving address of the temporary file by combining the automatically saved temporary file with the latest version.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种国土空间规划空间数据突变检查方法、应用系统及云平台

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!