A data processing method and device, an electronic whiteboard and a storage medium
Patent Information
- Application Number
- CN202510540484.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2026-10-27
AI Technical Summary
然而,现有的教学视频录制方案存在显著问题,即录制的视频文件占用存储空间过大,导致存储成本高昂
[0005]上述技术方案中,通过获取用户在电子白板进行操作时所产生的轻量化编辑数据,避免了传统教学录制过程中需要不间断录制电子白板全量像素而产生的高存储占用问题;通过编辑数据的记录时间戳对编辑数据进行排序,确保了编辑数据的在后续使用中能够顺序进行显示,同时将各编辑数据和各编辑数据对应的数据显示时长进行关联,进而生成低存储占用的数据绘制序列,从而实现了降低存储空间的技术目的。
Smart Images

Figure CN122985018A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a data processing method, apparatus, electronic whiteboard, and storage medium in the field of computer technology. Background Technology
[0002] With the advancement of computer technology, recording instructional videos has become a common practice in teaching settings. However, existing instructional video recording solutions have significant drawbacks: the recorded video files occupy excessive storage space, leading to high storage costs. This is especially true for large-scale course recordings, where storage demands increase dramatically. Therefore, reducing resource consumption has become a pressing technical challenge. Summary of the Invention
[0003] This application provides a data processing method, apparatus, electronic whiteboard, and storage medium, aimed at optimizing resource consumption and enhancing data and user interactivity.
[0004] In a first aspect, this application provides a data processing method, which includes: acquiring at least one piece of edit data uploaded by an electronic whiteboard, acquiring the recording timestamp of each piece of edit data, wherein the edit data is data generated by the electronic whiteboard in response to an editing operation in the canvas area; sorting each piece of edit data based on each recording timestamp; determining the data display duration of each piece of edit data based on two adjacent recording timestamps; and generating a data drawing sequence based on the sorted edit data and the data display duration.
[0005] In the above technical solution, by acquiring lightweight editing data generated when the user operates on the electronic whiteboard, the high storage consumption problem caused by the need to continuously record all pixels of the electronic whiteboard during traditional teaching recording is avoided; the editing data is sorted by the recording timestamp, ensuring that the editing data can be displayed sequentially in subsequent use; at the same time, each editing data and its corresponding display duration are associated to generate a low storage consumption data drawing sequence, thereby achieving the technical goal of reducing storage space.
[0006] Combining the first aspect and the above implementation methods, in some possible implementation methods, sorting each edit data based on each record timestamp includes: if there is the same first record timestamp and second record timestamp among the record timestamps, then obtain the first edit data corresponding to the first record timestamp and the second edit data corresponding to the second record timestamp from each edit data; if the first edit data and the second edit data are the same, then delete the first edit data or the second edit data.
[0007] In the above technical solution, by identifying and deleting duplicate edited data, data redundancy can be effectively reduced, thereby reducing the occupation of storage space and the consumption of transmission resources. At the same time, deleting duplicate data can optimize the structure of the data drawing sequence, ensure the uniqueness and logic of the edited data during playback, and avoid playback errors or resource waste caused by duplicate data. In addition, this mechanism can also improve data processing efficiency, reduce system burden, and provide a more efficient and streamlined data foundation for subsequent data management, playback and analysis.
[0008] Combining the first aspect and the above implementation methods, in some possible implementation methods, the data display duration of each edited data is determined based on two adjacent record timestamps in each record timestamp, including: determining the adjacent third record timestamp and fourth record timestamp from each record timestamp; obtaining the interval duration between the third record timestamp and the fourth record timestamp, and determining the interval duration as the data display duration of the third edited data corresponding to the third record timestamp.
[0009] In the above technical solution, by accurately calculating the interval between adjacent timestamps, a display duration matching the actual occurrence time can be assigned to each piece of edited data. This ensures that the display rhythm of the edited data is completely consistent with the actual operation time sequence during data playback, improving the accuracy and smoothness of playback. At the same time, determining the display duration based on the timestamp interval can avoid errors that may be caused by manually setting the duration, further optimizing the generation efficiency of the data drawing sequence.
[0010] In combination with the first aspect and the above implementation methods, some possible implementation methods also include: in response to the data playback request of the electronic whiteboard, sending the data drawing sequence to the electronic whiteboard, the data drawing sequence being used by the electronic whiteboard to display each sorted edited data according to the display duration of each data.
[0011] In the above technical solution, by precisely controlling the playback rhythm of the edited data, it can be ensured that each editing operation is accurately presented according to its actual time sequence and display duration, thereby achieving efficient restoration and smooth display of the editing process; at the same time, the playback mechanism based on the data drawing sequence can reduce the complexity of data processing and transmission, reduce system resource consumption, and improve playback efficiency.
[0012] In combination with the first aspect and the above implementation methods, in some possible implementation methods, after obtaining at least one editing data uploaded by the electronic whiteboard, the method further includes: obtaining the editing object corresponding to each editing data in the at least one editing data, and determining the display effect corresponding to each editing object; generating a data drawing sequence based on the sorted editing data and the display duration of each data, including: generating a data drawing sequence based on the sorted editing data, the display duration of each data, and the display effect.
[0013] In the above technical solution, by associating the edited data with its corresponding edited object and display effect, it can be ensured that each editing operation is presented in a way that conforms to its actual style and characteristics during data playback, thereby improving the accuracy and intuitiveness of playback. At the same time, combined with the data display duration, the display rhythm of each edited data can be precisely controlled to ensure that the playback process is completely consistent with the time sequence of the actual operation, enhancing the continuity and smoothness of the user experience. In addition, this mechanism can optimize the structure of the data drawing sequence, reduce the storage and transmission of redundant information, and reduce system resource consumption.
[0014] In combination with the first aspect and the above implementation methods, in some possible implementation methods, after obtaining at least one piece of edit data uploaded by the electronic whiteboard, the method further includes: generating data snapshots based on each piece of edit data and saving each data snapshot.
[0015] Combining the first aspect and the above implementation methods, in some possible implementation methods, after generating data snapshots based on each edited data and saving each data snapshot, the method further includes: in response to the data rollback request of the electronic whiteboard, determining the rollback timestamp from the data rollback request; extracting the target data snapshot corresponding to the rollback timestamp from each data snapshot, and returning the target data snapshot as response data to the electronic whiteboard.
[0016] In the above technical solution, by generating and saving data snapshots, the state of edited data at different points in time can be completely recorded, providing accurate historical version support for data rollback and ensuring the accuracy and reliability of rollback operations. At the same time, by quickly locating the target data snapshot based on the rollback timestamp, rollback efficiency can be significantly improved, response time can be reduced, and user experience can be optimized. In addition, this mechanism can avoid recalculating or processing edited data during the rollback process, reducing system resource consumption and improving overall performance.
[0017] Secondly, this application provides a data processing apparatus, comprising:
[0018] The data acquisition unit is used to acquire the editing operations performed by the user on the canvas area of the writing device and determine the writing data corresponding to the editing operations.
[0019] The data analysis unit is used to upload each piece of writing data to the cloud service for recording, and to determine the data display duration of each piece of writing data based on the recording timestamp of each piece of writing data.
[0020] The sequence generation unit is used to sort each piece of written data based on the record timestamp and the data display duration to obtain a sequence of written data drawing.
[0021] The data display unit is used to send the sequence of written data to the writing device so that the written data can be displayed sequentially on the canvas area.
[0022] Thirdly, this application provides an electronic whiteboard, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the data processing method described above.
[0023] Fourthly, this application provides a computer-readable storage medium storing a computer program, which, when executed, implements the data processing method described in any of the above claims. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a schematic diagram of a data processing method provided in an embodiment of this application;
[0026] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0027] Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0028] Figure 4 This is a schematic diagram of a data processing method provided in an embodiment of this application;
[0029] Figure 5 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0030] Figure 6 This is a schematic diagram of a data processing method provided in an embodiment of this application;
[0031] Figure 7 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0032] Figure 8 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0033] Figure 9 This is a schematic diagram of a data processing method provided in an embodiment of this application;
[0034] Figure 10This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0035] Figure 11 This is a schematic diagram of the structure of an electronic whiteboard provided in an embodiment of this application. Detailed Implementation
[0036] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0038] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0039] In related technologies, when users record videos, they often need to store the real-time recorded video data locally or in the cloud. However, the large size of the video data leads to high storage costs, especially when users need to record large-scale courses, as storage demands expand rapidly, and the cost of cloud recording services also increases significantly. These problems impose a significant economic burden and resource pressure on users.
[0040] To address the aforementioned problems and reduce the resource overhead of data storage and transmission, this application provides a data processing method. The executing entity of this data processing method is a data processing device, specifically a server. Detailed descriptions are provided below. It should be noted that the order of description in the following embodiments is not intended to limit the preferred order of the embodiments.
[0041] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating a data processing method provided in an embodiment of this application. For example... Figure 1 As shown, an electronic whiteboard is an interactive device that combines traditional whiteboards with digital technology. It typically consists of a touchscreen, a stylus or finger touch input tool, and accompanying software. Users can write, draw, annotate, and erase on the canvas area of the electronic whiteboard. The canvas area is a virtual area on the electronic whiteboard used for user editing. The electronic whiteboard also supports the display and interaction of multimedia content, such as inserting images, videos, or documents. Electronic whiteboards are widely used in education, meetings, training, and other scenarios. They can record and save operation content in real time, facilitating subsequent editing, sharing, or playback, greatly improving the efficiency of information transmission and the convenience of collaboration.
[0042] In practical applications, when the electronic whiteboard is running and the recording function is activated, it actively interacts with the cloud service to achieve real-time data transmission. If it detects that the user is performing editing operations on the canvas area of the electronic whiteboard using input tools, such as writing, drawing, erasing, or annotating, it captures the coordinates of the editing operation on the canvas area to determine the action trajectory of the editing operation and converts the action trajectory into structured editing data. At the same time, it saves the generation time of each piece of editing data to obtain the recording timestamp of each piece of editing data.
[0043] At the same time, the editing object corresponding to each piece of edited data is determined. Different input tools interact with the electronic whiteboard, and the whiteboard confirms the editing object by obtaining the encoding of the input tool. Each editing object corresponds to a specific display effect, that is, the style in which the edited data is presented on the canvas area. It should be noted that in actual use cases, users can manually adjust the editing style of the input tools; therefore, the specific presentation style of the editing style is not specifically limited here.
[0044] Furthermore, each edited data, its corresponding timestamp, and the edited object are uploaded to a cloud service for storage.
[0045] For example, such as Figure 1 In the scenario diagram shown, the user performs an editing operation in the canvas area of the electronic whiteboard. After analyzing the editing operation, the corresponding editing data is "one". At the same time, the recording timestamp corresponding to the editing data is determined, for example, the recording timestamp is "10:00 AM". At this time, the editing data "one" and the corresponding recording timestamp "10:00 AM" are uploaded to the cloud service for storage.
[0046] The cloud service arranges the edited data according to the order of its recorded timestamps. This involves determining the timestamp of the currently edited data and the timestamp of the next edited data, as well as the interval between these timestamps. This interval is then used as the display duration for the currently edited data. The sorted edited data is then associated with its corresponding display duration to generate a data rendering sequence.
[0047] Furthermore, when the cloud service receives a data playback request from the electronic whiteboard, it sends the generated data drawing sequence to the electronic whiteboard. At the same time, the cloud service acquires the voice data generated by the user during the use of the electronic whiteboard. This voice data has been uploaded to the cloud service and saved through the audio acquisition device of the electronic whiteboard. After receiving the data drawing sequence, the electronic whiteboard reads the edited data in the order of the data drawing sequence and controls the display time of each edited data in the canvas area according to the data display duration of each edited data. At the same time, the electronic whiteboard will synchronously play the voice data corresponding to the timeline of the edited data.
[0048] In this embodiment, by acquiring lightweight editing data generated when the user operates on the electronic whiteboard, the high storage consumption problem caused by the need to continuously record all pixels of the electronic whiteboard during traditional teaching recording is avoided. The editing data is sorted by the recording timestamp, ensuring that the editing data can be displayed sequentially in subsequent use. At the same time, each editing data and the corresponding display duration are associated to generate a data drawing sequence with low storage consumption, thereby achieving the technical objective of reducing storage space.
[0049] based on Figure 1 The scene diagram shown below will be combined with... Figures 2-8 This application provides a detailed description of a data processing method provided in its embodiments.
[0050] Based on the above, this application proposes a data processing method. Please refer to [link to relevant documentation]. Figure 2 , Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S101-S104.
[0051] S101, obtain at least one edited data uploaded from the electronic whiteboard, and obtain the record timestamp of each edited data.
[0052] Specifically, when the electronic whiteboard is running and the recording function is detected as enabled, it actively interacts with the cloud service to achieve real-time data exchange. If it detects that the user is editing the canvas area using input tools, it captures the coordinates of the editing operation on the canvas area to determine the trajectory of the editing operation and converts it into structured editing data. It then determines the recording timestamp for each individual editing operation. The recording timestamp is the point in time when the editing operation is completed, used to identify the specific time when the editing data occurred. The recording timestamp is usually stored in a precise time format, such as a millisecond-level timestamp, to ensure the accuracy of the data's timing.
[0053] Furthermore, the editing object corresponding to each piece of editing data is determined. The editing object refers to the source of the editing data generated by the electronic whiteboard when different input tools interact with it. The electronic whiteboard uses the input tool's code to identify different tools. Each editing object corresponds to a specific display effect, which refers to the style of the editing data presented on the canvas area, such as the color of the handwriting, the thickness of the lines, or the transparency of erasure. Since a connection has already been established with the cloud service, each piece of editing data, its corresponding timestamp, and the editing object can now be directly uploaded to the cloud service for storage.
[0054] S102, sort each edited data based on the timestamp of each record.
[0055] In this embodiment of the application, the timestamp refers to the time point recorded when the editing operation is completed, which is used to identify the specific time when the edited data occurred. Each piece of edited data refers to the data generated by each individual editing operation performed by the user through the electronic whiteboard.
[0056] Specifically, the cloud service extracts the corresponding record timestamps from all the edited data. The record timestamps are stored in a precise time format, such as millisecond-level timestamps, to ensure the accuracy of the data's time sequence. Then, the edited data is arranged according to the order of the timestamps to generate an edited data sequence arranged chronologically.
[0057] This step accurately restores the chronological order of editing operations, providing logical consistency in time for subsequent data processing, playback, or analysis, while also supporting complete traceability and efficient management of the editing process.
[0058] S103, based on the two adjacent timestamps in each record, determine the data display duration for each edited data.
[0059] Specifically, the cloud service first extracts all record timestamps and arranges them in chronological order; then, it calculates the time interval between two adjacent record timestamps in turn, so as to allocate a data display duration for each edited data that matches its actual occurrence time, ensuring that the display rhythm of the edited data is completely consistent with the time sequence of the actual operation during the data playback process, thereby improving the accuracy and smoothness of the playback.
[0060] It should be noted that the display duration of the last edited data generated by the user needs to be determined based on the timestamp recorded when the user exited the interactive whiteboard's recording function, i.e., the time when the user exited the recording function. The display duration of the last edited data is determined by obtaining the interval between the timestamp of the last edited data and the timestamp of the user exiting the recording function.
[0061] S104 generates a data plotting sequence based on the sorted edited data and the display duration of each data.
[0062] Specifically, the sorted edited data is arranged chronologically; then, each edited data point is associated with its corresponding display duration; finally, the cloud service integrates these edited data points and their corresponding display durations into a complete data rendering sequence. This step allows for precise control of the playback rhythm of the edited data, ensuring that each edited data point is accurately presented according to its actual chronological order and display duration, thereby achieving efficient restoration and smooth display of the editing process. Simultaneously, the generation of the data rendering sequence optimizes data organization and management, reducing resource consumption.
[0063] In this embodiment, by acquiring lightweight editing data generated when the user operates on the electronic whiteboard, the high storage consumption problem caused by the need to continuously record all pixels of the electronic whiteboard during traditional teaching recording is avoided. The editing data is sorted by the recording timestamp, ensuring that the editing data can be displayed sequentially in subsequent use. At the same time, each editing data and the corresponding display duration are associated to generate a data drawing sequence with low storage consumption, thereby achieving the technical objective of reducing storage space.
[0064] Please see Figure 3 , Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 3 As shown, the method in this application embodiment may include the following steps S201-S202.
[0065] S201, if there is the same first record timestamp and second record timestamp in each record timestamp, then obtain the first edit data corresponding to the first record timestamp and the second edit data corresponding to the second record timestamp in each edit data.
[0066] S202, if the first edited data and the second edited data are the same, then delete the first edited data or the second edited data.
[0067] In this embodiment of the application, the recording timestamp refers to the time point recorded when the editing operation is completed. The first recording timestamp and the second recording timestamp refer to two time points with the same time value among all recording timestamps. The first editing data is the editing data corresponding to the first recording timestamp, and the second editing data is the editing operation data corresponding to the second recording timestamp.
[0068] For example, the first record timestamp of the first edited data is "October 15, 2023, 10:00:00", and the corresponding edited data is "L". The second record timestamp of the second edited data is also "October 15, 2023, 10:00:00", and the corresponding edited data is also "L". Since the first edited data and the second edited data are the same, both being "L", either the first edited data or the second edited data is deleted, thereby removing duplicate edited data and reducing data redundancy.
[0069] Please see Figure 4 , Figure 4 This is a schematic diagram illustrating a data processing method provided in an embodiment of this application. For example... Figure 4 As shown, the record timestamps contain a first record timestamp and a second record timestamp, both of which are "9:30:45". The edit data corresponding to the first record timestamp and the second record timestamp is "Edit Data C".
[0070] In this embodiment, by identifying and deleting duplicate edited data, data redundancy can be effectively reduced, thereby reducing storage space occupation and transmission resource consumption. At the same time, deleting duplicate data can optimize the structure of the data drawing sequence, ensure the uniqueness and logic of the edited data during playback, and avoid playback errors or resource waste caused by duplicate data. In addition, this mechanism can also improve data processing efficiency, reduce system burden, and provide a more efficient and streamlined data foundation for subsequent data management, playback and analysis.
[0071] Please see Figure 5 , Figure 5 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 5 As shown, the method in this application embodiment may include the following steps S301-S302.
[0072] S301, determine the adjacent third and fourth record timestamps from each record timestamp.
[0073] Specifically, the cloud service determines the adjacent third and fourth record timestamps from each record timestamp. The adjacent third and fourth record timestamps refer to two consecutive time points among all record timestamps arranged in chronological order.
[0074] For example, there are three edited data sets T1, T2, and T3, with T1 having a record timestamp of "October 15, 2023, 10:00:00", T2 having a record timestamp of "October 15, 2023, 10:00:05", and T3 having a record timestamp of "October 15, 2023, 10:00:10". Then, the adjacent third and fourth record timestamps can be T1 and T2, or T2 and T3.
[0075] S302, obtain the interval between the third record timestamp and the fourth record timestamp, and determine the interval as the data display duration of the third edited data corresponding to the third record timestamp.
[0076] Specifically, the interval between the third and fourth record timestamps is obtained, and the interval is determined as the data display duration of the third edited data corresponding to the third record timestamp. The interval refers to the time difference between two adjacent record timestamps, and the data display duration refers to the duration for which the third edited data is displayed in the canvas area.
[0077] For example, if the third record timestamp is "October 15, 2023, 10:00:00" and the fourth record timestamp is "October 15, 2023, 10:00:05", then the interval is 5 seconds. These 5 seconds are the data display duration of the third edited data corresponding to the third record timestamp.
[0078] In this embodiment, by accurately calculating the interval between adjacent timestamps, a display duration matching the actual occurrence time can be assigned to each piece of edited data, thereby ensuring that the display rhythm of the edited data is completely consistent with the time sequence of the actual operation during data playback, improving the accuracy and smoothness of playback; at the same time, determining the display duration based on the timestamp interval can avoid errors that may be caused by manually setting the duration, further optimizing the generation efficiency of the data drawing sequence.
[0079] In one feasible implementation, the method of this application embodiment can respond to the data playback request of the electronic whiteboard by sending a data drawing sequence to the electronic whiteboard. The data drawing sequence is used by the electronic whiteboard to display each edited data after sorting according to the display duration of each data.
[0080] Specifically, when the cloud service receives a data playback request initiated by any electronic whiteboard, it returns the data drawing sequence requested in the data playback request as response data to the electronic whiteboard. The data drawing sequence contains the edited data and its display duration. After receiving the data drawing sequence, the electronic whiteboard reads the edited data in the order of the sequence and controls its display time in the canvas area according to the display duration of each edited data.
[0081] Please see Figure 6 , Figure 6 This is a schematic diagram illustrating a data processing method provided in an embodiment of this application. For example... Figure 6 As shown, the electronic whiteboard draws a sequence based on the data returned by the cloud service. First, it displays the first editable data triangle for 3 seconds. After 3 seconds, it displays the second editable data circle for 4 seconds. After 4 seconds, it displays the third editable data rectangle for 4 seconds. After 4 seconds, it displays the fourth editable data pentagon.
[0082] In this embodiment, by precisely controlling the playback rhythm of the edited data, it can be ensured that each editing operation is accurately presented according to its actual time sequence and display duration, thereby achieving efficient restoration and smooth display of the editing process; at the same time, the playback mechanism based on the data drawing sequence can reduce the complexity of data processing and transmission, reduce system resource consumption, and improve playback efficiency.
[0083] Please see Figure 7 , Figure 7 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 7 As shown, the method in this application embodiment may include the following steps S401-S402.
[0084] S401, Obtain the editing object corresponding to each editing data in at least one editing data, and determine the display effect corresponding to each editing object.
[0085] In this embodiment, the editable object is the object that the electronic whiteboard generates by confirming the edited data when the user interacts with the input tool using the input tool. Each editable object corresponds to a specific display effect, that is, the style in which the edited data is presented on the canvas area. It should be noted that in actual use cases, users can manually adjust the editing style of the input tool; therefore, the specific presentation style of the editing style is not specifically limited here.
[0086] For example, when user A uses the first stylus to edit the canvas area, the resulting edit data is displayed as white lines, and when user B uses the second stylus to edit the canvas area, the resulting edit data is displayed as blue lines.
[0087] S402 generates a data drawing sequence based on the sorted edited data, the display duration of each data, and the display effect of each data.
[0088] In the method of this application embodiment, the data drawing sequence is used by the electronic whiteboard to display each sorted edited data according to the display duration and display effect of each data.
[0089] Specifically, the remote service generates a data drawing sequence based on the sorted edit data, the display duration of each data, and the display effects. The sorted edit data refers to the edit operation data arranged from earliest to latest according to the record timestamp. The display duration of each data refers to the duration for which each edit data is displayed in the canvas area. The data drawing sequence is an ordered set containing the edit data, the display duration, and the display effects.
[0090] For example, the timestamp of edit data A is "9:30:12", and the timestamp of edit data B is "9:30:23". Since the timestamp of edit data A is earlier than that of edit data B, edit data A is placed before edit data B, thus obtaining the data plotting sequence. After the server sends the data plotting sequence to the electronic whiteboard, edit data A and data B are displayed sequentially. For example, edit data A is a triangle with thin blue lines and the data display duration is 3 seconds, while edit data B is a circle with thin white lines and the data display duration is 5 seconds.
[0091] In this embodiment, by associating edited data with its corresponding edited object and display effect, it can be ensured that each editing operation is presented in a manner consistent with its actual style and characteristics during data playback, thereby improving the accuracy and intuitiveness of playback. At the same time, combined with the data display duration, the display rhythm of each edited data can be precisely controlled to ensure that the playback process is completely consistent with the time sequence of the actual operation, enhancing the continuity and smoothness of the user experience. In addition, this mechanism can optimize the structure of the data drawing sequence, reduce the storage and transmission of redundant information, and reduce system resource consumption.
[0092] Please see Figure 8 , Figure 8 This is a flowchart illustrating a data processing method provided in an embodiment of this application. Figure 8 As shown, the method in this application embodiment may include the following steps S501-S503.
[0093] S501 generates data snapshots based on each edited data and saves each data snapshot.
[0094] In this embodiment of the application, the data snapshot is the data generated by integrating the edit data generated at the current moment with the historical edit data generated at previous moments.
[0095] For example, at "10:00:00", data C is edited as "triangle", at "10:00:05", data D is edited as "circle", and at the current time "10:00:10", data E is edited as "rectangle". The server generates data snapshots based on each edited data. For example, data snapshot 1 generated at "10:00:00" integrates edited data C, indicating that the edited data in the canvas area is "triangle"; data snapshot 2 generated at "10:00:05" integrates edited data C and edited data D, indicating that the edited data in the canvas area at "10:00:05" is "triangle" and "circle"; data snapshot 3 generated at "10:00:10" integrates edited data C, edited data D, and edited data E, indicating that the edited data in the canvas area is "triangle", "circle", and "rectangle".
[0096] S502, in response to the data rollback request from the electronic whiteboard, determines the rollback timestamp from the data rollback request.
[0097] Specifically, the server responds to the data rollback request of the electronic whiteboard by determining the rollback timestamp from the data rollback request. The data rollback request refers to the user's request to restore the canvas state to a specific point in time, and the rollback timestamp refers to the restoration point in time specified by the user.
[0098] For example, if a user requests the server to roll back the edit count data displayed in the canvas area to the state of "10:00:00", the rollback timestamp will be "10:00:00".
[0099] S503: Extract the target data snapshot corresponding to the rollback timestamp from each data snapshot, and return the target data snapshot as response data to the electronic whiteboard.
[0100] Specifically, the server extracts the target data snapshot corresponding to the rollback timestamp from each data snapshot and returns the target data snapshot as response data to the electronic whiteboard. The target data snapshot refers to the data snapshot that matches the rollback timestamp.
[0101] For example, the cloud service extracts a data snapshot corresponding to "10:00:00". The edit data corresponding to the data snapshot at "10:00:00" is "triangle". The cloud service returns the data snapshot at "10:00:00" to the electronic whiteboard. The electronic whiteboard displays "triangle" in the canvas area based on the data snapshot.
[0102] Please see Figure 9 , Figure 9 This is a schematic diagram illustrating a data processing method provided in an embodiment of this application. For example... Figure 9 As shown, the editing data displayed on the canvas area of the electronic whiteboard includes triangles, circles, rectangles, and pentagons. The pentagons represent the editing data corresponding to the user's current editing operation. At this moment, the user initiates a data rollback request to the cloud service through the electronic whiteboard, requesting that the editing data displayed on the canvas area be rolled back to the editing data before the pentagon was generated. Upon receiving the data rollback request, the cloud service retrieves the record timestamp corresponding to the previous editing data and returns the record timestamp and all the editing data before the record timestamp as response data to the electronic whiteboard. Then, triangles, circles, and rectangles are displayed on the canvas area of the electronic whiteboard.
[0103] In this embodiment, by generating and saving data snapshots, the state of edited data at different points in time can be completely recorded, providing accurate historical version support for data rollback and ensuring the accuracy and reliability of rollback operations. At the same time, the target data snapshot can be quickly located based on the rollback timestamp, which can significantly improve rollback efficiency, reduce response time, and optimize user experience. In addition, this mechanism can avoid recalculating or processing edited data during the rollback process, reduce resource consumption, and improve overall processing speed.
[0104] In another feasible embodiment, the cloud service acquires voice data and its corresponding timestamp. Voice data refers to the voice content recorded by the user through the audio capture device of the electronic whiteboard, and the timestamp refers to the time the voice data was recorded. After acquiring the voice data, the cloud service uses a preset audio processing algorithm to perform noise reduction processing on the voice data to remove background noise, background interference, and other interference, thereby improving the clarity and intelligibility of the voice. Simultaneously, the cloud service acquires each edited data in the data rendering sequence and its corresponding recording timestamp. Then, it aligns the timestamp of the voice data with the recording timestamp of the edited data in the data rendering sequence to ensure that the voice content and editing operations are synchronized in time.
[0105] For example, suppose a user records the voice "This is the title" at "10:00:00" and simultaneously writes the title at "10:00:00". The cloud service will match the voice "This is the title" with the written title to ensure that the voice and the edited data are displayed on the electronic whiteboard during playback.
[0106] In this embodiment, the cloud service can achieve accurate matching of voice data and data plotting sequence, ensuring synchronous display of voice explanation and edited data during playback, while improving voice quality through noise reduction processing, thereby providing a more intuitive and efficient data playback experience.
[0107] based on Figure 1 The following is a scene illustration, which will be combined with... Figure 10 This application provides a detailed description of the data processing apparatus provided in its embodiments. It should be noted that... Figure 10 The data processing device 1 in the middle is used to execute the present application. Figures 2-9 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 2-9 In the embodiment shown, the data processing device 1 may include a data acquisition unit 11, a data sorting unit 12, a timing determination unit 13, and a sequence generation unit 14, as detailed below:
[0108] Data acquisition unit 11 is used to acquire at least one piece of edit data uploaded by the electronic whiteboard, acquire the recording timestamp of each piece of edit data, and the edit data is the data generated by the electronic whiteboard in response to the editing operation in the canvas area;
[0109] Data sorting unit 12 is used to sort each edited data based on the timestamp of each record;
[0110] The duration determination unit 13 is used to determine the data display duration of each edited data based on two adjacent record timestamps in each record timestamp.
[0111] The sequence generation unit 14 is used to generate a data drawing sequence based on the sorted edited data and the display duration of each data.
[0112] Optionally, the data sorting unit 12 may also include a timestamp determination unit and a data determination unit.
[0113] The timestamp determination unit is used to obtain the first edit data corresponding to the first record timestamp and the second edit data corresponding to the second record timestamp from each edit data if there is the same first record timestamp and second record timestamp in each record timestamp.
[0114] The data determination unit is used to delete either the first edited data or the second edited data if the first edited data and the second edited data are the same.
[0115] Optionally, the duration determination unit 13 may also include a timestamp acquisition unit and a display duration acquisition unit.
[0116] The timestamp acquisition unit is used to determine the adjacent third and fourth record timestamps from each record timestamp;
[0117] The display duration acquisition unit is used to acquire the interval duration between the third record timestamp and the fourth record timestamp, and to determine the interval duration as the data display duration of the third edited data corresponding to the third record timestamp.
[0118] Optionally, the data processing device 1 further includes a playback request response unit.
[0119] The playback request response unit is used to respond to the data playback request of the electronic whiteboard by sending the data drawing sequence to the electronic whiteboard. The data drawing sequence is used by the electronic whiteboard to display each edited data in sorted order according to the display duration of each data.
[0120] Optionally, the data acquisition unit 11 may also include an object acquisition unit and a sequence initialization unit.
[0121] The object acquisition unit is used to acquire the editing object corresponding to each piece of editing data in at least one piece of editing data, and to determine the display effect corresponding to each editing object;
[0122] Based on the sorted edited data and the display duration of each data point, a data plotting sequence is generated, including:
[0123] The sequence initialization unit is used to generate a data drawing sequence based on the sorted edited data, the display duration of each data, and the display effect.
[0124] Optionally, the data acquisition unit 11 may also include a snapshot saving unit.
[0125] The snapshot saving unit is used to generate data snapshots based on each edited data and save each data snapshot.
[0126] Optionally, the data acquisition unit 11 may also include a rollback request response unit and a data return unit.
[0127] The rollback request response unit is used to respond to the data rollback request of the electronic whiteboard and determine the rollback timestamp from the data rollback request;
[0128] The data return unit is used to extract the target data snapshot corresponding to the rollback timestamp from each data snapshot and return the target data snapshot as response data to the electronic whiteboard.
[0129] In this embodiment, by acquiring lightweight editing data generated when the user operates on the electronic whiteboard, the high storage consumption problem caused by the need to continuously record all pixels of the electronic whiteboard during traditional teaching recording is avoided. The editing data is sorted by the recording timestamp, ensuring that the editing data can be displayed sequentially in subsequent use. At the same time, each editing data and the corresponding display duration are associated to generate a data drawing sequence with low storage consumption, thereby achieving the technical objective of reducing storage space.
[0130] Furthermore, the data processing apparatus provided in the above embodiments and the data processing method embodiments belong to the same concept, and the implementation process can be found in the method embodiments, which will not be repeated here.
[0131] The sequence numbers of the embodiments described above are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0132] This application also provides a computer storage medium that can store multiple program instructions, which are adapted to be loaded and executed by a processor as described above. Figures 2-8 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figures 2-8 The specific details of the illustrated embodiments will not be elaborated here.
[0133] Please see Figure 11 The diagram below provides a structural schematic of an electronic whiteboard according to an embodiment of this application. Figure 11 As shown, the electronic whiteboard 600 may include: at least one processor 601, such as a CPU; at least one network interface 604; an input / output interface 603; a memory 605; and at least one communication bus 602. The communication bus 602 is used to enable communication between these components. The network interface 604 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 605 may be high-speed RAM or non-volatile memory, such as at least one disk drive. Optionally, the memory 605 may also be at least one storage device located remotely from the aforementioned processor 601. Figure 11 As shown, the memory 605, which serves as a computer storage medium, may include an operating system, a network communication module, an input / output interface module, and a data processing application program.
[0134] exist Figure 11 In the electronic whiteboard 600 shown, the input / output interface 603 is mainly used to acquire audio and video signals and output them to the user's terminal device.
[0135] In some embodiments, the processor 601 can be used to invoke a data processing application stored in the memory 605 and specifically perform the following operations:
[0136] Obtain at least one piece of edit data uploaded by the electronic whiteboard, obtain the record timestamp of each piece of edit data, and the edit data is the data generated by the electronic whiteboard in response to the editing operation in the canvas area;
[0137] Sort each edited data based on the timestamp of each record;
[0138] Based on the two adjacent timestamps in each record, the data display duration for each edited data is determined.
[0139] Based on the sorted edited data and the display duration of each data point, a data plotting sequence is generated.
[0140] Optionally, the processor 601 performs the following operations when sorting each edited data based on each record timestamp:
[0141] If the same first record timestamp and second record timestamp exist in each record timestamp, then the first edit data corresponding to the first record timestamp and the second edit data corresponding to the second record timestamp are obtained from each edit data.
[0142] If the first edited data and the second edited data are the same, then delete either the first edited data or the second edited data.
[0143] Optionally, when the processor 601 determines the data display duration of each edited data based on two adjacent record timestamps in each record timestamp, it specifically performs the following operations:
[0144] Determine the adjacent third and fourth record timestamps from each record timestamp;
[0145] Obtain the interval between the third and fourth record timestamps, and determine the interval as the data display duration of the third edited data corresponding to the third record timestamp.
[0146] Optionally, after acquiring at least one piece of edit data uploaded from the electronic whiteboard, the processor 601 performs the following operations:
[0147] Obtain the editing object corresponding to each piece of editing data in at least one editing data set, and determine the display effect corresponding to each editing object;
[0148] Based on the sorted edited data and the duration of each data display, a data plotting sequence is generated, specifically by performing the following operations:
[0149] Based on the sorted edited data, the display duration of each data point, and the display effects, a data plotting sequence is generated.
[0150] Optionally, after the processor 601 executes the acquisition of at least one piece of edit data uploaded by the electronic whiteboard, it specifically performs the following operations: generates a data snapshot based on each piece of edit data, and saves each data snapshot.
[0151] Optionally, after generating data snapshots based on each piece of edited data and saving each data snapshot, the processor 601 performs the following operations:
[0152] In response to a data rollback request from the electronic whiteboard, determine the rollback timestamp from the data rollback request;
[0153] Extract the target data snapshot corresponding to the rollback timestamp from each data snapshot, and return the target data snapshot as response data to the electronic whiteboard.
[0154] In this embodiment, by acquiring lightweight editing data generated when the user operates on the electronic whiteboard, the high storage consumption problem caused by the need to continuously record all pixels of the electronic whiteboard during traditional teaching recording is avoided. The editing data is sorted by the recording timestamp, ensuring that the editing data can be displayed sequentially in subsequent use. At the same time, each editing data and the corresponding display duration are associated to generate a data drawing sequence with low storage consumption, thereby achieving the technical objective of reducing storage space.
[0155] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0156] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0157] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0158] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method includes: Obtain at least one piece of edit data uploaded by the electronic whiteboard, and obtain the recording timestamp of each piece of edit data, wherein the edit data is the data generated by the electronic whiteboard in response to the editing operation in the canvas area; Sort the edited data based on the timestamps of each record; Based on two adjacent timestamps in each of the recorded timestamps, the data display duration of each of the edited data is determined respectively; Based on the sorted edited data and the display duration of each data, a data drawing sequence is generated.
2. The method according to claim 1, characterized in that, The sorting of each edited data based on each of the record timestamps includes: If the same first record timestamp and second record timestamp exist in each of the recorded timestamps, then the first edit data corresponding to the first record timestamp and the second edit data corresponding to the second record timestamp are obtained from each of the edit data. If the first edited data and the second edited data are the same, then the first edited data or the second edited data is deleted.
3. The method according to claim 1, characterized in that, The step of determining the data display duration for each piece of edited data based on two adjacent timestamps in each of the recorded timestamps includes: Determine the adjacent third and fourth record timestamps from each of the recorded timestamps; Obtain the interval between the third record timestamp and the fourth record timestamp, and determine the interval as the data display duration of the third edited data corresponding to the third record timestamp.
4. The method according to claim 1, characterized in that, The method further includes: In response to the data playback request of the electronic whiteboard, the data drawing sequence is sent to the electronic whiteboard, and the data drawing sequence is used by the electronic whiteboard to display each of the sorted edited data according to the display duration of each of the data.
5. The method according to claim 4, characterized in that, After obtaining at least one piece of edit data uploaded by the electronic whiteboard, the method further includes: Obtain the editing object corresponding to each of the at least one editing data, and determine the display effect corresponding to each editing object; The process of generating a data drawing sequence based on the sorted edited data and the display duration of each data item includes: Based on the sorted edited data, the display duration of each data, and the display effect of each, the data drawing sequence is generated.
6. The method according to claim 5, characterized in that, The data drawing sequence is used by the electronic whiteboard to display the sorted edited data according to the display duration and display effect of each data.
7. The method according to claim 1, characterized in that, After acquiring at least one piece of edit data uploaded by the electronic whiteboard, the method further includes: Data snapshots are generated based on the edited data, and each data snapshot is saved.
8. The method according to claim 7, characterized in that, After generating data snapshots based on each of the edited data and saving each of the data snapshots, the method further includes: In response to the data rollback request from the electronic whiteboard, a rollback timestamp is determined from the data rollback request; Extract the target data snapshot corresponding to the rollback timestamp from each of the data snapshots, and return the target data snapshot as response data to the electronic whiteboard.
9. A data processing apparatus, characterized in that, The device includes: The data acquisition unit is used to acquire at least one piece of edit data uploaded by the electronic whiteboard, and to acquire the recording timestamp of each piece of edit data, wherein the edit data is the data generated by the electronic whiteboard in response to the editing operation in the canvas area; A data sorting unit is used to sort each of the edited data based on the timestamp of each of the records; The duration determination unit is used to determine the data display duration of each piece of edited data based on two adjacent timestamps in each of the recorded timestamps; The sequence generation unit is used to generate a data drawing sequence based on the sorted edited data and the display duration of each data.
10. An electronic whiteboard, characterized in that, The electronic whiteboard includes: Memory, used to store executable program code; A processor is configured to call and run the executable program code from the memory, causing the vehicle to perform the data processing method as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the data processing method as described in any one of claims 1 to 8.