Size information determination method and device, electronic equipment and storage medium
By automatically determining the size of the packaging box for filter rod assembly, the problem of idle space caused by mismatched packaging box sizes is solved, the transportation integrity of the filter rods and the accuracy of the packaging box size information are improved, and the assembly efficiency is improved.
Patent Information
- Application Number
- CN202410560682.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, when the filter rod is assembled, the size of the packaging box does not match, resulting in too much idle space, which reduces the transportation integrity of the filter rod, and the manual sampling method is inefficient and cannot quickly and accurately determine the appropriate packaging box size. .
By obtaining filter rod assembly tasks and optional packaging box size information, based on the target filter rod diameter and preset assembly conditions, the maximum assembly quantity of optional packaging boxes and the target packaging box size are automatically determined, improving the efficiency and accuracy of determining packaging box size information. accuracy.
It realizes automated packaging box size determination, reduces idle space, improves the transportation integrity of filter rods and the accuracy of packaging box size information, and improves assembly efficiency.
Smart Images

Figure CN118536893A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for determining size information. Background Art
[0002] Before the order is shipped, the filter rods usually need to be packed into a box to complete the order shipment preparation. And during the transportation process, the smaller the idle space in the box, the more intact the filter rods in the box are. However, for each order with different numbers of shipped filter rods and different sizes of shipped filter rods, if a uniform size of packaging box is used to assemble the filter rods in the order, there will be different degrees of idle space in the packaging box after the filter rods are assembled, which reduces the integrity of the filter rods after transportation.
[0003] At present, manual sampling is usually used to roughly determine the packaging box size information corresponding to each order to ensure that the idle space in the packaging box is within an acceptable range when the filter rod assembly is completed. However, this manual sampling method requires multiple production of sample packaging boxes of different sizes based on manual experience and multiple actual filter rod assembly tests, which is time-consuming and labor-intensive, and reduces the efficiency of determining the packaging box size. Summary of the invention
[0004] The embodiments of the present invention provide a size information determination method, device, electronic device and storage medium to automatically determine the size information of a packaging box for assembling filter rods, thereby improving the efficiency and accuracy of determining the size information of the packaging box.
[0005] In a first aspect, an embodiment of the present invention provides a method for determining size information, including:
[0006] Acquire a filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled;
[0007] Based on the target filter rod diameter, the optional packaging box size information and the preset assembly conditions, determining the maximum assembly quantity of the target filter rods assembled with the optional packaging box;
[0008] Based on the maximum assembly quantity and the target number of filter rods, target packaging box size information for assembling the target filter rods is determined.
[0009] Furthermore, the method also includes: the target filter rod is vertically assembled into the packaging box; the preset assembly conditions include preset row assembly conditions and preset column assembly conditions; based on the optional length in the optional packaging box size information, the target filter rod diameter and the preset row assembly conditions, the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box is determined; based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly conditions, the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box is determined; based on the actual assembly quantity of each row and the actual assembly quantity of each column, the maximum assembly quantity of the target filter rods assembled in the optional packaging box is determined.
[0010] Furthermore, the method also includes: processing the target filter rod diameter based on a preset filter rod gap in the preset row assembly condition to obtain a first filter rod reference diameter; determining a reference assembly quantity per row of target filter rods for the optional packaging box based on an optional length in the optional packaging box size information and the first filter rod reference diameter; and determining an actual assembly quantity per row of target filter rods for the optional packaging box based on the reference assembly quantity per row and a preset correction parameter in the preset row assembly condition.
[0011] Furthermore, the method also includes: rounding the reference assembly quantity per row to determine the rounded assembly quantity per row of the target filter rods to be assembled in the optional packaging box; and determining the actual assembly quantity per row of the target filter rods to be assembled in the optional packaging box based on the reference assembly quantity per row, the rounded assembly quantity per row and preset correction parameters in the preset row assembly conditions.
[0012] Furthermore, the method also includes: determining the corrected assembly quantity per row based on the rounded assembly quantity per row and the preset correction parameters in the preset row assembly conditions; if the reference assembly quantity per row is greater than the corrected assembly quantity per row, determining the rounded assembly quantity per row as the actual assembly quantity per row of the target filter rods for assembly in the optional packaging box; if the reference assembly quantity per row is less than or equal to the corrected assembly quantity per row, determining the difference between the rounded assembly quantity per row and the preset correction parameters as the actual assembly quantity per row of the target filter rods for assembly in the optional packaging box.
[0013] Furthermore, the method also includes: determining the difference between the optional width in the optional packaging box size information and the target filter rod diameter; processing the target filter rod diameter based on the preset diameter weight in the preset column assembly condition to obtain a second filter rod reference diameter; and determining the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box based on the difference, the second filter rod reference diameter and the preset compensation parameters in the preset column assembly condition.
[0014] Furthermore, the method also includes: determining candidate packaging box size information from the optional packaging box size information, wherein the maximum assembly quantity is greater than or equal to the target filter rod quantity; determining the difference between the maximum assembly quantity corresponding to the candidate packaging box size information and the target filter rod quantity, and based on the difference, determining the target packaging box size information for assembling the target filter rods.
[0015] In a second aspect, an embodiment of the present invention further provides a device for determining size information, the device comprising:
[0016] An information acquisition module, used to acquire filter rod assembly tasks and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled;
[0017] A maximum assembly quantity determination module, used to determine the maximum assembly quantity of the target filter rods assembled in the optional packaging box based on the target filter rod diameter, the optional packaging box size information and preset assembly conditions;
[0018] The target packaging box size information determination module is used to determine the target packaging box size information for assembling the target filter rods based on the maximum assembly quantity and the target filter rod quantity.
[0019] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the size information determination method as described in any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the size information determination method as described in any embodiment of the present invention.
[0021] The technical solution of the embodiment of the present invention is to obtain a filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled; based on the target filter rod diameter, the optional packaging box size information and preset assembly conditions, determine the maximum assembly number of target filter rods for the optional packaging box; thereby automatically determining the target packaging box size information for assembling the target filter rods based on the maximum assembly number and the target number of filter rods, thereby improving the efficiency and accuracy of determining the packaging box size information.
[0022] 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
[0023] 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.
[0024] Figure 1 is a flow chart of a method for determining size information provided in Embodiment 1 of the present invention;
[0025] Figure 2 is a flow chart of a method for determining size information provided by Embodiment 2 of the present invention;
[0026] Figure 3 is an example diagram of a target filter rod assembly method involved in the second embodiment of the present invention;
[0027] Figure 4 is an example diagram of a target filter rod assembly method involved in the second embodiment of the present invention;
[0028] Figure 5 is an example diagram of a target filter rod assembly method involved in the second embodiment of the present invention;
[0029] Figure 6 is a structural schematic diagram of a size information determination device provided in Embodiment 3 of the present invention;
[0030] Figure 7 It is a structural schematic diagram of an electronic device for implementing the size information determination method of an embodiment of the present invention. DETAILED DESCRIPTION
[0031] 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.
[0032] 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order 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.
[0033] Embodiment 1
[0034] Figure 1 A flowchart of a method for determining size information is provided for the first embodiment of the present invention. This embodiment is applicable to the case of determining the size information of a target packaging box for assembling a target filter rod. The method can be executed by a size information determining device. The size information determining device can be implemented in the form of hardware and / or software. The size information determining device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0035] S110, obtaining filter rod assembly tasks and optional packaging box size information.
[0036] Among them, the filter rod assembly task includes the target filter rod diameter and the target number of filter rods to be assembled. The target filter rod can be a newly produced filter rod or an old filter rod that has been produced. Taking the cigarette filter rod as an example, the target filter rod is a cylinder with a circular cross-section. The target filter rod diameter is the circular diameter. The target number of filter rods may refer to the number of target filter rods to be assembled. For example, the target assembly quantity is the number of filter rods that need to be assembled in this order. The packaging box is a rectangular parallelepiped. The optional packaging box size information includes the length and width of the packaging box. The height of the packaging box needs to be adapted to the length of the filter rod. No matter how many filter rods are assembled in each row and column of the packaging box, the length of the assembled filter rods remains unchanged, and the height of the packaging box can be determined by directly measuring the length of the filter rods.
[0037] Specifically, the filter rod assembly task may be obtained from an order placed by a user, and optional packaging box size information may be obtained from packaging box production records or sizes of raw materials used to produce packaging boxes.
[0038] S120, based on the target filter rod diameter, the optional packaging box size information and the preset assembly conditions, determining the maximum assembly quantity of the target filter rod that can be assembled in the optional packaging box.
[0039] The preset assembly condition may refer to the preset adjustment information for assembling the filter rods into the packaging box. The maximum assembly quantity may refer to the number of filter rods required to fill the packaging box.
[0040] Specifically, the length of the optional packaging box in the optional packaging box size information is divided by the target filter rod diameter to obtain a division result, and the division result is adjusted based on the preset assembly conditions to obtain the maximum assembly quantity per row of the target filter rods that can be assembled with the optional packaging box; the width of the optional packaging box in the optional packaging box size information is divided by the target filter rod diameter to obtain a division result, and the division result is adjusted based on the preset assembly conditions to obtain the maximum assembly quantity per column of the target filter rods that can be assembled with the optional packaging box; the maximum assembly quantity per row is multiplied by the maximum assembly quantity per column to obtain the maximum assembly quantity of the target filter rods that can be assembled with the optional packaging box.
[0041] It should be noted that the preset assembly condition can be empty.
[0042] S130: Determine target packaging box size information for assembling target filter rods based on the maximum assembly quantity and the target number of filter rods.
[0043] The target packaging box size information may refer to the length and width of the packaging box for assembling the target filter rod.
[0044] Specifically, if the maximum assembly quantity is greater than or equal to the target filter rod quantity, indicating that the packaging box generated based on the optional packaging box size information can be used to complete the filter rod assembly task, the optional packaging box size information corresponding to the maximum assembly quantity is determined as the target packaging box size information for assembling the target filter rod.
[0045] On the basis of the above technical solution, "determining the target packaging box size information for assembling the target filter rods based on the maximum assembly quantity and the target number of filter rods" may include: determining the candidate packaging box size information whose maximum assembly quantity is greater than or equal to the target number of filter rods from the optional packaging box size information; determining the difference between the maximum assembly quantity and the target number of filter rods corresponding to the candidate packaging box size information, and based on the difference, determining the target packaging box size information for assembling the target filter rods.
[0046] Specifically, if the maximum assembly quantity is greater than or equal to the target number of filter rods, and the difference between the maximum assembly quantity and the target number of filter rods is less than or equal to the preset error threshold, the optional packaging box size information corresponding to the maximum assembly quantity is determined as the target packaging box size information for assembling the target filter rods. If the maximum assembly quantity is less than the target number of filter rods, the area of a square with the diameter of the target filter rod as the side length is determined, and based on the difference between the maximum assembly quantity and the target number of filter rods and the square area, the area to be expanded is determined, and based on the area to be expanded and the optional packaging box size information corresponding to the maximum assembly quantity, the packaging box size is adjusted to obtain the target packaging box size information for assembling the target filter rod. If the maximum assembly quantity is greater than or equal to the target number of filter rods, and the difference between the maximum assembly quantity and the target number of filter rods is greater than the preset error threshold, the area of a square with the target filter rod diameter as the side length is determined, and the number to be reduced is determined based on the difference between the maximum assembly quantity and the target number of filter rods and the preset error threshold, and the area to be reduced is determined based on the number to be reduced and the square area, and the size of the packaging box is adjusted based on the optional packaging box size information corresponding to the area to be reduced and the maximum assembly quantity to obtain the target packaging box size information for assembling the target filter rod, thereby reducing the idle space in the packaging box and improving the integrity of the filter rods in the packaging box after transportation while ensuring that the packaging box is compatible with the target filter rod.
[0047] The technical solution of the embodiment of the present invention is to obtain a filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled; based on the target filter rod diameter, the optional packaging box size information and preset assembly conditions, determine the maximum assembly number of the target filter rods for assembling the optional packaging box; thereby automatically determining the target packaging box size information for assembling the target filter rods based on the maximum assembly number and the target number of filter rods, thereby improving the efficiency and accuracy of determining the packaging box size information.
[0048] Embodiment 2
[0049] Figure 2 This is a flow chart of a method for determining size information provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment describes in detail the process of determining the maximum number of target filter rods that can be assembled in an optional packaging box. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Figure 2 As shown, the method includes:
[0050] S210, obtaining filter rod assembly tasks and optional packaging box size information.
[0051] The filter rod assembly task includes the target filter rod diameter and the target number of filter rods to be assembled.
[0052] S220: Determine the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box based on the optional length in the optional packaging box size information, the target filter rod diameter, and the preset row assembly condition.
[0053] The target filter rod is vertically assembled into the packaging box; the preset assembly conditions include preset row assembly conditions and preset column assembly conditions. Figure 3 Instructions for assembling the target filter rod, see Figure 3 , showing the assembly method of the target filter rods from a top-down perspective, the filter rods assembled in each row are staggered with the filter rods assembled in the next row. The triangle with the center of the circle of filter rod 1, the center of the circle of filter rod 2 and the center of the circle of filter rod 3 as vertices is an equilateral triangle.
[0054] Specifically, when the optional length, target filter rod diameter and preset row assembly conditions in the optional packaging box size information are input into the corresponding controls, a calculation operation is triggered to determine the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box, and the actual assembly quantity of each row is displayed in the result display control.
[0055] On the basis of the above technical scheme, "determining the actual assembly quantity of each row of target filter rods assembled in the optional packaging box based on the optional length in the optional packaging box size information, the target filter rod diameter and the preset row assembly condition" may include: processing the target filter rod diameter based on the preset filter rod gap in the preset row assembly condition to obtain a first filter rod reference diameter; determining the reference assembly quantity of each row of target filter rods assembled in the optional packaging box based on the optional length in the optional packaging box size information and the first filter rod reference diameter; determining the actual assembly quantity of each row of target filter rods assembled in the optional packaging box based on the reference assembly quantity per row and the preset correction parameters in the preset row assembly condition.
[0056] Among them, the preset filter rod gap can be a preset reserved gap between each filter rod in each row of the packaging box. The first filter rod reference diameter can refer to the diameter distance occupied by the filter rod in each row when the reserved gap is taken into account. The optional length can refer to the length information in the optional packaging box size information. The reference assembly quantity per row can refer to the number of filter rods that can be assembled in each row of the packaging box when the reserved gap is taken into account. The preset correction parameter can refer to a preset parameter for correcting the reference assembly quantity per row.
[0057] Specifically, taking the target filter rod diameter as d, the preset filter rod gap as 0.1 mm, the optional length as L, and the reference assembly quantity per row as m1 as an example, the preset filter rod gap in the preset row assembly condition is added to the target filter rod diameter to obtain the first filter rod reference diameter (d+0.1). The optional length in the optional packaging box size information is divided by the first filter rod reference diameter to obtain the reference assembly quantity per row of the target filter rods assembled in the optional packaging box (m1=L / (d+0.1)). The reference assembly quantity per row is processed based on the preset correction parameters in the preset row assembly condition to determine the actual assembly quantity per row of the target filter rods assembled in the optional packaging box.
[0058] On the basis of the above technical scheme, "determining the actual assembly quantity of each row of target filter rods for assembly in the optional packaging box based on the reference assembly quantity of each row and the preset correction parameters in the preset row assembly conditions" may include: rounding the reference assembly quantity of each row to determine the rounded assembly quantity of each row of target filter rods for assembly in the optional packaging box; determining the actual assembly quantity of each row of target filter rods for assembly in the optional packaging box based on the reference assembly quantity of each row, the rounded assembly quantity of each row and the preset correction parameters in the preset row assembly conditions.
[0059] Specifically, the reference assembly quantity of each row is rounded down, such as 4.9 is rounded to 4, to determine the rounded assembly quantity of each row of the target filter rods for assembly in the optional packaging box; the rounded assembly quantity of each row is processed based on the preset correction parameters in the preset row assembly conditions, and the processing result is compared with the reference assembly quantity of each row, and based on the comparison result, the actual assembly quantity of each row of the target filter rods for assembly in the optional packaging box is determined.
[0060] On the basis of the above technical scheme, "determining the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box based on the reference assembly quantity of each row, the rounded assembly quantity of each row and the preset correction parameters in the preset row assembly conditions" may include: determining the corrected assembly quantity of each row based on the rounded assembly quantity of each row and the preset correction parameters in the preset row assembly conditions; if the reference assembly quantity of each row is greater than the corrected assembly quantity of each row, then determining the rounded assembly quantity of each row as the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box; if the reference assembly quantity of each row is less than or equal to the corrected assembly quantity of each row, then determining the difference between the rounded assembly quantity of each row and the preset correction parameters as the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box.
[0061] Specifically, the above example is used, and the rounded assembly quantity for each row is INT(m1), and the preset correction parameter is 0.5. The rounded assembly quantity for each row is added to the preset correction parameter in the preset row assembly condition to obtain the corrected assembly quantity for each row (INT(m1)+0.5). If the reference assembly quantity for each row is greater than the corrected assembly quantity for each row (m1>INT(m1)+0.5), the rounded assembly quantity for each row is determined as the actual assembly quantity for each row of the target filter rod assembled in the optional packaging box (INT(m1)). Figure 4 A filter rod assembly method is shown when the reference assembly quantity per row is greater than the corrected assembly quantity per row. If the reference assembly quantity per row is less than or equal to the corrected assembly quantity per row (m1≤INT(m1)+0.5), the difference between the rounded assembly quantity per row and the preset correction parameter is determined as the actual assembly quantity per row of the target filter rods assembled in the optional packaging box (INT(m1)-0.5). Figure 5 A filter rod assembly method is shown when the reference assembly quantity per row is less than or equal to the corrected assembly quantity per row. The method of determining the actual assembly quantity per row based on the above comparison results improves the adaptability of the packaging box and the filter rods, and further improves the accuracy of determining the packaging box size information.
[0062] S230: Determine the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly condition.
[0063] The optional width may refer to the width information in the optional packaging box size information.
[0064] Specifically, when the optional width, target filter rod diameter and preset column assembly conditions in the optional packaging box size information are input into the corresponding controls, a calculation operation is triggered to determine the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box, and the actual assembly quantity of each column is displayed in the result display control.
[0065] On the basis of the above technical scheme, "determining the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly conditions" may include: determining the difference between the optional width in the optional packaging box size information and the target filter rod diameter; processing the target filter rod diameter based on the preset diameter weight in the preset column assembly conditions to obtain a second filter rod reference diameter; determining the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box based on the difference, the second filter rod reference diameter and the preset compensation parameters in the preset column assembly conditions.
[0066] Among them, the preset diameter weight is Figure 3The preset diameter weight may characterize the degree of interleaving of filter rods in each column. The second filter rod reference diameter may refer to the diameter distance of the filter rods in each column when the degree of interleaving of filter rods is considered. The preset compensation parameter may refer to the pre-set compensation parameter of each column of filter rods.
[0067] Specifically, following the above example, the optional width is W and the preset diameter weight is The preset compensation parameter is 1, and the reference assembly quantity per column is m2. Determine the difference (Wd) between the optional width in the optional packaging box size information and the target filter rod diameter. Multiply the preset diameter weight in the preset column assembly condition by the target filter rod diameter to obtain the second filter rod reference diameter. Divide the difference by the reference diameter of the second filter rod to obtain the result of the division. Add the division result to the preset compensation parameter to obtain the reference assembly quantity for each column The reference assembly quantity in each column is rounded down to obtain the actual assembly quantity (INT(m2)) in each column of the target filter rods assembled in the optional packaging box.
[0068] S240: Based on the actual assembly quantity of each row and the actual assembly quantity of each column, determine the maximum assembly quantity of the target filter rods that can be assembled in the optional packaging box.
[0069] Specifically, the actual assembly quantity of each row and the actual assembly quantity of each column are multiplied, and the multiplication result is determined as the maximum assembly quantity of the target filter rods that can be assembled in the optional packaging box.
[0070] S250: Determine target packaging box size information for assembling target filter rods based on the maximum assembly quantity and the target number of filter rods.
[0071] The technical solution of the embodiment of the present invention determines the actual assembly quantity of target filter rods in each row of the optional packaging box based on the optional length, target filter rod diameter and preset row assembly conditions in the optional packaging box size information; determines the actual assembly quantity of target filter rods in each column of the optional packaging box based on the optional width, target filter rod diameter and preset column assembly conditions in the optional packaging box size information; thereby determining the maximum assembly quantity of target filter rods in the optional packaging box when the target filter rod is vertically assembled into the packaging box by utilizing the respectively determined actual assembly quantity of target filter rods in each row and the actual assembly quantity in each column of the optional packaging box, thereby improving the maximum space utilization of the packaging box and the adaptability of the target filter rod to the packaging box, and further improving the efficiency and accuracy of determining the packaging box size information.
[0072] The following is an embodiment of a size information determination device provided in an embodiment of the present invention. The device and the size information determination methods of the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the size information determination device, reference can be made to the embodiment of the above-mentioned size information determination method.
[0073] Embodiment 3
[0074] Figure 6 This is a schematic diagram of the structure of a device for determining size information provided by Embodiment 3 of the present invention. Figure 6 As shown, the device includes: an information acquisition module 610, a maximum assembly quantity determination module 620 and a target packaging box size information determination module 630.
[0075] Among them, the information acquisition module 610 is used to obtain the filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes the target filter rod diameter and the target number of filter rods to be assembled; the maximum assembly quantity determination module 620 is used to determine the maximum assembly quantity of the target filter rods for assembling the optional packaging box based on the target filter rod diameter, the optional packaging box size information and the preset assembly conditions; the target packaging box size information determination module 630 is used to determine the target packaging box size information for assembling the target filter rods based on the maximum assembly quantity and the target number of filter rods.
[0076] The technical solution of the embodiment of the present invention is to obtain a filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled; based on the target filter rod diameter, the optional packaging box size information and preset assembly conditions, determine the maximum assembly number of the target filter rods for assembling the optional packaging box; thereby automatically determining the target packaging box size information for assembling the target filter rods based on the maximum assembly number and the target number of filter rods, thereby improving the efficiency and accuracy of determining the packaging box size information.
[0077] On the basis of the above technical solution, the target filter rod is vertically assembled into the packaging box; the preset assembly conditions include preset row assembly conditions and preset column assembly conditions;
[0078] The maximum assembly quantity determination module 620 may include:
[0079] A submodule for determining the actual number of filters to be assembled in each row, for determining the actual number of filters to be assembled in each row of the optional packaging box based on the optional length, the target filter rod diameter and the preset row assembly conditions in the optional packaging box size information;
[0080] A submodule for determining the actual assembly quantity per column, for determining the actual assembly quantity per column of the target filter rods assembled in the optional packaging box based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly conditions;
[0081] The maximum assembly quantity determination submodule is used to determine the maximum assembly quantity of the target filter rods assembled in the optional packaging box based on the actual assembly quantity of each row and the actual assembly quantity of each column.
[0082] Based on the above technical solution, the submodule for determining the actual assembly quantity of each row may include:
[0083] A first filter rod reference diameter determination unit, used for processing the target filter rod diameter based on the preset filter rod gap in the preset row assembly condition to obtain a first filter rod reference diameter;
[0084] A reference assembly quantity determination unit for each row, used to determine the reference assembly quantity for each row of target filter rods assembled in the optional packaging box based on the optional length in the optional packaging box size information and the reference diameter of the first filter rod;
[0085] The actual assembly quantity determination unit for each row is used to determine the actual assembly quantity for each row of the target filter rods assembled in the optional packaging box based on the reference assembly quantity for each row and the preset correction parameters in the preset row assembly conditions.
[0086] Based on the above technical solution, the actual assembly quantity determination unit for each row may include:
[0087] A subunit for determining the number of rounded assemblies per row, for rounding the reference assembly quantity per row to determine the number of rounded assemblies per row of target filter rods to be assembled in the optional packaging box;
[0088] The actual assembly quantity per row determining subunit is used to determine the actual assembly quantity per row of the target filter rods assembled in the optional packaging box based on the reference assembly quantity per row, the rounded assembly quantity per row and the preset correction parameters in the preset row assembly conditions.
[0089] On the basis of the above technical scheme, the subunit for determining the actual assembly quantity of each row is specifically used to: determine the corrected assembly quantity of each row based on the rounded assembly quantity of each row and the preset correction parameters in the preset row assembly conditions; if the reference assembly quantity of each row is greater than the corrected assembly quantity of each row, the rounded assembly quantity of each row is determined as the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box; if the reference assembly quantity of each row is less than or equal to the corrected assembly quantity of each row, the difference between the rounded assembly quantity of each row and the preset correction parameters is determined as the actual assembly quantity of each row of the target filter rods assembled in the optional packaging box.
[0090] Based on the above technical solution, the submodule for determining the actual assembly quantity in each column is specifically used to: determine the difference between the optional width in the optional packaging box size information and the target filter rod diameter; process the target filter rod diameter based on the preset diameter weight in the preset column assembly condition to obtain the second filter rod reference diameter; determine the actual assembly quantity in each column of the target filter rods in the optional packaging box based on the difference, the second filter rod reference diameter and the preset compensation parameters in the preset column assembly condition.
[0091] Based on the above technical solution, the target packaging box size information determination module 630 is specifically used to: determine the candidate packaging box size information whose maximum assembly quantity is greater than or equal to the target number of filter rods from the optional packaging box size information; determine the difference between the maximum assembly quantity corresponding to the candidate packaging box size information and the target number of filter rods, and based on the difference, determine the target packaging box size information for assembling the target filter rods.
[0092] The size information determination device provided in the embodiment of the present invention can execute the size information determination method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the size information determination method.
[0093] It is worth noting that in the above-mentioned embodiment of determining the size information, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0094] Embodiment 4
[0095] Figure 7 A schematic diagram of the structure 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 electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. 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 required herein.
[0096] like Figure 7As 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.
[0097] 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.
[0098] 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 dedicated 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 a size information determination method.
[0099] In some embodiments, the size information determination method may 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 may 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 size information determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the size information determination method in any other appropriate manner (e.g., by means of firmware).
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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).
[0104] 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.
[0105] 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.
[0106] 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.
[0107] 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 determining size information, characterized in that: include: Acquire a filter rod assembly task and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled; Based on the target filter rod diameter, the optional packaging box size information and the preset assembly conditions, determining the maximum assembly quantity of the target filter rods assembled with the optional packaging box; Based on the maximum assembly quantity and the target number of filter rods, target packaging box size information for assembling the target filter rods is determined.
2. The method according to claim 1, characterized in that The target filter rod is vertically assembled into the packaging box; the preset assembly conditions include preset row assembly conditions and preset column assembly conditions; The step of determining the maximum number of target filter rods that can be assembled in the optional packaging box based on the target filter rod diameter, the optional packaging box size information, and the preset assembly conditions includes: Determine the actual assembly quantity of each row of target filter rods assembled in the optional packaging box based on the optional length in the optional packaging box size information, the target filter rod diameter and the preset row assembly condition; Determine the actual assembly quantity of each column of target filter rods assembled in the optional packaging box based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly condition; Based on the actual assembly quantity of each row and the actual assembly quantity of each column, the maximum assembly quantity of the target filter rods that can be assembled in the optional packaging box is determined.
3. The method according to claim 2, characterized in that The step of determining the actual number of filter rods to be assembled in each row of the optional packaging box based on the optional length in the optional packaging box size information, the target filter rod diameter and the preset row assembly condition comprises: Processing the target filter rod diameter based on the preset filter rod gap in the preset row assembly condition to obtain a first filter rod reference diameter; Based on the optional length in the optional packaging box size information and the first filter rod reference diameter, a reference assembly quantity per row of target filter rods for the optional packaging box is determined; Based on the reference assembly quantity per row and the preset correction parameters in the preset row assembly conditions, the actual assembly quantity per row of the target filter rods assembled in the optional packaging box is determined.
4. The method according to claim 3, characterized in that The step of determining the actual assembly quantity of each row of target filter rods assembled in the optional packaging box based on the reference assembly quantity of each row and the preset correction parameter in the preset row assembly condition comprises: Rounding the reference assembly quantity in each row to determine the rounded assembly quantity in each row of the target filter rods to be assembled in the optional packaging box; Based on the reference assembly quantity per row, the rounded assembly quantity per row and the preset correction parameters in the preset row assembly conditions, the actual assembly quantity per row of the target filter rods assembled in the optional packaging box is determined.
5. The method according to claim 4, characterized in that The step of determining the actual assembly quantity of each row of target filter rods assembled in the optional packaging box based on the reference assembly quantity of each row, the rounded assembly quantity of each row, and the preset correction parameter in the preset row assembly condition comprises: Determining a corrected assembly quantity for each row based on the rounded assembly quantity for each row and a preset correction parameter in the preset row assembly condition; If the reference assembly quantity per row is greater than the corrected assembly quantity per row, the rounded assembly quantity per row is determined as the actual assembly quantity per row of the target filter rods assembled in the optional packaging box; If the reference assembly quantity per row is less than or equal to the corrected assembly quantity per row, the difference between the rounded assembly quantity per row and the preset correction parameter is determined as the actual assembly quantity per row of the target filter rods assembled in the optional packaging box.
6. The method according to claim 2, characterized in that The step of determining the actual assembly quantity of each column of target filter rods assembled in the optional packaging box based on the optional width in the optional packaging box size information, the target filter rod diameter and the preset column assembly condition comprises: Determine the difference between the optional width in the optional packaging box size information and the target filter rod diameter; Processing the target filter rod diameter based on the preset diameter weight in the preset column assembly condition to obtain a second filter rod reference diameter; Based on the difference, the second filter rod reference diameter and the preset compensation parameter in the preset column assembly condition, the actual assembly quantity of each column of the target filter rods assembled in the optional packaging box is determined.
7. The method according to claim 1, characterized in that The step of determining target packaging box size information for assembling target filter rods based on the maximum assembly quantity and the target number of filter rods includes: Determine candidate packaging box size information from the optional packaging box size information, wherein the maximum assembly quantity is greater than or equal to the target filter rod quantity; The difference between the maximum assembly quantity corresponding to the candidate packaging box size information and the target number of filter rods is determined, and based on the difference, the target packaging box size information for assembling the target filter rods is determined.
8. A device for determining size information, characterized in that: The device comprises: An information acquisition module, used to acquire filter rod assembly tasks and optional packaging box size information, wherein the filter rod assembly task includes a target filter rod diameter and a target number of filter rods to be assembled; A maximum assembly quantity determination module, used to determine the maximum assembly quantity of the target filter rods assembled in the optional packaging box based on the target filter rod diameter, the optional packaging box size information and preset assembly conditions; The target packaging box size information determination module is used to determine the target packaging box size information for assembling the target filter rods based on the maximum assembly quantity and the target filter rod quantity.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the size information determination method as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the size information determination method as described in any one of claims 1 to 7 is implemented.
