User interface data processing method and device and storage medium
By extracting and converting text and picture information in user interface data and generating preset files in a unified format, the problem of excessive resource consumption of smart terminal devices when loading user interface data generated by different UI design tools is solved, and the device performance is improved and battery life.
Patent Information
- Application Number
- CN202311018353.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
When smart terminal devices load user interface data generated by different UI design tools, they need to convert data of different types or data formats one by one, resulting in excessive resource consumption and reducing device performance and battery life.
By extracting text information, pictures and picture information in the user interface data, converting them into preset file formats (JSON files and temporary directory files), and converting and compressing the pictures to generate unified format data that can be loaded by the target terminal device. .
It realizes unified processing of different types of user interface data, improves the efficiency of generating user interface loading data, reduces resource consumption of target terminal devices when loading data, and improves equipment performance and battery life.
Smart Images

Figure CN119474023A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a user interface data processing method, device and storage medium. Background Art
[0002] With the development of smart terminal devices, more and more user interfaces need to be loaded in smart terminal devices. In related technologies, different UI (User Interface) design tools generate user interface data of different types or data formats. When terminal devices load user interfaces, they need to convert these user interface data of different types or different data formats one by one, which will lead to excessive resource consumption and reduce the performance and battery life of terminal devices. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a user interface data processing method, device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for processing user interface data is provided, comprising:
[0005] Acquire user interface data to be loaded, wherein the user interface data includes multiple types;
[0006] Extracting text information, pictures, and picture information from the pictures in the user interface data;
[0007] Converting the text information and the picture information into a first preset file, and converting the picture into a second preset file;
[0008] Generate user interface loading data of a target terminal device according to the first preset file and the second preset file.
[0009] Optionally, generating user interface loading data of a target terminal device according to the first preset file and the second preset file includes:
[0010] Saving the text information and the picture information in the first preset file to a resource file;
[0011] Performing conversion and compression processing on the picture in the second preset file to obtain a target picture, and saving the target picture to the resource file;
[0012] The user interface loading data of the target terminal device is generated according to the resource file.
[0013] Optionally, converting and compressing the image in the second preset file to obtain a target image includes:
[0014] Performing conversion processing on the picture in the second preset file to obtain an initial picture, wherein the conversion processing includes at least one of the following: alignment and cropping, reducing picture quality, and converting to a target color;
[0015] Perform image compression processing on the initial image to obtain the target image.
[0016] Optionally, generating the user interface loading data of the target terminal device according to the resource file includes:
[0017] Performing overall compression processing on the resource file to obtain a first compressed file;
[0018] When the size of the first compressed file is larger than a preset threshold, the resource file is compressed in blocks to obtain a second compressed file, and the second compressed file is determined as the user interface loading data.
[0019] Optionally, the method further comprises:
[0020] Generate an index file according to the text information and the picture information in the first preset file and the index information of each of the pictures in the second preset file;
[0021] Generating the user interface loading data of the target terminal device according to the resource file includes:
[0022] The user interface loading data of the target terminal device is generated according to the resource file and the index file.
[0023] Optionally, extracting text information, pictures, and picture information in the pictures from the user interface data includes:
[0024] For different types of the user interface data, the text information, the image, and the image information in the user interface data are extracted according to a parsing tool that matches the type of the user interface data.
[0025] Optionally, the image information includes an image path and image coordinates, and the text information includes a text font, a text size, and text coordinates.
[0026] Optionally, the first preset file is a JSON file, and the second preset file is a temporary directory file.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a user interface data processing device, comprising:
[0028] An acquisition module, configured to acquire user interface data to be loaded, wherein the user interface data includes multiple types;
[0029] An extraction module, configured to extract text information, pictures, and picture information in the pictures from the user interface data;
[0030] a conversion module, configured to convert the text information and the picture information into a first preset file, and to convert the picture into a second preset file;
[0031] The generating module is configured to generate user interface loading data of the target terminal device according to the first preset file and the second preset file.
[0032] According to a third aspect of an embodiment of the present disclosure, there is provided a user interface data processing device, comprising:
[0033] processor;
[0034] a memory for storing processor-executable instructions;
[0035] Wherein, the processor is configured to:
[0036] Acquire user interface data to be loaded, wherein the user interface data includes multiple types;
[0037] Extracting text information, pictures, and picture information from the pictures in the user interface data;
[0038] Converting the text information and the picture information into a first preset file, and converting the picture into a second preset file;
[0039] Generate user interface loading data of a target terminal device according to the first preset file and the second preset file.
[0040] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the user interface data processing method provided in the first aspect of the present disclosure are implemented.
[0041] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by converting text information and picture information into a first preset file, and converting pictures into a second preset file, the information (e.g., text information and picture information) and pictures in different types of user interface data can be converted into files of the same format, respectively, thereby enabling unified processing of different types of user interface data, and improving the efficiency of generating user interface loading data. Furthermore, by converting user interface data into files of the same format, the format of the user interface loading data finally generated is the same, and the target terminal device does not need to convert files of different types or different data formats one by one, thereby improving the performance and battery life of the target terminal device.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0044] Figure 1 The figure is a flowchart of a method for processing user interface data according to an exemplary embodiment.
[0045] Figure 2 The invention is a block diagram of a user interface data processing device according to an exemplary embodiment.
[0046] Figure 3 The invention is a block diagram of a device for processing user interface data according to an exemplary embodiment. DETAILED DESCRIPTION
[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0048] As mentioned in the background technology, in the related technology, the types or data formats of user interface data generated by different UI (User Interface) design tools are different. When a terminal device loads the user interface, it is necessary to convert these user interface data of different types or different data formats one by one, which will lead to excessive resource consumption and reduce the performance and battery life of the terminal device.
[0049] Furthermore, different UI engineers may be proficient in different UI design tools. If, in order to avoid converting different types of user interface data one by one, the type of user interface data required for the terminal device to load the user interface is limited to a certain type, UI engineers will not be able to use the UI design tools they are familiar with, which will undoubtedly reduce the design efficiency of the terminal device's user interface and increase the learning cost.
[0050] In view of this, the present disclosure proposes a user interface data processing method, device, and storage medium.
[0051] Figure 1 is a flowchart of a method for processing user interface data according to an exemplary embodiment. Figure 1 As shown, the user interface data processing method may include the following steps.
[0052] Step 110, obtaining user interface data to be loaded, the user interface data includes multiple types.
[0053] In some embodiments, the user interface data may include an HTML (Hypertext Marked Language) file. The HTML file is a source code file of the user interface, which can define the meaning and structure of the user interface content.
[0054] The various types of user interface data may be designed by various UI design tools. For example, different types of HTML files designed by different UI design tools are different.
[0055] Step 120, extracting text information, pictures, and picture information in pictures from the user interface data.
[0056] In some embodiments, extracting text information, pictures, and picture information in user interface data may include: for different types of user interface data, extracting text information, pictures, and picture information in the user interface data according to a parsing tool that matches the type of the user interface data.
[0057] The parsing tool may be an HTML structure parsing library, such as HtmlParser or Jsoup. The type of the user interface data may be determined in a variety of ways. In some embodiments, the type of the user interface data may be determined based on a characteristic value of the user interface data or may be determined manually. For example, taking the user interface data as an HTML file, the type of the HTML file may be determined based on characteristic values such as a file header of the HTML file, a preset node in the HTML file, or a preset field in the HTML file.
[0058] The text information, pictures, and image information in different types of user interface data may be located in different positions in the user interface data. Therefore, extracting the text information, pictures, and image information in the user interface data according to a parsing tool that matches the type of the user interface data can improve the parsing efficiency and avoid parsing errors that result in the inability to extract the text information, pictures, and image information in the user interface data.
[0059] In some embodiments, the image information includes the image path and image coordinates, and the text information includes the text font, text size, and text coordinates.
[0060] Step 130: convert the text information and the picture information into a first preset file, and convert the picture into a second preset file.
[0061] In some embodiments, the first preset file is a JSON file, and the second preset file is a temporary directory file. JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON files and temporary directory files are files that can be converted into different types of HTML files.
[0062] The present disclosure converts text information and picture information into a first preset file, and converts pictures into a second preset file, so that information (e.g., text information and picture information) and pictures in different types of user interface data can be converted into files of the same format, thereby enabling unified processing of different types of user interface data and improving the efficiency of generating user interface loading data. Furthermore, by converting user interface data into files of the same format, the format of the user interface loading data finally generated is the same, and the target terminal device does not need to convert files of different types or different data formats one by one, thereby improving the performance and battery life of the target terminal device.
[0063] Furthermore, since it is possible to uniformly process different types of user interface data to generate user interface loading data for the target terminal device, the present disclosure does not need to limit the user interface data to a certain type. The user interface data can be of multiple types designed and generated by different UI design tools. Therefore, UI designers can use UI design tools with which they are familiar to design user interface data, thereby improving the design efficiency of the user interface of the target terminal device and avoiding increasing the learning cost of UI designers.
[0064] Step 140: Generate user interface loading data for the target terminal device according to the first preset file and the second preset file.
[0065] The target terminal device can load the data by loading the user interface and display the corresponding user interface. The user interface can be an interface in an application of the target terminal device and / or a native interface of the target terminal device. In some embodiments, the user interface loading data of the target terminal device is generated according to the first preset file and the second preset file, including: saving the text information and image information in the first preset file to a resource file; converting and compressing the image in the second preset file to obtain the target image, and saving the target image to the resource file; generating the user interface loading data of the target terminal device according to the resource file.
[0066] In some embodiments, the resource file may be a RES file, and the resource file is used to read resources required for displaying the user interface.
[0067] In some embodiments, the image in the second preset file is converted and compressed to obtain a target image, including: converting the image in the second preset file to obtain an initial image, the conversion processing including at least one of the following: aligning and cropping, reducing image quality, and converting to a target color; compressing the initial image to obtain a target image.
[0068] The second preset file may include multiple pictures, and alignment and cropping may refer to aligning and cropping the pictures to a target size. The size of the target size may be determined according to the target terminal device, for example, may be determined according to the screen size of the target terminal device.
[0069] In some embodiments, reducing the image quality may include converting the image into an RGB565 format or into an RGB666 format. Converting to a target color may refer to converting to black and white. In some embodiments, the initial image may be compressed according to a zlib compression algorithm to obtain a target image, and lossless compression may be achieved using zlib compression.
[0070] The target terminal device may be a terminal device with a small storage space, for example, a smart watch or a smart voice control device. By converting and compressing the images in the second preset file, the size of the resource file can be reduced, so that the subsequently generated user interface loading data can adapt to the display and storage space requirements of the target terminal device, thereby improving the loading efficiency of the user interface loading data by the target terminal device.
[0071] In some embodiments, user interface loading data for a target terminal device is generated based on a resource file, including: compressing the resource file as a whole to obtain a first compressed file; when the size of the first compressed file is greater than a preset threshold, compressing the resource file in blocks to obtain a second compressed file, and determining the second compressed file as user interface loading data.
[0072] In some embodiments, the resource file may be compressed as a whole according to the RLE compression algorithm to obtain a first compressed file. In some embodiments, the resource file may be compressed in blocks according to the LZ4 compression algorithm to obtain a second compressed file.
[0073] The present invention obtains a first compressed file by first performing overall compression processing on a resource file, and then performing block compression processing on the resource file when the size of the first compressed file is greater than a preset threshold value, to obtain a second compressed file. Therefore, when the resource file can obtain a qualified first compressed file only by overall compression processing, there is no need to perform block compression processing separately, which can improve the compression efficiency. And by performing block compression processing on the resource file when the size of the first compressed file is greater than a preset threshold value, a second compressed file with a smaller size can be obtained, thereby reducing the memory space occupied by the user interface loading data, reducing the storage space demand for the target terminal device, and improving the loading speed of the user interface loading data by the target terminal device.
[0074] In some embodiments, the method also includes: generating an index file based on the text information and image information in the first preset file, and the index information of each image in the second preset file; generating user interface loading data of the target terminal device based on the resource file, including: generating user interface loading data of the target terminal device based on the resource file and the index file.
[0075] In some embodiments, the index file may be an STY file. In some embodiments, the user interface loading data of the target terminal device is generated according to the resource file and the index file, including: compressing the resource file as a whole to obtain a first compressed file; when the size of the first compressed file is greater than a preset threshold, compressing the resource file in blocks to obtain a second compressed file; and generating the user interface loading data according to the second compressed file and the index file.
[0076] The index file is generated by the respective index information of the information and the picture, and the index information can be used to query the corresponding information and pictures from the index file. Therefore, generating the user interface loading data based on the resource file and the index file together can facilitate querying the corresponding resources, such as the corresponding information and pictures, from the index file.
[0077] In some embodiments, the user interface data processing method of the present disclosure may be executed by a computer device. As previously mentioned, the target terminal device may be a terminal device with a small storage space, for example, the target terminal device may be a smart watch or an intelligent voice control device. The processing capability of the target terminal device is not high. The present disclosure generates user interface loading data of the target terminal device by executing the user interface data processing method by a computer device, and executes the process of generating user interface loading data in another computer device with strong processing capability. This can reduce the resource consumption of the target terminal device, improve the performance of the target terminal device, and improve the efficiency of generating user interface loading data.
[0078] Figure 2 is a block diagram of a user interface data processing device according to an exemplary embodiment. Figure 2 The user interface data processing device 200 includes an acquisition module 210, an extraction module 220, a conversion module 230 and a generation module 240.
[0079] The acquisition module 210 is configured to acquire the user interface data to be loaded, wherein the user interface data includes multiple types;
[0080] An extraction module 220, configured to extract text information, pictures, and picture information in the pictures from the user interface data;
[0081] The conversion module 230 is configured to convert the text information and the picture information into a first preset file, and convert the picture into a second preset file;
[0082] The generating module 240 is configured to generate user interface loading data of the target terminal device according to the first preset file and the second preset file.
[0083] In some embodiments, the generating module 240 is further configured to:
[0084] Saving the text information and the picture information in the first preset file to a resource file;
[0085] Performing conversion and compression processing on the picture in the second preset file to obtain a target picture, and saving the target picture to the resource file;
[0086] The user interface loading data of the target terminal device is generated according to the resource file.
[0087] In some embodiments, the generating module 240 is further configured to:
[0088] Performing conversion processing on the picture in the second preset file to obtain an initial picture, wherein the conversion processing includes at least one of the following: alignment and cropping, reducing picture quality, and converting to a target color;
[0089] Perform image compression processing on the initial image to obtain the target image.
[0090] In some embodiments, the generating module 240 is further configured to:
[0091] Performing overall compression processing on the resource file to obtain a first compressed file;
[0092] When the size of the first compressed file is larger than a preset threshold, the resource file is compressed in blocks to obtain a second compressed file, and the second compressed file is determined as the user interface loading data.
[0093] In some embodiments, the apparatus further comprises:
[0094] Generate an index file according to the text information and the picture information in the first preset file and the index information of each of the pictures in the second preset file;
[0095] The generating module 240 is further configured to:
[0096] The user interface loading data of the target terminal device is generated according to the resource file and the index file.
[0097] In some embodiments, the extraction module 220 is further configured to:
[0098] For different types of the user interface data, the text information, the image, and the image information in the user interface data are extracted according to a parsing tool that matches the type of the user interface data.
[0099] In some embodiments, the image information includes an image path and image coordinates, and the text information includes a text font, a text size, and text coordinates.
[0100] In some embodiments, the first preset file is a JSON file, and the second preset file is a temporary directory file.
[0101] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0102] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the user interface data processing method provided by the present disclosure are implemented.
[0103] Figure 3 is a block diagram of an apparatus 300 for user interface data processing according to an exemplary embodiment. For example, the apparatus 300 may be a computer, a tablet device, a personal digital assistant, etc.
[0104] Reference Figure 3 , the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .
[0105] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0106] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0107] The power supply component 306 provides power to the various components of the device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0108] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0109] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0110] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0111] The sensor assembly 314 includes one or more sensors for providing various aspects of the status assessment of the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0112] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0113] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0114] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0115] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be one IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned user interface data processing method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instructions may be stored in the memory, and when the executable instructions are executed by the processor, the above-mentioned user interface data processing method is implemented; alternatively, the integrated circuit or chip may receive the executable instructions through the interface and transmit them to the processor for execution, so as to implement the above-mentioned user interface data processing method.
[0116] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned user interface data processing method when executed by the programmable device.
[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0118] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A user interface data processing method, characterized in that: include: Acquire user interface data to be loaded, wherein the user interface data includes multiple types; Extracting text information, pictures, and picture information from the pictures in the user interface data; Converting the text information and the picture information into a first preset file, and converting the picture into a second preset file; Generate user interface loading data of a target terminal device according to the first preset file and the second preset file.
2. The user interface data processing method according to claim 1, characterized in that: The step of generating user interface loading data of a target terminal device according to the first preset file and the second preset file includes: Saving the text information and the picture information in the first preset file to a resource file; Performing conversion and compression processing on the picture in the second preset file to obtain a target picture, and saving the target picture to the resource file; The user interface loading data of the target terminal device is generated according to the resource file.
3. The user interface data processing method according to claim 2, characterized in that: The converting and compressing the image in the second preset file to obtain a target image includes: Performing conversion processing on the picture in the second preset file to obtain an initial picture, wherein the conversion processing includes at least one of the following: alignment and cropping, reducing picture quality, and converting to a target color; Perform image compression processing on the initial image to obtain the target image.
4. The user interface data processing method according to claim 2, characterized in that: Generating the user interface loading data of the target terminal device according to the resource file includes: Performing overall compression processing on the resource file to obtain a first compressed file; When the size of the first compressed file is larger than a preset threshold, the resource file is compressed in blocks to obtain a second compressed file, and the second compressed file is determined as the user interface loading data.
5. The user interface data processing method according to claim 2, characterized in that: The method further comprises: Generate an index file according to the text information and the picture information in the first preset file and the index information of each of the pictures in the second preset file; Generating the user interface loading data of the target terminal device according to the resource file includes: The user interface loading data of the target terminal device is generated according to the resource file and the index file.
6. The user interface data processing method according to claim 1, characterized in that: The extracting text information, pictures, and picture information in the pictures from the user interface data includes: For different types of the user interface data, the text information, the image, and the image information in the user interface data are extracted according to a parsing tool that matches the type of the user interface data.
7. The user interface data processing method according to any one of claims 1 to 6, characterized in that: The image information includes image path and image coordinates, and the text information includes text font, text size and text coordinates.
8. The user interface data processing method according to claim 1, characterized in that: The first preset file is a JSON file, and the second preset file is a temporary directory file.
9. A user interface data processing device, characterized in that: include: An acquisition module, configured to acquire user interface data to be loaded, wherein the user interface data includes multiple types; An extraction module, configured to extract text information, pictures, and picture information in the pictures from the user interface data; a conversion module, configured to convert the text information and the picture information into a first preset file, and to convert the picture into a second preset file; The generating module is configured to generate user interface loading data of the target terminal device according to the first preset file and the second preset file.
10. A user interface data processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Acquire user interface data to be loaded, wherein the user interface data includes multiple types; Extracting text information, pictures, and picture information from the pictures in the user interface data; Converting the text information and the picture information into a first preset file, and converting the picture into a second preset file; Generate user interface loading data of a target terminal device according to the first preset file and the second preset file.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.