Automatic compatibility method, system and equipment for input file of electronic whiteboard and medium
By analyzing and converting the input files, forming a content hierarchy tree and converting it into a compatible format, the problem that the electronic whiteboard system cannot recognize files due to incompatibility of file formats is solved, and the normal reading and use of files is realized, and the user experience is improved.
Patent Information
- Application Number
- CN202411952777.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-22
AI Technical Summary
When processing files uploaded by users, the existing electronic whiteboard system cannot be recognized due to incompatibility in the file format, resulting in the files being unable to be read and used normally, causing inconvenience to the user experience.
By obtaining the information of the input file, analyzing and creating a content hierarchy tree, converting it into a specified format file compatible with the electronic whiteboard according to the file type, including file format conversion, downgrade processing, and dynamic adjustment of element properties.
It realizes automatic compatibility of the electronic whiteboard for input files, ensuring that the files can be successfully identified and read, and improving user experience and compatibility.
Smart Images

Figure CN119862858A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an automatic compatibility method, system, device and medium for electronic whiteboard input files. Background Art
[0002] At present, the electronic whiteboard system has a convenient user file upload function, but due to the complexity of file formats, the compatible formats supported by the system are relatively limited, limited to a few specified types. Therefore, in actual operation, the files uploaded by users are often unable to be recognized by the electronic whiteboard due to format incompatibility issues, which in turn causes the files to be unable to be read and displayed smoothly, bringing certain inconveniences to the user experience. Summary of the invention
[0003] The embodiment of the present invention provides an automatic compatibility method, system, device and medium for inputting files on an electronic whiteboard to solve the problems existing in the related art. The technical solution is as follows:
[0004] In a first aspect, an embodiment of the present invention provides an automatic compatibility method for electronic whiteboard input files, comprising:
[0005] Obtain an input file, analyze the input file to determine file information, the file information includes page elements, element attributes and file format;
[0006] Create object nodes corresponding to the file format according to page elements, and map element attributes to corresponding object nodes to form a content hierarchy structure tree;
[0007] The file type of the input file is identified, and the content hierarchy structure tree is converted into a specified format file corresponding to the file type according to the file type, and the specified format file meets the compatibility requirements of the electronic whiteboard.
[0008] In one implementation, analyzing the input file to determine the file information includes:
[0009] Identify the file header of the input file based on the feature recognition algorithm, and determine the file format according to the file header;
[0010] The page content of the input file is traversed to determine the page elements contained in the input file, and the element features of each page element are identified, and the element attributes are determined according to the element features.
[0011] In one embodiment, the page element is one or more combinations of text, images or graphic objects.
[0012] In one embodiment, it further includes:
[0013] Get the file processing speed of the input file and the file content amount of the input file;
[0014] Calculate response time based on file processing speed and file content volume;
[0015] When the response time is greater than a preset value, the page element is downgraded until the response time is less than or equal to the preset value; the downgrade process includes file compression, image display resolution adjustment, and text layout adjustment.
[0016] In one embodiment, it further includes:
[0017] The display parameters of the electronic whiteboard are obtained, the element attributes in each object node are dynamically adjusted according to the display parameters, the adjusted attribute values are obtained, and the content hierarchy structure tree is updated according to the adjusted attribute values.
[0018] In one embodiment, it further includes:
[0019] Visually display the content hierarchy structure tree to obtain a display page;
[0020] Monitor click events executed on the display page, determine the target object node according to the click position of the click event, and display the element attributes corresponding to the target object node on the display page.
[0021] In one embodiment, converting the content hierarchy tree into a file in a specified format corresponding to the file type according to the file type includes:
[0022] Determine whether there are animation elements and interactive elements in the input file. Interactive elements include buttons, input boxes, and drop-down menus.
[0023] In the case where the input file has animation elements and / or interactive elements, the file type of the input file is determined to be an interactive file, and the content hierarchy structure tree is converted into a specified special format file; the specified special format file is an IWB format file or an EWB format file;
[0024] When the input file does not have animation elements and interactive elements, the file type of the input file is determined to be a static file, and the content hierarchy structure tree is converted into an IWB format file.
[0025] In a second aspect, an embodiment of the present invention provides an automatic compatibility system for electronic whiteboard input files, which executes the automatic compatibility method for electronic whiteboard input files as described above.
[0026] In a third aspect, an embodiment of the present invention provides an electronic device, the device comprising: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.
[0027] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.
[0028] The advantages or beneficial effects of the above technical solution include at least:
[0029] The present invention can convert the input file into a content hierarchy structure tree, organize data in a tree form, and clearly reflect the hierarchical relationship between data elements in the input file; then convert the content hierarchy structure tree into a specified format file, and the specified format file can meet the compatibility requirements of the electronic whiteboard, so that the electronic whiteboard can successfully identify the file content and improve compatibility.
[0030] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present invention will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present invention and should not be regarded as limiting the scope of the present invention.
[0032] Figure 1 A schematic diagram of the process of the automatic compatibility method of electronic whiteboard input files of the present invention;
[0033] Figure 2 A schematic diagram of the process of input file format conversion of the present invention;
[0034] Figure 3 The structure block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present invention. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0036] Currently, the electronic whiteboard system does have the function of receiving files uploaded by users. However, given the wide variety of file formats, the electronic whiteboard is only compatible with a few specific formats. This often leads to a situation where after users upload files, the electronic whiteboard cannot recognize the format of these files, making the files unable to be read and used normally.
[0037] In order to solve the above problems, a first embodiment of the present invention provides an automatic compatibility method for electronic whiteboard input files, which can convert the format of input files so that the electronic whiteboard can read and use the files normally, thereby improving compatibility.
[0038] It should be noted that the execution object of the automatic compatibility method for electronic whiteboard input files can be a designated server, which converts the format of the input file and then imports it into the electronic whiteboard for normal processing and recognition; in this embodiment, the execution object of the automatic compatibility method for input files is the main control board of the electronic whiteboard. When the input file is imported into the electronic whiteboard, the main control board converts the format of the input file while recognizing the file, so that the electronic whiteboard system can handle various types of files more flexibly. Users do not need to worry about file format issues and can focus more on the content itself, thereby improving the user experience.
[0039] like Figure 1 As shown, the automatic compatibility method for electronic whiteboard input files in this embodiment specifically includes:
[0040] Step S1: obtaining an input file, analyzing the input file to determine file information, where the file information includes page elements, element attributes, and file format.
[0041] Combination Figure 2 As shown, the electronic whiteboard receives the input file uploaded by the user. The file format of the input file can be IWB (Interactive Whiteboard), PDF, PPT, etc. The electronic whiteboard automatically checks the type and format of the input file. Specifically,
[0042] The file header of the input file is identified based on the feature recognition algorithm. The file header contains content such as MIME type, file extension or other format identifiers, so that the file format is determined based on the file header.
[0043] Then, the input file is further analyzed in detail, the page content of the input file is traversed, and different types of page elements, such as graphics, images, text, etc., are extracted from each page of the input file; the extracted elements are classified according to type and attribute, and the hierarchical relationship between the elements is determined; text feature recognition is performed on the text, and the font, size, color, alignment, language, etc. of the text are identified; graphic features are identified, such as the shape, border, fill color, transparency, etc. of the graphic; image features are identified, such as the resolution, color mode, file format, etc. of the image, and even image content analysis (such as identifying objects in the image) can be performed; the element features corresponding to each page element are determined in the above manner, and the element features are recorded and stored as element attributes.
[0044] Step S2: creating object nodes corresponding to the file format according to the page elements, and mapping the element attributes to the corresponding object nodes to form a content hierarchy structure tree.
[0045] When it is recognized that the file format of the input file is the IWB format, the input file is directly converted into a content hierarchy structure tree as a basis for subsequent processing.
[0046] The method for converting the input file into a content hierarchy tree is:
[0047] The input file is divided into multiple object nodes, and the type of the object node corresponds to the type of the page element in the input file. Specifically, a root node is created, and multiple child nodes are created based on the root node, including text nodes, image nodes, graphic nodes, etc. Under each child node, a grandchild node is created, and the element attribute corresponding to the page element is written into the node attribute of the grandchild node, so that the hierarchical structure is combined to form a content hierarchy tree.
[0048] Assuming that the file format of the input file is not in IWB format, a specific conversion algorithm is called according to the format type of the input file to convert the input file to IWB format and generate a corresponding content hierarchy structure tree. For example, for PDF format files, when converting, the node information of each page element is used to generate an object hierarchy compatible with the IWB format, and the page content is mapped to a single page or node structure in the IWB format. At this time, the attribute mapping algorithm is called to make the text attributes, image attributes, page number levels and other attributes in the PDF or PPT correspond to the node attributes in the IWB format one by one, such as the color C of the graphic in the PDF. PDF Convert to IWB node color C IWB , and the corresponding conversion formula is:
[0049] C IWB =f(C PDF );
[0050] Among them, C IWB Indicates the color attribute in IWB format, C PDF is the color attribute in PDF format, and f is the color attribute mapping function.
[0051] When the file is successfully converted and the structure is complete, it goes to step S3; if performance instability occurs during the conversion process, the system records the problem type and performs corresponding testing and optimization steps.
[0052] Specifically, the file processing speed of the input file and the file content of the input file are obtained; the response time is calculated according to the formula T=L / S, where T is the response time, L is the file content, and S is the file processing speed; when the response time is greater than the preset value, it means that the response time is too long, and the page element is downgraded when the response time is greater than the preset value until the calculated response time is controlled within the standard range (that is, the response time is less than or equal to the preset value), and the content hierarchy structure tree is updated again after the downgrade process. The downgrade process includes file compression, image display resolution adjustment, text layout adjustment, etc., which aims to optimize the display effect and usage efficiency of the image by reducing the file size, reducing the resolution, etc., and improve the loading speed.
[0053] Among them, image display resolution adjustment refers to reducing the image resolution, such as from 300dpi to 150dpi. Adjusting text layout can optimize text typesetting, such as adjusting the font and font size, setting reasonable line spacing and paragraph spacing, etc.
[0054] Furthermore, an automatic adjustment function can be provided for each object node in the content hierarchy structure tree according to the display requirements of the electronic whiteboard. Specifically:
[0055] The display parameters of the electronic whiteboard are obtained, and the element attributes in each object node are dynamically adjusted according to the display parameters to obtain the adjusted attribute values, and the content hierarchy structure tree is updated according to the attribute values. The display parameters may be the display area size, display brightness, resolution, etc. of the electronic whiteboard.
[0056] For each object node in the content hierarchy structure tree, the system dynamically adjusts its position, size, rotation angle, transparency and other properties to meet the display requirements of the electronic whiteboard. Assuming that the displayable area size of the electronic whiteboard is D1, the display area size of the input file is D2, and the initial size of the node is S0, the adjusted node size S can be calculated according to the formula, where the formula is: S = (D1 / D2)*S0. Among them, S is the adjusted node size, D1 and D2 are the ratios of the display area size of the whiteboard and the input file, and S0 is the initial size of the node. The position and size of the content nodes are dynamically laid out according to the adjusted size S to ensure visual consistency.
[0057] At the same time, the content hierarchy structure tree is visualized to obtain a display page, and the element attributes of each object node in the content hierarchy structure tree can be displayed on demand. That is, when the user clicks on any object node on the display page, the system determines the target object node clicked by the user based on the click position corresponding to the click event, and the element attributes corresponding to the target object node are visualized, while the element attributes of the object nodes that are not clicked are hidden.
[0058] Step S3: Identify the file type of the input file, and convert the content hierarchy structure tree into a specified format file corresponding to the file type according to the file type, wherein the specified format file meets the compatibility requirements of the electronic whiteboard.
[0059] After the user imports the input file into the electronic whiteboard, the best file format and optimization method will be automatically recommended based on the characteristics of the input file. Specifically:
[0060] Analyze the content type, size and interaction requirements of the input file, and determine the appropriate format import method through intelligent algorithms (such as classification models based on neural networks). For example, collect a large number of files of known types and their corresponding import methods, select the most important features based on the correlation between file types and import methods, and use neural networks (such as convolutional neural networks CNN, recurrent neural networks RNN or fully connected neural networks) for training to obtain the corresponding classification model. The electronic whiteboard can analyze the input file through the pre-built classification model to obtain the best format type for the most suitable input file.
[0061] In addition, due to the existence of animation elements and interactive element input files, the data processing volume of the interactive content is large, and the interactive logic is relatively complex. Therefore, it needs to be converted into a whiteboard-specific format (including rich drawing tools, animation effects and real-time collaboration functions) to meet the needs of interactive content; static input text is more suitable for using a concise and efficient file format, such as the IWB format, which focuses on the clear presentation of information and wide compatibility.
[0062] Therefore, this embodiment needs to determine whether there are animation elements or interactive elements in the input file, and the interactive elements include buttons, input boxes, and drop-down menus; when there are animation elements and / or interactive elements in the input file, it is determined that the file type of the input file is an interactive file, and the system recommends a file format with strong interactivity, such as IWB format files or EWB format files and other specific whiteboard-specific formats.
[0063] When the input file does not contain animation elements and interactive elements, the file type of the input file is determined to be a static file, and the system recommends direct conversion to the IWB format.
[0064] When the user accepts the system suggestion, the corresponding conversion process is entered, that is, for interactive files, the content hierarchy tree is converted into an IWB format file or an EWB format file; for static files, the content hierarchy tree is converted into an IWB format file.
[0065] This embodiment converts the input file into a content hierarchy structure tree, organizes data in a tree form, and clearly reflects the hierarchical relationship between data elements in the input file; then the content hierarchy structure tree is converted into a specified format file, and the specified format file can meet the compatibility requirements of the electronic whiteboard, so that the electronic whiteboard can successfully identify the file content and improve compatibility.
[0066] Embodiment 2 of the present invention provides an automatic compatibility system for electronic whiteboard input files, which executes the automatic compatibility method for electronic whiteboard input files as described above. The system includes:
[0067] The file input module is used to receive input files uploaded by users, analyze the input files to obtain corresponding file information, and extract the pages, graphics, text and other information contained in the input files according to different file types to form a content description object (Content Descriptor), and generate a basic content hierarchy structure tree for each format.
[0068] The file format conversion module is used for non-IWB format files. The file format conversion module calls a specific conversion algorithm to convert the element attributes of the page elements according to the format type of the input file to ensure file format compatibility.
[0069] The node content adjustment module is used to dynamically adjust the position, size, rotation angle, transparency and other properties of each object node in the content hierarchy structure tree to meet the display requirements of the electronic whiteboard.
[0070] The test optimization module automatically calls the optimization algorithm to optimize system performance when response delay problems occur.
[0071] The format suggestion module is used to automatically recommend the best file format according to the characteristics of the input file, and convert the content hierarchy diagram into the best file format so that the electronic whiteboard can read or use the file normally to avoid incompatibility.
[0072] The functions of each module in the system of the embodiment of the present invention can be found in the corresponding description in the above method, which will not be repeated here.
[0073] A third embodiment of the present invention provides an electronic device, Figure 3 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 3As shown, the electronic device includes: a memory 100 and a processor 200, wherein the memory 100 stores a computer program that can be run on the processor 200. When the processor 200 executes the computer program, the automatic compatibility method of the electronic whiteboard input file in the above embodiment is implemented. The number of the memory 100 and the processor 200 can be one or more.
[0074] The electronic device also includes:
[0075] The communication interface 300 is used to communicate with external devices and perform data exchange transmission.
[0076] If the memory 100, the processor 200 and the communication interface 300 are implemented independently, the memory 100, the processor 200 and the communication interface 300 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0077] Optionally, in a specific implementation, if the memory 100, the processor 200 and the communication interface 300 are integrated on a chip, the memory 100, the processor 200 and the communication interface 300 can communicate with each other through an internal interface.
[0078] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present invention when executed by a processor.
[0079] An embodiment of the present invention further provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present invention.
[0080] An embodiment of the present invention also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided by the embodiment of the invention.
[0081] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0082] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0083] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0084] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0085] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0086] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An automatic compatibility method for electronic whiteboard input files, characterized in that: include: Acquire an input file, and analyze the input file to determine file information, wherein the file information includes page elements, element attributes, and file format; Creating object nodes corresponding to the file format according to the page elements, and mapping the element attributes to the corresponding object nodes to form a content hierarchy structure tree; The file type of the input file is identified, and according to the file type, the content hierarchy tree is converted into a specified format file corresponding to the file type, wherein the specified format file meets the compatibility requirements of the electronic whiteboard.
2. The method for automatically making the electronic whiteboard input file compatible according to claim 1, characterized in that: The analyzing the input file to determine the file information comprises: Identify the file header of the input file based on a feature recognition algorithm, and determine the file format according to the file header; The page content of the input file is traversed to determine the page elements contained in the input file, and the element features of each of the page elements are identified, and the element attributes are determined according to the element features.
3. The automatic compatibility method for electronic whiteboard input files according to claim 2, characterized in that: The page element is one or more combinations of text, images or graphic objects.
4. The method for automatically making the electronic whiteboard input file compatible according to claim 1, characterized in that: Also includes: Obtaining a file processing speed of the input file and a file content volume of the input file; Calculate the response time according to the file processing speed and the amount of the file content; When the response time is greater than a preset value, the page element is downgraded until the response time is less than or equal to the preset value; wherein the downgrade process includes file compression, image display resolution adjustment, and text layout adjustment.
5. The method for automatically making the electronic whiteboard input file compatible according to claim 1, characterized in that: Also includes: The display parameters of the electronic whiteboard are obtained, the element attributes in each object node are dynamically adjusted according to the display parameters to obtain adjusted attribute values, and the content hierarchy structure tree is updated according to the adjusted attribute values.
6. The method for automatically making electronic whiteboard input files compatible according to claim 1, characterized in that: Also includes: Visually display the content hierarchy structure tree to obtain a display page; A click event executed on the display page is monitored, a target object node is determined according to a click position of the click event, and an element attribute corresponding to the target object node is displayed on the display page.
7. The method for automatically making input files compatible with an electronic whiteboard according to claim 1, characterized in that: The converting the content hierarchy tree into a file of a specified format corresponding to the file type according to the file type comprises: Determine whether there are animation elements and interactive elements in the input file, wherein the interactive elements include buttons, input boxes, and drop-down menus; In the case that the input file contains the animation element and / or the interactive element, determining that the file type of the input file is an interactive file, and converting the content hierarchy tree into a specified special format file; the specified special format file is an IWB format file or an EWB format file; In the case that the input file does not contain the animation element and the interactive element, it is determined that the file type of the input file is a static file, and the content hierarchy structure tree is converted into an IWB format file.
8. An automatic compatibility system for electronic whiteboard input files, characterized in that: Execute the automatic compatibility method for electronic whiteboard input files as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the automatic compatibility method for electronic whiteboard input files as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for automatically making the electronic whiteboard input file compatible is implemented as claimed in any one of claims 1 to 7.