A kanzi-based instrument picture loading method
By classifying and merging instrument images, the loading process was optimized, solving the problem of excessively long startup time caused by multiple cached files in the existing technology and improving loading efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HEFEI ZHUOJUN AUTOMOBILE TECHNOLOGY CO LTD
- Filing Date
- 2024-12-26
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies require the generation of multiple cache files when loading instrument images, resulting in excessively long startup times and negatively impacting user experience.
The images to be loaded are categorized into startup loading, preloading, and reference loading. Multiple image files are merged into one file and processed into Texture resources using the Kanzi tool to optimize the loading process.
It reduces system startup time, improves loading efficiency, and avoids delays caused by multiple cache file generation.
Smart Images

Figure CN122285100A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method for loading instrument images based on Kanzi. Background Technology
[0002] Kanzi UI Solution is a complete cross-platform UI solution based on OpenGL and OpenGL ES. Kanzi provides a comprehensive development platform for the design, development, and deployment of graphical user interfaces on embedded devices. As Kanzi has entered the domestic market from overseas, it has been widely used in automotive electronics for central control and instrument panel displays and controls.
[0003] With the rapid development of LCD screen technology, instrument panels have begun to feature virtual digital displays. The widespread adoption of integrated and digital control technologies has enriched the functionality of automotive instrument panels like never before, and the visual effects have become increasingly pleasing. In the display of in-vehicle electronic central control and instrument clusters, customer demands for boot animations and transition animations are commonplace.
[0004] For example, Chinese patent CN 112948015 A discloses a method and apparatus for loading images in a full LCD instrument panel. This method accelerates image loading during the power-on process of the full LCD instrument panel by pre-decoding the images to be loaded, thus greatly improving the user experience. However, the above method requires generating multiple cache files when loading a specified image resource, resulting in excessive startup time consumption. Summary of the Invention
[0005] In view of the above problems, the purpose of this invention is to provide an instrument image loading method based on Kanzi, which merges images, reduces the loading of multiple files to a single file during startup, avoids multiple image loading, and improves startup efficiency, thereby overcoming the shortcomings of the prior art.
[0006] This invention provides a method for loading instrument images based on Kanzi, which specifically includes the following steps:
[0007] Step S1: Obtain the image information to be loaded and classify it into startup loading, preloading, and reference loading. The classification method is determined by the visual and interaction requirements analysts.
[0008] Step S2: Perform compatibility merging processing on the images loaded in Step S1, that is, merge multiple image files into one file;
[0009] Step S3: Combine the preloaded images into a single data file and store it in the instrument program directory;
[0010] Step S4: Place the referenced images in the designated directory, write the directory information into the system configuration file and sort and rename them, and then load them by the system program. In this process, the image naming tool developed based on Phthon is used to sort and rename the directory information. After sorting and renaming, it is convenient for image statistics and to prepare for the following steps.
[0011] Step S5: The interface tool Kanzi converts the image processed in step S2 into a Texture and merges and stores it into the resource package file;
[0012] Step S6: Create a blank image Texture in Kanzi and point it to the image referenced in the directory in step S4;
[0013] Step S7: After the instrument starts, load the Texture from the HMI resource kzb file and complete the loading of Texture-related images;
[0014] Step S8: After the instrument HMI displays the first frame, start the data file loading in step S3 and complete the relevant data file loading.
[0015] Step S9: The instrument HMI updates the image Texture resource path in step S6 in real time via API and loads the corresponding referenced images.
[0016] As a preferred embodiment of the present invention, the method by which the parser divides the startup loading, preloading, and reference loading in step S1 specifically includes:
[0017] Step S11: Automatically load and divide the first interface into all display visual slices or images;
[0018] Step S12: Preloading, in addition to automatic loading, other materials, images or visual slices that constitute the system display;
[0019] Step S13: Load references, including theme material images and system stored images.
[0020] As a preferred embodiment of the present invention, the process of Kanzi converting the image to a Texture in step S5 further includes the following steps:
[0021] Step S51: Set the specific resolution, filtering mode, texture type, and loop mode. Kanzi sets or manages textures through presets or APIs.
[0022] The beneficial effects of this invention are as follows: Based on the two processing methods, the system startup will not consume too much startup time due to loading referenced images, and after the images are merged, the startup process changes from loading multiple files to loading a single file, avoiding multiple loading caused by generating multiple cache files and improving startup efficiency. Attached Figure Description
[0023] Other objects and results of the invention will become more apparent and readily understood with reference to the following description taken in conjunction with the accompanying drawings. In the drawings:
[0024] Figure 1 This is a flowchart of this embodiment. Detailed Implementation
[0025] See Figure 1 As shown in the figure, this embodiment provides a method for loading instrument images based on Kanzi, which specifically includes the following steps:
[0026] Step S1: Obtain the image information to be loaded and classify it into startup loading, preloading, and reference loading. The classification method is determined by the visual and interaction requirements analysts.
[0027] Step S2: Perform compatibility merging processing on the images loaded in Step S1, that is, merge multiple image files into one file;
[0028] Step S3: Combine the preloaded images into a single data file and store it in the instrument program directory;
[0029] Step S4: Place the referenced images in the designated directory, write the directory information into the system configuration file and sort and rename them, and then load them by the system program. In this process, the image naming tool developed based on Phthon is used to sort and rename the directory information. After sorting and renaming, it is convenient for image statistics and to prepare for the following steps.
[0030] Step S5: The interface tool Kanzi converts the image processed in step S2 into a Texture and merges and stores it into the resource package file;
[0031] Step S6: Create a blank image Texture in Kanzi and point it to the image referenced in the directory in step S4;
[0032] Step S7: After the instrument starts, load the Texture from the HMI resource kzb file and complete the loading of Texture-related images;
[0033] Step S8: After the instrument HMI displays the first frame, start the data file loading in step S3 and complete the relevant data file loading.
[0034] Step S9: The instrument HMI updates the image Texture resource path in step S6 in real time via API and loads the corresponding referenced images. The resource package generated by Kanzi is referenced by the HMI program, and the program communicates API information.
[0035] Furthermore, in this embodiment, the method by which the parser divides the startup loading, preloading, and reference loading in step S1 specifically includes:
[0036] Step S11: Automatically load and divide the first interface into all display visual slices or images;
[0037] Step S12: Preloading, in addition to automatic loading, other materials, images or visual slices that constitute the system display;
[0038] Step S13: Load references, including theme material images and system stored images.
[0039] Furthermore, in step S5, the process of Kanzi converting the image into a Texture in this embodiment also includes the following steps:
[0040] Step S51: Set the specific resolution, filtering mode, texture type, and loop mode. Kanzi sets or manages textures through presets or APIs.
[0041] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for loading instrument images based on Kanzi, characterized in that, Includes the following steps: Step S1: Obtain the image information to be loaded and classify it into startup loading, preloading, and reference loading. The classification method is determined by the visual and interaction requirements analysts. Step S2: Perform compatibility merging processing on the images loaded in Step S1, that is, merge multiple image files into one file; Step S3: Combine the preloaded images into a single data file and store it in the instrument program directory; Step S4: Place the referenced images in the designated directory, write the directory information into the system configuration file and sort and rename them, and then load them by the system program. In this process, an image naming tool based on Phthon is used to sort and rename the directory information. Step S5: The interface tool Kanzi converts the image processed in step S2 into a Texture and merges and stores it into the resource package file; Step S6: Create a blank image Texture in Kanzi and point it to the image referenced in the directory in step S4; Step S7: After the instrument starts, load the Texture from the HMI resource kzb file and complete the loading of Texture-related images; Step S8: After the instrument HMI displays the first frame, start the data file loading in step S3 and complete the relevant data file loading. Step S9: The instrument HMI updates the image Texture resource path in step S6 in real time via API and loads the corresponding referenced images.
2. The method of loading a kanzi-based gauge picture according to claim 1, wherein, The specific methods by which the parser divides the startup loading, preloading, and reference loading in step S1 include: Step S11: Automatically load and divide the first interface into all display visual slices or images; Step S12: Preloading, in addition to automatic loading, other materials, images or visual slices that constitute the system display; Step S13: Load references, including theme material images and system stored images.
3. The instrument image loading method based on Kanzi according to claim 1, characterized in that, In step S5, the process of Kanzi converting the image to a Texture also includes the following steps: Step S51: Set the specific resolution, filtering mode, texture type, and loop mode. Kanzi sets or manages textures through presets or APIs.