CN112083906A - Method, processor, device and storage medium for displaying cooking progress - Google Patents
Method, processor, device and storage medium for displaying cooking progress Download PDFInfo
- Publication number
- CN112083906A CN112083906A CN202010866015.1A CN202010866015A CN112083906A CN 112083906 A CN112083906 A CN 112083906A CN 202010866015 A CN202010866015 A CN 202010866015A CN 112083906 A CN112083906 A CN 112083906A
- Authority
- CN
- China
- Prior art keywords
- data
- pixels
- display area
- pattern
- cooking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010411 cooking Methods 0.000 title claims abstract description 179
- 238000000034 method Methods 0.000 title claims abstract description 117
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 230000008569 process Effects 0.000 claims abstract description 74
- 230000006835 compression Effects 0.000 claims description 67
- 238000007906 compression Methods 0.000 claims description 67
- 238000005070 sampling Methods 0.000 claims description 22
- 230000000694 effects Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 8
- 230000003321 amplification Effects 0.000 description 7
- 238000003199 nucleic acid amplification method Methods 0.000 description 7
- 235000013305 food Nutrition 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 239000006096 absorbing agent Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000006233 lamp black Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003796 beauty Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47J—KITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
- A47J27/00—Cooking-vessels
- A47J27/002—Construction of cooking-vessels; Methods or processes of manufacturing specially adapted for cooking-vessels
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47J—KITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
- A47J36/00—Parts, details or accessories of cooking-vessels
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47J—KITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
- A47J36/00—Parts, details or accessories of cooking-vessels
- A47J36/32—Time-controlled igniting mechanisms or alarm devices
Landscapes
- Engineering & Computer Science (AREA)
- Food Science & Technology (AREA)
- Theoretical Computer Science (AREA)
- Manufacturing & Machinery (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention provides a method, a processor, a device and a storage medium for displaying cooking progress, and belongs to the field of electric appliances. The method for displaying the cooking progress includes: determining a data amount of data acquired during the cooking process; determining the number of pixels of a display area for displaying a cooking progress in a width direction; the pattern formed based on the data is scaled in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area. The method of the invention can enhance the display effect.
Description
Technical Field
The invention relates to the field of electric appliances, in particular to a method, a processor, a device and a storage medium for displaying cooking progress.
Background
At present, in the cooking process of food, a user pays more attention to cooking time information and cooking firepower information of the food, the cooking process is different due to different recipes of different foods, and the corresponding cooking firepower, the cooking time and other cooking information are different. Therefore, the cooking data acquired by the household appliance in different cooking processes are different, and the size of the image display area of the display screen of the household appliance is fixed, so that the widths of the patterns related to the cooking processes displayed on the image display area of the display screen of the conventional household appliance are different, and the problem of poor display effect exists.
Disclosure of Invention
An embodiment of the invention provides a method, a processor, a device, a household appliance and a storage medium for displaying cooking progress, so as to solve the problem of poor display effect of the existing method for displaying cooking progress.
In order to achieve the above object, a first aspect of the present invention provides a method for displaying a cooking progress, comprising:
determining a data amount of data acquired during the cooking process;
determining the number of pixels of a display area for displaying a cooking progress in a width direction;
the pattern formed based on the data is scaled in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area.
In an embodiment of the present invention, scaling a pattern formed based on data in a width direction according to a data number and a pixel number to make the pattern fit to a display area includes: comparing the number of data with the number of pixels; under the condition that the data quantity is determined to be larger than the pixel quantity, determining the compression multiple of the data quantity according to the data quantity and the pixel quantity; the data is assigned to the corresponding pixel columns according to the compression factor to obtain a pattern associated with the data that fits into the display area.
In an embodiment of the present invention, assigning data to corresponding pixel columns according to the compression factor to obtain a pattern adapted to the display area associated with the data includes: dividing the data into a plurality of groups in the case that the compression multiple is a positive integer, wherein the number of data in each group is the compression multiple; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In an embodiment of the present invention, assigning data to corresponding pixel columns according to the compression factor to obtain a pattern adapted to the display area associated with the data includes: determining a quotient and a remainder of division of the number of data and the number of pixels in the case where the compression multiple is a fractional number; dividing the data into a first group and a second group, wherein the number of the data in the first group is the quotient plus 1, the number of the first group is the remainder, and the number of the data in the second group is the quotient; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In an embodiment of the invention, the first packet precedes the second packet.
In an embodiment of the present invention, scaling a pattern formed based on data in a width direction according to a data number and a pixel number to make the pattern fit to a display area includes: comparing the number of data with the number of pixels; under the condition that the data quantity is smaller than the pixel quantity, determining the magnification factor of the data quantity according to the data quantity and the pixel quantity; the data are assigned to the corresponding pixel columns according to the magnification to obtain a pattern associated with the data that fits into the display area.
In an embodiment of the present invention, assigning data to corresponding pixel columns according to magnification to obtain a pattern adapted to a display area associated with the data comprises: dividing the pixels into a plurality of groups in the case that the magnification is a positive integer, wherein the number of pixels in each group is the magnification; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In an embodiment of the present invention, assigning data to corresponding pixel columns according to magnification to obtain a pattern adapted to a display area associated with the data comprises: determining a quotient and a remainder of division of the number of pixels by the number of data in the case where the magnification factor is a fractional number; dividing the pixels into a third group and a fourth group, wherein the number of the pixels in the third group is the quotient plus 1, the number of the pixels in the third group is the remainder, and the number of the pixels in the fourth group is the quotient; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In an embodiment of the invention, the third packet precedes the fourth packet.
In an embodiment of the present invention, determining the data amount of the data acquired during the cooking process includes: determining a cooking time of the cooking process; determining a sampling period of the acquired data; the data amount is determined according to the cooking time and the sampling period.
In an embodiment of the invention, the data comprises at least one of: cooking firepower, the bottom temperature of a cooking appliance, the air volume of a range hood and the air pressure of the range hood.
A second aspect of the invention provides a processor configured to perform the method for displaying cooking progress of any one of the above.
A third aspect of the present invention provides an apparatus for displaying a cooking progress, comprising:
a display screen; and
a processor configured to:
determining a data amount of data acquired during the cooking process;
determining the number of pixels of a display area for displaying a cooking progress in a width direction;
the pattern formed based on the data is scaled in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area.
In an embodiment of the invention, the processor is further configured to: comparing the number of data with the number of pixels; under the condition that the data quantity is determined to be larger than the pixel quantity, determining the compression multiple of the data quantity according to the data quantity and the pixel quantity; the data is assigned to the corresponding pixel columns according to the compression factor to obtain a pattern associated with the data that fits into the display area.
In an embodiment of the invention, the processor is further configured to: dividing the data into a plurality of groups in the case that the compression multiple is a positive integer, wherein the number of data in each group is the compression multiple; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In an embodiment of the invention, the processor is further configured to: determining a quotient and a remainder of division of the number of data and the number of pixels in the case where the compression multiple is a fractional number; dividing the data into a first group and a second group, wherein the number of the data in the first group is the quotient plus 1, the number of the first group is the remainder, and the number of the data in the second group is the quotient; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In an embodiment of the invention, the first packet precedes the second packet.
In an embodiment of the invention, the processor is further configured to: comparing the number of data with the number of pixels; under the condition that the data quantity is smaller than the pixel quantity, determining the magnification factor of the data quantity according to the data quantity and the pixel quantity; the data are assigned to the corresponding pixel columns according to the magnification to obtain a pattern associated with the data that fits into the display area.
In an embodiment of the invention, the processor is further configured to: dividing the pixels into a plurality of groups in the case that the magnification is a positive integer, wherein the number of pixels in each group is the magnification; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In an embodiment of the invention, the processor is further configured to: determining a quotient and a remainder of division of the number of pixels by the number of data in the case where the magnification factor is a fractional number; dividing the pixels into a third group and a fourth group, wherein the number of the pixels in the third group is the quotient plus 1, the number of the pixels in the third group is the remainder, and the number of the pixels in the fourth group is the quotient; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In an embodiment of the invention, the third packet precedes the fourth packet.
In an embodiment of the invention, the processor is further configured to: determining a cooking time of the cooking process; determining a sampling period of the acquired data; the data amount is determined according to the cooking time and the sampling period.
In an embodiment of the invention, the data comprises at least one of: cooking firepower, the bottom temperature of a cooking appliance, the air volume of a range hood and the air pressure of the range hood.
A fourth aspect of the present invention provides a household appliance comprising the device for displaying cooking progress of any one of the above.
A fifth aspect of the present invention provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to perform the method for displaying cooking progress of any one of the above.
According to the method for displaying the cooking progress, the data quantity of the data acquired in the cooking process and the pixel quantity of the display area for displaying the cooking progress in the width direction are determined, and the pattern formed based on the data is zoomed in the width direction according to the data quantity and the pixel quantity, so that the pattern is adapted to the display area. Based on the data quantity of the cooking process and the pixel quantity in the width direction of the display area, the pattern corresponding to the data of the cooking process is obtained, the purpose of displaying the patterns with different data quantities on a fixed display screen is achieved, diversified cooking requirements of users are met, the consistency of the width of the output real-time curve is guaranteed, and the display effect of a display interface is improved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a schematic flow chart diagram of a method for displaying cooking progress in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart illustrating the steps of determining the data quantity of data acquired during cooking according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a step of scaling a pattern formed based on data in a width direction according to the number of data and the number of pixels so that the pattern is adapted to a display area according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the steps of assigning data to corresponding pixel columns according to compression factors to obtain a pattern adapted to a display area associated with the data according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating the steps of assigning data to corresponding pixel columns according to compression factors to obtain a pattern adapted to a display area associated with the data according to another embodiment of the present invention;
FIG. 6 is a flowchart illustrating the steps of scaling the pattern formed based on the data in the width direction according to the number of data and the number of pixels to fit the pattern into the display area according to another embodiment of the present invention;
FIG. 7 is a flowchart illustrating the steps of assigning data to corresponding pixel columns according to magnification to obtain a pattern associated with the data that is adapted to a display area according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating the steps of assigning data to corresponding pixel columns according to magnification to obtain a pattern associated with the data that is adapted to a display area according to another embodiment of the present invention;
FIG. 9 is a flowchart illustrating a method for displaying cooking progress according to another embodiment of the present invention;
fig. 10 is a block diagram illustrating a structure of an apparatus for displaying a cooking progress according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
The embodiment of the invention provides a method for displaying cooking progress. Fig. 1 is a flowchart illustrating a method for displaying a cooking progress according to an embodiment of the present invention. As shown in fig. 1, in an embodiment of the present invention, a method for displaying a cooking progress is provided, which is described by taking the method as an example of being applied to a processor, and the method may include the steps of:
step S102, the data amount of the data acquired during the cooking process is determined.
It is understood that the data is cooking process related data detected or collected by the household appliance during the cooking process, such as cooking power data. The household appliances can comprise a gas cooker, a range hood, a smoke machine cooker, an integrated cooker and the like.
Specifically, after acquiring cooking related data information sent by the household appliance in the cooking process, the processor determines the data quantity corresponding to different data according to the cooking related data information.
In one embodiment, the data includes at least one of: cooking firepower, cooking utensil bottom temperature, lampblack absorber amount of wind and lampblack absorber wind pressure.
It can be understood that cooking firepower can be acquired through cooking firepower data sent by a cooking appliance, the bottom temperature of the cooking appliance can be acquired through temperature data sent by the cooking appliance or a temperature detection device such as an external temperature sensor, the air volume and the air pressure of the range hood can be acquired through air volume data and air pressure data sent by the range hood, and the data acquisition or sending can be realized in real time or at intervals of preset time.
Specifically, the processor acquires relevant data in the cooking process, wherein the relevant data can comprise at least one of cooking power data, cooking appliance bottom temperature data, range hood air volume data and range hood air pressure data sent by the household appliance in the cooking process.
In this embodiment, the processor forms different patterns corresponding to a series of cooking process related data sent by different household appliances in the cooking process by acquiring the cooking process related data, and displays the different patterns on the display area of the display screen of the cooking device separately or simultaneously.
In one embodiment, as shown in fig. 2, the determining the data amount of the data acquired during the cooking process may include the following steps S202 to S206:
in step S202, a cooking time of the cooking process is determined.
It can be understood that the cooking time is information on a length of time of a cooking process corresponding to the food to be cooked.
Specifically, the processor determines the cooking time corresponding to the cooking process in advance, and further, the processor may determine menu information corresponding to food to be cooked in advance according to a cooking instruction triggered or clicked by a user or the pre-stored cooking information of the last cooking process, so as to determine corresponding cooking time length information according to the menu information.
Step S204, determining the sampling period of the acquired data.
It is understood that the sampling period is an interval time during which the household appliance collects data related to the cooking process during the cooking process, for example, 2s is one sampling period.
Specifically, the processor determines a sampling period for acquiring the data related to the cooking process, wherein the sampling period may be set by the processor or set by the user.
In step S206, the number of data is determined according to the cooking time and the sampling period.
It is to be understood that the data amount is the amount of cooking process related data acquired in each sampling period in the cooking process, for example, the amount of cooking power data acquired in each sampling period in the cooking time length.
Specifically, the processor determines the data amount corresponding to the cooking process related data according to the cooking time of the cooking process and the sampling period of the cooking process related data.
In the embodiment, the cooking time and the sampling period are determined in advance, so that the data quantity of the relevant data of the cooking process is determined, the accuracy of the pattern data of the cooking process is ensured while the data redundancy degree is reduced, and the pattern of the relevant data of the cooking process is conveniently displayed on a fixed display area screen in the cooking process.
In step S104, the number of pixels in the width direction of the display area for displaying the cooking progress is determined.
It will be appreciated that the display area is located on a display screen, which may be located on any household appliance, for displaying the progress of the cooking process. The pixels of the display area may include pixels in a width direction and pixels in a height direction. The cooking progress is a dynamic change process in which parameters related to the cooking process change along with the change of time.
Specifically, the processor acquires the number of pixels of a display area on the household appliance, and further determines the number of pixels of the display area for displaying the cooking progress in the width direction, so as to realize image scaling in the width direction according to the number of pixels in the width direction, and enable output images with different widths to be adapted to the display area.
Further, in some embodiments, the processor may also determine the number of pixels in the height direction of a display area for displaying the cooking progress to implement image scaling in the height direction according to the number of pixels in the height direction, so that the output images of different heights may be adapted to the display area.
Step S106, the pattern formed based on the data is scaled in the width direction according to the data quantity and the pixel quantity, so that the pattern is adapted to the display area.
It is understood that the pattern formed based on the data may be an image such as a graph, a line graph, and a bar graph, for example, as an image generated from the data.
Specifically, the processor compresses and/or enlarges a pattern generated by the data acquired during the cooking process according to the data amount of the data acquired during the cooking process and the number of pixels of a display area for displaying the cooking progress in the width direction to show the processed pattern (e.g., a cooking curve) on the display area.
In the present embodiment, by determining the data amount of data acquired during cooking and the number of pixels in the width direction of the display area for displaying the cooking progress, the pattern formed based on the data is scaled in the width direction according to the data amount and the number of pixels so that the pattern fits to the display area. Based on the data quantity of the cooking process and the pixel quantity in the width direction of the display area, the pattern corresponding to the data of the cooking process is obtained, the purpose of displaying the patterns with different data quantities on a fixed display screen is achieved, diversified cooking requirements of users are met, the consistency of the width of the output real-time curve is guaranteed, and the display effect of a display interface is improved.
In one embodiment, as shown in fig. 3, scaling the pattern formed based on the data in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area includes the following steps S302 and S306:
in step S302, the number of data and the number of pixels are compared.
Specifically, the processor compares the magnitude of the number of data acquired during cooking with the number of pixels in the width direction of a display area for displaying the progress of cooking.
Step S304, under the condition that the data quantity is determined to be larger than the pixel quantity, determining the compression multiple of the data quantity according to the data quantity and the pixel quantity.
It will be appreciated that the compression factor is the factor by which the amount of data as a whole needs to be compressed.
Specifically, in the case that the data amount is determined to be greater than the pixel amount, the processor determines the compression multiple of the data amount according to the data amount and the pixel amount, and a specific calculation formula may be: where S is a compression multiple, W is the number of data, and N is the number of pixels, and for example, when the number of data is 200 and the number of pixels is 100, the compression multiple of the number of data is 200/100-2.
Specifically, when the processor determines that the number of data acquired in the cooking process is larger than the number of pixels in the width direction of a display area for displaying the cooking progress, the processor determines a quotient of the number of data and the number of pixels in the width direction, and determines the value of the quotient as a compression multiple of the whole number of data needing to be compressed.
Step S306, distributing the data to the corresponding pixel columns according to the compression multiple to obtain the pattern which is relevant to the data and is suitable for the display area.
It is understood that the pixel columns are pixels in the width direction, i.e., column elements in the pixel matrix.
Specifically, the processor sequentially averages the values of the data of the number corresponding to the continuous compression factors according to the compression factors, and sequentially allocates the obtained averages to the corresponding pixel columns to obtain the pattern which is relevant to the data acquired in the cooking process and is suitable for the display area.
In this embodiment, by comparing the data number and the pixel number, when it is determined that the data number is greater than the pixel number as a result of the comparison, the compression multiple of the data number is determined according to the data number and the pixel number, and the data is allocated to the pixel columns corresponding to the display region according to the compression multiple, so that the data is allocated to each pixel column without affecting the accuracy and the aesthetic property of the output pattern.
In one embodiment, as shown in fig. 4, assigning data to corresponding pixel columns according to compression factors to obtain a pattern adapted to a display area associated with the data includes the following steps S402 to S406:
in step S402, in the case where the compression factor is a positive integer, the data is divided into a plurality of packets, where the number of data in each packet is the compression factor.
Specifically, the processor determines the compression multiple after obtaining the compression multiple according to the number of data and the number of pixels, and divides the acquired data into a plurality of groups when determining that the compression multiple is a positive integer, where the grouping rule is that the number of data corresponding to each consecutive compression multiple is one group, for example, the compression multiple is 2, and every adjacent 2 data are one group.
In step S404, an average value of data in each packet is calculated.
Specifically, after determining the packets according to the compression factor, the processor sums the data in each packet and averages the data.
In step S406, the average value is assigned to the corresponding pixel column to obtain a pattern adapted to the display area in association with the data.
Specifically, the processor assigns each average value to each pixel column respectively to obtain the data and a time-correlated pattern corresponding to each data, and the pattern is adapted to the display area.
In this embodiment, under the condition that the number of data is greater than the number of pixels and the compression multiple is determined to be a positive integer, the data is grouped according to the compression multiple, the average value of each group is calculated, the average value is distributed to each pixel column, the data can be uniformly distributed on the pixel columns with the fixed display area width, the integrity of the data is ensured, the accuracy of the pattern is not affected, and meanwhile, the attractiveness of the pattern is ensured.
In one embodiment, as shown in fig. 5, assigning data to corresponding pixel columns according to compression factors to obtain a pattern adapted to a display area associated with the data includes the following steps S502 and S508:
in step S502, in the case where the compression multiple is a fractional number, a quotient and a remainder of division of the number of data and the number of pixels are determined.
Specifically, the processor determines the compression multiple after obtaining the compression multiple according to the data number and the pixel number, and determines a quotient and a remainder of the compression multiple and the pixel number according to the data number and the pixel number in the case that the compression multiple is judged to be a decimal number, for example, when the data number is 250 and the pixel number is 100, the quotient is 2 and the remainder is 50.
Step S504, the data is divided into a first packet and a second packet, where the number of data in the first packet is the quotient plus 1, the number of the first packet is the remainder, and the number of data in the second packet is the quotient.
It is to be understood that the first packet and the second packet are packets containing different amounts of data, wherein the order of the first packet and the second packet may be fixed or random.
Specifically, the processor divides the data into two categories, namely a first grouping and a second grouping, wherein the number of the first grouping is the number corresponding to the remainder, the number of the data in each first grouping is the number corresponding to the quotient plus 1, and the number of the data in the second grouping is the number corresponding to the quotient. For example, when the number of data is 250 and the number of pixels is 100, the quotient is 2 and the remainder is 50, the number of first packets is 50, the number of data in each first packet is 2+1 to 3, the number of data in each second packet is 2, and the number of second packets is the number remaining after subtracting the number of first packets (i.e., the number corresponding to the remainder) from the number of pixels, i.e., 100 to 50.
In one embodiment, the first packet precedes the second packet. Specifically, a data allocation rule of a first packet is adopted for the packets of data in the front order, that is, the number of data is a quotient plus 1, and the number of packets is a remainder; and for the subsequent data grouping, the data allocation rule of the second grouping is adopted, namely the data quantity is quotient. For example, when the remainder is Y, the quotient is S, and the number of pixels is N, the number of data allocated to each pixel column of the first Y pixel columns is S +1, that is, the number value filled to each pixel column is sequentially an average value of every S +1 data, and the number of data allocated to each pixel column of the remaining N-Y pixel columns is S, that is, the number value filled to each pixel column is sequentially an average value of every S data.
In the embodiment, the data with the number corresponding to the remainder is distributed to the pixel columns, and the remaining data is distributed until the data with the number corresponding to the remainder is distributed, so that the completeness of data filling is ensured, the time for distributing the data to the pixel columns is reduced, and the pattern generation efficiency is improved.
In step S506, an average value of data in each packet is calculated.
Specifically, after grouping, the processor sums the data in each group, and averages the data to obtain an average value of the corresponding data of each group.
In step S508, the average values are assigned to corresponding pixel columns to obtain a pattern adapted to the display area in association with the data.
And after determining the average value of each group, the processor assigns the average value of each group to each pixel column in sequence to obtain the data and the corresponding time-related pattern, and the pattern is matched with the width of the display area.
In this embodiment, under the condition that the number of data is greater than the number of pixels and the compression multiple is determined to be a fractional number, the quotient and the remainder of division between the number of data and the number of pixels are determined, grouping of different data amounts is performed on the data according to the quotient and the remainder, an average value of each group is calculated, and the average value is assigned to the corresponding pixel column.
In one embodiment, as shown in fig. 6, scaling the pattern formed based on the data in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area includes the following steps S602 to S606:
in step S602, the number of data and the number of pixels are compared.
Specifically, the processor compares the magnitude of the number of data acquired during cooking with the number of pixels in the width direction of a display area for displaying the progress of cooking.
In step S604, in the case where it is determined that the number of data is smaller than the number of pixels, the magnification of the number of data is determined according to the number of data and the number of pixels.
It will be appreciated that the magnification is the amount of data that needs to be stretched as a whole.
Specifically, in the case that the data amount is determined to be smaller than the pixel amount, the processor determines the magnification of the data amount according to the data amount and the pixel amount, and a specific calculation formula may be: s is W/N, where S is the magnification, W is the number of pixels, and N is the number of data, and for example, when the number of pixels is 200 and the number of data is 100, the magnification of the number of data is 200/100 is 2.
Step S606, the data is distributed to the corresponding pixel columns according to the magnification to obtain the pattern which is relevant to the data and is suitable for the display area.
Specifically, the processor may sequentially assign the data to the pixel columns corresponding to the magnification according to the magnification, resulting in a pattern associated with the data, and the pattern matches the width of the display area.
In this embodiment, by comparing the data number and the pixel number, when it is determined that the data number is smaller than the pixel number as a result of the comparison, the magnification of the data number is determined according to the data number and the pixel number, and the data is allocated to the pixel columns corresponding to the display region according to the magnification, so that the allocation of the data on each pixel column is realized without affecting the accuracy and the aesthetic property of the output pattern.
In one embodiment, as shown in fig. 7, assigning data to corresponding pixel columns according to magnification to obtain a pattern adapted to a display area associated with the data includes the following steps S702 to S704:
in step S702, in the case where the magnification is a positive integer, the pixels are divided into a plurality of groups, where the number of pixels in each group is the magnification.
Specifically, the processor determines the magnification after obtaining the magnification according to the number of data and the number of pixels, and in the case where the magnification is determined to be a positive integer, the pixels are divided into a plurality of groups according to a rule that the number of pixels corresponding to each successive magnification is one group, for example, when the magnification is 2, every adjacent 2 pixels are one group.
Step S704, assigning data to the pixel column where each pixel in the corresponding group is located to obtain a pattern adapted to the display area related to the data.
Specifically, the processor assigns each data to the pixel column where each pixel is located in each group in sequence, for example, sequentially assigns each data to two adjacent pixel columns to obtain a time-associated pattern of the data and the data, and the pattern is adapted to the display area.
In this embodiment, when the number of data is smaller than the number of pixels and the magnification factor is determined to be a positive integer, the pixels are grouped according to the magnification factor, and the data is allocated to the pixel columns of each group, so that the data can be equally allocated to the pixel columns with the fixed width of the display area, which does not affect the accuracy of the pattern and ensures the aesthetic property of the pattern.
In one embodiment, as shown in fig. 8, assigning data to corresponding pixel columns according to magnification to obtain a pattern adapted to a display area associated with the data includes the following steps S802 to S806:
in step S802, in the case where the magnification is a decimal number, a quotient and a remainder of division of the number of pixels and the number of data are determined.
Specifically, the processor determines the amplification factor after obtaining the amplification factor according to the number of data and the number of pixels, and determines a quotient and a remainder obtained by dividing the number of pixels by the number of data according to the number of data and the number of pixels when the amplification factor is judged to be a decimal number. For example, when the number of pixels is 300 and the number of data is 120, and the magnification is 2.5, the quotient of the number of pixels and the number of data is determined to be 2, and the remainder is 60.
Step S804, the pixels are divided into a third group and a fourth group, wherein the number of the pixels in the third group is the quotient plus 1, the number of the third group is the remainder, and the number of the pixels in the fourth group is the quotient.
It is to be understood that the third and fourth groups are groups containing different numbers of pixels, and the order of the third and fourth groups may be fixed or random.
Specifically, the processor divides the pixels into two categories, namely a third group and a fourth group, wherein the number of the third group is the number corresponding to the remainder, the number of the data in each third group is the number corresponding to the addition of 1 to the quotient, and the number of the pixels in the fourth group is the number corresponding to the quotient. For example, when the number of pixels is 300 and the number of data is 120, the quotient is 2 and the remainder is 60, the number of third groups is 60, the number of pixels in each third group is 2+1 — 3, the number of pixels in each fourth group is 2, and the number of fourth groups is the number remaining after subtracting the number of third groups (i.e., the number corresponding to the remainder) from the number of data, i.e., 120-60 is 60.
In one embodiment, the third packet precedes the fourth packet. Specifically, a pixel allocation rule of a third group is adopted for the group of the pixels with the front positions, namely the number of the pixels is the quotient plus 1, and the number of the group is the remainder; while for the grouping of the data located further back the pixel allocation rule of the fourth grouping is applied, i.e. the number of pixels is a quotient. For example, when the remainder is Y, the quotient is S, and the number of data is W, the first Y data, each data is assigned (filled) to S +1 pixel columns, and the remaining W-Y data, each data is assigned (filled) to S pixel columns.
In this embodiment, data is first distributed to the pixels with the number corresponding to the remainder, so that each pixel column can be distributed with data, the time for distributing data to the pixel columns is reduced, and the speed for forming a pattern adapted to a display area by the data is increased.
Step S806, assigning data to the pixel column where each pixel in the corresponding group is located to obtain a pattern adapted to the display area related to the data.
Specifically, the processor assigns the data to the pixel column where each pixel in each group is located in sequence, so as to obtain a pattern associated with the data and the corresponding time, and the pattern is matched with the width of the display area.
In this embodiment, under the condition that the number of data is smaller than the number of pixels and the amplification factor is determined to be a decimal number, a quotient and a remainder of division of the number of pixels and the number of data are determined, the pixels are grouped according to the quotient and the remainder, the data are allocated to the pixel columns of the corresponding groups, when the number of pixels is not a positive integer multiple of the number of data, the allocation of the data on the pixel columns of the fixed number can be realized, the accuracy of the pattern is not affected, and meanwhile, the attractiveness of the pattern is ensured.
In a specific embodiment, as shown in fig. 9, a method for displaying cooking progress is provided, which is exemplified by being applied to a processor, and may include the steps of:
in step S901, the processor determines a cooking time of the cooking process.
Specifically, the processor acquires recipe information of the user, and determines the cooking time according to the recipe information.
In step S902, the processor determines a sampling period for acquiring data.
In step S903, the processor determines the data amount according to the cooking time and the sampling period.
Specifically, the processor determines the data amount of the data acquired during the cooking process according to the cooking time and the sampling period.
In step S904, the processor determines the number of pixels in the width direction of the display area for displaying the cooking progress.
In step S905, the processor determines whether the number of data is greater than the number of pixels.
Specifically, the processor determines whether the number of data acquired during cooking is greater than the number of pixels in the width direction of the display area for displaying the cooking progress, and if it is determined that the number of data is greater than the number of pixels, it proceeds to step S906, otherwise, it proceeds to step S908.
In step S906, the processor determines a compression multiple of the data amount according to the data amount and the pixel amount.
In step S907, the processor determines whether the compression factor is a positive integer.
Specifically, if the compression factor is determined to be a positive integer, the process proceeds to step S9071 to step S9073, and if the compression factor is determined to be a decimal, the process proceeds to step S9074 to step S9077.
In step S9071, the processor divides the data into a plurality of packets, wherein the amount of data in each packet is a compression multiple.
In step S9072, the processor calculates an average value of the data in each packet.
In step S9073, the processor assigns the average value to the corresponding pixel column to obtain a pattern that is adapted to the display area in association with the data.
In step S9074, the processor determines a quotient and a remainder of the division of the number of data and the number of pixels.
In step S9075, the processor divides the data into a first packet and a second packet, where the number of data in the first packet is the quotient plus 1, the number of data in the first packet is the remainder, and the number of data in the second packet is the quotient.
In step S9076, the processor calculates an average value of the data in each packet.
In step S9077, the processor assigns the average value to the corresponding pixel column to obtain a pattern that fits the display area in association with the data.
In step S908, the processor determines the magnification of the data amount according to the data amount and the pixel amount.
In step S909, the processor determines whether the magnification is a positive integer.
Specifically, if it is determined that the magnification is a positive integer, the process proceeds to step S9091 to step S9092, and if it is determined that the magnification is a decimal, the process proceeds to step S9093 to step S9095.
In step S9091, the processor divides the pixels into a plurality of groups, wherein the number of pixels in each group is a magnification.
In step S9092, the processor assigns the data to the pixel column where each pixel in the corresponding group is located, so as to obtain a pattern that is suitable for the display area and is related to the data.
In step S9093, the processor determines a quotient and remainder of the division of the number of pixels by the number of data.
In step S9094, the processor divides the pixels into a third group and a fourth group, where the number of pixels in the third group is the quotient plus 1, the number of pixels in the third group is the remainder, and the number of pixels in the fourth group is the quotient.
In step S9095, the processor assigns the data to the pixel column where each pixel in the corresponding group is located, so as to obtain a pattern that is suitable for the display area and is associated with the data.
In the embodiment, the data quantity of the data acquired in the cooking process and the pixel quantity of the display area for displaying the cooking progress in the width direction are determined, the data quantity and the pixel quantity are compared, the compression multiple or the amplification multiple is determined according to the comparison result, and the corresponding data distribution mode is respectively adopted for the pixel columns according to the data type of the compression multiple or the amplification multiple, so that the patterns formed by different data quantities can keep the consistency in the width direction on the display area of the display screen, the purpose of displaying the patterns of different data quantities on the fixed display screen is realized, diversified cooking requirements of users are met, and the display effect of the display interface is improved.
In one embodiment, as shown in fig. 10, there is provided an apparatus for displaying a cooking progress, including: a display screen 1002 and a processor 1004, wherein:
a processor 1004 configured to: determining a data amount of data acquired during the cooking process; determining the number of pixels of a display area for displaying a cooking progress in a width direction; the pattern formed based on the data is scaled in the width direction according to the number of data and the number of pixels so that the pattern is adapted to the display area.
The device for displaying cooking progress determines the data quantity of data acquired in the cooking process and the pixel quantity of a display area for displaying cooking progress in the width direction through the processor, and scales the pattern formed based on the data in the width direction according to the data quantity and the pixel quantity so that the pattern is matched with the display area. Based on the data quantity of the cooking process and the pixel quantity in the width direction of the display area, the pattern corresponding to the data of the cooking process is obtained, the purpose of displaying the patterns with different data quantities on a fixed display screen is achieved, diversified cooking requirements of users are met, the consistency of the width of the output real-time curve is guaranteed, and the display effect of a display interface is improved.
In one embodiment, the processor 1004 is further configured to: comparing the number of data with the number of pixels; under the condition that the data quantity is determined to be larger than the pixel quantity, determining the compression multiple of the data quantity according to the data quantity and the pixel quantity; the data is assigned to the corresponding pixel columns according to the compression factor to obtain a pattern associated with the data that fits into the display area.
In the device in this embodiment, the processor further compares the data number and the pixel number, determines a compression multiple of the data number according to the data number and the pixel number when it is determined that the data number is greater than the pixel number as a result of the comparison, and allocates the data to the pixel columns corresponding to the display area according to the compression multiple, so as to realize the allocation of the data on each pixel column without affecting the accuracy and the aesthetic property of the output pattern.
In one embodiment, the processor 1004 is further configured to: dividing the data into a plurality of groups in the case that the compression multiple is a positive integer, wherein the number of data in each group is the compression multiple; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In the device in this embodiment, the processor groups the data according to the compression multiple when the number of the data is greater than the number of the pixels and it is determined that the compression multiple is a positive integer, calculates an average value of each group, and allocates the average value to each pixel column, so that the data can be equally allocated to the pixel columns having a fixed display area width, thereby ensuring the integrity of the data, not affecting the accuracy of the pattern, and ensuring the beauty of the pattern.
In one embodiment, the processor 1004 is further configured to: determining a quotient and a remainder of division of the number of data and the number of pixels in the case where the compression multiple is a fractional number; dividing the data into a first group and a second group, wherein the number of the data in the first group is the quotient plus 1, the number of the first group is the remainder, and the number of the data in the second group is the quotient; calculating an average value of the data in each group; the average values are assigned to the corresponding pixel columns to obtain a pattern associated with the data that is adapted to the display area.
In the device in this embodiment, under the condition that the data number is greater than the pixel number and the compression multiple is determined to be a fractional number, the processor determines a quotient and a remainder of division of the data number and the pixel number, groups the data by different data amounts according to the quotient and the remainder, calculates an average value of each group, and allocates the average value to a corresponding pixel column.
In one embodiment, the first packet precedes the second packet. In this embodiment, the processor allocates the data of the number corresponding to the remainder to the pixel columns first, and allocates the remaining data until the data of the number corresponding to the remainder is allocated, so that the integrity of data filling is ensured, the time for allocating the data to the pixel columns is reduced, and the pattern generation efficiency is improved.
In one embodiment, the processor 1004 is further configured to: comparing the number of data with the number of pixels; under the condition that the data quantity is smaller than the pixel quantity, determining the magnification factor of the data quantity according to the data quantity and the pixel quantity; the data are assigned to the corresponding pixel columns according to the magnification to obtain a pattern associated with the data that fits into the display area.
In the device in this embodiment, the processor further compares the data number and the pixel number, determines the magnification factor of the data number according to the data number and the pixel number when it is determined that the data number is smaller than the pixel number as a result of the comparison, and allocates the data to the pixel columns corresponding to the display area according to the magnification factor, so as to realize the allocation of the data on each pixel column without affecting the accuracy and the aesthetic property of the output pattern.
In one embodiment, the processor 1004 is further configured to: dividing the pixels into a plurality of groups in the case that the magnification is a positive integer, wherein the number of pixels in each group is the magnification; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In the device in this embodiment, when the number of data is smaller than the number of pixels and the magnification factor is determined to be a positive integer, the processor groups the pixels according to the magnification factor, and allocates the data to the pixel columns of each group, the data can be equally allocated to the pixel columns with the fixed width of the display area, the accuracy of the pattern is not affected, and the aesthetic property of the pattern is ensured.
In one embodiment, the processor 1004 is further configured to: determining a quotient and a remainder of division of the number of pixels by the number of data in the case where the magnification factor is a fractional number; dividing the pixels into a third group and a fourth group, wherein the number of the pixels in the third group is the quotient plus 1, the number of the pixels in the third group is the remainder, and the number of the pixels in the fourth group is the quotient; the data is assigned to the pixel column in which each pixel in the corresponding group is located to obtain a pattern adapted to the display area in relation to the data.
In the device in this embodiment, when the number of data is smaller than the number of pixels and the amplification factor is determined to be a decimal number, the processor further determines a quotient and a remainder of division of the number of pixels and the number of data, groups the pixels by different numbers of pixels according to the quotient and the remainder, and allocates the data to the pixel columns of the corresponding groups, so that when the number of pixels is not a positive integer multiple of the number of data, allocation of the data to the pixel columns of a fixed number is achieved, accuracy of a pattern is not affected, and attractiveness of the pattern is ensured.
In one embodiment, the third packet precedes the fourth packet. In this embodiment, the processor first performs data allocation on the pixels with the number corresponding to the remainder, so as to ensure that each pixel column can be allocated with data, reduce the time for allocating data to the pixel columns, and accelerate the speed for forming a pattern adapted to the display area by the data.
In one embodiment, the processor 1004 is further configured to: determining a cooking time of the cooking process; determining a sampling period of the acquired data; the data amount is determined according to the cooking time and the sampling period.
In the device in the embodiment, the processor further determines the data quantity of the relevant data of the cooking process by determining the cooking time and the sampling period in advance, so that the accuracy of the pattern data of the cooking process is ensured while the data redundancy degree is reduced, and the pattern of the relevant data of the cooking process is conveniently displayed on a fixed display area screen in the cooking process.
In one embodiment, the data includes at least one of: cooking firepower, the bottom temperature of a cooking appliance, the air volume of a range hood and the air pressure of the range hood.
In the device in this embodiment, the processor further forms different patterns corresponding to the relevant data of the cooking process by acquiring a series of relevant data of the cooking process sent by different household appliances in the cooking process, and the patterns are displayed on the display area of the display screen of the cooking device separately or simultaneously.
The device for displaying the cooking progress comprises a processor and a memory, wherein the processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be provided with one or more than one, and the kernel parameters are adjusted to display the cooking progress.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a processor configured to execute the method for displaying cooking progress according to any one of the above embodiments.
An embodiment of the invention provides a household appliance, which comprises a device for displaying cooking progress according to any one of the above embodiments.
An embodiment of the present invention provides a machine-readable storage medium having stored thereon instructions, which when executed by a processor, cause the processor to execute the method for displaying cooking progress according to any one of the above embodiments.
The present application also provides a computer program product adapted to execute a program initialized with the method for displaying cooking progress of the above-described embodiments when executed on a data processing device.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (15)
1. A method for displaying cooking progress, the method comprising:
determining a data amount of data acquired during the cooking process;
determining the number of pixels of a display area for displaying a cooking progress in a width direction;
scaling a pattern formed based on the data in the width direction according to the data number and the pixel number so that the pattern is adapted to the display area.
2. The method according to claim 1, wherein the scaling of the pattern formed based on the data in the width direction according to the data number and the pixel number to fit the pattern to the display area comprises:
comparing the number of data with the number of pixels;
under the condition that the data quantity is determined to be larger than the pixel quantity, determining a compression multiple of the data quantity according to the data quantity and the pixel quantity;
and distributing the data to corresponding pixel columns according to the compression multiple to obtain a pattern which is relevant to the data and is suitable for the display area.
3. The method of claim 2, wherein the assigning the data to corresponding pixel columns according to the compression factor to obtain the pattern associated with the data that fits in the display area comprises:
dividing the data into a plurality of packets where the compression factor is a positive integer, wherein the number of data in each packet is the compression factor;
calculating an average value of the data in each group;
assigning the average values to corresponding columns of pixels to obtain a pattern associated with the data that is adapted to the display area.
4. The method of claim 2, wherein the assigning the data to corresponding pixel columns according to the compression factor to obtain the pattern associated with the data that fits in the display area comprises:
determining a quotient and a remainder of the division of the number of data and the number of pixels in the case where the compression multiple is a fractional number;
dividing the data into a first packet and a second packet, wherein the number of data in the first packet is the quotient plus 1, the number of the first packet is the remainder, and the number of data in the second packet is the quotient;
calculating an average value of the data in each group;
assigning the average values to corresponding columns of pixels to obtain a pattern associated with the data that is adapted to the display area.
5. The method of claim 4, wherein the first packet precedes the second packet.
6. The method according to claim 1, wherein the scaling of the pattern formed based on the data in the width direction according to the data number and the pixel number to fit the pattern to the display area comprises:
comparing the number of data with the number of pixels;
under the condition that the data quantity is smaller than the pixel quantity, determining the magnification of the data quantity according to the data quantity and the pixel quantity;
and distributing the data to corresponding pixel columns according to the magnification to obtain the pattern which is relevant to the data and is suitable for the display area.
7. The method of claim 6, wherein the assigning the data to corresponding pixel columns according to the magnification to obtain the pattern associated with the data that fits in the display area comprises:
dividing the pixels into a plurality of groups in the case that the magnification is a positive integer, wherein the number of pixels in each group is the magnification;
and distributing the data to the pixel column where each pixel in the corresponding group is located to obtain the pattern which is relevant to the data and is suitable for the display area.
8. The method of claim 6, wherein the assigning the data to corresponding pixel columns according to the magnification to obtain the pattern associated with the data that fits in the display area comprises:
determining a quotient and a remainder of the division of the number of pixels and the number of data in the case where the magnification factor is a fractional number;
dividing the pixels into a third group and a fourth group, wherein the number of pixels in the third group is the quotient plus 1, the number of pixels in the third group is the remainder, and the number of pixels in the fourth group is the quotient;
and distributing the data to the pixel column where each pixel in the corresponding group is located to obtain the pattern which is relevant to the data and is suitable for the display area.
9. The method of claim 8, wherein the third packet precedes the fourth packet.
10. The method of claim 1, wherein the determining the data amount of the data acquired during the cooking process comprises:
determining a cooking time of the cooking process;
determining a sampling period for acquiring the data;
determining the data amount according to the cooking time and the sampling period.
11. The method of claim 1, wherein the data comprises at least one of: cooking firepower, the bottom temperature of a cooking appliance, the air volume of a range hood and the air pressure of the range hood.
12. A processor configured to perform a method for displaying cooking progress according to any one of claims 1 to 11.
13. An apparatus for displaying cooking progress, comprising:
a display screen; and
the processor of claim 12.
14. A household appliance characterized in that it comprises a device for displaying cooking progress according to claim 13.
15. A machine-readable storage medium having instructions stored thereon, which when executed by a processor causes the processor to perform a method for displaying cooking progress according to any one of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010866015.1A CN112083906A (en) | 2020-08-25 | 2020-08-25 | Method, processor, device and storage medium for displaying cooking progress |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010866015.1A CN112083906A (en) | 2020-08-25 | 2020-08-25 | Method, processor, device and storage medium for displaying cooking progress |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112083906A true CN112083906A (en) | 2020-12-15 |
Family
ID=73729004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010866015.1A Pending CN112083906A (en) | 2020-08-25 | 2020-08-25 | Method, processor, device and storage medium for displaying cooking progress |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112083906A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115167554A (en) * | 2022-07-19 | 2022-10-11 | 珠海格力电器股份有限公司 | Cooking temperature curve processing method and device and computer equipment |
CN115167553A (en) * | 2022-07-19 | 2022-10-11 | 珠海格力电器股份有限公司 | Cooking temperature curve processing method and device and computer equipment |
CN118502278A (en) * | 2024-07-16 | 2024-08-16 | 深圳市和生创新技术有限公司 | Display time control method and related equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002043365A2 (en) * | 2000-11-21 | 2002-05-30 | Kohn Juergen | Method and device for displaying an image composed of pixels |
CN102902500A (en) * | 2012-08-29 | 2013-01-30 | 华为技术有限公司 | Display method and device of data matrix information |
CN104680035A (en) * | 2015-03-26 | 2015-06-03 | 北京润科通用技术有限公司 | Avionics data curve play method and system |
CN110246204A (en) * | 2019-05-28 | 2019-09-17 | 深圳和而泰家居在线网络科技有限公司 | Waveform drawing method, apparatus, computer equipment and readable storage medium storing program for executing |
CN110969580A (en) * | 2019-12-10 | 2020-04-07 | 北京猎豹移动科技有限公司 | Image display method and device |
CN111210389A (en) * | 2020-01-10 | 2020-05-29 | 北京华捷艾米科技有限公司 | Image scaling processing method and device |
-
2020
- 2020-08-25 CN CN202010866015.1A patent/CN112083906A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002043365A2 (en) * | 2000-11-21 | 2002-05-30 | Kohn Juergen | Method and device for displaying an image composed of pixels |
CN102902500A (en) * | 2012-08-29 | 2013-01-30 | 华为技术有限公司 | Display method and device of data matrix information |
CN104680035A (en) * | 2015-03-26 | 2015-06-03 | 北京润科通用技术有限公司 | Avionics data curve play method and system |
CN110246204A (en) * | 2019-05-28 | 2019-09-17 | 深圳和而泰家居在线网络科技有限公司 | Waveform drawing method, apparatus, computer equipment and readable storage medium storing program for executing |
CN110969580A (en) * | 2019-12-10 | 2020-04-07 | 北京猎豹移动科技有限公司 | Image display method and device |
CN111210389A (en) * | 2020-01-10 | 2020-05-29 | 北京华捷艾米科技有限公司 | Image scaling processing method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115167554A (en) * | 2022-07-19 | 2022-10-11 | 珠海格力电器股份有限公司 | Cooking temperature curve processing method and device and computer equipment |
CN115167553A (en) * | 2022-07-19 | 2022-10-11 | 珠海格力电器股份有限公司 | Cooking temperature curve processing method and device and computer equipment |
CN115167554B (en) * | 2022-07-19 | 2024-05-10 | 珠海格力电器股份有限公司 | Cooking temperature curve processing method and device and computer equipment |
CN118502278A (en) * | 2024-07-16 | 2024-08-16 | 深圳市和生创新技术有限公司 | Display time control method and related equipment |
CN118502278B (en) * | 2024-07-16 | 2024-09-24 | 深圳市和生创新技术有限公司 | Display time control method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112083906A (en) | Method, processor, device and storage medium for displaying cooking progress | |
CN106873863B (en) | Method and device for setting interface switching animation | |
CN107015788B (en) | Method and device for displaying images on mobile device in animation mode | |
CN107402700B (en) | Page display method and device | |
JP2005293577A (en) | Method, device, and program for generating high-condensation visual summary of vide area | |
EP2577609A1 (en) | Method, apparatus and system for a graphical user interface | |
CN106776612B (en) | Display method and device of geographical thermodynamic diagram | |
CN111443974A (en) | Android device screen adapting method, related device and readable storage medium | |
CN104679391B (en) | The icon display method and device of intelligent watch | |
CN101465954A (en) | Method and device for zooming image | |
CN104281374B (en) | The method and system of sliding list component | |
CN104346770A (en) | Data interpolation method and data interpolation system | |
CN109388306B (en) | Information display method and device | |
CN106843648A (en) | The control method by sliding of interface element, interface display method and device | |
CN110837368B (en) | Data processing method and device and electronic equipment | |
CN109522532B (en) | Method and device for calculating selection range of line drawing frame | |
CN117612470A (en) | Color lookup table generating method and color correcting method | |
CN111291543A (en) | Data display method and device, storage medium and processor | |
CN106997292A (en) | The method and apparatus for handling rectangle tree graph | |
CN114972558A (en) | Handwriting drawing method, device, medium and interactive panel | |
CN118551089A (en) | Page generation method and device and computer readable storage medium | |
CN112579067A (en) | Bullet picture display method and device | |
JP2014110531A (en) | Device, method and program for telop detection | |
CN114647360B (en) | Page setting method, device and equipment | |
CN112651215B (en) | Method and device for determining document map, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201215 |
|
RJ01 | Rejection of invention patent application after publication |