Picture display control method, microcontroller and atomization device
By dividing gear modes and preloading images on the microcontroller parameter data, combining the real-time state mapping and image pre-rendering technology of the built-in sensor, the problems of image lag and unsmooth during the gear switching of the atomizer are solved, and efficient and smooth image display control is achieved.
Patent Information
- Application Number
- CN202510063399.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-05-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art has problems such as image lag, insufficient frame rate, poor transition animation and blurred image details during the atomizer gear switching process, which affects the user experience.
By acquiring and analyzing the microcontroller parameter data, performing gear mode division and image preloading, fast response and low latency are achieved. Use built-in sensors to predict and analyze the intermediate state of gear switching, perform image pre-rendering and timing deviation adjustment to ensure smoothness and consistency of image transitions.
It improves system response speed, reduces image loading delay, enhances dynamic adaptability, improves image display fluency and user experience, and ensures image continuity and consistency.
Smart Images

Figure CN119991482A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image display technology, and in particular to a picture display control method, a microcontroller and an atomization device. Background Art
[0002] In the early days, display control mainly relied on simple CRT displays and analog signal processing, and the image display effect was limited by hardware. With the rapid development of computer graphics, digital signal processing technology has gradually been applied to display control, improving the clarity and accuracy of images. Entering the 21st century, liquid crystal display technology (LCD) gradually replaced CRT displays, bringing higher resolution and lower power consumption. At the same time, image processing algorithms have also been significantly improved, especially in image enhancement, color correction and contrast adjustment, greatly improving image quality. With the development of LED backlight technology and OLED display technology, the brightness, contrast and color performance of display screens have been further optimized. In recent years, with the rise of artificial intelligence and machine learning, image display control methods are not limited to hardware adjustment, but also combined with intelligent algorithms for adaptive display adjustment. However, at present, for the image display on the hardware, it is usually actually connected with the physical button. During the atomizer gear switching process, the image usually freezes or the frame rate is insufficient, resulting in an unsmooth transition animation, affecting the user experience. At the same time, the image during the gear switching has the problem of blurred details, such as icons, fonts or indicators are not clear enough, especially in the middle frame of the switching process, resulting in low consistency of picture display control. Summary of the invention
[0003] Based on this, it is necessary to provide a picture display control method, a microcontroller and an atomization device to solve at least one of the above technical problems.
[0004] To achieve the above object, a method for controlling picture display is provided, the method comprising the following steps:
[0005] Step S1: acquiring microcontroller parameter data and display images in the atomizer; dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly caching the display image according to the microcontroller gear mode division data, thereby obtaining a microcontroller gear mode preloaded image set; mapping the microcontroller gear mode division data to a current state instruction based on a built-in sensor to generate current state instruction mapping data;
[0006] Step S2: Based on the current state instruction mapping data, the microcontroller parameter data in the atomizer is analyzed for the intermediate state of gear switching to generate the intermediate state of gear switching; the microcontroller gear mode preloaded image set is rendered predictively through the intermediate state of gear switching to obtain the intermediate state pre-rendered image; the intermediate state pre-rendered image is adjusted for the timing deviation image content to generate the intermediate state pre-rendered adjusted image;
[0007] Step S3: Based on the intermediate state pre-rendering adjustment image, the microcontroller gear mode pre-loaded image set is smoothed for image over-display to generate an atomizer gear switching smooth image set; the physical state data packet is processed for gear abnormality image according to the current state instruction mapping data to generate an abnormal gear state display image; the atomizer gear switching smooth image set and the abnormal gear state display image are integrated to generate an atomizer gear switching display image set to execute the atomizer picture display control operation.
[0008] The present invention can quickly preload images by acquiring and analyzing parameter data of a microcontroller and displaying images. By dividing the gear mode, the system can pre-cache the required image set according to the current working mode, thereby improving the system response speed and reducing the delay of image loading. In addition, based on the real-time mapping of the state instruction by the built-in sensor, the system can timely adjust the display according to the actual state of the device, ensure that the image is highly consistent with the device state, and enhance the dynamic adaptability of the system. By predicting and analyzing the intermediate state of the gear switching, the image appearing in the switching process is rendered in advance, reducing the image flickering and jamming phenomenon during the gear switching, and improving the smoothness of the image display. By adjusting the timing deviation of the pre-rendered image, the visual difference between different gear states can be accurately docked, the image jump in the state switching process is eliminated, the continuity and consistency of the image are guaranteed, and the visual experience of the user is improved. By smoothing the image transition display, unnatural visual effects such as image jumping or flickering in the state switching process are avoided, and smooth transition between different gears is guaranteed. The gear abnormal image processing can effectively identify and correct image problems that occur when the device state is abnormal, avoid the negative impact of the abnormal state on the display effect, and ensure that the device can maintain good visual performance in any state. The image integration step ensures the image display consistency of the device in normal and abnormal states by merging the smooth image and the abnormal image, thereby improving the fault tolerance and stability of the system. Therefore, the present invention improves the consistency of traditional image display control by optimizing image transition smoothness, real-time state mapping, exception handling and resource preloading.
[0009] Preferably, step S1 comprises the following steps:
[0010] Step S11: Acquire parameter data and display image of the microcontroller in the atomizer;
[0011] Step S12: dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data, wherein the microcontroller gear mode division data includes an A-bin mode, a B-bin mode and a dual-bin mode;
[0012] Step S13: preloading display images of the A-bin mode, the B-bin mode and the dual-bin mode into a fast cache area in the microcontroller, thereby obtaining a microcontroller gear mode preloaded image set;
[0013] Step S14: Based on the built-in sensor, the microcontroller gear mode division data is used to collect gear switching data to obtain a physical state data packet; the microcontroller gear mode division data is mapped to the current state instruction through the physical state data packet to generate current state instruction mapping data.
[0014] The present invention divides the microcontroller parameter data into gear modes, effectively classifies them into A-bin mode, B-bin mode and dual-bin mode, and preloads the corresponding display images, so that the system can quickly respond to the switching requirements of different operating modes. The fast cache area in the microcontroller is used to store preloaded images, which reduces the image loading time and improves the user interaction response speed. The physical state of the atomizer is monitored in real time by a built-in sensor, the current gear switching data is captured and a physical state data packet is generated to ensure the real-time and accuracy of the operation. The current mode is command mapped based on the physical state data packet, and the current state command mapping data is generated to ensure the intelligent response capability of the atomizer. Supports switching of multiple modes (A-bin, B-bin and dual-bin) to meet the diverse usage needs of users. The generation of current state command mapping data can lay the foundation for subsequent function expansion (such as remote control or adaptive adjustment).
[0015] Preferably, preloading the display images of the A-bin mode, the B-bin mode and the dual-bin mode into the fast cache area in the microcontroller comprises:
[0016] Performing image format optimization on display images in the A-bin mode, the B-bin mode, and the dual-bin mode, respectively, to generate optimized display images in the A-bin mode, the B-bin mode, and the dual-bin mode, wherein the image format optimization includes image compression, image resolution adjustment, and image color depth unification;
[0017] The optimized display images of the A-bin mode, the B-bin mode and the dual-bin mode are transmitted in blocks through a high-speed data transmission protocol, and transmitted to a fast cache area in a microcontroller for image resource writing, so as to obtain a microcontroller gear mode writing image set;
[0018] Unique indexes are allocated to the microcontroller gear mode write image set to generate a microcontroller gear mode preload image set.
[0019] The present invention significantly reduces the storage and transmission load of display images through image compression and resolution adjustment, while maintaining the necessary visual effects and ensuring the efficient use of microcontroller fast cache resources. The color depth of the image is standardized to improve the consistency of the image, reduce the display compatibility problem when switching between different modes, and further optimize the user experience. The high-speed data transmission protocol is adopted and the image is transmitted in blocks, which helps to avoid the delay caused by large file transmission and improve the efficiency and stability of image data transmission. The image resources after block transmission are directly written into the fast cache of the microcontroller to ensure that the system can quickly load the required display image when switching the gear mode. A unique index is assigned to the written image set, and an efficient retrieval mechanism is established. The system can quickly call the corresponding image resource according to the current state and shorten the response time. Index allocation makes the management of image resources more systematic and provides a basis for subsequent image resource expansion or upgrade. The optimized image is called through the fast cache, which greatly improves the response speed when switching modes and provides users with a smooth interactive experience. The efficient data transmission and resource management mechanism ensures the reliability of the system and reduces the probability of operation failure caused by resource calling problems. The modular design of this process enables the system to easily adapt to new display images or other mode requirements. By unifying and optimizing the image format and transmission protocol, the compatibility of the microcontroller and different peripheral devices is improved.
[0020] Preferably, step S2 comprises the following steps:
[0021] Step S21: extracting key data of gear switching from the microcontroller parameter data in the atomizer based on the current state instruction mapping data to obtain gear switching motion data;
[0022] Step S22: performing a gear switching intermediate state analysis on the current state command mapping data according to the gear switching motion data to generate a gear switching intermediate state; performing image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image;
[0023] Step S23: using the intermediate state pre-rendered image and the gear switching motion data to perform timing deviation detection to generate physical state-image display timestamp deviation data;
[0024] Step S24: Compare the physical state-image display timestamp deviation data with a preset standard timestamp deviation threshold. When the physical state-image display timestamp deviation data is greater than or equal to the preset standard timestamp deviation threshold, adjust the image content of the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image.
[0025] The present invention extracts gear switching motion data based on current state command mapping data, which helps to accurately capture the motion laws and characteristics of the gear switching process, improve the accuracy of the data, and lay the foundation for subsequent analysis. By performing intermediate state analysis on the gear switching motion data, generating the intermediate state of the gear switching, and combining the image display predictive rendering, a more delicate and coherent visual transition effect is provided for the mode switching process. The timestamp deviation detection between the physical state and the image display is performed using the intermediate state pre-rendered image and the gear switching motion data, ensuring the sensitivity and adaptability of the system to real-time changes. By comparing the deviation data with the preset standard threshold, when the deviation exceeds the set range, the pre-rendered image content is adjusted in time to ensure that the final presented image is consistent with the actual physical state. The generation and use of the intermediate state pre-rendered image reduces the delay of image loading during the switching process, providing users with a smooth visual transition experience. When the timestamp deviation exceeds the standard, the dynamic adjustment of the image content significantly enhances the adaptive ability of the system and improves the user's satisfaction with the operation. By predictively rendering and making necessary adjustments to the intermediate state image, the smoothness and realism of the visual effect during the gear switching process are guaranteed. The image adjustment mechanism ensures the display quality in dynamic scenes and provides stronger adaptability for high-frequency gear switching. The deviation detection and adjustment mechanism ensures high consistency between the physical state and the display effect, and improves the operational stability of the system. By separating and adjusting the gear switching data and image rendering, the process can easily adapt to new functions or mode switching requirements.
[0026] Preferably, performing image display predictive rendering on a microcontroller gear mode preloaded image set through a gear switching intermediate state comprises the following steps:
[0027] An interpolation algorithm is used to predict the intermediate state image template of the microcontroller gear mode preloaded image set according to the intermediate state of the gear switching, and an intermediate state image transition template is generated; a transition frame sequence is generated for the intermediate state image transition template according to the hardware acceleration function in the microcontroller, and a gear switching image transition frame set is obtained;
[0028] Based on the gear switching image transition frame set, the microcontroller gear mode preload image set is screened for adjacent gear loading images to obtain a first loading image and a second loading image;
[0029] Performing image overlap on the first loaded image and the second loaded image to generate an adjacent gear overlap image; performing image layered regional blurring on the adjacent gear overlap image based on the gear switching image transition frame set to generate an adjacent gear overlap image layered blurred region;
[0030] Dynamic area blur rendering adjustment is performed on the overlapping images of adjacent gears according to the layered blur areas of the overlapping images of adjacent gears, so as to generate an intermediate state pre-rendered image.
[0031] The present invention can accurately capture the dynamic changes in gear switching and improve the accuracy and naturalness of image transition by using an interpolation algorithm to generate an intermediate state image transition template. With the help of the hardware acceleration function in the microcontroller, a transition frame sequence is generated for the transition template, which significantly improves the speed and efficiency of image processing, reduces delays, and ensures real-time performance. By screening the gear switching image transition frame set, the first loaded image and the second loaded image are determined, effectively reducing the interference of irrelevant images, and improving display efficiency and resource utilization. The first loaded image and the second loaded image are overlapped, further enhancing the coherence and visual consistency during the gear switching process. Based on the gear switching image transition frame set, the adjacent gear overlap images are layered and blurred, retaining the important areas for clear display, while blurring the secondary areas to highlight the layering of the image. The degree of blur is dynamically adjusted according to real-time changes, so that the display effect of the gear switching process is smoother and more natural, and the user experience is significantly improved. Through the transition frame set, the image display during the gear switching process is more coherent, without obvious jumps or freezes. Dynamic blur rendering can effectively reduce visual impact, make image switching softer, and improve the aesthetics of display. By filtering adjacent gears to load images, the processing of irrelevant data is reduced and the utilization of system resources is improved. The use of hardware acceleration combined with optimization algorithms makes the image rendering response faster and can meet the real-time requirements of high-frequency gear switching. The independent design of modules such as interpolation algorithm, frame sequence generation, and dynamic blur rendering makes the system highly adaptable and can be easily adjusted or expanded according to needs. This flexible image rendering mechanism provides a basis for the subsequent addition of new gear modes or complex image transition effects.
[0032] Preferably, performing image layered regional blurring on overlapping images of adjacent gears based on the gear switching image transition frame includes:
[0033] The gear switching image transition frame set is screened for intermediate transition frames to obtain intermediate transition frames and non-intermediate transition frames; based on the intermediate transition frames, the adjacent gear overlap images are set to the highest resolution, thereby obtaining adjacent gear overlap clear images under the intermediate transition frames;
[0034] The adjacent gear overlap clear images under the intermediate transition frame are used to perform a non-intermediate transition frame image gradient blur setting on the adjacent gear overlap images, so as to generate an adjacent gear overlap blur image set under the non-intermediate transition frame;
[0035] According to the non-intermediate transition frame, the blur consistency of the adjacent gear overlapping blurred image set under the non-intermediate transition frame is adjusted to generate the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame; the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame and the adjacent gear overlapping clear image under the intermediate transition frame are divided into layered blurred areas to generate layered blurred areas of adjacent gear overlapping images.
[0036] The present invention effectively extracts key frames by screening intermediate transition frames and non-intermediate transition frames in the transition frame set, thereby improving the accuracy and effectiveness of data processing. The highest resolution is set for the overlapping images of adjacent gears based on the intermediate transition frames to ensure the image clarity of the key display area and provide users with a high-quality visual experience. The overlapping images of adjacent gears under the non-intermediate transition frames are set to be gradually blurred, so that the blur degree of the image can be gradually transitioned, avoiding a harsh display effect and improving the smoothness of the gear switching. By adjusting the blur consistency of the blurred image set of the non-intermediate transition frame, the effect of the entire blurred area is more unified and the visual interference is reduced. The blurred images of the non-intermediate transition frames and the clear images of the intermediate transition frames are divided into layered blurred areas, and the clear areas and blurred areas are clearly distinguished, highlighting the image hierarchy. The setting of the layered blurred areas allows users to focus on the key clear areas when switching gears without being disturbed by the secondary blurred areas, thereby improving the user interaction experience. The combination of layered blur and clear images makes the dynamic transition of the picture in the gear switching more natural and smooth, reducing visual fatigue. It not only retains the high-quality clear images of the intermediate transition frames, but also enhances the overall smoothness of the picture through blur processing of non-intermediate transition frames, achieving the best balance between visual effects and system resource utilization. Only the intermediate transition frames are processed clearly, while the non-intermediate transition frames are optimized for blur, which effectively reduces the system's computing overhead and improves image rendering efficiency. Unnecessary complex processing steps are reduced through consistency adjustment, further saving storage and computing resources. The segmentation process of the layered blur area ensures that the system can still maintain high stability when the gear switching speed is fast. The modular design of layered blur facilitates the subsequent addition of other advanced image processing functions, such as dynamic texture enhancement or scene adaptive rendering.
[0037] Preferably, using the intermediate state pre-rendered image and the gear switching motion data to perform time deviation detection includes:
[0038] Calculate the rendering timestamp of the intermediate state pre-rendered image to obtain the rendering timestamp of the intermediate state image; calculate the motion timestamp of the gear switching motion data to obtain the gear switching motion timestamp;
[0039] The timestamp difference between the intermediate state image rendering timestamp and the gear switching motion timestamp is calculated to obtain the physical state-image display timestamp deviation data, where the timestamp difference calculation formula is as follows:
[0040] ΔT=T render ―T phys ;
[0041] Where ΔT is the time difference between the physical state and the image display, T renderIndicates the time point when the image update is completed, T phys Represents the physical time point when the gear shift starts or ends.
[0042] The present invention calculates the rendering timestamp of the intermediate state pre-rendered image to clarify the time point when the image update is completed, laying the foundation for subsequent deviation analysis. The key time point of the physical movement is calculated based on the gear switching motion data to ensure that the time information of the physical action is accurate. By ΔT=T render ―T phys The calculation of the time difference between the physical state and the image display is intuitively quantified, providing a reliable standard for synchronization detection. The time difference ΔT between the physical state and the image display is used to effectively identify whether the image update lags behind or precedes the gear switching action, avoiding the bad experience caused by the system being out of sync. According to the time deviation data, the image rendering process is dynamically adjusted to match the image display with the physical state in real time, improving the consistency of the gear switching. Through time difference analysis, the source of system delay (such as image rendering lag or slow physical action startup) can be accurately located, thereby optimizing hardware acceleration and software rendering strategies. Time deviation detection provides data support for optimizing resource scheduling, avoiding invalid calculations caused by synchronization errors, and improving the overall efficiency of the system. Through time deviation detection, it ensures that the image display is seamlessly connected with the physical state, providing users with a smoother visual interaction experience. Accurate control of the time difference can reduce the user's perception of delay and improve the real-time and comfort during use. The time deviation detection mechanism can quickly identify lag problems in system operation and correct them by adjusting the priority of rendering or physical processes to improve the robustness of the system. Regardless of the speed of the gear shift or the complexity of the physical movement, this mechanism can ensure synchronization and enhance the stability of the system in multiple scenarios. Time deviation data provides a direct quantitative basis for image rendering and physical action optimization, making it easier for developers to make targeted adjustments to key links. By accumulating time deviation data, system performance bottlenecks can be identified to provide support for long-term performance improvements.
[0043] Preferably, step S3 comprises the following steps:
[0044] Step S31: performing image transition display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear mode switching smoothing image set;
[0045] Step S32: performing gear switching abnormality detection on the physical state data packet according to the current state instruction mapping data. When the gear switching abnormality is detected, the current gear state image is maintained for the atomizer gear switching smooth image set to generate an abnormal gear state display image;
[0046] Step S33: integrating the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to perform the atomizer picture display control operation.
[0047] The present invention uses intermediate state pre-rendering to adjust the image, performs smoothing on the preloaded image set of the microcontroller gear mode, and generates a gear switching smooth image set. A smooth transition of the image is achieved when the gear is switched, avoiding visual jumps and fragmentation. The smoothness of image display is improved, providing users with a natural and coherent visual experience. The display pressure in high-speed gear switching is reduced by smooth transition, and the use of hardware resources is optimized. The physical state data packet is subjected to gear switching abnormality detection through the current state instruction mapping data. When an abnormality is detected, the image display of the current gear state is maintained, and an abnormal gear state display image is generated. The abnormal situation in the gear switching is quickly identified, and the robustness of the system is improved. The current state display is maintained to avoid image loss or display interruption caused by the abnormality, and a stable experience is provided for the user. Visual feedback of the abnormal situation is provided, which is convenient for developers to debug and users to understand the abnormal state. The gear switching smooth image set is integrated with the abnormal gear state display image to generate the atomizer gear switching display image set, and finally the picture display control operation is executed. The integrity of the display data is ensured by integrating the smooth image and the abnormal state image. A seamless connection of multiple display states is achieved, and the image control logic is optimized. Provide efficient and accurate image output for atomizer gear switching, enhancing user operation feedback.
[0048] In this specification, an atomization device is provided for executing the above-mentioned image display control method, and the atomization device includes:
[0049] The gear control mapping module is used to obtain the microcontroller parameter data and display image in the atomizer; divide the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly cache the display image according to the microcontroller gear mode division data, so as to obtain the microcontroller gear mode preload image set; perform current state instruction mapping on the microcontroller gear mode division data based on the built-in sensor to generate current state instruction mapping data;
[0050] An image pre-rendering module is used to perform gear switching intermediate state analysis on the microcontroller parameter data in the atomizer based on the current state instruction mapping data to generate the gear switching intermediate state; perform image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image; perform timing deviation image content adjustment on the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image;
[0051] The image display module is used to perform image over-display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear switching smooth image set; perform gear abnormality image processing on the physical state data packet according to the current state instruction mapping data to generate an abnormal gear state display image; integrate the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to execute the atomizer image display control operation.
[0052] A microcontroller is placed inside an atomization device, comprising a core processing unit, a storage unit, a display control unit, an input and output interface, and a power management unit, wherein the power management unit is electrically connected to the core processing unit, the storage unit, the display control unit, and the input and output interface, and a computer program that can be run on the core processing unit is used to execute the above-mentioned image display control method.
[0053] The beneficial effect of the present invention is that by acquiring the parameter data of the microcontroller and dividing the data according to the gear mode to quickly cache and preload the image, the response speed of the displayed image is significantly improved, and it is ensured that the device can quickly switch and display in different working modes. Through the real-time mapping of the current state instruction by the built-in sensor, the system can adjust the displayed image in real time according to the actual working state of the device, ensuring the high consistency of the image content and the device state, thereby improving the user experience. By analyzing the intermediate state of the gear switching of the microcontroller parameters based on the current state instruction mapping data, the system can predict and pre-render the image of the intermediate state, avoiding visual lag or jamming during state switching. Through the adjustment of the image content of the timing deviation, the precise docking of the image display is ensured, and there is no picture jump or inconsistency, which ensures the smooth transition of the image and enhances the visual fluency and continuity. Through the smooth processing of the image transition display, the abrupt feeling generated when switching between different gears is eliminated, making the image switching more natural and smooth, and improving the visual coherence. Based on the current state instruction mapping data, the gear abnormality image processing can effectively identify and correct the display problem when the device is abnormal, prevent the image error display in the abnormal state, and ensure the normal display of the device in any state. The atomizer gear switching smooth image set and the abnormal gear status display image are integrated to make the entire display image set more unified and complete, improving the overall consistency of the display and the user's operating experience. Through technologies such as fast state mapping, preloading, smooth transition and exception handling, the entire system can provide stable, smooth and accurate display control, reducing the jamming and discomfort caused by image switching, thereby significantly improving the user's visual experience. Therefore, the present invention improves the consistency of traditional image display control by optimizing image transition smoothness, real-time state mapping, exception handling and resource preloading. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of the steps of a picture display control method;
[0055] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;
[0056] Figure 3 for Figure 1 Detailed implementation steps of step S3 in FIG.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0059] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0060] It should be understood that although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, without departing from the scope of the exemplary embodiments, a first unit may be referred to as a second unit, and similarly, a second unit may be referred to as a first unit, and the term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0061] To achieve this, please refer to Figures 1 to 3 , a picture display control method, the method comprising the following steps:
[0062] Step S1: acquiring microcontroller parameter data and display images in the atomizer; dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly caching the display image according to the microcontroller gear mode division data, thereby obtaining a microcontroller gear mode preloaded image set; mapping the microcontroller gear mode division data to a current state instruction based on a built-in sensor to generate current state instruction mapping data;
[0063] Step S2: Based on the current state instruction mapping data, the microcontroller parameter data in the atomizer is analyzed for the intermediate state of gear switching to generate the intermediate state of gear switching; the microcontroller gear mode preloaded image set is rendered predictively through the intermediate state of gear switching to obtain the intermediate state pre-rendered image; the intermediate state pre-rendered image is adjusted for the timing deviation image content to generate the intermediate state pre-rendered adjusted image;
[0064] Step S3: Based on the intermediate state pre-rendering adjustment image, the microcontroller gear mode pre-loaded image set is smoothed for image over-display to generate an atomizer gear switching smooth image set; the physical state data packet is processed for gear abnormality image according to the current state instruction mapping data to generate an abnormal gear state display image; the atomizer gear switching smooth image set and the abnormal gear state display image are integrated to generate an atomizer gear switching display image set to execute the atomizer picture display control operation.
[0065] The present invention can quickly preload images by acquiring and analyzing parameter data of a microcontroller and displaying images. By dividing the gear mode, the system can pre-cache the required image set according to the current working mode, thereby improving the system response speed and reducing the delay of image loading. In addition, based on the real-time mapping of the state instruction by the built-in sensor, the system can timely adjust the display according to the actual state of the device, ensure that the image is highly consistent with the device state, and enhance the dynamic adaptability of the system. By predicting and analyzing the intermediate state of the gear switching, the image appearing in the switching process is rendered in advance, reducing the image flickering and jamming phenomenon during the gear switching, and improving the smoothness of the image display. By adjusting the timing deviation of the pre-rendered image, the visual difference between different gear states can be accurately docked, the image jump in the state switching process is eliminated, the continuity and consistency of the image are guaranteed, and the visual experience of the user is improved. By smoothing the image transition display, unnatural visual effects such as image jumping or flickering in the state switching process are avoided, and smooth transition between different gears is guaranteed. The gear abnormal image processing can effectively identify and correct image problems that occur when the device state is abnormal, avoid the negative impact of the abnormal state on the display effect, and ensure that the device can maintain good visual performance in any state. The image integration step ensures the image display consistency of the device in normal and abnormal states by merging the smooth image and the abnormal image, thereby improving the fault tolerance and stability of the system. Therefore, the present invention improves the consistency of traditional image display control by optimizing image transition smoothness, real-time state mapping, exception handling and resource preloading.
[0066] In the embodiment of the present invention, reference Figure 1 FIG. 1 is a schematic diagram of a process flow of a picture display control method of the present invention. In this example, the picture display control method includes the following steps:
[0067] Step S1: acquiring microcontroller parameter data and display images in the atomizer; dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly caching the display image according to the microcontroller gear mode division data, thereby obtaining a microcontroller gear mode preloaded image set; mapping the microcontroller gear mode division data to a current state instruction based on a built-in sensor to generate current state instruction mapping data;
[0068] In an embodiment of the present invention, real-time control parameter data including but not limited to key parameters such as voltage, current, and temperature are obtained from a microcontroller in an atomizer. Relevant data is extracted from the microcontroller through interface communication with the atomizer (such as serial communication, I2C, SPI, etc.). The acquired data is time series data, which reflects the operating state of the microcontroller at different times. According to the acquired microcontroller parameter data, the data change pattern is analyzed and divided into different gear modes. For example, different values of temperature, humidity, and current represent different operating gears. Cluster analysis (such as K-means clustering, DBSCAN, etc.) or threshold-based classification methods can be used to perform gear division to generate a gear mode division data set, each gear corresponding to a specific range of microcontroller parameters. According to the gear mode division results, a corresponding preloaded image is generated for each gear mode. The image can be an interface element, a dashboard, or other visual feedback information. Through memory management technology, image resources related to different gear modes are preloaded in the device so that they can be quickly displayed when needed, generating an image set in which each image is associated with a specific gear mode. Use the built-in sensors of the atomizer (such as temperature sensors, pressure sensors, etc.) to obtain the current environmental data and match it with the gear mode division data. Generate corresponding control instructions based on the matching results of the current environmental state and the gear mode division data. The instruction content includes adjusting the current, temperature, etc. A mapping function (such as a lookup table, a neural network, etc.) can be used to generate corresponding control instructions based on the current state, and generate current state instruction mapping data, which contains the operations that the microcontroller should take under the current environmental conditions.
[0069] Step S2: Based on the current state instruction mapping data, the microcontroller parameter data in the atomizer is analyzed for the intermediate state of gear switching to generate the intermediate state of gear switching; the microcontroller gear mode preloaded image set is rendered predictively through the intermediate state of gear switching to obtain the intermediate state pre-rendered image; the intermediate state pre-rendered image is adjusted for the timing deviation image content to generate the intermediate state pre-rendered adjusted image;
[0070] In an embodiment of the present invention, the parameter change trend of the microcontroller is analyzed through the current state instruction mapping data, and the transition process from one gear to another is identified. This process needs to consider the change of the device state and the switching conditions between different gears (such as the threshold changes of parameters such as temperature, humidity, and current). The current system state (such as voltage, current, temperature changes, etc.) is monitored using sensor data. The intermediate state of the gear switching is analyzed and predicted using a state transition algorithm (such as a finite state machine, a state machine model, or a rule-based algorithm) to generate a gear switching intermediate state, which describes the intermediate state of the device during the gear switching process, such as the parameter transition process when transitioning from a low gear to a high gear. According to the gear switching intermediate state, a preloaded image corresponding to the current state is selected and predictive rendering is performed. Predictive rendering refers to rendering a temporary image based on the current intermediate state, which reflects the expected state of the system when it is about to switch to the next gear. According to the trend of the gear switching and the current intermediate state, the corresponding image or interface element is selected and rendered. During the rendering process, the system can combine the existing image cache (such as the microcontroller gear mode preloaded image set) to quickly generate an image. During the rendering process, the system uses known physical laws or models to predict the image style in the future state, and adjusts the current image to adapt to these changes, generating an intermediate state pre-rendered image as an image representation during the transition period of the device gear switching. Due to the timing deviation (such as device delay, sensor data fluctuation, etc.) during the image rendering process, it is necessary to correct the timing deviation of the intermediate state pre-rendered image so that the rendered image is more consistent with the actual device state. According to the feedback signal of the system (such as real-time sensor data, device response time, etc.), the timing deviation in the image rendering process is analyzed. The deviation is caused by factors such as hardware delay and transmission delay. Use the timing deviation correction algorithm (such as time window correction, signal filtering, etc.) to adjust the rendered image so that the image content is synchronized with the actual device state. The adjustment includes the update of image elements, the change of color, the correction of animation effects, etc., to generate an intermediate state pre-rendered adjustment image to ensure that the image content is consistent with the changes in the actual state and avoid visual inconsistency.
[0071] Step S3: Based on the intermediate state pre-rendering adjustment image, the microcontroller gear mode pre-loaded image set is smoothed for image over-display to generate an atomizer gear switching smooth image set; the physical state data packet is processed for gear abnormality image according to the current state instruction mapping data to generate an abnormal gear state display image; the atomizer gear switching smooth image set and the abnormal gear state display image are integrated to generate an atomizer gear switching display image set to execute the atomizer picture display control operation.
[0072] In an embodiment of the present invention, a transition frame is calculated and generated by using linear interpolation, Bezier curve interpolation or other smooth transition methods. Interpolation adjusts the image data between the pre-rendered image and the pre-loaded image set based on the intermediate state, and smoothly transitions to the next state. During the image transition process, the brightness, contrast, transparency and other attributes of the image are gradually adjusted to achieve a visually smooth transition, and a "atomizer gear switching smooth image set" is generated, which contains a smooth transition image from the current state to the next gear switching period. Based on the state instruction mapping data, analyze whether the device state meets expectations. Thresholds or machine learning-based abnormality detection algorithms can be set to automatically detect abnormal states (such as overload, overheating, sensor failure, etc.). When an abnormal state is detected, a preset image template (such as warning, prompt symbol, flashing effect, etc.) is used to generate a display image of the abnormal state, and an "abnormal gear state display image" is generated to display the visual prompt information of the abnormal state of the device. When synthesizing images, appropriate display content is selected according to the current state of the system. If the current system status is normal, use the smooth image set; if the system status is abnormal, superimpose the abnormal status display image to the appropriate position of the smooth image set to ensure that the abnormal prompt does not affect the visual effect of the gear switching. Ensure that the abnormal status display image has a higher priority than the normal gear switching image. During the display process, the display order or transparency of the image can be adjusted according to the severity of the abnormality to ensure the prominent display of the abnormal state, and generate an "atomizer gear switching display image set", which is an integration of the normal gear switching smooth image and the abnormal status display image. According to the generated image set, the synthesized image is transmitted and displayed through the display control system (such as LCD screen, OLED display, etc.). The image display should be closely synchronized with the real-time status of the device. For example, when the device switches gears, the image should also switch in real time to ensure that the user can clearly understand the current working status of the device.
[0073] Preferably, step S1 comprises the following steps:
[0074] Step S11: Acquire parameter data and display image of the microcontroller in the atomizer;
[0075] Step S12: dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data, wherein the microcontroller gear mode division data includes an A-bin mode, a B-bin mode and a dual-bin mode;
[0076] Step S13: preloading display images of the A-bin mode, the B-bin mode and the dual-bin mode into a fast cache area in the microcontroller, thereby obtaining a microcontroller gear mode preloaded image set;
[0077] Step S14: Based on the built-in sensor, the microcontroller gear mode division data is used to collect gear switching data to obtain a physical state data packet; the microcontroller gear mode division data is mapped to the current state instruction through the physical state data packet to generate current state instruction mapping data.
[0078] In an embodiment of the present invention, the real-time operating parameter data of the microcontroller is read through the communication module built into the atomizer, and the data includes key parameters such as voltage, current, temperature and operating status. Obtain a preset display image file, including image templates corresponding to the A-bin mode, the B-bin mode and the dual-bin mode. The image can be stored in the form of a vector map or a bitmap to ensure compatibility and efficient rendering. According to the microcontroller parameter data, define the gear switching rules: A-bin mode: applicable to a single chamber atomization operation. B-bin mode: applicable to another single chamber atomization operation. Dual-bin mode: applicable to the collaborative atomization operation of two chambers at the same time. Convert the gear mode division rules into a data structure (such as JSON or XML) to store the mode type and its parameter conditions, generate the microcontroller gear mode division data, and bind it to the microcontroller memory with a digital identifier. Initialize the fast cache area (such as SRAM) in the microcontroller, and reserve dedicated space for high-frequency image data loading. The image template files of A-bin mode, B-bin mode and dual-bin mode are loaded into the cache according to the data compression and decoding algorithm to reduce the image reading delay at runtime, generate a preloaded image set of the microcontroller gear mode, and set the data index for quick call. The physical state of the atomizer (such as inhalation intensity, temperature change) is monitored in real time through built-in sensors (such as pressure sensors and temperature sensors). The collected data is encapsulated into a physical state data packet, and the data packet structure contains a timestamp, sensor value and chamber identification. The physical state data packet is used to match the microcontroller gear mode division data to determine the operating mode corresponding to the current state (such as switching from A-bin to dual-bin). The current state instruction mapping data is generated based on the matching results. The data is used to update the atomizer operating mode in real time and trigger the display image update.
[0079] Preferably, preloading the display images of the A-bin mode, the B-bin mode and the dual-bin mode into the fast cache area in the microcontroller comprises:
[0080] Performing image format optimization on display images in the A-bin mode, the B-bin mode, and the dual-bin mode, respectively, to generate optimized display images in the A-bin mode, the B-bin mode, and the dual-bin mode, wherein the image format optimization includes image compression, image resolution adjustment, and image color depth unification;
[0081] The optimized display images of the A-bin mode, the B-bin mode and the dual-bin mode are transmitted in blocks through a high-speed data transmission protocol, and transmitted to a fast cache area in a microcontroller for image resource writing, so as to obtain a microcontroller gear mode writing image set;
[0082] Unique indexes are allocated to the microcontroller gear mode write image set to generate a microcontroller gear mode preload image set.
[0083] In an embodiment of the present invention, by adopting a suitable compression algorithm (such as JPEG, PNG or WebP), the display images of A bin mode, B bin mode and dual bin mode are compressed according to the target hardware performance and image quality requirements. Compression should reduce the file size as much as possible while maintaining the recognizability and clarity of the image. Compare the effects of different compression algorithms and select an algorithm suitable for the processing power and memory limitations of the microcontroller. The compression parameters should be optimized according to the specific display resolution and color requirements to ensure that the quality and transmission speed of the compressed image are balanced. The resolution of the displayed image is adjusted to adapt to different display specifications or the processing power of the microcontroller. The resolution adjustment can adopt an interpolation algorithm (such as bilinear interpolation, nearest neighbor interpolation, etc.) to optimize the display performance and memory consumption on the basis of ensuring image clarity. Uniform adjustment is performed according to the physical resolution of the display device to ensure that each image mode can adapt to the predetermined display output. The color depth of different images is unified to a standard value (such as 8 bits or 16 bits) to adapt to the image processing capability of the microcontroller. When adjusting the color depth, a significant loss of color reproduction of the image should be avoided to ensure the consistency of the display effect. Color depth can be standardized and color rendering can be optimized by color space conversion (such as from RGB to YUV). Use high-speed data transmission protocols (such as SPI, I2C, USB, or custom high-speed transmission protocols) for image data transmission. According to the communication interface between the microcontroller and the display module, select the most suitable transmission protocol to achieve the effect of fast data transmission. Ensure that the protocol supports efficient transmission of large-capacity data to avoid delays or packet loss during data transmission. Block each image and divide the optimized display image into fixed sizes, usually based on the memory limitations of the microcontroller and the actual size of the image. For example, each block size can be set to 256KB or 512KB for fast transmission and storage. Each image block should have an identifier (such as block number, file header, etc.) so that the microcontroller can correctly splice the image data when receiving it. Transfer each image block to the fast cache of the microcontroller through the selected high-speed data transmission protocol. The space in the cache should be large enough to accommodate all the block data and support real-time read and write operations. Use streaming data transmission during transmission to ensure that the image data blocks can be written to the cache in sequence and ensure effective management of the cache space. In the memory of the microcontroller, a unique index identifier is assigned to each image block. The index should be constructed based on the image mode type (such as A-bin mode, B-bin mode, dual-bin mode) and the data block number. A mapping relationship table between the index and the image data block is established to ensure that a specific image block can be quickly located when used. All image blocks and their corresponding index information are organized uniformly to form a complete microcontroller gear mode preloaded image set. This image set contains the display images in each mode, and the image block can be quickly located by index for display when called on demand.Ensure that the microcontroller can quickly and accurately extract the required image blocks from the preloaded image set and transmit them to the display module to achieve real-time image switching without delay.
[0084] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:
[0085] Step S21: extracting key data of gear switching from the microcontroller parameter data in the atomizer based on the current state instruction mapping data to obtain gear switching motion data;
[0086] Step S22: performing a gear switching intermediate state analysis on the current state command mapping data according to the gear switching motion data to generate a gear switching intermediate state; performing image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image;
[0087] Step S23: using the intermediate state pre-rendered image and the gear switching motion data to perform timing deviation detection to generate physical state-image display timestamp deviation data;
[0088] Step S24: Compare the physical state-image display timestamp deviation data with a preset standard timestamp deviation threshold. When the physical state-image display timestamp deviation data is greater than or equal to the preset standard timestamp deviation threshold, adjust the image content of the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image.
[0089] In an embodiment of the present invention, the current state instruction mapping data obtained by step S14 includes the current operation mode of the atomizer (such as A warehouse mode, B warehouse mode or dual warehouse mode). The instruction mapping data includes control parameters such as voltage, current, temperature, wind speed, etc. of the device, which are used to guide the microcontroller to switch gears. The motion data related to the gear switching is extracted from the current state instruction mapping data, which usually includes key data such as the current change rate, temperature change rate, and wind speed regulation. Based on these data, the motion data of the gear switching, such as the speed and transition time of each parameter change, are calculated by an algorithm (such as a kinematic model or time series analysis). These data can reflect the change trend of the microcontroller parameters during the switching process. According to the gear switching motion data, a dynamic model (such as a state machine or a differential equation model) is applied to simulate the gear switching process. The simulation takes into account the physical transition process of the microcontroller between each gear and predicts the intermediate transition state from the current gear to the target gear. The intermediate state includes parameters such as temperature transition, power change, and motion speed change. These states have an impact on image rendering, so accurate calculations are required. Based on the intermediate state of the gear switching, the intermediate state pre-rendered image is generated by combining with the pre-loaded image set. Pre-rendering is based on the changing trend of each physical parameter during the gear switching process, and uses an image interpolation algorithm (such as bilinear interpolation or affine transformation) to predict the image content in the intermediate state. The image rendering process can be calculated in real time by the microcontroller to ensure the continuity and smoothness of the image during the transition process. Timing deviation detection is performed by combining the intermediate state pre-rendered image with the gear switching motion data. Timing deviation refers to the time inconsistency between the physical state change and the image rendering, resulting in display delay or screen mismatch. Using a synchronization algorithm (such as Kalman filtering or a timing synchronization algorithm), the image display at each time point is timestamped and the time difference between the image update and the physical state change is compared. The deviation data between the timestamp and the physical state change of each frame of the image is generated by the timing synchronization algorithm. This data contains the time difference between the image update time and the physical state change time at each moment, helping to identify whether there is a deviation. The timestamp deviation data will be used in the subsequent process of adjusting the image content to eliminate visual inconsistencies caused by the deviation. Set a standard timestamp deviation threshold, which is preset based on factors such as the response time of the atomizer, the display refresh rate, and the visual perception delay. If the detected physical state-image display timestamp deviation is greater than or equal to this threshold, it means that there is a significant asynchrony between the image rendering and the physical state, and the image content needs to be adjusted. Based on the deviation data, apply the image correction algorithm to adjust the intermediate state pre-rendered image. For example, use image smoothing, image interpolation, or transition effects to compensate for image inconsistencies caused by timing deviations.Image adjustment can be achieved through local correction, dynamic adjustment of image transition effects, real-time update of image clarity, etc., to ensure that the image is synchronized with the physical state during the gear switching process, improving the visual effect and user experience. After the image content adjustment is completed, the final intermediate state pre-rendered adjustment image is generated. The image content will be accurately synchronized with the physical state changes to provide a smooth transition effect in the subsequent display process.
[0090] Preferably, performing image display predictive rendering on a microcontroller gear mode preloaded image set through a gear switching intermediate state comprises the following steps:
[0091] An interpolation algorithm is used to predict the intermediate state image template of the microcontroller gear mode preloaded image set according to the intermediate state of the gear switching, and an intermediate state image transition template is generated; a transition frame sequence is generated for the intermediate state image transition template according to the hardware acceleration function in the microcontroller, and a gear switching image transition frame set is obtained;
[0092] Based on the gear switching image transition frame set, the microcontroller gear mode preload image set is screened for adjacent gear loading images to obtain a first loading image and a second loading image;
[0093] Performing image overlap on the first loaded image and the second loaded image to generate an adjacent gear overlap image; performing image layered regional blurring on the adjacent gear overlap image based on the gear switching image transition frame set to generate an adjacent gear overlap image layered blurred region;
[0094] Dynamic area blur rendering adjustment is performed on the overlapping images of adjacent gears according to the layered blur areas of the overlapping images of adjacent gears, so as to generate an intermediate state pre-rendered image.
[0095] In an embodiment of the present invention, according to the intermediate state of the gear switching, the intermediate state image template is predicted for the preloaded image set of the microcontroller gear mode through an interpolation algorithm (such as bilinear interpolation, cubic spline interpolation or Bessel interpolation). The interpolation algorithm performs transitional inference on the target gear image based on the physical parameters of the intermediate state (such as temperature, current, etc.) to generate image templates of the intermediate state, which reflect the details of each visual transition stage during the gear switching process. According to the interpolation calculation results, multiple intermediate state image templates are generated, which represent the visual transition effect from the current gear to the target gear. The generation of the template is based on a preset physical state change model to ensure that the visual effect matches the actual physical state change. In the microcontroller, the intermediate state image transition template is generated by using its hardware acceleration function (such as GPU acceleration or a dedicated image processing unit). Hardware acceleration can efficiently process image rendering tasks and support the generation of transition effects at a higher frame rate, thereby ensuring the smoothness of image transition during the gear switching process. Through hardware acceleration, a frame set containing multiple transition frames is generated. These transition frames reflect the gradual transition of visual effects during the gear switching process, ensuring that the image smoothly transitions from one gear to another. Based on the gear switching image transition frame set, the loading images of adjacent gears are selected through image screening algorithms (such as nearest neighbor interpolation, weighted average method, etc.). The first loading image and the second loading image are screened out from the pre-loaded image set of the microcontroller. These two images represent the visual state before and after the gear switching. The screening logic selects adjacent gear images according to the specific time point or transition stage of the gear switching to ensure their visual continuity and smoothness. This process can adapt to the changing gear switching requirements in real time by dynamically adjusting the selection strategy. The screened first loading image and the second loading image are subjected to image overlap processing. This step generates overlapping images of adjacent gears through image superposition, weighted average or transparency adjustment technology. This processing method helps to reduce the abruptness when the gear is switched and provide a visually smooth transition effect. During the image overlap processing, the image overlap method is adjusted according to the physical state parameters of the gear switching, such as gradually increasing transparency or using a gradient transition effect to make the transition between the two images more natural. Based on the gear switching image transition frame set, the image layered area blur processing is performed on the adjacent gear overlap images. This process creates a transition effect with a strong sense of hierarchy by applying different blur intensities to different areas of the image. The layered blur processing area can be dynamically adjusted according to the changes in the physical state (such as transition speed, parameter change rate, etc.) to ensure that the image remains smooth during the visual transition. Based on the layered blur, dynamic area blur rendering adjustment is performed. According to the actual gear switching process, the intensity and range of the image blur effect are adjusted to enhance the visual smoothness and coherence. Dynamic adjustment ensures that during the display of each frame of the image, the blur effect is adjusted in real time according to the changes in the physical state to avoid uncoordinated visual jumps.Finally, through all the above image processing steps, a fully transitioned intermediate state pre-rendered image is generated. This image will be displayed during the gear switching process to ensure that the visual effect is consistent with the actual physical state change, while providing a seamless image transition experience.
[0096] Preferably, performing image layered regional blurring on overlapping images of adjacent gears based on the gear switching image transition frame includes:
[0097] The gear switching image transition frame set is screened for intermediate transition frames to obtain intermediate transition frames and non-intermediate transition frames; based on the intermediate transition frames, the adjacent gear overlap images are set to the highest resolution, thereby obtaining adjacent gear overlap clear images under the intermediate transition frames;
[0098] The adjacent gear overlap clear images under the intermediate transition frame are used to perform a non-intermediate transition frame image gradient blur setting on the adjacent gear overlap images, so as to generate an adjacent gear overlap blur image set under the non-intermediate transition frame;
[0099] According to the non-intermediate transition frame, the blur consistency of the adjacent gear overlapping blurred image set under the non-intermediate transition frame is adjusted to generate the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame; the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame and the adjacent gear overlapping clear image under the intermediate transition frame are divided into layered blurred areas to generate layered blurred areas of adjacent gear overlapping images.
[0100] In an embodiment of the present invention, the gear switching image transition frame set is screened by an algorithm (such as based on time series analysis or key frame extraction algorithm) to distinguish between intermediate transition frames and non-intermediate transition frames. The intermediate transition frame represents the key intermediate state in the gear switching process, and usually corresponds to the smoothest transition stage of the physical state change. The non-intermediate transition frame is at the initial or final stage of the transition, and the physical state changes more drastically. The screened intermediate transition frames and non-intermediate transition frames are processed separately so that different image processing strategies are adopted for different types of frames. For the intermediate transition frames, the highest resolution setting is adopted to ensure the clarity of the image. At this stage, the image is required to be as fine as possible visually to ensure that every detail of the transition is accurately presented. The high-resolution setting helps to provide clearer visual feedback at the critical moment of the physical state change. Based on the images generated by the intermediate transition frames, corresponding clear images are generated, and these images keep the details clear during the transition process, which helps to visually smooth transition and reduce visual blur or distortion. A gradient blur effect is applied to the overlapping images of adjacent gears under the non-intermediate transition frames. The degree of blur will gradually increase with the change of frames to simulate the rapid change of physical state. This gradual blurring process makes the image gradually transition to a blurred state during the gear switching process to avoid abrupt image transition. A series of blurred images are generated by blurring to form a set of overlapping blurred images of adjacent gears under non-intermediate transition frames. These blurred image sets are used to simulate the transition stage of gear switching to ensure that the image transitions from clear to blurred smoothly and naturally. A consistency adjustment algorithm (such as gradient consistency, color consistency or regional contrast consistency) is used to adjust the blur consistency of the overlapping blurred image sets of adjacent gears under non-intermediate transition frames. The purpose of the adjustment is to ensure that the blur effect remains consistent during the transition process to avoid visual abruptness or uncoordinated blur changes. After the adjustment, a set of consistent blurred images is generated to ensure that the images of all non-intermediate transition frames remain relatively consistent in blur and meet the requirements of visually smooth transition. The consistent blurred image set under the non-intermediate transition frame and the clear image under the intermediate transition frame are combined, and image layering blur region segmentation is performed through image layering technology (such as region segmentation, edge detection or image fusion algorithm). At this stage, the image will be divided into multiple levels, each corresponding to a different degree of blur. For example, the edge area of the image will be more blurred, while the central area remains clear. Through segmentation and fusion operations, a complete layered blurred area of the overlapping image of adjacent gears is finally generated. These areas are gradually blurred according to the physical state changes of the gear switching, ensuring the continuity of the image transition.
[0101] Preferably, using the intermediate state pre-rendered image and the gear switching motion data to perform time deviation detection includes:
[0102] Calculate the rendering timestamp of the intermediate state pre-rendered image to obtain the rendering timestamp of the intermediate state image; calculate the motion timestamp of the gear switching motion data to obtain the gear switching motion timestamp;
[0103] The timestamp difference between the intermediate state image rendering timestamp and the gear switching motion timestamp is calculated to obtain the physical state-image display timestamp deviation data, where the timestamp difference calculation formula is as follows:
[0104] ΔT=T render ―T phys ;
[0105] Where ΔT is the time difference between the physical state and the image display, T render Indicates the time point when the image update is completed, T phys Represents the physical time point when the gear shift starts or ends.
[0106] In the embodiment of the present invention, by pre-rendering the image for each intermediate state of each frame, the hardware or software clock of the microcontroller is used to record the time point when the image rendering is completed. render Refers to the precise moment when the image rendering engine completes the rendering of the current frame. This timestamp can be obtained through system timer or sensor synchronization. For each frame of the intermediate state pre-rendered image, the rendering timestamp is recorded frame by frame to ensure that the image rendering completion moment can be accurately corresponded in subsequent analysis. For gear switching motion data, the physical time point when the gear switching starts or ends is obtained through built-in sensors (such as accelerometers, gyroscopes, etc.). Motion timestamp T phys To represent the physical moment of the gear switch, the change of motion state can be recorded by a synchronized clock, or the timestamp of sensor data collection can be used. According to the physical motion data of the gear switch, key time points (such as the start or end time of the gear switch) are identified and marked, and motion timestamps are calculated for these moments. The difference between the intermediate state image rendering timestamp and the gear switch motion timestamp is calculated by the following formula to obtain the time deviation data between the physical state and the image display: ΔT = T render ―T phys Where ΔT is the time difference between the physical state and the image display, T reder Indicates the time point when the image update is completed, T physIt is expressed as the physical time point when the gear switching starts or ends. For each gear switching process, the corresponding rendering timestamp and motion timestamp are taken, and the time deviation ΔT is obtained by difference calculation. This calculation process needs to be performed during each gear switching process to ensure that the time relationship between each rendering and the actual motion state is accurately captured. The time deviation ΔT data is compared with the preset time standard to detect whether there is a significant time deviation. If the deviation value is too large, it will cause the image and the physical state to be out of sync, affecting the user experience. If it is detected that the time deviation ΔT exceeds the set threshold, the deviation can be reduced by adjusting the image rendering time or modifying the acquisition time point of the motion data to ensure the synchronization of the image and the physical motion. In the real-time system, the timing of image rendering and motion data acquisition is dynamically adjusted according to the detection result of the time deviation to improve the response speed and accuracy of the system. If the time deviation is detected to exceed the standard threshold multiple times, the timing optimization of the image rendering process and the gear switching data flow can be considered. Specific optimizations include: improving data transmission speed, optimizing image rendering algorithms, and enhancing hardware synchronization accuracy. Adjust system parameters according to the actual deviation situation to optimize the response and real-time performance of the entire system, so that the mapping between the image and the physical state is more accurate.
[0107] As an example of the present invention, refer to Figure 3 As shown, in this example, step S3 includes:
[0108] Step S31: performing image transition display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear mode switching smoothing image set;
[0109] Step S32: performing gear switching abnormality detection on the physical state data packet according to the current state instruction mapping data. When the gear switching abnormality is detected, the current gear state image is maintained for the atomizer gear switching smooth image set to generate an abnormal gear state display image;
[0110] Step S33: integrating the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to perform the atomizer picture display control operation.
[0111] In an embodiment of the present invention, during the gear switching process, the transition between images is ensured to be smooth, so as to avoid jumping or discontinuity during the display process. The image is smoothed by adjusting the image based on the intermediate state pre-rendering, so that the image switching is more natural. The microcontroller gear mode preloaded image set is smoothly transitioned frame by frame according to the intermediate state pre-rendering adjustment image through an interpolation algorithm or a smoothing filtering technique (such as Gaussian blur, Bezier curve interpolation, etc.). The hardware acceleration function of the microcontroller is used to optimize the image processing speed so as to quickly generate the transition effect. Each transition frame is carefully processed to ensure that the change between each frame image and the previous and next frames is smooth and continuous. Through the above processing method, an image set containing a smooth transition effect is generated, which is called a "atomizer gear switching smooth image set". Each smooth image corresponds to a specific gear switching stage and is precisely synchronized according to the time axis or motion trajectory. During the gear switching process, due to external factors or system errors, gear switching anomalies (such as gear switching delays, lost frames, inconsistent physical states, etc.) occur, affecting the accuracy of image display. The stability of the display is ensured by detecting abnormal conditions. Based on the current state command mapping data, analyze the various parameters in the physical state data packet (such as gear switching time, motion trajectory, sensor data, etc.). Compare the difference between the current state and the expected state, and use pattern recognition algorithms (such as anomaly detection algorithms, threshold settings, etc.) to determine whether there is a gear switching anomaly. The criteria for anomaly detection may include: time deviation exceeds the limit (the physical state and the image display timestamp are very different), sensor data anomaly (such as the sensor fails to normally feedback the state change during the gear switching process). The display state is inconsistent with the physical state (for example, the gear display lags behind the physical switching). When the gear switching anomaly is detected, select an appropriate image processing strategy according to the abnormal situation to generate an "abnormal gear state display image". This image can alleviate the abnormal situation by maintaining the display image of the current state until the system returns to normal, ensuring that the user can see a stable and consistent display effect. During the gear switching process, the smooth image and the abnormal state image are integrated to ensure the coherence and consistency of the image display in normal and abnormal states. During the gear switching process, decide whether to use the smooth transition image set or the abnormal state image according to the current state. If there is no abnormality, use the smooth image set; if there is an abnormality, use the abnormal state display image. According to the system time and the progress of the gear switching, different types of images are integrated into a unified timeline to ensure that each frame of the image is displayed in the correct time sequence. During the smooth transition process, if an abnormality is detected, the abnormal state image can be immediately switched to display processing to provide feedback to the user, and the smooth transition image can continue to be displayed after returning to normal. Through the image integration steps, the "atomizer gear switching display image set" is finally generated, which includes images of smooth transition and abnormal processing.The system will use this image set to perform image display control jobs to ensure that the display effect of the atomizer in different states is smooth and stable. Use image display control jobs to load the generated "atomizer gear switching display image set" to the display device to ensure that the image is presented in an efficient and stable manner on the actual hardware.
[0112] In this specification, an atomization device is provided for executing the above-mentioned image display control method, and the atomization device includes:
[0113] The gear control mapping module is used to obtain the microcontroller parameter data and display image in the atomizer; divide the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly cache the display image according to the microcontroller gear mode division data, so as to obtain the microcontroller gear mode preload image set; perform current state instruction mapping on the microcontroller gear mode division data based on the built-in sensor to generate current state instruction mapping data;
[0114] An image pre-rendering module is used to perform gear switching intermediate state analysis on the microcontroller parameter data in the atomizer based on the current state instruction mapping data to generate the gear switching intermediate state; perform image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image; perform timing deviation image content adjustment on the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image;
[0115] The image display module is used to perform image over-display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear switching smooth image set; perform gear abnormality image processing on the physical state data packet according to the current state instruction mapping data to generate an abnormal gear state display image; integrate the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to execute the atomizer image display control operation.
[0116] A microcontroller is placed inside an atomization device, comprising a core processing unit, a storage unit, a display control unit, an input and output interface, and a power management unit, wherein the power management unit is electrically connected to the core processing unit, the storage unit, the display control unit, and the input and output interface, and a computer program that can be run on the core processing unit is used to execute the above-mentioned image display control method.
[0117] The beneficial effect of the present invention is that by acquiring the parameter data of the microcontroller and dividing the data according to the gear mode to quickly cache and preload the image, the response speed of the displayed image is significantly improved, and it is ensured that the device can quickly switch and display in different working modes. Through the real-time mapping of the current state instruction by the built-in sensor, the system can adjust the displayed image in real time according to the actual working state of the device, ensuring the high consistency of the image content and the device state, thereby improving the user experience. By analyzing the intermediate state of the gear switching of the microcontroller parameters based on the current state instruction mapping data, the system can predict and pre-render the image of the intermediate state, avoiding visual lag or jamming during state switching. Through the adjustment of the image content of the timing deviation, the precise docking of the image display is ensured, and there is no picture jump or inconsistency, which ensures the smooth transition of the image and enhances the visual fluency and continuity. Through the smooth processing of the image transition display, the abrupt feeling generated when switching between different gears is eliminated, making the image switching more natural and smooth, and improving the visual coherence. Based on the current state instruction mapping data, the gear abnormality image processing can effectively identify and correct the display problem when the device is abnormal, prevent the image error display in the abnormal state, and ensure the normal display of the device in any state. The atomizer gear switching smooth image set and the abnormal gear status display image are integrated to make the entire display image set more unified and complete, improving the overall consistency of the display and the user's operating experience. Through technologies such as fast state mapping, preloading, smooth transition and exception handling, the entire system can provide stable, smooth and accurate display control, reducing the jamming and discomfort caused by image switching, thereby significantly improving the user's visual experience. Therefore, the present invention improves the consistency of traditional image display control by optimizing image transition smoothness, real-time state mapping, exception handling and resource preloading.
[0118] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0119] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for controlling picture display, characterized in that: The following steps are involved: Step S1: acquiring microcontroller parameter data and display images in the atomizer; dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly caching the display image according to the microcontroller gear mode division data, thereby obtaining a microcontroller gear mode preloaded image set; mapping the microcontroller gear mode division data to a current state instruction based on a built-in sensor to generate current state instruction mapping data; Step S2: Based on the current state instruction mapping data, the microcontroller parameter data in the atomizer is analyzed for the intermediate state of gear switching to generate the intermediate state of gear switching; the microcontroller gear mode preloaded image set is rendered predictively through the intermediate state of gear switching to obtain the intermediate state pre-rendered image; the intermediate state pre-rendered image is adjusted for the timing deviation image content to generate the intermediate state pre-rendered adjusted image; Step S3: Based on the intermediate state pre-rendering adjustment image, the microcontroller gear mode pre-loaded image set is smoothed for image over-display to generate an atomizer gear switching smooth image set; the physical state data packet is processed for gear abnormality image according to the current state instruction mapping data to generate an abnormal gear state display image; the atomizer gear switching smooth image set and the abnormal gear state display image are integrated to generate an atomizer gear switching display image set to execute the atomizer picture display control operation.
2. The image display control method according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Acquire parameter data and display image of the microcontroller in the atomizer; Step S12: dividing the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data, wherein the microcontroller gear mode division data includes an A-bin mode, a B-bin mode and a dual-bin mode; Step S13: preloading display images of the A-bin mode, the B-bin mode and the dual-bin mode into a fast cache area in the microcontroller, thereby obtaining a microcontroller gear mode preloaded image set; Step S14: Based on the built-in sensor, the microcontroller gear mode division data is used to collect gear switching data to obtain a physical state data packet; the microcontroller gear mode division data is mapped to the current state instruction through the physical state data packet to generate current state instruction mapping data.
3. The image display control method according to claim 2, characterized in that: Preloading the display images of A-bin mode, B-bin mode and dual-bin mode into the fast cache area in the microcontroller includes: Performing image format optimization on display images in the A-bin mode, the B-bin mode, and the dual-bin mode, respectively, to generate optimized display images in the A-bin mode, the B-bin mode, and the dual-bin mode, wherein the image format optimization includes image compression, image resolution adjustment, and image color depth unification; The optimized display images of the A-bin mode, the B-bin mode and the dual-bin mode are transmitted in blocks through a high-speed data transmission protocol, and transmitted to a fast cache area in a microcontroller for image resource writing, so as to obtain a microcontroller gear mode writing image set; Unique indexes are allocated to the microcontroller gear mode write image set to generate a microcontroller gear mode preload image set.
4. The image display control method according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: extracting key data of gear switching from the microcontroller parameter data in the atomizer based on the current state instruction mapping data to obtain gear switching motion data; Step S22: performing a gear switching intermediate state analysis on the current state command mapping data according to the gear switching motion data to generate a gear switching intermediate state; performing image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image; Step S23: using the intermediate state pre-rendered image and the gear switching motion data to perform timing deviation detection to generate physical state-image display timestamp deviation data; Step S24: Compare the physical state-image display timestamp deviation data with a preset standard timestamp deviation threshold. When the physical state-image display timestamp deviation data is greater than or equal to the preset standard timestamp deviation threshold, adjust the image content of the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image.
5. The image display control method according to claim 4, characterized in that: The image display predictive rendering of the microcontroller gear mode preloaded image set through the gear switching intermediate state includes the following steps: An interpolation algorithm is used to predict the intermediate state image template of the microcontroller gear mode preloaded image set according to the intermediate state of the gear switching, and an intermediate state image transition template is generated; a transition frame sequence is generated for the intermediate state image transition template according to the hardware acceleration function in the microcontroller, and a gear switching image transition frame set is obtained; Based on the gear switching image transition frame set, the microcontroller gear mode preload image set is screened for adjacent gear loading images to obtain a first loading image and a second loading image; Performing image overlap on the first loaded image and the second loaded image to generate an adjacent gear overlap image; performing image layered regional blurring on the adjacent gear overlap image based on the gear switching image transition frame set to generate an adjacent gear overlap image layered blurred region; Dynamic area blur rendering adjustment is performed on the overlapping images of adjacent gears according to the layered blur areas of the overlapping images of adjacent gears, so as to generate an intermediate state pre-rendered image.
6. The image display control method according to claim 5, characterized in that: Based on the gear switching image transition frame, the image layering area blurring of the overlapping images of adjacent gears includes: The intermediate transition frames of the gear switching image transition frame set are screened to obtain intermediate transition frames and non-intermediate transition frames; the highest resolution of the adjacent gear overlap images is set based on the intermediate transition frames, so as to obtain the adjacent gear overlap clear images under the intermediate transition frames; The adjacent gear overlap clear images under the intermediate transition frame are used to perform a non-intermediate transition frame image gradient blur setting on the adjacent gear overlap images, so as to generate an adjacent gear overlap blur image set under the non-intermediate transition frame; According to the non-intermediate transition frame, the blur consistency of the adjacent gear overlapping blurred image set under the non-intermediate transition frame is adjusted to generate the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame; the adjacent gear overlapping blurred consistent image set under the non-intermediate transition frame and the adjacent gear overlapping clear image under the intermediate transition frame are divided into layered blurred areas to generate layered blurred areas of adjacent gear overlapping images.
7. The image display control method according to claim 4, characterized in that: Using the intermediate state pre-rendered image and the gear switching motion data to perform time deviation detection includes: Calculate the rendering timestamp of the intermediate state pre-rendered image to obtain the rendering timestamp of the intermediate state image; calculate the motion timestamp of the gear switching motion data to obtain the gear switching motion timestamp; The timestamp difference between the intermediate state image rendering timestamp and the gear switching motion timestamp is calculated to obtain the physical state-image display timestamp deviation data, where the timestamp difference calculation formula is as follows: ΔT=T render ―T phys ; Where ΔT is the time difference between the physical state and the image display, T render Indicates the time point when the image update is completed, T phys Represents the physical time point when the gear shift starts or ends.
8. The image display control method according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: performing image transition display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear mode switching smoothing image set; Step S32: performing gear switching abnormality detection on the physical state data packet according to the current state instruction mapping data. When the gear switching abnormality is detected, the current gear state image is maintained for the atomizer gear switching smooth image set to generate an abnormal gear state display image; Step S33: integrating the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to perform the atomizer picture display control operation.
9. An atomizing device, characterized in that: Used to execute the picture display control method according to claim 1, the atomization device comprises: The gear control mapping module is used to obtain the microcontroller parameter data and display image in the atomizer; divide the microcontroller parameter data in the atomizer into gear modes to generate microcontroller gear mode division data; quickly cache the display image according to the microcontroller gear mode division data, so as to obtain the microcontroller gear mode preload image set; perform current state instruction mapping on the microcontroller gear mode division data based on the built-in sensor to generate current state instruction mapping data; An image pre-rendering module is used to perform gear switching intermediate state analysis on the microcontroller parameter data in the atomizer based on the current state instruction mapping data to generate the gear switching intermediate state; perform image display predictive rendering on the microcontroller gear mode preloaded image set through the gear switching intermediate state to obtain an intermediate state pre-rendered image; perform timing deviation image content adjustment on the intermediate state pre-rendered image to generate an intermediate state pre-rendered adjusted image; The image display module is used to perform image over-display smoothing on the microcontroller gear mode preloaded image set based on the intermediate state pre-rendering adjustment image to generate an atomizer gear switching smooth image set; perform gear abnormality image processing on the physical state data packet according to the current state instruction mapping data to generate an abnormal gear state display image; integrate the atomizer gear switching smooth image set and the abnormal gear state display image to generate an atomizer gear switching display image set to execute the atomizer image display control operation.
10. A microcontroller, characterized in that: Placed inside the atomization device, it includes a core processing unit, a storage unit, a display control unit, an input and output interface, and a power management unit, wherein the power management unit is electrically connected to the core processing unit, the storage unit, the display control unit, and the input and output interface, and a computer program that can be run on the core processing unit is used to execute the image display control method as described in any one of claims 1 to 8.