A standardization method, device, equipment and storage medium for cosmetic packaging materials
By clustering the properties and original sizes of cosmetic packaging materials and setting standard sizes, the production and logistics problems brought about by diversified sizes are solved, and efficiency and cost-effectiveness are improved.
Patent Information
- Application Number
- CN202410692547.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The diversified size of cosmetic packaging materials increases production line complexity, adjustment time and production costs, and occupies more storage space, resulting in reduced logistics efficiency and delayed distribution.
By querying the packaging material information of the inner packaging material, the main categories are divided according to the attributes, and clustering is carried out according to the original size, and standard sizes are set to achieve the standardization of the size.
It reduces the complexity of production lines and production costs, reduces the warehousing space occupation, and improves logistics efficiency and distribution speed.
Smart Images

Figure CN118484745B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cosmetics, and in particular to a standardization method, device, equipment and storage medium for cosmetic packaging materials. Background Art
[0002] Cosmetics are packaged using inner packaging materials. For marketing purposes, the inner packaging materials of cosmetics are mostly personalized in design, resulting in the accumulation of a large number of inner packaging materials of different sizes during the development process of cosmetic products.
[0003] The diverse sizes of inner packaging materials will increase the complexity of the production line, adjustment time and production costs. In addition, the diverse sizes of inner packaging materials take up more storage space in management, increase inventory turnover, and may lead to reduced logistics efficiency and delivery delays. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for standardizing cosmetic packaging materials, so as to perform standardized management on the inner packaging materials of cosmetics.
[0005] According to one aspect of the present invention, a method for standardizing cosmetic packaging materials is provided, comprising:
[0006] Query the packaging material information of the inner packaging materials of various cosmetics; the packaging material information includes properties and original size;
[0007] Classifying the inner packaging materials into a plurality of main categories according to the attributes;
[0008] In each of the main categories, the inner packaging materials are clustered according to the original sizes to obtain a plurality of subcategories;
[0009] In each of the subcategories, standard sizes are set for the inner packaging materials of the cosmetics.
[0010] According to another aspect of the present invention, there is provided a standardization device for cosmetic packaging materials, comprising:
[0011] The packaging material information query module is used to query the packaging material information of the inner packaging materials of various cosmetics; the packaging material information includes attributes and original size;
[0012] A main category classification module, used for classifying the inner packaging material into a plurality of main categories according to the attributes;
[0013] A sub-category classification module, used for clustering the inner packaging materials according to the original size in each of the main categories to obtain multiple sub-categories;
[0014] The standard size setting module is used to set the standard size for the inner packaging material of the cosmetics in each of the subcategories.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the standardization method for cosmetic packaging materials described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to implement the method for standardizing cosmetic packaging materials according to any embodiment of the present invention when executed.
[0020] In this embodiment, the packaging material information of the inner packaging materials of various cosmetics is queried; the packaging material information includes attributes and original size; the inner packaging materials are divided into multiple main categories according to the attributes; in each main category, the inner packaging materials are clustered according to the original size to obtain multiple subcategories; in each subcategory, the standard size is set for the inner packaging materials of the cosmetics. The initial clustering is performed according to the attributes to ensure that the attributes of the inner packaging materials of the cosmetics are the same or similar, providing a feasible basis for the secondary clustering. The inner packaging materials are clustered again according to the original size, and the appropriate standard size can be selected from them, realizing the standardization of the size. The standardization of the size can gradually reduce the number of sizes, so that production and warehouses can focus on a smaller range of sizes, reduce the complexity of the production line, adjustment time and production costs, and occupy less storage space in management, reduce inventory cycles, and improve logistics efficiency and delivery speed.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of a method for standardizing cosmetic packaging materials provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flow chart of a cosmetic packaging material standardization method provided according to Embodiment 2 of the present invention;
[0025] Figure 3 This is an example diagram of a client displaying query results according to Embodiment 2 of the present invention;
[0026] Figure 4 is a schematic structural diagram of a cosmetic packaging material standardization device provided according to Embodiment 3 of the present invention;
[0027] Figure 5 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 This is a flow chart of a cosmetic packaging standardization method provided in the first embodiment of the present invention. This embodiment can be applied to the case where the inner packaging materials of cosmetics are secondary clustered to establish standardized sizes. The method can be executed by a cosmetic packaging standardization device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0032] Step 101: Query the packaging material information of the inner packaging materials of various cosmetics.
[0033] In this embodiment, the packaging material information of the inner packaging materials of various cosmetics developed historically by the enterprise can be recorded in a business system such as ERP (Enterprise Resource Planning). When establishing standardized sizes for the inner packaging materials of cosmetics, the packaging material information of the inner packaging materials of various cosmetics developed historically can be queried from the business system.
[0034] Among them, the inner packaging material of cosmetics refers to the material that directly loads the cosmetics inside.
[0035] Step 102: Classify the inner packaging materials into a plurality of main categories according to their attributes.
[0036] In actual applications, different types of cosmetics have different sensitivities to external factors such as light, oxygen, and moisture, and have different requirements for the sealing, light-shielding, and isolation properties of the inner packaging materials. If the ingredients of certain cosmetics are incompatible with a specific type of inner packaging material, the inner packaging material may dissolve, deform, or be contaminated, causing the cosmetics to deteriorate or leak. Furthermore, the fluidity of the contents of the inner packaging material is different, and the matching containers are also different. For example, a paste is used in a wide-mouth bottle, but if a liquid or emulsion is used in a wide-mouth bottle, it is easy to leak.
[0037] In addition, outside the inner packaging material of cosmetics is the outer packaging material of cosmetics (i.e. the material of the outer packaging material of the outer packaging material). The inner packaging material of cosmetics and the outer packaging material of cosmetics are used in conjunction with each other, and different types of outer packaging materials have different wrapping and protection properties for the inner packaging material.
[0038] In this embodiment, the packaging material information of the inner packaging material of the cosmetics includes the properties of the inner packaging material of the cosmetics. When developing the inner packaging material of the cosmetics, the appropriate inner packaging material will be selected based on the performance requirements of the cosmetics for the inner packaging material. The properties of the inner packaging material can reflect the performance requirements of the cosmetics for the inner packaging material and the characteristics of the outer packaging material to a certain extent. Therefore, the inner packaging material of the cosmetics can be initially clustered according to the properties of the inner packaging material of the cosmetics, and the inner packaging material of the cosmetics can be divided into multiple categories, which are recorded as the main categories.
[0039] Then, the properties of the inner packaging materials of cosmetics in the same main category are the same or similar, so that the performance of the inner packaging materials of cosmetics in the same main category is the same or similar, and the matching outer packaging materials are also the same or similar, providing a basis for the standardization of the size of the inner packaging materials of cosmetics.
[0040] In a specific implementation, the properties of the inner packaging materials of cosmetics include material, shape, structure or process, among which the material of the inner packaging materials of cosmetics includes glass bottles, plastic bottles, composite tubes (tubes containing two or more materials), aluminum-plastic tubes, all-plastic tubes, etc. The shapes of the inner packaging materials of cosmetics include wide-mouth bottles, narrow-mouth bottles, round tubes, non-round tubes, etc. The structure or process of the inner packaging materials of cosmetics includes a combination of at least two of the bottles, pads, pumps, stoppers and caps, rear-filling structures, front-filling structures, etc.
[0041] During the initial clustering, the materials of the inner packaging of cosmetics are compared.
[0042] If the materials of the inner packaging materials of the cosmetics are the same, the inner packaging materials of the cosmetics are classified into the same first set.
[0043] In each first set, the shapes of the inner packaging materials of the cosmetics in the same first set are compared.
[0044] If the shapes of the inner packaging materials of the cosmetics are the same, the inner packaging materials of the cosmetics are divided into the same second set.
[0045] In each second set, the structures or processes of the inner packaging materials of the cosmetics in the same second set are compared.
[0046] If the structure or process of the inner packaging materials of cosmetics are the same, the inner packaging materials of cosmetics shall be classified into the same main category.
[0047] In one example, the initial clustering process is as follows:
[0048]
[0049]
[0050] In this example, when the material of the inner packaging material of the cosmetics is determined, there will be constraints on the shape of the inner packaging material of the cosmetics. When the shape of the inner packaging material of the cosmetics is determined, there will be constraints on the structure or process of the inner packaging material of the cosmetics. The material of the inner packaging material of the cosmetics, the shape of the inner packaging material of the cosmetics, and the structure or process of the inner packaging material of the cosmetics are traversed in turn to determine the main category of the inner packaging material of the cosmetics.
[0051] Step 103: In each main category, the inner packaging materials are clustered according to the original size to obtain multiple subcategories.
[0052] In actual applications, the packaging material information of the inner packaging material of cosmetics includes the original size of the inner packaging material of cosmetics, that is, the size when the inner packaging material of cosmetics is developed and put into production.
[0053] In each main category, the inner packaging materials can be secondary clustered according to the original sizes of the inner packaging materials of the cosmetics in the same main category to obtain multiple subcategories.
[0054] In the same subcategory, not only are the performance of the inner packaging materials of the cosmetics the same or similar, the matching outer packaging materials are also the same or similar, but the original sizes of the inner packaging materials of the cosmetics are also the same or similar, and standardized sizes can be customized on this basis.
[0055] In one embodiment of the present invention, the original size of the inner packaging material of the cosmetics includes length, width and height. When the inner packaging material of the cosmetics is a standard cuboid, the length, width and height of the cuboid can be directly used as the original size. When the inner packaging material of the cosmetics is a non-standard cuboid, the inner packaging material of the cosmetics can be modeled and fitted with a minimum circumscribed cuboid. The length, width and height of the minimum circumscribed cuboid can be directly used as the original size. Then, step 103 can include the following steps:
[0056] Step 1031: Encode the length, width and height into a vector of the inner packaging material.
[0057] In this embodiment, the original size of the inner packaging material of each cosmetic can be vectorized into its length, width and height, and encoded as a vector of the inner packaging material of the cosmetic to represent the inner packaging material of the cosmetic. Then, the inner packaging material of the cosmetic can be regarded as a three-dimensional point on the spatial coordinates.
[0058] Step 1032: Set multiple quantities.
[0059] In this embodiment, the inner packaging materials of the cosmetics can be secondary clustered using an unsupervised clustering method, where the unsupervised clustering is mainly performed based on the similarity of the original sizes without considering the restrictions set on the inner packaging materials of the cosmetics.
[0060] In unsupervised clustering, multiple quantities can be set, each of which is the number of subcategories of the secondary clustering.
[0061] Generally speaking, users can set a broader range based on the distribution information of the inner packaging materials of cosmetics in each main category (such as the number of inner packaging materials of cosmetics in each main category), and filter out the common quantities for each main category in an arranged manner within this range, thereby reducing the amount of calculation.
[0062] Of course, the user can also independently set multiple quantities for each main category, and this embodiment does not limit this.
[0063] Step 1033: Initialize multiple candidate categories in each main category according to the respective quantities, and cluster the inner packaging materials into the multiple candidate categories using the vectors in each main category.
[0064] For each main category, candidate categories that match the number configured for it may be initialized according to the number, so that the inner packaging materials of cosmetics in the main category may be secondary clustered into each candidate category using the vectors of the inner packaging materials of cosmetics in the main category.
[0065] In the process of initializing the candidate category, the center point of the candidate category may be set randomly or in other ways. The center point of the candidate category is a three-dimensional point on the spatial coordinates.
[0066] In an example of an embodiment of the present invention, K-means (K-means) can be used to perform secondary clustering on the inner packaging materials of cosmetics under each main category. In K-means, the number is the K value. Then, in this example, step 1033 may further include the following steps:
[0067] Step 10331: Calculate the center distance between the vector and the center point of each candidate category.
[0068] Under a certain main category, for the vector of the inner packaging material of a given cosmetic, the distance between the vector of the inner packaging material of the cosmetic and the center point of each candidate category can be calculated using methods such as Euclidean distance, which is recorded as the center distance.
[0069] Step 10332: Classify the inner packaging materials into candidate categories with the smallest center distance.
[0070] Under a certain main category, for the vector of the inner packaging material of a given cosmetic, the center distance between the vector of the inner packaging material of the cosmetic and the center points of each candidate category can be compared, and the smallest center distance can be screened out, so that the inner packaging material of the cosmetic can be classified into the candidate category with the smallest center distance.
[0071] Step 10333: In each candidate category, use the average value of the vector to update the center point.
[0072] Under a main category, if all inner packaging materials of cosmetics are divided into candidate categories, then in each candidate category, the average value of the vectors of the inner packaging materials of all cosmetics in the candidate category can be calculated, and the average value can be assigned to the center point of the candidate category to update the center point.
[0073] Step 10334, determine whether the preset stop condition is met; if so, execute step 10335; if not, return to execute step 10331.
[0074] Step 10335: Determine whether clustering is completed.
[0075] Under a certain main category, each time the center point is updated, it can be determined whether each candidate category meets the preset stop condition, for example, the maximum number of iterations is reached, the center point no longer changes (that is, the difference between the new and old center points is less than the preset threshold), etc.
[0076] If the preset stop condition is met, it can be considered that the secondary clustering of the main category is completed, and each candidate category under the main category is output.
[0077] If the preset stop condition is not met, the process may return to step 10331 to step 10334 and enter the next iteration until the secondary clustering of the main category is completed.
[0078] Step 1034: In each main category, for each quantity, for multiple candidate categories, calculate an index value that represents the quality of clustering.
[0079] Under each main category, for the result of secondary clustering using each data, a statistical method can be used to calculate an index value representing the quality of clustering (also known as the effect of clustering) for multiple candidate categories.
[0080] Exemplarily, in each main category, the standard deviation is calculated for each quantity and the vector of the inner packaging material of the cosmetics in each candidate category, and the average of multiple standard deviations is calculated as an indicator value characterizing the quality of clustering by performing secondary clustering using the quantity.
[0081] Step 1035: In each main category, multiple candidate categories with the best index values are selected as multiple sub-categories.
[0082] Under each main category, for the results of secondary clustering using each data, the index values representing the quality of clustering can be compared, and the secondary clustering results (multiple candidate categories) with the best index values can be screened out as multiple sub-categories under the main category.
[0083] Exemplarily, in each main category, a plurality of candidate categories with the smallest average values are screened out as a plurality of subcategories.
[0084] In this example, when the average value of the standard deviation is small, it usually means that the inner packaging materials of the cosmetics (represented by vectors) are more closely around the center point in their respective candidate categories, and the clustering effect is better. Therefore, the scatter plot composed of the average of each quantity and its standard deviation can be observed graphically, and the quantity corresponding to the minimum average value of the standard deviation is selected as the final secondary clustering quantity.
[0085] Step 104: In each sub-category, set standard sizes for the inner packaging materials of cosmetics.
[0086] In each sub-category, the original size of the inner packaging material of the cosmetics in the sub-category may not be its actual size, but a size after fitting based on the actual size. Therefore, the original sizes of the inner packaging materials of the cosmetics in the sub-category can be summarized, and a suitable size can be selected to set it as a standardized size and recorded as the standard size (such as length, width, height, etc.).
[0087] In a specific implementation, in each sub-category, the characteristic center of the sub-category can be determined, wherein the characteristic center of the sub-category is the point with the smallest sum of distances to the original size of the inner packaging material. If the original size of the inner packaging material is represented by a vector encoded by length, width and height, then the characteristic center of the sub-category is a three-dimensional point on the spatial coordinates.
[0088] The original size of the inner packaging material and the characteristic center of the sub-category are combined into point combinations using methods such as Cartesian product. In each point combination, the point distance between the original size of the inner packaging material and the characteristic center of the sub-category is calculated using methods such as Euclidean distance.
[0089] Compare the distances between each point, select the ones with the smallest distance, and set the original size with the smallest distance as the standard size of the inner packaging material in this subcategory.
[0090] In this embodiment, the packaging material information of the inner packaging materials of various cosmetics is queried; the packaging material information includes attributes and original size; the inner packaging materials are divided into multiple main categories according to the attributes; in each main category, the inner packaging materials are clustered according to the original size to obtain multiple subcategories; in each subcategory, the standard size is set for the inner packaging materials of the cosmetics. The initial clustering is performed according to the attributes to ensure that the attributes of the inner packaging materials of the cosmetics are the same or similar, providing a feasible basis for the secondary clustering. The inner packaging materials are clustered again according to the original size, and the appropriate standard size can be selected from them, realizing the standardization of the size. The standardization of the size can gradually reduce the number of sizes, so that production and warehouses can focus on a smaller range of sizes, reduce the complexity of the production line, adjustment time and production costs, and occupy less storage space in management, reduce inventory cycles, and improve logistics efficiency and delivery speed.
[0091] For example, in the production process of glass bottle suppliers, blowing of glass bottles takes the longest time. After the types of inner packaging materials are reduced, suppliers can stock up on plain bottles (plain bottles are bottles without sprayed patterns) according to actual conditions, and then spray the patterns after receiving specific product orders to increase delivery speed.
[0092] Embodiment 2
[0093] Figure 2 This is a flow chart of a method for standardizing cosmetic packaging materials provided in the second embodiment of the present invention. This embodiment adds an operation of establishing a packaging material library based on the previous embodiment. Figure 2As shown, the method includes:
[0094] Step 201: Query the packaging material information of the inner packaging materials of various cosmetics.
[0095] Among them, packaging material information includes properties and original dimensions.
[0096] Step 202: Classify the inner packaging materials into a plurality of main categories according to their attributes.
[0097] Step 203: In each main category, the inner packaging materials are clustered according to the original size to obtain multiple subcategories.
[0098] Step 204: In each sub-category, set standard sizes for the inner packaging materials of cosmetics.
[0099] Step 205: configure element codes for standard sizes.
[0100] In this embodiment, a unique element code may be configured for each sub-category of standard size, so as to facilitate the management of the standard size of each sub-category.
[0101] Step 206: Establish a mapping relationship between the product information of the cosmetics, the packaging material information of the inner packaging material, and the element code in the preset packaging material library.
[0102] For each sub-category, the product information of the cosmetics under the sub-category (such as capacity, properties, etc.), the packaging material information of the inner packaging material (such as actual size, structure, etc.), and the element code of the standard size are associated, a mapping relationship between the three is established, and the mapping relationship between the three is stored in the packaging material library.
[0103] Step 207: When receiving the query request sent by the client, the query parameters in the query request are matched with the product information and the packaging material information in the packaging material library.
[0104] Step 208: When the match is successful, the product information, packaging material information and element code with mapping relationship are sent to the client for display.
[0105] In actual applications, the packaging material library is user-oriented (such as cosmetic developers and designers). Therefore, when users develop and design new inner packaging materials for cosmetics, they can use the client to send query requests to the packaging material library. At this time, query parameters such as the type of cosmetics, the specifications of cosmetics, etc. can be extracted from the query request, and these query parameters can be matched with the product information of the cosmetics and the packaging material information of the inner packaging materials in the packaging material library.
[0106] When the match is successful, the product information of the same type of cosmetics, the packaging material information of the inner packaging material and the element code of the corresponding standard size can be sent to the client, such as Figure 3As shown, the product information of the same type of cosmetics, the packaging material information of the packaging materials therein and the element code of the corresponding standard size are displayed on the user interface (UI) of the client, providing a reference for users to develop and design cosmetics.
[0107] For example, if a user is going to develop and design a new cosmetic, and the new cosmetic is a 120ml liquid product, the user can enter "120ml", "liquid type", and "glass bottle" as query parameters in the packaging material library to search for historical similar cosmetics in the packaging material library, as well as the currently recommended standard-sized inner packaging materials and matching outer packaging materials such as paper boxes and cartons.
[0108] The establishment and use of the packaging material library can efficiently manage the data of cosmetic packaging materials (including inner packaging materials and outer packaging materials), quickly query the historical usage of cosmetic packaging materials and standardized sizes, and serve as a suggestion for the production and design of cosmetic inner packaging materials, thereby improving production efficiency and management level. In the subsequent development of new cosmetics, their inner packaging materials will be gradually normalized to standard sizes, which can effectively alleviate or solve problems such as size diversification, increased production costs, and difficulty in inventory management, thereby reducing production costs and improving production efficiency and product quality.
[0109] Embodiment 3
[0110] Figure 4 This is a schematic diagram of the structure of a standardization device for cosmetic packaging provided by the third embodiment of the present invention. Figure 4 As shown, the device comprises:
[0111] The packaging material information query module 401 is used to query the packaging material information of the inner packaging material of various cosmetics; the packaging material information includes attributes and original size;
[0112] A main category classification module 402, for classifying the inner packaging material into a plurality of main categories according to the attributes;
[0113] A sub-category classification module 403 is used to cluster the inner packaging materials in each of the main categories according to the original size to obtain multiple sub-categories;
[0114] The standard size setting module 404 is used to set the standard size for the inner packaging material of the cosmetics in each of the subcategories.
[0115] In one embodiment of the present invention, the attribute includes material, shape, structure or process; the main category classification module 402 includes:
[0116] A first set division module, configured to divide the inner packaging materials into the same first set if the materials of the inner packaging materials are the same;
[0117] A second set division module, configured to divide the inner packaging materials into the same second set if the shapes of the inner packaging materials in the first set are the same;
[0118] The main category classification module is used to classify the inner packaging materials into the same main category if the structures or processes of the inner packaging materials in the second set are the same.
[0119] In one embodiment of the present invention, the original size includes length, width and height; the sub-category classification module 403 includes:
[0120] A vector encoding module, used for encoding the length, the width and the height into a vector of the inner packaging material;
[0121] Quantity setting module, used to set multiple quantities;
[0122] A candidate category clustering module, used to initialize a plurality of candidate categories in each of the main categories according to the respective quantities, and cluster the inner packaging materials into the plurality of candidate categories using the vectors;
[0123] An index value calculation module, used for calculating an index value representing the quality of clustering for each of the quantities and for the plurality of candidate categories in each of the main categories;
[0124] The sub-category screening module is used to screen out a plurality of candidate categories with the best index values from each of the main categories as a plurality of sub-categories.
[0125] In an example of an embodiment of the present invention, the candidate category clustering module includes:
[0126] A center distance calculation module, used to calculate the center distance between the vector and the center point of each candidate category;
[0127] A candidate category classification module, used for classifying the inner packaging material into the candidate category with the smallest center distance;
[0128] A center point updating module, used to update the center point in each candidate category using an average value of the vector;
[0129] A stop condition judgment module, used to judge whether the preset stop condition is met; if so, the clustering completion module is executed; if not, the center distance calculation module is returned to execute;
[0130] The clustering completion module is used to determine the completion of clustering.
[0131] In one embodiment of the present invention, the indicator value calculation module includes:
[0132] A standard deviation calculation module, used for calculating the standard deviation of each of the quantities and the vectors in each of the candidate categories in each of the main categories;
[0133] An average value calculation module, used to calculate an average value of the plurality of standard deviations as an indicator value characterizing the quality of clustering;
[0134] The sub-category screening module includes:
[0135] The average value screening module is used to screen out a plurality of candidate categories with the smallest average values in each of the main categories as a plurality of subcategories.
[0136] In one embodiment of the present invention, the standard size setting module 404 includes:
[0137] A point combination module, for combining the original size of the inner packaging material with the characteristic center point of the sub-category in each of the sub-categories; the characteristic center of the sub-category is the point with the smallest sum of distances to the original size of the inner packaging material;
[0138] A point distance calculation module, used for calculating the point distance between the original size of the inner packaging material and the characteristic center of the sub-category in each of the point combinations;
[0139] The original size setting module is used to set the original size with the smallest point distance as the standard size of the inner packaging material in the sub-category.
[0140] In one embodiment of the present invention, it also includes:
[0141] An element code configuration module, used for configuring element codes for the standard size;
[0142] A packaging material library storage module, used to establish a mapping relationship between the product information of the cosmetic, the packaging material information of the inner packaging material and the element code in a preset packaging material library;
[0143] A query matching module, configured to match the query parameters in the query request with the product information and the packaging material information in the packaging material library when receiving the query request sent by the client;
[0144] The information sending module is used to send the product information, the packaging material information and the element code with the mapping relationship to the client for display when the matching is successful.
[0145] The standardization device for cosmetic packaging materials provided in the embodiment of the present invention can execute the standardization method for cosmetic packaging materials provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the standardization method for cosmetic packaging materials.
[0146] Embodiment 4
[0147] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0148] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0149] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0150] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the standardization method of cosmetic packaging materials.
[0151] In some embodiments, the standardization method of cosmetic packaging materials can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the standardization method of cosmetic packaging materials described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the standardization method of cosmetic packaging materials in any other appropriate manner (for example, by means of firmware).
[0152] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0153] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0154] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0155] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0156] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0157] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0158] Embodiment 5
[0159] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the standardization method of cosmetic packaging materials provided by any embodiment of the present invention.
[0160] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0161] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0162] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for standardizing cosmetic packaging materials, characterized in that: include: Query the packaging material information of the inner packaging materials for various cosmetics; The packaging material information includes properties and original dimensions; Classifying the inner packaging materials into a plurality of main categories according to the attributes; In each of the main categories, the inner packaging materials are clustered according to the original sizes to obtain a plurality of subcategories; In each of the subcategories, standard sizes are set for the inner packaging materials of the cosmetics; Wherein, in each of the subcategories, the standard size of the inner packaging material of the cosmetics is set, including: In each of the subcategories, the original size of the inner packaging material is combined with the characteristic center constituent point of the subcategory; the characteristic center of the subcategory is the point where the sum of the distances to the original size of the inner packaging material is the smallest; In each of the point combinations, calculating the point distance between the original size of the inner packaging material and the characteristic center of the sub-category; The original size with the smallest point distance is set as the standard size of the inner packaging material in the subcategory.
2. The method according to claim 1, characterized in that The attributes include material, shape, structure or process; the inner packaging materials are divided into multiple main categories according to the attributes, including: If the materials of the inner packaging materials are the same, the inner packaging materials are classified into the same first set; In the first set, if the shapes of the inner packaging materials are the same, the inner packaging materials are divided into the same second set; In the second set, if the structures or processes of the inner packaging materials are the same, the inner packaging materials are classified into the same main category.
3. The method according to claim 1, characterized in that The original dimensions include length, width and height; in each of the main categories, the inner packaging materials are clustered according to the original dimensions to obtain multiple subcategories, including: Encoding the length, the width, and the height into a vector of the inner packaging material; Set multiple quantities; Initializing a plurality of candidate categories in each of the main categories according to the respective quantities, and clustering the inner packaging materials into the plurality of candidate categories using the vectors; In each of the main categories, for each of the quantities, an index value representing the quality of clustering is calculated for the plurality of candidate categories; In each of the main categories, a plurality of candidate categories with the best index values are screened out as a plurality of subcategories.
4. The method according to claim 3, characterized in that The step of clustering the inner packaging material into a plurality of candidate categories using the vector comprises: Calculating the center distance between the vector and the center point of each candidate category; Classifying the inner packaging material into the candidate category with the smallest center distance; In each of the candidate categories, the center point is updated using the average value of the vector; Determine whether a preset stop condition is met; if so, determine that clustering is completed; if not, return to execute the calculation of the center distance between the vector and the center point of each candidate category.
5. The method according to claim 3, characterized in that: The step of calculating, in each of the main categories, an index value representing the quality of clustering for each of the numbers and for the plurality of candidate categories comprises: In each of the main categories, for each of the quantities, a standard deviation is calculated for the vectors in each of the candidate categories; Calculating an average value of the plurality of standard deviations as an indicator value representing the quality of clustering; In each of the main categories, a plurality of candidate categories with the best index values are screened out as a plurality of subcategories, including: In each of the main categories, a plurality of candidate categories with the smallest average values are screened out as a plurality of subcategories.
6. The method according to any one of claims 1 to 5, characterized in that Also includes: Configuring element codes for the standard sizes; Establishing a mapping relationship between the product information of the cosmetic, the packaging material information of the inner packaging material and the element code in a preset packaging material library; When receiving a query request sent by a client, matching the query parameters in the query request with the product information and the packaging material information in the packaging material library; When the match is successful, the product information, the packaging material information and the element code having the mapping relationship are sent to the client for display.
7. A standardization device for cosmetic packaging, characterized in that: include: The packaging material information query module is used to query the packaging material information of various cosmetics; The packaging material information includes properties and original dimensions; A main category classification module, used to classify the inner packaging material into a plurality of main categories according to the attributes; A sub-category classification module, used for clustering the inner packaging materials according to the original size in each of the main categories to obtain multiple sub-categories; A standard size setting module, used to set a standard size for the inner packaging material of the cosmetics in each of the subcategories; Wherein, the standard size setting module includes: A point combination module, for combining the original size of the inner packaging material with the characteristic center point of the sub-category in each of the sub-categories; the characteristic center of the sub-category is the point with the smallest sum of distances to the original size of the inner packaging material; A point distance calculation module, used for calculating the point distance between the original size of the inner packaging material and the characteristic center of the sub-category in each of the point combinations; The original size setting module is used to set the original size with the smallest point distance as the standard size of the inner packaging material in the sub-category.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the standardization method for cosmetic packaging materials according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the standardization method of cosmetic packaging materials according to any one of claims 1 to 6 when executed.