Article package detection method, system, device and equipment and storage medium
By acquiring item information and scanning images, a scanning strategy is determined to measure physical property parameters, solving the problem of cumbersome manual packaging inspection in existing technologies and realizing intelligent and rapid packaging evaluation.
Patent Information
- Application Number
- CN202510826810.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-11-14
AI Technical Summary
Existing technologies are cumbersome to determine whether a product is over-packaged, requiring manual verification of products with different attributes, and measurement methods such as immersion and weighing are inefficient.
The system obtains item information through a configuration interface, acquires target images of the packaging layer and contents using a scanning device, determines the scanning strategy, measures physical property parameters, calculates packaging evaluation indicators based on these parameters, and automatically determines whether the preset packaging conditions are met.
It enables simplified and intelligent packaging inspection, quickly determining whether packaging meets preset conditions, thus improving inspection efficiency and accuracy.
Smart Images

Figure CN120947722A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of artificial intelligence technology, specifically relating to a method, system, device, equipment, and storage medium for detecting product packaging. Background Technology
[0002] The packaging of goods sold must meet certain standards. For example, when selling mooncakes: the ratio between the volume of the mooncake and the volume of the box must be within a certain range, and the ratio between the weight of the mooncake and the weight of the box must also be within a certain range. If these ranges are exceeded, it is considered excessive packaging.
[0003] Currently, volume measurement is often done by immersion, where the object to be measured is placed in water, and the volume of the object is obtained by the volume of water that overflows. The volume ratio is then calculated manually. Weighing measurement is also a manual operation.
[0004] Furthermore, the requirements for judging whether a product is over-packaged vary depending on its attributes. For example, attributes such as product type, whether it is inflated, and whether it is mixed all need to be manually checked, which is cumbersome. Summary of the Invention
[0005] This application proposes a method, system, device, equipment, and storage medium for testing product packaging. It can obtain packaging evaluation indicators for determining whether the packaging meets the preset packaging conditions through simplified and intelligent operation, so as to quickly detect whether the product to be tested is over-packaged.
[0006] The first aspect of this application provides a method for detecting article packaging, including:
[0007] The item information of the item to be detected is obtained through the configuration interface. The item information includes the item type and packaging method.
[0008] Use scanning equipment to acquire target images corresponding to the packaging layer and the contents;
[0009] Based on the target image, determine the scanning strategy corresponding to each of the packaging layer and the contents;
[0010] The control and detection device measures the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be tested according to the corresponding scanning strategy.
[0011] Based on the first physical property parameter and the second physical property parameter, the packaging evaluation index of the item to be tested is determined;
[0012] Based on the item information of the item to be tested and the packaging evaluation index, it is determined whether the item to be tested meets the preset packaging conditions.
[0013] An embodiment of the second aspect of this application provides a product packaging inspection system applied to the product packaging inspection method described in the first aspect, comprising: a configuration interface, a processor, and a control inspection device;
[0014] The configuration interface is used to obtain the item information of the item to be detected, including the item type and packaging method;
[0015] The control and detection device is used to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device; determine the scanning strategy corresponding to the packaging layer and the contents respectively based on the target images; and measure the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be detected respectively.
[0016] The processor is used to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter;
[0017] The processor is also used to determine whether the item to be tested meets the preset packaging conditions based on the item information of the item to be tested and the packaging evaluation index.
[0018] An embodiment of the third aspect of this application provides an article packaging control and detection device, comprising:
[0019] The acquisition module is used to acquire the item information of the item to be detected through the configuration interface. The item information includes the item type and packaging method.
[0020] The acquisition module is also used to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device;
[0021] The determination module is used to determine the scanning strategy corresponding to the packaging layer and the contents based on the target image;
[0022] The measurement module is used to control the detection device to measure the first physical property parameters of the packaging layer and the second physical property parameters of the contents of the item to be tested according to the corresponding scanning strategy.
[0023] The determining module is further configured to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter;
[0024] The determining module is further configured to determine whether the item to be tested meets the preset packaging conditions based on the item information of the item to be tested and the packaging evaluation index.
[0025] An embodiment of the fourth aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor running the computer program to implement the method described in the first aspect above.
[0026] An embodiment of the fifth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the method described in the first aspect above.
[0027] The technical solutions provided in this application embodiment have at least the following technical effects or advantages:
[0028] This application proposes a method, system, apparatus, device, and storage medium for detecting product packaging, comprising: acquiring product information of the product to be detected through a configuration interface, the product information including product type and packaging method; acquiring target images corresponding to the packaging layer and the contents respectively using a scanning device; determining scanning strategies corresponding to the packaging layer and the contents respectively based on the target images; controlling the detection device to measure a first physical property parameter of the packaging layer and a second physical property parameter of the contents of the product to be detected according to the scanning strategy; determining packaging evaluation indicators of the product to be detected based on the physical property parameters; and determining whether the product to be detected meets preset packaging conditions based on the product information and packaging evaluation indicators. The embodiments of this application obtain the packaging evaluation indicators needed to determine whether the packaging meets preset packaging conditions through simplified and intelligent operation, thereby quickly detecting whether the product to be detected is over-packaged.
[0029] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0030] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings.
[0031] In the attached diagram:
[0032] Figure 1 A flowchart of a method for testing article packaging provided in an embodiment of this application is shown;
[0033] Figure 2 This illustration shows a structural schematic diagram of an article packaging inspection device according to an embodiment of this application;
[0034] Figure 3This illustration shows a structural schematic diagram of an article packaging control and detection device provided in one embodiment of this application;
[0035] Figure 4 This illustration shows a schematic diagram of the structure of an electronic device according to an embodiment of this application;
[0036] Figure 5 A schematic diagram of a storage medium provided in one embodiment of this application is shown. Detailed Implementation
[0037] Exemplary embodiments of this application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0038] It should be noted that, unless otherwise stated, the technical or scientific terms used in this application shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains.
[0039] The article packaging inspection method of this application can be performed by a computing device. The computing device can be a server, such as a single server, multiple servers, a server cluster, a cloud computing platform, etc. Optionally, the computing device can also be a terminal device, such as a mobile phone, tablet computer, game console, portable computer, desktop computer, advertising machine, all-in-one machine, etc. This application does not limit the type or number of computing devices.
[0040] The following describes a method for testing article packaging according to an embodiment of this application, with reference to the accompanying drawings.
[0041] See Figure 1 The method specifically includes the following steps:
[0042] S101. Obtain the item information of the item to be detected through the configuration interface.
[0043] Item information includes item type and packaging method.
[0044] The configuration interface can receive the item information of the item to be detected by the user. The item to be detected is a packaged item, such as packaged mooncakes, packaged cookies, and packaged tea.
[0045] The types of items can be food, medicine, daily necessities, etc., and the packaging methods can include inflated, non-inflated, mixed, and non-mixed, etc. Among them, mixed packaging means that the item to be tested contains multiple contents.
[0046] It is understandable that different types of goods and different packaging methods have different over-packaging conditions.
[0047] S102. Use a scanning device to acquire target images corresponding to the packaging layer and the contents, respectively.
[0048] S103. Determine the scanning strategies corresponding to the packaging layer and the contents based on the target image.
[0049] To ensure the accuracy of the measured first physical property parameters of the packaging layer and the second physical property parameters of the contents, accurate three-dimensional images are required, thus necessitating the specification of a corresponding scanning strategy.
[0050] In some embodiments, different scanning strategies can be formulated based on the image features of objects in the target image. For example, if the object is large, it needs to be scanned at different positions and with different poses to obtain a complete 3D model of the object. If the object has high transparency and cannot be scanned to obtain the corresponding 3D model, the object can be sprayed to obtain a complete 3D model.
[0051] S104. The control detection device measures the first physical property parameters of the packaging layer and the second physical property parameters of the contents in the item to be tested according to the corresponding scanning strategy.
[0052] S105. Based on the first physical property parameter and the second physical property parameter, determine the packaging evaluation index of the item to be tested.
[0053] The first physical property parameter and the second physical property parameter can include volume and mass, respectively. Correspondingly, the control and detection device can include a device for measuring volume and mass. A three-dimensional model of the packaging layer and the contents can be determined by a scanning device, and the volume of the packaging layer and the contents can be obtained based on the three-dimensional model. The mass of the packaging layer and the contents can be determined by a weight sensor.
[0054] The contents refer to the items that are packaged, that is, the objects that the packaging protects, contains, and transports. The packaging layer refers to the materials or structures used to package the contents, which serve to protect, decorate, facilitate transportation, and store the contents.
[0055] Alternatively, packaging evaluation indicators can be used to determine whether the item under test is over-packaged. These indicators can be obtained from a first physical property parameter and a second physical property parameter.
[0056] S106. Based on the item information and packaging evaluation indicators of the item to be tested, determine whether the item to be tested meets the preset packaging conditions.
[0057] Since the first physical property parameter and the second physical property parameter can include volume and mass respectively, the packaging evaluation index can include packaging porosity and packaging mass ratio. The preset packaging conditions can be set according to the packaging evaluation index. Corresponding to packaging porosity and packaging mass ratio, packaging porosity threshold and packaging mass ratio threshold can be set.
[0058] Generally, different types of items and packaging methods have different preset packaging conditions. Packaging methods include inflatable non-mixed packaging, inflatable mixed packaging, non-inflatable non-mixed packaging, and inflatable mixed packaging, etc.
[0059] After determining the packaging evaluation indicators, and combining the preset packaging conditions corresponding to the same item type and packaging method, it can be automatically determined whether the item under test is over-packaged.
[0060] This application proposes a method for detecting article packaging, comprising: acquiring article information of the article to be detected through a configuration interface, the article information including article type and packaging method; acquiring target images corresponding to the packaging layer and the contents respectively using a scanning device; determining scanning strategies corresponding to the packaging layer and the contents respectively based on the target images; controlling a detection device to measure a first physical property parameter of the packaging layer and a second physical property parameter of the contents in the article to be detected according to the scanning strategy; determining packaging evaluation indicators of the article to be detected based on the physical property parameters; and determining whether the article to be detected meets preset packaging conditions based on the article information and packaging evaluation indicators. This application's embodiments obtain the packaging evaluation indicators needed to determine whether the packaging meets preset packaging conditions through simplified and intelligent operation, thereby quickly detecting whether the article to be detected is over-packaged.
[0061] In some embodiments, the control detection device measures the first physical property parameters of the packaging layer and the second physical property parameters of the contents in the article to be tested according to a scanning strategy, including: the scanning device in the control detection device scans the packaging layer and the contents according to the scanning strategy to obtain three-dimensional models corresponding to the packaging layer and the contents respectively; determines the volume corresponding to each three-dimensional model; obtains the mass corresponding to the packaging layer and the contents respectively using a mass sensor; determines the first physical property parameters of the packaging layer based on the volume and mass of the packaging layer; and determines the second physical property parameters of the contents based on the volume and mass of the contents.
[0062] The control and detection device includes a scanning device that can scan an object at a preset location to obtain a three-dimensional model of the object.
[0063] Optionally, the system can receive the type of item entered through the configuration interface to determine whether the item at the preset location is an inner contents or a packaging layer, or it can determine whether the item is an inner contents or a packaging layer by analyzing the corresponding 3D model of the item.
[0064] Understandably, in order to measure the physical properties of the contents and the packaging layer separately, the contents and the packaging layer will be placed at preset locations for measurement.
[0065] In some embodiments, the type of item corresponding to the 3D model can be determined by analyzing its size and volume: the contents typically have a smaller size and volume, and are relatively small in proportion to the size and volume of the packaging layer, while the packaging layer typically has a larger size and volume and is usually able to accommodate the contents.
[0066] In some embodiments, the type of item corresponding to the three-dimensional model can also be determined by analyzing the geometric features of the three-dimensional model: the contents usually have more complex geometric features, such as irregular shapes, polyhedra, etc., while the packaging layer usually has simpler geometric features, such as cuboids, cylinders, etc.
[0067] Other methods can also be used to determine the type of item corresponding to the 3D model, which will not be elaborated here.
[0068] A mass sensor will also be installed at the preset location to obtain the mass of the item.
[0069] In some embodiments, the scanning device can be controlled to rotate or a rotary motor can be installed at the bottom at a preset position to rotate the device to obtain a complete three-dimensional model of the object.
[0070] In some embodiments, the scanning device in the control detection apparatus scans the packaging layer according to a scanning strategy to obtain a three-dimensional model of the packaging layer, including:
[0071] The motor at the location where the packaged items are placed rotates;
[0072] During the rotation of the motor, the packaging layer is scanned using a scanning device according to a scanning strategy to obtain a three-dimensional model of the packaging layer.
[0073] In some embodiments, a three-dimensional model of the contents can be obtained using the scanning method described above.
[0074] In some embodiments, determining the scanning strategy corresponding to the item to be detected based on the target image includes: determining the image features of the item to be detected in the target image, the image features including the shape, volume, color and transparency of the item to be detected; determining the scanning strategy corresponding to the item to be detected based on the image features, the scanning strategy including multiple shooting points of the scanning device, the poses of each of the multiple shooting points, whether to mark the item to be detected, and whether to spray paint the item to be detected.
[0075] In some embodiments, a target image can be acquired at a fixed relative position and pose, and then features can be extracted from the image using a deep neural network. The extracted features are then processed to obtain a shooting strategy.
[0076] As shown above, different scanning strategies can be formulated based on the image features of objects in the target image. For example, the corresponding scanning strategy can be determined by the size of the object.
[0077] In some embodiments, determining the size of the packaging layer includes: acquiring an image of the packaging layer using a scanning device; and determining the size of the packaging layer in the image based on a preset algorithm.
[0078] The dimensions of the packaging layer can be obtained through a configuration interface, or an image of the packaging layer can be obtained using a scanning device, and the dimensions of the packaging layer in the image can be determined based on a preset algorithm.
[0079] In some embodiments, key features, such as edges and surface irregularities, can be extracted using image processing algorithms (such as denoising, filtering, point cloud segmentation, etc.) to determine the size of the packaging layer.
[0080] In some embodiments, the lens pose of the scanning device can be determined by the dimensions of the packaging layer, wherein the lens pose includes the height of the lens and the angle between the lens and the scanning device.
[0081] Generally, the larger the size of the packaging layer, the higher the lens, and the smaller the angle between the lens and the scanning device, thus enabling the acquisition of a more complete 3D model.
[0082] In addition, due to the large size of the packaging layer, the 3D model obtained by scanning from one location may not be accurate, so it is necessary to scan the packaging layer from multiple locations using different poses.
[0083] Secondly, if the packaging layer has high transparency, the corresponding 3D model cannot be obtained through scanning equipment. Therefore, the packaging layer can be sprayed to obtain a complete 3D model through scanning equipment.
[0084] Alternatively, since the process of obtaining a 3D model by scanning equipment involves scanning the packaging layer according to a scanning strategy while the motor is rotating, obtaining multiple images, and then stitching these multiple images together to obtain a 3D model, if the colors and shapes of different positions on the packaging layer are similar, it will interfere with the subsequent stitching process and may result in an inaccurate 3D model. Therefore, the packaging layer can be marked, and multiple images can be stitched together using these marks to obtain the corresponding 3D model.
[0085] Furthermore, after obtaining multiple images corresponding to each of the multiple locations, all images obtained at the multiple locations can be stitched together to obtain the corresponding 3D model. Alternatively, multiple images at any location can be stitched together to obtain 3D models corresponding to each of the multiple locations. Then, based on the 3D models corresponding to each of the multiple locations, the 3D model corresponding to the packaging layer can be stitched together to obtain the 3D model corresponding to the packaging layer.
[0086] In some embodiments, this application provides an article packaging inspection device, such as... Figure 2 As shown, a cuboid support 101, a scanning device 102 is installed on the top of the cuboid support 101, a weight acquisition device 104 and an item placement area 103 are installed at the bottom of the cuboid support 101, the item placement area 103 is located above the upper end face of the weight acquisition device 104; a rotating mechanism 105 is provided at the connection between the item placement area 103 and the weight acquisition device 104, and the rotating mechanism 105 is fixedly connected to the lower end face of the item placement area 103.
[0087] The scanning device in the control detection device scans the packaging layer and the contents according to the scanning strategy to obtain the corresponding three-dimensional models of the packaging layer and the contents. The viewing process can be that the scanning device 102 slides on the cuboid support 101 and the angle of the scanning device 102 scanning the item placement 103 is adjusted so as to achieve scanning the packaging layer or contents of the item placement at different positions using different angles.
[0088] The scanning device can be controlled to rotate around the item placement area as an axis, and scan the packaging layer during the rotation to obtain a three-dimensional model of the packaging layer. Alternatively, a motor can be installed at the item placement area to control the rotation of the motor that holds the packaging layer; during the motor rotation, the scanning device scans the packaging layer according to the lens pose to obtain a three-dimensional model of the packaging layer.
[0089] Correspondingly, the method for obtaining the 3D model of the contents is the same as that for obtaining the 3D model of the packaging layer, and will not be repeated here.
[0090] In some embodiments, the packaging evaluation index includes at least one of packaging porosity and packaging mass ratio. The packaging evaluation index of the article to be tested is determined based on a first physical property parameter and a second physical property parameter, including: determining the packaging porosity of the article to be tested based on the volume of the packaging layer in the first physical property parameter and the volume of the inner layer in the second physical property parameter; and determining the packaging mass ratio of the article to be tested based on the mass of the packaging layer in the first physical property parameter and the mass of the inner layer in the second physical property parameter.
[0091] Since the packaging evaluation indicators include at least one of packaging porosity and packaging mass ratio, and the first physical property parameter includes the volume and mass of the packaging layer, and the second physical property parameter includes the volume and mass of the inner packaging layer, we can combine the volume of the packaging layer in the first physical property parameter and the volume of the inner packaging layer in the second physical property parameter to determine the packaging porosity of the item to be tested; and based on the mass of the packaging layer in the first physical property parameter and the mass of the inner packaging layer in the second physical property parameter, we can determine the packaging mass ratio of the item to be tested.
[0092] The porosity of the packaging is shown in equation (1):
[0093]
[0094] Where X is the packaging porosity threshold, Vn is the volume of the packaging layer, V0 is the volume of the contents, and k is the necessary space coefficient of the product. The k value is different for different contents, for example, the k value of mooncake is 7, and the k value of compressed tea is 9.
[0095] It should be noted that some items to be tested include multiple packaging layers. In the case of multiple packaging layers, since the outermost packaging layer has a larger volume than the other packaging layers, Vn is the volume of the outermost packaging layer.
[0096] The porosity threshold for mooncake packaging varies depending on the net content per unit, and the packaging porosity is as follows:
[0097] Net content per unit ≤1g, packaging porosity ≤85%;
[0098] Net weight per unit: 1g < Q ≤ 5g; Packaging porosity: ≤ 70%
[0099] Net weight per unit: 5g < Q ≤ 15g; Packaging porosity: ≤ 60%;
[0100] Net weight per unit: 15g < Q ≤ 30g; Packaging porosity: ≤ 50%
[0101] Net weight per unit: 30g < Q ≤ 50g; Packaging porosity: ≤ 40%
[0102] Net weight per unit > 50g, packaging porosity ≤ 30%.
[0103] The packaging quality is as shown in formula (2):
[0104]
[0105] Where W is the packaging mass ratio, M1 is the total mass of the test object, that is, the sum of the mass of the packaging layer and the mass of the contents, and M2 is the mass of the contents.
[0106] The mass of inflatable packaging for tea, tea products, and flavored tea should not exceed eight times the mass of the contents.
[0107] For mooncakes packaged in inflatable containers, the weight of the packaging should not exceed twice the weight of the contents.
[0108] In some embodiments, the packaging evaluation index also includes the packaging cost ratio, and the method further includes:
[0109] The system receives user input of the packaging cost and contents cost of the item to be tested through the configuration interface; based on the packaging cost and contents cost, it determines the packaging cost ratio of the item to be tested.
[0110] In addition to using the packaging porosity threshold and packaging quality ratio threshold to determine whether the item to be tested is over-packaged, the packaging cost ratio threshold can also be used to determine whether the item to be tested is over-packaged.
[0111] In some embodiments, the packaging cost and contents cost of the item to be tested can be received from the user through a configuration interface, and the packaging cost ratio of the item to be tested can be determined based on the packaging cost and contents cost.
[0112] In some embodiments, the first packaging cost is as shown in equation (3):
[0113]
[0114] Where Y1 is the first packaging cost ratio, C is the cost of the packaging layer, and Q is the cost of the contents.
[0115] In some embodiments, the selling price of the item to be tested, input by the user, can also be received through a configuration interface, and the second packaging cost ratio can also be as shown in equation (4):
[0116]
[0117] Where Y2 is the second packaging cost ratio, C is the cost of the packaging layer, and P is the selling price of the item to be tested.
[0118] Generally, the first packaging cost ratio should not exceed the first preset ratio, and the second packaging cost ratio should not exceed the preset ratio. For example, for mooncakes with a selling price of over 100 yuan, the packaging cost should not exceed 50% of the price of the contents; for mooncakes with a selling price of over 100 yuan, the packaging cost should not exceed 60% of the price of the contents; for mooncakes with a selling price of over 100 yuan, the packaging cost should not exceed 15% of the product selling price; and for mooncakes with a selling price of less than 100 yuan, the packaging cost should not exceed 20% of the product selling price.
[0119] In some embodiments, determining whether the item to be tested meets preset packaging conditions based on the item information and packaging evaluation indicators includes: determining the packaging evaluation indicator threshold corresponding to the item to be tested based on the item type and packaging method included in the item information, wherein the packaging evaluation indicator threshold includes at least one of packaging porosity threshold, packaging quality ratio threshold, and packaging cost ratio threshold; and determining that the item to be tested meets preset packaging conditions if the packaging porosity is less than or equal to the packaging porosity threshold, the packaging quality ratio is less than or equal to the packaging quality ratio threshold, and the packaging cost ratio is less than or equal to the packaging cost ratio threshold.
[0120] Understandably, in determining whether an item to be tested has been over-packaged, it is necessary to ensure that each packaging evaluation indicator meets the corresponding packaging evaluation indicator threshold.
[0121] This involves determining the corresponding packaging evaluation index threshold for the item to be tested. The packaging evaluation index threshold includes at least one of the following: packaging porosity threshold, packaging quality ratio threshold, and packaging cost ratio threshold. If the packaging porosity is less than or equal to the packaging porosity threshold, the packaging quality ratio is less than or equal to the packaging quality ratio threshold, and the packaging cost ratio is less than or equal to the packaging cost ratio threshold, then the item to be tested is determined to meet the preset packaging conditions, which means that the item to be tested has not been over-packaged.
[0122] In addition to determining whether an item to be tested is over-packaged, it is also necessary to determine the number of packaging layers corresponding to the item to be tested. For example, the number of packaging layers for mooncakes cannot exceed three, and the number of packaging layers for tea cannot exceed four, etc.
[0123] In some embodiments, this application also provides an article packaging inspection system, applied to the claims. Figure 1 The method for detecting product packaging includes: a configuration interface, a processor, and a control detection device;
[0124] The configuration interface is used to obtain the item information of the item to be detected, including the item type and packaging method;
[0125] The control and detection device is used to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device; determine the scanning strategy corresponding to the packaging layer and the contents respectively based on the target images; and measure the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be detected respectively.
[0126] The processor is used to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter;
[0127] The processor is also used to determine whether the item to be tested meets the preset packaging conditions based on the item information and packaging evaluation indicators.
[0128] This application also provides an article packaging control and detection device, which is used to perform the article packaging detection method provided in any of the above embodiments. Figure 3 As shown, the device includes an acquisition module 301, a determination module 302, and a measurement module 303.
[0129] The acquisition module 301 is used to acquire the item information of the item to be detected through the configuration interface. The item information includes the item type and packaging method.
[0130] The acquisition module 301 is further configured to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device;
[0131] The determining module 302 is used to determine the scanning strategies corresponding to the packaging layer and the contents based on the target image;
[0132] Measurement module 303 is used to control the detection device to measure the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be detected according to the corresponding scanning strategy.
[0133] The determining module 302 is further configured to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter;
[0134] The determining module 302 is further configured to determine whether the item to be tested meets the preset packaging conditions based on the item information of the item to be tested and the packaging evaluation index.
[0135] This application proposes a packaging control and detection device, comprising: acquiring item information of the item to be detected through a configuration interface, the item information including item type and packaging method; acquiring target images corresponding to the packaging layer and the contents respectively using a scanning device; determining scanning strategies corresponding to the packaging layer and the contents respectively based on the target images; controlling the detection device to measure a first physical property parameter of the packaging layer and a second physical property parameter of the contents in the item to be detected according to the scanning strategy; determining packaging evaluation indicators of the item to be detected based on the physical property parameters; and determining whether the item to be detected meets preset packaging conditions based on the item information and packaging evaluation indicators. This application's embodiment obtains the packaging evaluation indicators needed to determine whether the packaging meets preset packaging conditions through simplified and intelligent operation, thereby quickly detecting whether the item to be detected is over-packaged.
[0136] In some embodiments, the measurement module 303 is specifically used for:
[0137] The scanning device in the control detection device scans the packaging layer and the contents according to the scanning strategy, and obtains the three-dimensional models corresponding to the packaging layer and the contents respectively.
[0138] Determine the volume corresponding to each 3D model;
[0139] The mass of the packaging layer and the contents are obtained respectively using mass sensors;
[0140] The first physical property parameter of the packaging layer is determined based on its volume and mass.
[0141] The second physical property parameters of the contents are determined based on the volume and mass of the contents.
[0142] In some embodiments, the measurement module 303 is further specifically used for:
[0143] The motor at the item placement area where the packaging layer is placed is controlled to rotate;
[0144] During the rotation of the motor, the scanning device is used to scan the packaging layer according to the scanning strategy to obtain a three-dimensional model of the packaging layer.
[0145] In some embodiments, the determining module 302 is specifically used for:
[0146] Determine the image features of the object to be detected in the target image, wherein the image features include the shape, volume, color, and transparency of the object to be detected;
[0147] Based on the image features, a scanning strategy is determined for the item to be detected. The scanning strategy includes multiple shooting points of the scanning device, the poses of each of the multiple shooting points, whether to mark the item to be detected, and whether to spray paint the item to be detected.
[0148] In some embodiments, the packaging evaluation index includes at least one of packaging porosity and packaging mass ratio. The determining module 302 is further specifically used for:
[0149] Based on the volume of the packaging layer in the first physical property parameter and the volume of the inner layer in the second physical property parameter, the packaging porosity of the item to be tested is determined;
[0150] Based on the mass of the packaging layer in the first physical property parameter and the mass of the inner layer in the second physical property parameter, the packaging mass ratio of the item to be tested is determined.
[0151] In some embodiments, the packaging evaluation index also includes the packaging cost ratio.
[0152] The acquisition module 301 is also used to receive the packaging cost and the cost of the contents of the item to be tested, input by the user, through the configuration interface;
[0153] The determining module 302 is also used to determine the packaging cost ratio of the item to be tested based on the packaging cost and the cost of the contents.
[0154] In some embodiments, the determining module 302 is further configured to:
[0155] Based on the item information including the item type and the packaging method, a packaging evaluation index threshold corresponding to the item to be tested is determined. The packaging evaluation index threshold includes at least one of the following: packaging porosity threshold, packaging quality ratio threshold, and packaging cost ratio threshold.
[0156] If the packaging porosity is less than or equal to the packaging porosity threshold, the packaging mass ratio is less than or equal to the packaging mass ratio threshold, and the packaging cost ratio is less than or equal to the packaging cost ratio threshold, then the item to be tested is determined to meet the preset packaging conditions.
[0157] This application also provides an electronic device for performing the above-described article packaging inspection method. Please refer to... Figure 4 It illustrates a schematic diagram of an electronic device provided by some embodiments of this application. For example... Figure 4As shown, the electronic device 7 includes: a processor 700, a memory 701, a bus 702, and a communication interface 703. The processor 700, the communication interface 703, and the memory 701 are connected via the bus 702. The memory 701 stores a computer program that can run on the processor 700. When the processor 700 runs the computer program, it executes the article packaging detection method provided in any of the foregoing embodiments of this application.
[0158] The memory 701 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this device network element and at least one other network element is achieved through at least one communication interface 703 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network.
[0159] Bus 702 can be an ISA bus, PCI bus, or EISA bus, etc. Buses can be divided into address buses, data buses, control buses, etc. Memory 701 is used to store programs. After receiving execution instructions, processor 700 executes the program. The article packaging detection method disclosed in any of the aforementioned embodiments of this application can be applied to processor 700, or implemented by processor 700.
[0160] The processor 700 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 700 or by instructions in software form. The processor 700 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 701. Processor 700 reads the information in memory 701 and, in conjunction with its hardware, completes the steps of the above method.
[0161] The electronic device provided in this application embodiment and the article packaging detection method provided in this application embodiment are based on the same inventive concept and have the same beneficial effects as the methods they adopt, operate or implement.
[0162] This application also provides a computer-readable storage medium corresponding to the article packaging detection method provided in the foregoing embodiments. Please refer to... Figure 5 The computer-readable storage medium shown is an optical disc 30, on which a computer program (i.e., a program product) is stored. When the computer program is run by a processor, it executes the article packaging detection method provided in any of the aforementioned embodiments.
[0163] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical and magnetic storage media, which will not be elaborated here.
[0164] The computer-readable storage medium provided in the above embodiments of this application and the article packaging detection method provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0165] It should be noted that:
[0166] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known structures and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0167] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of this application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0168] The above are merely preferred embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for detecting product packaging, characterized in that, include: The item information of the item to be detected is obtained through the configuration interface. The item information includes the item type and packaging method. Use scanning equipment to acquire target images corresponding to the packaging layer and the contents; Based on the target image, determine the scanning strategy corresponding to each of the packaging layer and the contents; The control and detection device measures the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be tested according to the corresponding scanning strategy. Based on the first physical property parameter and the second physical property parameter, the packaging evaluation index of the item to be tested is determined; Based on the item information of the item to be tested and the packaging evaluation index, it is determined whether the item to be tested meets the preset packaging conditions.
2. The method according to claim 1, characterized in that, The control and detection device measures the first physical property parameter of the packaging layer and the second physical property parameter of the contents of the item to be detected according to the scanning strategy, including: The scanning device in the control detection device scans the packaging layer and the contents according to the scanning strategy, and obtains the three-dimensional models corresponding to the packaging layer and the contents respectively. Determine the volume corresponding to each 3D model; The mass of the packaging layer and the contents are obtained respectively using mass sensors; The first physical property parameter of the packaging layer is determined based on its volume and mass. The second physical property parameters of the contents are determined based on the volume and mass of the contents.
3. The method according to claim 2, characterized in that, The scanning device in the control detection apparatus scans the packaging layer according to the scanning strategy to obtain a three-dimensional model of the packaging layer, including: The motor at the item placement area where the packaging layer is placed is controlled to rotate; During the rotation of the motor, the scanning device is used to scan the packaging layer according to the scanning strategy to obtain a three-dimensional model of the packaging layer.
4. The method according to claim 1, characterized in that, The step of determining the scanning strategy corresponding to the item to be detected based on the target image includes: Determine the image features of the object to be detected in the target image, wherein the image features include the shape, volume, color, and transparency of the object to be detected; Based on the image features, a scanning strategy is determined for the item to be detected. The scanning strategy includes multiple shooting points of the scanning device, the poses of each of the multiple shooting points, whether to mark the item to be detected, and whether to spray paint the item to be detected.
5. The method according to claim 1, characterized in that, The packaging evaluation index includes at least one of packaging porosity and packaging mass ratio. Determining the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter includes: Based on the volume of the packaging layer in the first physical property parameter and the volume of the inner layer in the second physical property parameter, the packaging porosity of the item to be tested is determined; Based on the mass of the packaging layer in the first physical property parameter and the mass of the inner layer in the second physical property parameter, the packaging mass ratio of the item to be tested is determined.
6. The method according to claim 5, characterized in that, The packaging evaluation index also includes the packaging cost ratio, and the method further includes: The configuration interface receives the packaging cost and contents cost of the item to be tested, input by the user. Based on the packaging cost and the cost of the contents, the packaging cost ratio of the item to be tested is determined.
7. The method according to claim 6, characterized in that, The step of determining whether the item to be tested meets the preset packaging conditions based on the item information and the packaging evaluation indicators includes: Based on the item information including the item type and the packaging method, a packaging evaluation index threshold corresponding to the item to be tested is determined. The packaging evaluation index threshold includes at least one of the following: packaging porosity threshold, packaging quality ratio threshold, and packaging cost ratio threshold. If the packaging porosity is less than or equal to the packaging porosity threshold, the packaging mass ratio is less than or equal to the packaging mass ratio threshold, and the packaging cost ratio is less than or equal to the packaging cost ratio threshold, then the item to be tested is determined to meet the preset packaging conditions.
8. A product packaging inspection system, characterized in that, The article packaging inspection method applied to any one of claims 1-7 includes: a configuration interface, a processor, and a control detection device; The configuration interface is used to obtain the item information of the item to be detected, including the item type and packaging method; The control and detection device is used to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device; determine the scanning strategy corresponding to the packaging layer and the contents respectively based on the target images; and measure the first physical property parameter of the packaging layer and the second physical property parameter of the contents in the item to be detected respectively. The processor is used to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter; The processor is also used to determine whether the item to be tested meets the preset packaging conditions based on the item information of the item to be tested and the packaging evaluation index.
9. A packaging control and detection device for goods, characterized in that, include: The acquisition module is used to acquire the item information of the item to be detected through the configuration interface. The item information includes the item type and packaging method. The acquisition module is also used to acquire target images corresponding to the packaging layer and the contents respectively using a scanning device; The determination module is used to determine the scanning strategy corresponding to the packaging layer and the contents based on the target image; The measurement module is used to control the detection device to measure the first physical property parameters of the packaging layer and the second physical property parameters of the contents of the item to be tested according to the corresponding scanning strategy. The determining module is further configured to determine the packaging evaluation index of the item to be tested based on the first physical property parameter and the second physical property parameter; The determining module is further configured to determine whether the item to be tested meets the preset packaging conditions based on the item information of the item to be tested and the packaging evaluation index.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to implement the method as described in any one of claims 1-7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by a processor to implement the method as described in any one of claims 1-7.