Image processing method and device, electronic equipment and readable storage medium

By adjusting the working parameters of the atomizer according to the user's operation and receiving image adjustment data from the terminal device, pixel adjustment is only performed on a portion of the image, which solves the problem of bandwidth waste and time consumption caused by mobile devices transmitting complete images, thus improving image processing efficiency and accuracy.

CN120997108APending Publication Date: 2025-11-21HG INNOVATION LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510968488.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-14
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

Transmitting complete image data from mobile devices to atomizers results in wasted bandwidth and long communication times, affecting image display efficiency.

Method used

The atomizer determines its operating parameters based on user input and sends them to the terminal device. It receives image adjustment data from the terminal device and adjusts pixels only in a portion of the image to reduce data transmission.

Benefits of technology

Adjusting atomizer operating parameters based on user behavior can meet user needs, reduce data transmission time between terminal devices and atomizers, and improve image processing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120997108A_ABST
    Figure CN120997108A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and device, electronic equipment and a readable storage medium, and the method comprises the steps: determining the working parameters of an atomizer according to the operation of a user on the atomizer; sending the working parameters to the terminal equipment; receiving image adjustment data sent by the terminal equipment; the image adjustment data is data determined according to working parameters and is used for indicating pixel adjustment of a first image currently displayed in the atomizer; and the first image is updated and displayed according to the image adjustment data, so that the bandwidth occupied by the terminal device and the atomizer during image transmission is reduced, and the image processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an image processing method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] A nebulizer is an instrument that converts liquids into micron-sized droplets. As nebulizers become increasingly intelligent, more and more products are equipped with visual components such as displays and lighting modules to show animation effects, device status, and other information. Images can be sent to the nebulizer via mobile devices, and the nebulizer will then display the images.

[0003] In related technologies, when mobile devices transmit images to atomizers, they typically transmit complete image data. The atomizer needs to continuously receive, buffer, and redraw the complete image, which results in wasted bandwidth and long communication times.

[0004] Application content

[0005] This application provides an image processing method, apparatus, electronic device, and readable storage value, which can improve the efficiency of image interaction between mobile devices and atomizers.

[0006] In one embodiment, an image processing method is provided, applied to an atomizer, the method comprising:

[0007] The operating parameters of the atomizer are determined based on the user's operation on the atomizer;

[0008] Send the operating parameters to the terminal device;

[0009] The device receives image adjustment data sent by the terminal device; the image adjustment data is data determined according to the operating parameters, used to instruct pixel adjustment of the first image currently displayed in the atomizer;

[0010] The first image is updated and displayed based on the image adjustment data.

[0011] In one embodiment, an image processing method is provided, applied to a terminal device, the method comprising:

[0012] Receive operating parameters sent by the atomizer;

[0013] Image adjustment data is determined based on the operating parameters and the first image currently displayed by the atomizer; the image adjustment data is used to instruct pixel adjustments to the first image currently displayed in the atomizer.

[0014] The image adjustment data is transmitted to the atomizer so that the atomizer updates and displays the first image based on the image adjustment data.

[0015] In one embodiment, an image processing apparatus is provided for use with an atomizer, the apparatus comprising:

[0016] The parameter determination module is used to determine the operating parameters of the atomizer based on the user's operation on the atomizer;

[0017] A parameter sending module is used to send the working parameters to the terminal device;

[0018] An image receiving module is used to receive image adjustment data sent by the terminal device; the image adjustment data is data determined according to the operating parameters, used to instruct pixel adjustment of the first image currently displayed in the atomizer;

[0019] An update module is used to update and display the first image based on the image adjustment data.

[0020] In one embodiment, an image processing apparatus is provided, applied to a terminal device, the apparatus comprising:

[0021] The parameter receiving module is used to receive the operating parameters sent by the atomizer;

[0022] An image determination module is used to determine image adjustment data based on the operating parameters and a first image currently displayed by the atomizer; the image adjustment data is used to instruct pixel adjustments to the first image currently displayed in the atomizer.

[0023] An image sending module is used to transmit the image adjustment data to the atomizer, so that the atomizer updates and displays the first image according to the image adjustment data.

[0024] In one embodiment, an image processing system is provided, including: a terminal device and an atomizer, wherein a connection is established between the atomizer and the terminal device; the atomizer is capable of performing the image processing method as described above, or the terminal device is capable of performing the image processing method as described above.

[0025] In one embodiment, an electronic device is provided, the electronic device including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors as described above in the image processing method.

[0026] In one embodiment, a readable storage medium is provided, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the image processing method described above.

[0027] The embodiments of this application have the following advantages:

[0028] The image processing method provided in this application allows the atomizer to adjust its operating parameters based on user operations. A built-in sensor monitors these parameters, which are then sent to a terminal device. The terminal device then receives image adjustment data determined based on these parameters. This image adjustment data instructs the atomizer to adjust pixels in a specific region of the currently displayed first image. The updated first image is then displayed. This method adjusts the atomizer's operating parameters based on user behavior, meeting diverse user needs. By receiving the image adjustment data from the terminal, which adjusts pixels in a specific region of the first image, the data transmission time between the terminal device and the atomizer is reduced, improving data transmission efficiency. The atomizer adjusts a specific region of the first image based on the image adjustment data, further enhancing image processing efficiency. Attached Figure Description

[0029] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a flowchart illustrating the steps of an embodiment of an image processing method according to this application;

[0031] Figure 2 This is a flowchart illustrating the steps of another embodiment of the image processing method of this application;

[0032] Figure 3 This is a structural block diagram of an image processing apparatus according to this application;

[0033] Figure 4 This is a structural block diagram of another image processing apparatus of this application;

[0034] Figure 5 This is a structural block diagram of an electronic device provided in this application example. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0036] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and are not limited in number; for example, a first object can be one or more. Furthermore, the term "and / or" in the specification and claims is used to describe the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. In the embodiments of this application, the term "multiple" refers to two or more, and other quantifiers are similar.

[0037] Method Implementation Examples

[0038] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of an image processing method according to this application. The method may specifically include the following steps:

[0039] Step 101: Determine the operating parameters of the atomizer based on the user's operation on the atomizer;

[0040] Step 102: Send the operating parameters to the terminal device;

[0041] Step 103: Receive image adjustment data sent by the terminal device; the image adjustment data is data determined according to the working parameters, used to instruct pixel adjustment of the first image currently displayed in the atomizer;

[0042] Step 104: Update and display the first image based on the image adjustment data.

[0043] In this context, user operation of the atomizer refers to user behavior on the atomizer. For example, different user methods of use, intensity levels, frequency of use, and interaction methods with the atomizer will result in different operating parameters for the atomizer. Specifically, the atomizer monitors real-time operating status data through built-in sensors and can also record the monitored operating parameters in registers. Operating parameters are a set of data reflecting the atomizer's operating status and performance. Operating parameters can include at least one of the following: physical parameters and operating status. Physical parameters can include at least one of the following: atomization rate, atomization temperature, remaining atomized liquid volume, and remaining battery power. Operating status can include at least one of the following: operating mode and operating duration. Of course, in some implementations, operating parameters can also be commands for switching interactive patterns / animations; for example, in some atomizers, users can personalize pattern settings / switches.

[0044] It's important to note that a communication connection is established between the atomizer and the terminal device, which can be wireless or wired. Wireless connections can include Bluetooth, Wi-Fi, and cellular networks. Bluetooth and Wi-Fi are suitable for low-power, short-range scenarios, such as home atomizers. Cellular networks are used for long-range scenarios, such as atomizers in farmland where the atomizer acquires image data from the cloud. The terminal device can be a computer, mobile phone, tablet, or watch. Wired connections can be established via the corresponding USB or Type-C interfaces of the atomizer and the terminal device.

[0045] Specifically, a mapping relationship exists between image adjustment data and operating parameters. After the atomizer sends the operating parameters to the terminal device, the terminal device obtains the corresponding image adjustment data according to the mapping relationship. It should be noted that the image adjustment data in this embodiment is used to adjust the pixels of a first region in a first image, where the first region is a part of the first image. The image adjustment data may include descriptive information and pixel data of the first region. The descriptive information is a unique identifier for the first region, used to indicate to the atomizer that it identifies the first region in the first image. The pixel data may be the target pixel value corresponding to the first region, or it may be the amount of pixel value change. When the pixel data is a pixel value variable, the image data also includes the pixel value change trend, such as whether the pixel value is increasing or decreasing.

[0046] After receiving image adjustment data from the terminal device, the atomizer determines a first region from the first image based on the description information. If the pixel data is the target pixel value, the current pixel value of the first region is modified to the target pixel value. If the pixel value is the amount of pixel value change, the atomizer modifies the current pixel value of the first region according to the pixel value change trend and the amount of pixel value change.

[0047] After adjusting the first region in the first image based on the image adjustment data, the modified first region is re-embedded into the first image to form a complete updated image. Specifically, the adjusted first region can be overlaid back onto the corresponding position in the first image, or different weights can be assigned to the first region and the first image, and fusion can be achieved through weighted summation to make the fusion between the modified first region and the first image more natural and without obvious synthetic traces.

[0048] The updated first image is converted to a format supported by the display device, and then drawn on the atomizer's display device according to the display device's corresponding graphics library. It should be noted that the atomizer's buffer always stores the latest image; after updating the first image, the updated first image overwrites the latest image in the atomizer's buffer. The display device may include a display screen or indicator lights.

[0049] In this embodiment, based on user operations on the atomizer, the atomizer adjusts its operating parameters. A built-in sensor monitors these parameters, which are then sent to a terminal device. The terminal device then receives image adjustment data determined based on these parameters. This image adjustment data instructs the atomizer to adjust the pixels of a portion of the currently displayed first image, specifically a specific area. The updated first image is then displayed. Adjusting the atomizer's operating parameters based on user behavior satisfies diverse user needs. Receiving the image adjustment data from the terminal device, which adjusts pixels in a specific area of ​​the first image, reduces data transmission time between the terminal device and the atomizer, improving data transmission efficiency. The atomizer adjusts a specific area of ​​the first image based on the image adjustment data, improving image processing efficiency.

[0050] In some examples, updating and displaying the first image based on the image adjustment data includes:

[0051] Step S11: Determine the area to be adjusted in the first image based on the location information;

[0052] Step S12: Adjust each pixel in the area to be adjusted according to the pixel value corresponding to the at least one pixel.

[0053] The image adjustment data includes: location information and pixel values ​​corresponding to at least one pixel.

[0054] It should be noted that the location information is transmitted from the terminal device to the atomizer and is used to determine the coordinates of the area to be adjusted. The location information can be the location information of at least one pixel, or it can be the location information of the entire area. When the location information is the location information of at least one pixel, the area formed by that pixel can be directly determined as the area to be adjusted, or the area can be expanded from the area formed by that pixel. This area may contain empty points where the terminal device has not provided pixel values. When the location information is the location information of the entire area, it can be the coordinate data corresponding to the boundary of that area.

[0055] For example, the terminal sends the coordinates of three pixels (10, 20), (15, 25), and (20, 20). The area to be adjusted is the set of these three pixels. Adjusting the area to be adjusted means adjusting these three pixels. Alternatively, the terminal sends the three pixels (10, 20), (15, 25), and (20, 20), calculates its minimum bounding rectangle as x = 10~20, y = 20~25, and after expanding by 5 pixels, the area to be adjusted becomes x = 5~25, y = 15~30.

[0056] If the terminal device does not explicitly provide the pixel values ​​for the newly added area after expansion, the pixel values ​​of the holes can be estimated using an interpolation algorithm. This means estimating the pixel values ​​of the holes based on the known pixel distribution patterns. Specifically, the pixel value of a hole is taken as the value of its nearest known point, or calculated as a weighted average of the N known points surrounding the hole. Example: If the hole (12, 23) is closest to the known point (10, 20), then its pixel value is directly taken as the value of (10, 20). Or, given the points (10, 20), (15, 20), (10, 25), and (15, 25), when calculating the pixel value of (12, 23), a weighted average of the values ​​of these four points is calculated based on distance weights.

[0057] When the terminal device sends shape parameters indicating a square, the area to be adjusted is defined by the coordinates of the top-left corner (x1, y1) and the bottom-right corner (x2, y2). For example, if the terminal sends x1 = 50, y1 = 50, x2 = 100, y2 = 100, the area to be adjusted is a 50×50 square. This is defined by multiple vertex coordinates [(x1, y1), (x2, y2), ..., (xn, yn)]. For example, if the terminal sends triangle vertices (50, 50), (100, 50), and (75, 100), the area to be adjusted is the region covered by that triangle.

[0058] The shape of the area to be adjusted can be arbitrary, including circular, rectangular, and polygonal regions. Image adjustment data may also include shape parameters to indicate the shape of the area. Pixel values ​​can be in RGB format or grayscale. The terminal device sends a list of pixel values ​​corresponding to the number of pixels in the area to be adjusted to the atomizer. For example, if the area to be adjusted is 100×100 pixels, then 10,000 RGB values ​​are transmitted, and each pixel value must be strictly aligned with the coordinate order in the position information. Through pixel adjustment, the area to be adjusted can be switched to different patterns, its color changed, its color intensity adjusted, or its brightness altered.

[0059] In this embodiment, the atomizer determines the area to be adjusted in the first image based on the location information sent by the terminal device, and adjusts each pixel in the area to be adjusted according to the pixel value corresponding to at least one pixel. Adjusting the area to be adjusted in the first image improves image processing efficiency, and adjusting on a pixel-by-pixel basis improves image processing accuracy.

[0060] In some examples, determining the operating parameters of the atomizer based on user actions on the atomizer includes at least one of the following:

[0061] Step S21: Determine the output power of the atomizer based on the air pressure in the air passage of the atomizer monitored by the airflow sensor in the atomizer;

[0062] Step S22: Determine the working mode of the atomizer based on the user's operation on the display interface of the atomizer, and determine the corresponding working parameters based on the working mode.

[0063] In this embodiment, the nebulizer dynamically adjusts its output power by monitoring the airway pressure during user breathing, such as pressure changes during inhalation / exhalation, to adapt to different users' breathing habits and improve nebulization efficiency and comfort. Specifically, a pressure sensor is integrated into the airway of the nebulizer to monitor airway pressure fluctuations in real time. The sensor needs to have high sensitivity and fast response characteristics to capture subtle pressure changes during the breathing cycle. A pre-established correspondence between air pressure values ​​and output power is used to adjust the output power according to the airway pressure. With different output power levels, the terminal device determines the effect displayed on the nebulizer based on the output power. To enhance the entertainment value of the nebulizer, the flame animation on the nebulizer display can be highlighted, its color changed, and the effect enhanced as the output power increases. For example, when a user inhales, the nebulizer can adjust its real-time output power from 15W to 25W, and the nebulizer sends its operating parameters to the terminal device, which then determines the corresponding image adjustment data based on the output power.

[0064] Users manually select the working mode through the atomizer's local interface, such as temperature control mode or racing mode. The atomizer automatically matches preset working parameters, such as atomization rate, running time, and spray interval, based on the working mode and sends these parameters to the terminal device.

[0065] It should be noted that some of the atomizer's operating parameters are not directly determined by user operation; they can also be related to user operation and the device's operating status. For example, changes in the duration or power of atomizer use will alter the atomizer's remaining battery power and operating temperature. Furthermore, the operating parameters sent by the atomizer to the terminal device are not only directly altered by user operation, but can also be indirectly affected by user behavior, or caused by device malfunctions or abnormalities.

[0066] In this embodiment, when a user uses the atomizer for vaping, the atomizer adjusts its output power and determines its operating mode based on the user's actions on the interactive interface. The atomizer's operating parameters are adjusted accordingly based on different user operations, flexibly meeting the diverse needs of the user.

[0067] In some examples, the method further includes:

[0068] Step S31: Decode the data packet to obtain the first change vector;

[0069] Step S32: Determine the position information and the pixel value corresponding to the at least one pixel point based on the first change vector.

[0070] The image adjustment data is an encoded data packet. This data packet, sent by the terminal device, contains pixel-level adjustments to the image displayed on the atomizer, and is compressed or encoded to improve transmission efficiency.

[0071] In this embodiment, when the image adjustment data is an encoded data packet, the data packet may include the following: a packet header, a data length, an encoded change vector, and a checksum. The packet header identifies the data type, distinguishing the image adjustment data from other data; the data length indicates the number of bytes in the first change vector; the encoded change vector is a compressed or encoded binary sequence of the image adjustment data; and the checksum is used to detect whether errors occurred during data transmission. When the image adjustment data uses a compression algorithm to change the first change vector, the atomizer needs to decompress the data to restore the original first change vector. Specifically, the decompression method corresponds to the compression method.

[0072] In this embodiment, the image adjustment data is an encoded data packet, which further reduces the bandwidth occupied by image interaction between the terminal device and the atomizer, reduces communication time, and improves image processing efficiency.

[0073] In summary, the image processing method provided in this application can determine the operating parameters of the atomizer based on the user's operations on the atomizer. The atomizer has a built-in sensor that monitors the operating parameters and sends them to a terminal device. The terminal device then receives image adjustment data determined based on the operating parameters. This image adjustment data is used to instruct pixel adjustments to the first image currently displayed on the atomizer; specifically, it adjusts pixels in a portion of the first image. The updated first image is then updated and displayed. Adjusting the atomizer's operating parameters based on user behavior satisfies diverse user needs. By receiving the image adjustment data sent by the terminal device for pixel adjustments in a portion of the first image, the time spent on data transmission between the terminal device and the atomizer is reduced, improving data transmission efficiency. The image adjustment data can be a compressed data packet, further reducing communication time during image interaction between the terminal device and the atomizer, thus improving image processing efficiency. Furthermore, the image adjustment data can include location information and the pixel value of at least one pixel. The atomizer determines the area to be adjusted based on the location information and adjusts each pixel in the area based on the pixel value. It can more accurately identify certain regions in the first image and make adjustments on a pixel-by-pixel basis, thereby improving image processing accuracy.

[0074] Reference Figure 2 The diagram illustrates a flowchart of an embodiment of an image processing method according to this application. The method is applied to a terminal device and may specifically include the following steps:

[0075] Step 201: Receive the operating parameters sent by the atomizer;

[0076] Step 202: Determine image adjustment data based on the operating parameters and the first image currently displayed by the atomizer; the image adjustment data is used to indicate pixel adjustment of the first image currently displayed in the atomizer;

[0077] Step 203: The image adjustment data is transmitted to the atomizer so that the atomizer updates and displays the first image according to the image adjustment data.

[0078] It should be noted that there is a mapping relationship between the operating parameters and the areas where pixel adjustments are made in the first image. Therefore, the terminal device determines the corresponding area based on the operating parameters. For example, the device's real-time output power may increase from 15W to 25W, causing the flame animation on the display to brighten, change color, and enhance its effect. After the atomizer switches from "Temperature Control Mode" to "Competition Mode," the border or icon color on the screen changes to indicate the current status. The adjustment area involves layer color / icon switching, while other patterns in the first image remain unchanged. If the atomizer's operating temperature exceeds the preset temperature threshold, or the remaining battery power is lower than the preset value, a small icon or prompt layer will pop up on the atomizer's display screen. The flame animation, icon switching, and pop-up small icon are all located in different areas and have different content.

[0079] It's important to note that after receiving the operating parameters, the terminal device can parse them according to preset rules to determine whether the atomizer's currently displayed first image needs adjustment; it doesn't necessarily adjust pixels based on the operating parameters. For example, image adjustment data with a pop-up warning icon will only be sent to the atomizer when the atomizer's operating temperature exceeds a preset temperature threshold; similarly, image adjustment data with a pop-up warning icon will only be sent when the atomizer's remaining battery power is below a preset battery power threshold. For instance, when the remaining battery power is less than 20%, a "low battery warning" logic is triggered, which then sends image adjustment data containing a "low battery warning" icon to the atomizer.

[0080] In some embodiments, the atomizer in this application includes a display screen and an LED ring. The terminal device controls the content displayed on the display screen and the LED ring independently, and the control conditions can be different or the same. When the control conditions are the same, for example, when a user inhales, the atomizer's airflow sensor detects a decrease in the airway pressure and adjusts the atomizer's output power. The atomizer sends the output power to the terminal device, which then sends two image adjustment data sets: one for controlling the image displayed on the display screen and the other for controlling the image displayed on the LED ring. For example, the atomizer's output power may increase from 15W to 25W. The terminal device uses the image adjustment data to control the flame animation on the display screen to become brighter, change color, and enhance the effect; the LED ring provides inhalation feedback, and its lighting effect flashes with color or brightness according to the inhalation intensity.

[0081] In this embodiment, the device can receive operating parameters sent by the atomizer; determine image adjustment data based on the operating parameters and the first image currently displayed by the atomizer; and transmit the image adjustment data to the atomizer so that the atomizer updates and displays the first image according to the image adjustment data. The image adjustment data is used to instruct pixel adjustments to a portion of the first image currently displayed in the atomizer, reducing the time spent on data transmission between the terminal device and the atomizer, and improving data transmission efficiency.

[0082] In some examples, determining image adjustment data based on the operating parameters and the first image currently displayed by the atomizer includes:

[0083] Step S41: Determine the second image corresponding to the working parameters from the pre-configured image library;

[0084] Step S42: Based on the comparison results between the first image and the second image, determine the image adjustment data in which the second image differs from the first image.

[0085] It should be noted that, in this embodiment, since the operating parameter range of the atomizer is known, a corresponding image can be pre-configured for each operating parameter of the atomizer. The terminal device stores the last image transmitted to the atomizer, which is the first image currently displayed by the atomizer. After receiving the operating parameters of the atomizer, the terminal device calls the corresponding second image. The first image and the second image are compared to determine the image data that differs between the second image and the first image. The complete data of the second image is not sent to the atomizer; only the data in the second image that differs from the first image is sent to the atomizer.

[0086] In this embodiment, an image library is pre-configured for each operating parameter of the atomizer. After receiving the operating parameters, the second image corresponding to the operating parameters is determined. The first image currently displayed by the atomizer and the second image are compared to determine the image adjustment data that differs between the second image and the first image. Only the image adjustment data that differs in the second image is sent to the atomizer, instead of sending the second image to the atomizer. This reduces the communication time for image transmission between the atomizer and the terminal device and reduces the bandwidth occupied by data transmission.

[0087] In some examples, determining image adjustment data based on the comparison results of the first image and the second image includes:

[0088] Step S51: For each pixel in the first image, determine the difference between the first pixel value corresponding to the pixel and the second pixel value corresponding to the pixel at the same position in the second image;

[0089] Step S52: If the difference is greater than or equal to a preset threshold, the pixel in the second image is determined as the third pixel.

[0090] Step S53: Determine image adjustment data based on at least one third pixel.

[0091] In comparing the first and second images, the comparison is performed on a pixel-by-pixel basis. It should be noted that the first and second images are identical in size and contain the same number of pixels, thus enabling the comparison of individual pixels in the first image with pixels at the same positions in the second image.

[0092] In the case where both the first and second images are single-channel images, the pixel value is a grayscale value. If both images are multi-channel images, the pixel value can be an RGB value. When the pixel value is a grayscale value (0-255), the difference between the first and second pixels can be the absolute difference or the difference of the squares of two values. When the pixel value is an RGB value, the differences between each channel need to be calculated, and then weighted or the maximum value is taken as the final difference.

[0093] By setting a preset threshold, if the difference in pixel value between two pixels is greater than or equal to the preset threshold, the second pixel in the second image is determined as the third pixel, and image adjustment data is determined based on at least one pixel. By setting the threshold, minor differences, such as noise and compression artifacts, are filtered out, while the significantly changed third pixel is retained, reducing the amount of data in subsequent processing.

[0094] In this embodiment of the application, in the process of determining the image adjustment data that differs between the second image and the first image, the comparison is made on a pixel-by-pixel basis to improve the image processing accuracy. Furthermore, by setting a threshold, some pixels with slight differences are filtered out. The image adjustment data is determined based on the pixels with obvious differences, which can filter noise and improve the efficiency of data transmission.

[0095] In some examples, determining image adjustment data based on the operating parameters and the first image currently displayed by the atomizer includes:

[0096] Step S61: Determine the adjustment strategy based on the changes in the operating parameters;

[0097] Step S62: According to the adjustment strategy, determine the position information of the region to be adjusted in the first image and the pixel value corresponding to at least one pixel in the region to be adjusted;

[0098] Step S63: Generate the image adjustment data based on the location information and the pixel value corresponding to the at least one pixel.

[0099] In this embodiment, the strategy for adjusting the first image is related to changes in operating parameters. For example, if the atomizer's output power increases, the brightness of the flame animation on the atomizer display increases. If the atomizer's output power decreases, the brightness of the flame animation on the atomizer display decreases.

[0100] Based on the adjustment strategy, the terminal device determines the area on the atomizer display that needs to be adjusted, as well as the pixel value of each pixel in the area.

[0101] In this embodiment, an adjustment strategy is determined based on changes in the working parameters; based on the adjustment strategy, the location information of the region to be adjusted in the first image and the pixel value corresponding to at least one pixel in the region to be adjusted are determined; the adjustment strategy is determined through the correspondence between changes in the working parameters and the adjustment strategy; based on the adjustment strategy, the specific region to be adjusted and the pixel value corresponding to at least one pixel are determined, and image adjustment data is generated, thereby improving the response speed to changes in working parameters.

[0102] In some examples, transmitting the image adjustment data to the atomizer so that the atomizer updates and displays the first image based on the image adjustment data includes:

[0103] Step S71: Encode the image adjustment data to obtain a data packet;

[0104] Step S72: Transmit the data packet to the atomizer so that the atomizer updates and displays the first image based on the data packet.

[0105] In this embodiment of the application, after determining the image adjustment data, the terminal device encodes the image adjustment data according to a compression algorithm, such as using a fast aggregation algorithm or RLE aggregation code, to reduce the bandwidth occupied during transmission.

[0106] The image processing method provided in this application embodiment is applied to a terminal device. It can receive operating parameters sent by an atomizer; determine image adjustment data based on the operating parameters and a first image currently displayed by the atomizer; and transmit the image adjustment data to the atomizer so that the atomizer updates and displays the first image according to the image adjustment data. The image adjustment data is used to instruct pixel adjustments to a portion of the first image currently displayed in the atomizer, reducing the time spent on data transmission between the terminal device and the atomizer and improving data transmission efficiency. Specifically, an image library is pre-configured for each operating parameter of the atomizer. After receiving the operating parameters, a second image corresponding to the operating parameters is determined. The first image currently displayed by the atomizer and the second image are compared to determine image adjustment data where the second image differs from the first image. Only the image adjustment data where the second image differs is sent to the atomizer, instead of sending the second image directly to the atomizer, reducing the communication time for image transmission between the atomizer and the terminal device and reducing the bandwidth occupied by the data. In determining image adjustment data that differs between the second and first images, comparisons are made at the pixel level to improve image processing accuracy. Furthermore, by setting thresholds, pixels with minor differences are filtered out. Image adjustment data is then determined based on these clearly distinguishable pixels, which filters noise and improves data transmission efficiency. The image adjustment data can also be encoded and transmitted as data packets. Compression of the image adjustment data further reduces the bandwidth required for data transmission.

[0107] Device Examples

[0108] Reference Figure 3 The diagram shows a structural block diagram of an image processing apparatus according to this application. The apparatus is applied to an atomizer and may specifically include:

[0109] The parameter determination module is used to determine the operating parameters of the atomizer based on the user's operation on the atomizer;

[0110] A parameter sending module is used to send the working parameters to the terminal device;

[0111] An image receiving module is used to receive image adjustment data sent by the terminal device; the image adjustment data is data determined according to the operating parameters, used to instruct pixel adjustment of the first image currently displayed in the atomizer;

[0112] An update module is used to update and display the first image based on the image adjustment data.

[0113] In some examples, the update module includes:

[0114] The region determination module is used to determine the region to be adjusted in the first image based on the location information;

[0115] The pixel adjustment module is used to adjust each pixel in the area to be adjusted according to the pixel value corresponding to the at least one pixel.

[0116] In some examples, the parameter determination module includes:

[0117] The power determination module is used to determine the output power of the atomizer based on the air pressure in the air passage of the atomizer monitored by the airflow sensor in the atomizer.

[0118] The mode determination module determines the working mode of the atomizer based on the user's operation on the atomizer's display interface, and determines the corresponding working parameters based on the working mode.

[0119] In some examples, the device further includes:

[0120] A decoding module is used to decode the data packet to obtain a first change vector;

[0121] The information determination module is used to determine the position information and the pixel value corresponding to the at least one pixel point based on the first change vector.

[0122] In summary, the image processing apparatus provided in this application embodiment, applied to an atomizer, can determine the atomizer's operating parameters based on user operations on the atomizer. The atomizer has a built-in sensor that monitors the operating parameters and sends them to a terminal device, receiving image adjustment data determined by the terminal device based on the operating parameters. This image adjustment data is used to instruct pixel adjustments to the first image currently displayed on the atomizer; specifically, it involves pixel adjustments to a portion of the first image. The updated first image is then updated and displayed. Adjusting the atomizer's operating parameters based on user behavior satisfies diverse user needs. By receiving image adjustment data sent by the terminal device for pixel adjustments to a portion of the first image, the time spent on data transmission between the terminal device and the atomizer is reduced, improving data transmission efficiency. The image adjustment data can be a compressed data packet, further reducing communication time during image interaction between the terminal device and the atomizer, thus improving image processing efficiency. Furthermore, the image adjustment data may include location information and the pixel value of at least one pixel. The atomizer determines the area to be adjusted based on the location information and adjusts each pixel in the area based on the pixel value. It can more accurately identify certain regions in the first image and make adjustments on a pixel-by-pixel basis, thereby improving image processing accuracy.

[0123] Reference Figure 4The diagram illustrates a structural block diagram of an image processing apparatus according to this application. The apparatus is applied to a terminal device and may specifically include:

[0124] The parameter receiving module is used to receive the operating parameters sent by the atomizer;

[0125] An image determination module is used to determine image adjustment data based on the operating parameters and a first image currently displayed by the atomizer; the image adjustment data is used to instruct pixel adjustments to the first image currently displayed in the atomizer.

[0126] An image sending module is used to transmit the image adjustment data to the atomizer, so that the atomizer updates and displays the first image according to the image adjustment data.

[0127] In some examples, the image determination module includes:

[0128] The second image determination module is used to determine the second image corresponding to the working parameters from a pre-configured image library;

[0129] The comparison module is used to determine image adjustment data in which the second image differs from the first image based on the comparison results between the first image and the second image.

[0130] In some examples, the comparison module includes:

[0131] The difference determination module is used to determine the difference between the first pixel value corresponding to each pixel in the first image and the second pixel value corresponding to the pixel at the same position in the second image for each pixel in the first image;

[0132] A pixel determination module is used to determine a pixel in the second image as a third pixel when the difference is greater than or equal to a preset threshold.

[0133] The first generation module is used to determine image adjustment data based on at least one third pixel.

[0134] In some examples, the image determination module includes:

[0135] The strategy determination module is used to determine the adjustment strategy based on the changes in the operating parameters;

[0136] The information determination module is used to determine the position information of the region to be adjusted in the first image and the pixel value corresponding to at least one pixel in the region to be adjusted, according to the adjustment strategy.

[0137] The second generation module is used to generate the image adjustment data based on the location information and the pixel value corresponding to the at least one pixel.

[0138] In some examples, the device further includes:

[0139] The encoding module is used to encode the image adjustment data to obtain a data packet;

[0140] The image sending module includes:

[0141] The data packet sending module transmits the data packet to the atomizer, so that the atomizer updates and displays the first image based on the data packet.

[0142] In summary, the image processing apparatus provided in this application embodiment, applied to a terminal device, can receive operating parameters sent by an atomizer; determine image adjustment data based on the operating parameters and a first image currently displayed by the atomizer; and transmit the image adjustment data to the atomizer so that the atomizer updates and displays the first image according to the image adjustment data. The image adjustment data is used to instruct pixel adjustments to a portion of the first image currently displayed in the atomizer, reducing the time spent on data transmission between the terminal device and the atomizer, and improving data transmission efficiency. Specifically, an image library is pre-configured for each operating parameter of the atomizer. After receiving the operating parameters, a second image corresponding to the operating parameters is determined. The first image currently displayed by the atomizer and the second image are compared to determine image adjustment data where the second image differs from the first image. Only the image adjustment data where the second image differs is sent to the atomizer, instead of sending the second image itself, thus reducing the communication time for image transmission between the atomizer and the terminal device and reducing the bandwidth occupied by the data. In determining image adjustment data that differs between the second and first images, comparisons are made at the pixel level to improve image processing accuracy. Furthermore, by setting thresholds, pixels with minor differences are filtered out. Image adjustment data is then determined based on these clearly distinguishable pixels, which filters noise and improves data transmission efficiency. The image adjustment data can also be encoded and transmitted as data packets. Compression of the image adjustment data further reduces the bandwidth required for data transmission.

[0143] Reference Figure 5 This is a structural block diagram of an electronic device for image processing provided in an embodiment of this application. Figure 5 As shown, the electronic device includes: a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store executable instructions, which cause the processor to execute the image processing method of the aforementioned embodiment.

[0144] The processor can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable devices, transistor logic devices, hardware components, or any combination thereof. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.

[0145] The communication bus may include a path for transmitting information between the memory and the communication interface. The communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The symbol is represented by only one line, but this does not mean that there is only one bus or one type of bus.

[0146] This application also provides a non-transitory computer-readable storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device (server or terminal), enables the processor to perform... Figure 1 or Figure 2 The image processing method shown.

[0147] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0148] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0149] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0150] These computer program instructions may also be stored in a computer-readable storage medium capable of directing a computer or other programmable data processing terminal device to operate in a predictive manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0151] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0152] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.

[0153] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0154] The above provides a detailed description of an image processing method, apparatus, electronic device, and readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An image processing method, characterized in that, Applied to an atomizer, the method includes: The operating parameters of the atomizer are determined based on the user's operation on the atomizer; Send the operating parameters to the terminal device; The device receives image adjustment data sent by the terminal device; the image adjustment data is data determined according to the operating parameters, used to instruct pixel adjustment of the first image currently displayed in the atomizer; The first image is updated and displayed based on the image adjustment data.

2. The method according to claim 1, characterized in that, The image adjustment data includes: location information and pixel values ​​corresponding to at least one pixel. Updating and displaying the first image based on the image adjustment data includes: Based on the location information, determine the area to be adjusted in the first image; Adjust each pixel in the region to be adjusted based on the pixel value corresponding to the at least one pixel.

3. The method according to claim 1, characterized in that, The process of determining the operating parameters of the atomizer based on the user's operation on the atomizer includes at least one of the following: The output power of the atomizer is determined based on the air pressure in the air passage of the atomizer monitored by the airflow sensor in the atomizer. Based on the user's operation on the atomizer's display interface, the atomizer's operating mode is determined, and the corresponding operating parameters are determined based on the operating mode.

4. The method according to claim 2, characterized in that, The method further includes: The data packet is decoded to obtain the first change vector; Based on the first change vector, the location information and the pixel value corresponding to the at least one pixel are determined.

5. An image processing method, characterized in that, Applied to a terminal device, the method includes: Receive operating parameters sent by the atomizer; Image adjustment data is determined based on the operating parameters and the first image currently displayed by the atomizer; the image adjustment data is used to instruct pixel adjustments to the first image currently displayed in the atomizer. The image adjustment data is transmitted to the atomizer so that the atomizer updates and displays the first image based on the image adjustment data.

6. The method according to claim 5, characterized in that, The step of determining image adjustment data based on the operating parameters and the first image currently displayed by the atomizer includes: Determine the second image corresponding to the operating parameters from a pre-configured image library; Based on the comparison results between the first image and the second image, image adjustment data is determined to be different between the second image and the first image.

7. The method according to claim 6, characterized in that, The step of determining image adjustment data based on the comparison results of the first image and the second image includes: For each pixel in the first image, determine the difference between the first pixel value corresponding to the pixel and the second pixel value corresponding to the pixel at the same position in the second image; If the difference is greater than or equal to a preset threshold, the pixel in the second image is determined as the third pixel. Image adjustment data is determined based on at least one third pixel.

8. The method according to claim 5, characterized in that, The step of determining image adjustment data based on the operating parameters and the first image currently displayed by the atomizer includes: Based on the changes in the operating parameters, determine the adjustment strategy; According to the adjustment strategy, the position information of the region to be adjusted in the first image and the pixel value corresponding to at least one pixel in the region to be adjusted are determined. The image adjustment data is generated based on the location information and the pixel value corresponding to the at least one pixel.

9. The method according to claim 6, characterized in that, The method further includes: The image adjustment data is encoded to obtain a data packet; The step of transmitting the image adjustment data to the atomizer, so that the atomizer updates and displays the first image according to the image adjustment data, includes: The data packet is transmitted to the atomizer so that the atomizer updates and displays the first image based on the data packet.

10. An image processing system, characterized in that, include: A terminal device and an atomizer, wherein a connection is established between the atomizer and the terminal device; The atomizer is capable of performing the image processing method as described in any one of claims 1 to 4, or the terminal device is capable of performing the image processing method as described in any one of claims 5 to 9.