Cigarette case color difference detection device and method
The device and method allow direct inspection of unopened cigarette packs using fixed slots and multiple lighting conditions to address color difference measurement challenges, ensuring accurate and consistent results.
Patent Information
- Application Number
- CN202411696063.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2024-12-24
AI Technical Summary
Existing colorimeters cannot accurately measure color differences on unopened finished cigarette cartons due to the need for disassembly and inconsistent placement of standard and test samples.
A device and method utilizing fixed cigarette slots for unopened cigarette boxes, combined with cameras and a color difference detection module, enabling direct inspection under multiple lighting conditions to calculate grayscale values and ensure accurate color difference analysis.
Enables intelligent and rational color difference testing of unopened cigarette packs, ensuring consistent placement and accurate grayscale value calculation, thereby maintaining brand integrity.
Smart Images

Figure CN119178516A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of finished cigarette box detection, and in particular to a device and method for detecting color difference in cigarette boxes. Background Art
[0002] Color difference refers to the difference in human perception of two colors, expressed as a fixed value. This refers to the difference in color perception between two color samples, expressed through the combined effects of saturation, brightness, and hue. Color difference generally refers to the degree of difference between two colors. Color difference on cigarette packaging directly impacts consumers' initial impression of the product, often leading them to believe it's a quality issue or even suspicion of counterfeit cigarettes, severely damaging a company's brand image.
[0003] A colorimeter is usually used to test the color difference of small box decorations. First, a standard is established, and a small box standard sample is placed in the test hole and fixed with a fixing clip. The L*a*b* data of the standard sample is measured, and then the small box decoration to be tested is placed in the test hole for measurement. The L*a*b* data of the sample to be tested is measured, and the color difference between the sample to be tested and the standard sample is calculated through color difference analysis, that is, the difference between the L*a*b* data of the sample to be tested and the standard sample. The formula , get the color difference value. When E is between 0 and 1, the color difference is extremely small and cannot be distinguished by the naked eye; E is between 1 and 2, which can be slightly detected by the naked eye; if When E is between 2 and 3, the color difference between materials can be distinguished slightly; if If E is between 3.5 and 5, the color difference is very obvious; When E is above 5, there is a huge color difference, and it even looks like two different colors.
[0004] Using a colorimeter presents the following challenges: When testing color differences on pre-assembled cigarette cartons, the cartons must be disassembled before placement on the instrument for measurement, making it impossible to test unopened finished cigarette cartons. Furthermore, even if the colorimeter's test aperture is large enough to accommodate disassembled finished cigarette cartons, the placement of the standard sample and the sample under test cannot be guaranteed to be consistent. Traditional color difference calculation methods are not applicable to measuring color differences on unopened pre-assembled cigarette cartons.
[0005] As mentioned above, the colorimeter cannot be used to inspect unopened finished cigarette boxes. Summary of the Invention
[0006] The present disclosure provides a device and method for detecting color difference of cigarette boxes to solve the above technical problems.
[0007] According to a first aspect of the present disclosure, a cigarette box color difference detection device is provided, comprising a test bench for samples to be tested for placing finished cigarette boxes to be tested, a standard sample test bench for placing standard finished cigarette boxes, a first camera for capturing images of the finished cigarette boxes to be tested, and a second camera for capturing images of the standard finished cigarette boxes; a standard light source for emitting daylight, cool white light, and complex light, and illuminating the finished cigarette boxes to be tested and the standard finished cigarette boxes; and a color difference detection module for calculating a first grayscale value of the image of the finished cigarette box to be tested captured by the first camera, a second grayscale value of the image of the standard finished cigarette box captured by the second camera, and comparing the first grayscale value with the second grayscale value, wherein the color difference detection module is burned into the all-in-one machine.
[0008] In some embodiments, the test bench for the samples to be tested is provided with a first short cigarette slot for placing short cigarette boxes to be tested, a first regular cigarette slot for placing regular cigarette boxes to be tested, a first medium cigarette slot for placing medium cigarette boxes to be tested, and a first slim cigarette slot for placing slim cigarette boxes to be tested.
[0009] In some embodiments, the standard sample testing table is provided with a second short cigarette slot for placing a standard short cigarette box, a second regular cigarette slot for placing a standard regular cigarette box, a second medium cigarette slot for placing a standard medium cigarette box, and a second slim cigarette slot for placing a standard slim cigarette box.
[0010] In some embodiments, the test platform for the sample to be tested, the test platform for the standard sample, the first camera, the second camera, and the standard light source are all disposed in a protective cover.
[0011] In some embodiments, the all-in-one machine is disposed on top of the protective cover.
[0012] According to a second aspect of the present disclosure, a method for detecting color difference of cigarette boxes is provided, which is implemented using the above-mentioned cigarette box color difference detection device. The method includes: using a first camera to capture an image of a finished cigarette box to be tested; using a second camera to capture an image of a standard finished cigarette box; converting the image of the finished cigarette box to be tested into a first grayscale image; converting the image of the standard finished cigarette box into a second grayscale image; gridding the first grayscale image to obtain a first grayscale image after gridding; gridding the second grayscale image to obtain a second grayscale image after gridding; calculating a first grayscale value of the first grayscale image after gridding; calculating a second grayscale value of the second grayscale image after gridding. the second grayscale value of the grayscale image; compare the first grayscale value with the second grayscale value to obtain the current deviation; determine whether the current deviation is less than or equal to the first deviation threshold; if the current deviation is less than or equal to the deviation threshold, determine whether the current deviation is greater than the second deviation, and whether the proportion of the detection results less than or equal to the first deviation threshold reaches the proportion threshold of all detection results; if the current deviation is greater than the second deviation and less than or equal to the first deviation threshold, and the current deviation is greater than the second deviation, and the proportion of the detection results under daylight, cold white light, and complex color light illumination reaches the proportion threshold of all detection results, it is determined that the finished cigarette box to be tested has passed the inspection.
[0013] In some embodiments, if the current deviation is greater than a first deviation threshold, the finished cigarette box to be tested is determined to be unqualified.
[0014] In some embodiments, if the current deviation is less than or equal to the second deviation, it is determined that the finished cigarette box to be tested fails the test.
[0015] In some embodiments, if the current deviation is greater than the second deviation, and the proportion of the test results with the current deviation less than or equal to the first deviation threshold does not reach the proportion threshold of all test results, the finished cigarette box to be tested is determined to be unqualified.
[0016] In some embodiments, if the proportions of daylight, cool white light, and polychromatic light do not all reach the proportion threshold of all test results, the finished cigarette box to be tested is determined to be unqualified.
[0017] By employing the above-described technical solution, the embodiments of the present disclosure achieve the following beneficial technical effects: The present disclosure provides a method for directly inspecting unopened, finished cigarette packs. Both the test bench for the sample to be tested and the test bench for the standard sample are equipped with fixed cigarette slots, further ensuring accurate calculation of the two grayscale values. The color difference detection module on the all-in-one machine ensures the rationality of the test results, enabling intelligent inspection of unopened, finished cigarette packs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings.
[0020] Figure 1 2 is a schematic diagram showing the structure of a cigarette box color difference detection device according to some embodiments of the present disclosure.
[0021] Figure 2 is a flow chart illustrating a method for detecting color difference in a cigarette box according to some embodiments of the present disclosure.
[0022] The markings in the figure are as follows: 1. All-in-one machine; 2. Second camera; 3. Protective cover; 4. Standard light source; 5. Test bench for samples to be tested; 6. Test bench for standard samples; 61. Second slot for slim cigarettes; 62. Second slot for medium cigarettes; 63. Second slot for regular cigarettes; 64. Second slot for short cigarettes. DETAILED DESCRIPTION
[0023] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure.
[0024] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0025] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0026] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0027] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0028] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0029] Currently, using a colorimeter presents the following issues: When using a colorimeter to test color differences on preformed cigarette boxes, the boxes must be disassembled before being placed on the colorimeter for measurement, making it impossible to test unopened finished cigarette boxes. Furthermore, even if the colorimeter's test aperture is large enough to accommodate finished cigarette boxes, it cannot guarantee the consistent placement of the standard sample and the sample to be tested. Traditional color difference calculation methods are not applicable to calculating color differences on preformed cigarette boxes. As mentioned above, colorimeter is not suitable for testing finished cigarette boxes.
[0030] In light of this, the present disclosure provides a method for directly testing unopened, finished cigarette packs. Both the test bench for untested samples and the standard sample test bench are equipped with fixed cigarette slots, further ensuring accurate calculation of two grayscale values. The color difference detection module on the integrated machine further ensures the rationality of the test results, enabling intelligent testing of unopened, finished cigarette packs.
[0031] Figure 1 FIG. 1 is a schematic diagram showing the structure of a cigarette box color difference detection device according to some embodiments of the present disclosure. Figure 1 As shown, the device includes a test table 5 for placing test samples of finished cigarette boxes to be tested, a standard sample test table 6 for placing standard finished cigarette boxes, a first camera for capturing images of the finished cigarette boxes to be tested, and a second camera 2 for capturing images of the standard finished cigarette boxes. It also includes a standard light source 4 for emitting daylight, cold white light, and complex light to illuminate the finished cigarette boxes to be tested and the standard finished cigarette boxes; and a color difference detection module for calculating a first grayscale value of the image of the finished cigarette box to be tested captured by the first camera, a second grayscale value of the image of the standard finished cigarette box captured by the second camera, and comparing the first grayscale value with the second grayscale value, wherein the color difference detection module is burned into the all-in-one machine 1.
[0032] In some embodiments, the test bench for the samples to be tested is provided with a first short cigarette slot for placing short cigarette boxes to be tested, a first regular cigarette slot for placing regular cigarette boxes to be tested, a first medium cigarette slot for placing medium cigarette boxes to be tested, and a first slim cigarette slot for placing slim cigarette boxes to be tested.
[0033] In some embodiments, the standard sample testing table is provided with a second short cigarette slot 64 for placing a standard short cigarette box, a second regular cigarette slot 63 for placing a standard regular cigarette box, a second medium cigarette slot 62 for placing a standard medium cigarette box, and a second slim cigarette slot 61 for placing a standard slim cigarette box.
[0034] A variety of cigarette troughs are provided to accommodate the sizes of cigarettes of different specifications.
[0035] In some embodiments, the test bench for the sample to be tested, the test bench for the standard sample, the first camera, the second camera, and the standard light source are all disposed in a protective cover 3 .
[0036] In some embodiments, the all-in-one machine is disposed on top of the protective cover.
[0037] like Figure 1 and Figure 2 As shown, the present disclosure further provides a cigarette box color difference detection method, which is implemented using the above-mentioned cigarette box color difference detection device. The method includes steps 110 to 220.
[0038] In step 110, an image of the finished cigarette pack to be tested is captured by means of a first camera.
[0039] The first camera and the second camera are both CCD cameras.
[0040] Readers should note that the first camera and the second camera both capture the front and back of the finished cigarette box.
[0041] In step 120, an image of the standard finished cigarette pack is captured by means of a second camera.
[0042] In step 130 , the image of the finished cigarette box to be tested is converted into a first grayscale image.
[0043] In step 140 , the image of the standard finished cigarette box is converted into a second grayscale image.
[0044] In step 150 , the first grayscale image is grid-divided to obtain a first grayscale image after grid division.
[0045] In step 160 , the second grayscale image is grid-divided to obtain a second grayscale image after grid division.
[0046] In step 170 , a first grayscale value of the first grayscale image after grid division is calculated.
[0047] In step 180 , a second grayscale value of the second grayscale image after grid division is calculated.
[0048] In step 190 , the first grayscale value is compared with the second grayscale value to obtain a current deviation.
[0049] In step 200 , it is determined whether the current deviation is less than or equal to a first deviation threshold.
[0050] In some embodiments, the first deviation threshold is set to 10 on the all-in-one machine.
[0051] In step 210, if the current deviation is less than or equal to the deviation threshold, determine whether the current deviation is greater than the second deviation threshold, and determine whether the current deviation is greater than the second deviation and whether the proportion of detection results less than or equal to the first deviation threshold reaches the proportion threshold of all detection results.
[0052] In some embodiments, the second deviation threshold is set on the machine to 3. The proportion threshold is set on the machine to 95%.
[0053] In step 220, if the current deviation is greater than the second deviation and less than or equal to the first deviation threshold, and the current deviation is greater than the second deviation, and the proportions of daylight, cool white light, and polychromatic light illumination all reach the proportion threshold of all test results, the finished cigarette box to be tested is determined to have passed the test.
[0054] Please note that the criteria for determining whether a finished cigarette box is qualified have been expanded to include a new dimension: a finished cigarette box is considered qualified only when the proportions under all three lighting conditions reach the threshold for all test results. For example, if the proportions under white light reach the threshold for all test results, then the finished cigarette box is considered qualified. If the proportions under both cool white light and polychromatic light reach the threshold for all test results, then the finished cigarette box is considered qualified.
[0055] It's important to note that daylight is emitted by a standard light source that simulates illuminant D50 or D65; cool white light is emitted by a standard light source that simulates cool white fluorescent (CWF); and polychromatic light is emitted by a standard light source that simulates incandescent (A) light. Standard light sources provide lighting effects that are essentially consistent with those found in specific environments, ensuring color accuracy and consistency and effectively preventing color deviations caused by varying lighting conditions.
[0056] In some embodiments, if the current deviation is greater than a first deviation threshold, the finished cigarette box to be tested is determined to be unqualified. That is, if the current deviation is greater than 10, the finished cigarette box to be tested is determined to be unqualified.
[0057] In some embodiments, if the current deviation is less than or equal to the second deviation, the finished cigarette box to be tested is determined to be unqualified. That is, if the current deviation is less than or equal to 3, the finished cigarette box to be tested is determined to be unqualified.
[0058] In some embodiments, if the current deviation is greater than the second deviation, and the proportion of test results with a current deviation less than or equal to the first deviation threshold does not reach the threshold proportion of all test results, the finished cigarette pack to be tested is determined to have failed the test. That is, if the current deviation is greater than 3, and the proportion of test results with a current deviation less than or equal to 10 does not reach the threshold proportion of all test results, the finished cigarette pack to be tested is determined to have failed the test.
[0059] In some embodiments, if the proportions of sunlight, cool white light, and polychromatic light do not all reach the threshold proportion of all test results, the finished cigarette box under test is determined to be unqualified. Sunlight, cool white light, and polychromatic light are all emitted by standard light sources. The reader is referred to above and will not be further described here.
[0060] This disclosure provides a method for directly testing unopened, finished cigarette packs. Both the sample test bench and the standard sample test bench are equipped with fixed cigarette slots, further ensuring accurate calculation of two grayscale values. The color difference detection module on the integrated machine ensures the rationality of the test results, enabling intelligent testing of unopened, finished cigarette packs.
[0061] Thus far, the cigarette case color difference detection device and method according to the present disclosure have been described in detail. To avoid obscuring the concept of the present disclosure, some details known in the art have not been described. Based on the above description, those skilled in the art can fully understand how to implement the technical solutions disclosed herein.
[0062] Although some specific embodiments of the present disclosure have been described in detail through examples, those skilled in the art will understand that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. Those skilled in the art will understand that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A cigarette box color difference detection device, characterized in that: It includes a test bench for placing a sample to be tested on a finished cigarette box to be tested, a standard sample test bench for placing a standard finished cigarette box, a first camera for taking images of the finished cigarette box to be tested, a second camera for taking images of the standard finished cigarette box, and a standard light source for emitting daylight, cold white light, and complex color light to illuminate the finished cigarette box to be tested and the standard finished cigarette box; It also includes a color difference detection module for calculating the first grayscale value of the image of the finished cigarette box to be tested taken by the first camera, the second grayscale value of the image of the standard finished cigarette box taken by the second camera, and comparing the first grayscale value and the second grayscale value, wherein the color difference detection module is burned on the all-in-one machine.
2. The cigarette box color difference detection device according to claim 1, characterized in that: The test bench for the samples to be tested is provided with a first short cigarette slot for placing short cigarette boxes to be tested, a first regular cigarette slot for placing regular cigarette boxes to be tested, a first medium cigarette slot for placing medium cigarette boxes to be tested, and a first thin cigarette slot for placing thin cigarette boxes to be tested.
3. The cigarette box color difference detection device according to claim 1, characterized in that: The standard sample test bench is provided with a second short cigarette slot for placing a standard short cigarette box, a second regular cigarette slot for placing a standard regular cigarette box, a second medium cigarette slot for placing a standard medium cigarette box, and a second slim cigarette slot for placing a standard slim cigarette box.
4. The cigarette box color difference detection device according to claim 1, characterized in that: The to-be-tested sample test bench, the standard sample test bench, the first camera, the second camera, and the standard light source are all arranged in a protective cover.
5. The cigarette box color difference detection device according to claim 4, characterized in that: The integrated machine is arranged on the top of the protective cover.
6. A method for detecting color difference of cigarette boxes, characterized in that: The method is implemented using the cigarette box color difference detection device according to any one of claims 1 to 5, and the method comprises: Using a first camera to capture an image of the finished cigarette box to be tested; capturing an image of a standard finished cigarette package with the aid of a second camera; Converting the image of the finished cigarette box to be tested into a first grayscale image; Converting the image of the standard finished cigarette box into a second grayscale image; Performing grid division on the first grayscale image to obtain a first grayscale image after grid division; Performing grid division on the second grayscale image to obtain a second grayscale image after grid division; Calculate a first grayscale value of a first grayscale image after grid division; Calculate a second grayscale value of the second grayscale image after grid division; Compare the first grayscale value with the second grayscale value to obtain a current deviation; Determine whether the current deviation is less than or equal to a first deviation threshold; If the current deviation is less than or equal to the deviation threshold, determine whether the current deviation is greater than the second deviation threshold, determine whether the current deviation is greater than the second deviation, and whether the proportion of the detection results less than or equal to the first deviation threshold reaches the proportion threshold of all detection results; If the current deviation is greater than the second deviation and less than or equal to the first deviation threshold, and the current deviation is greater than the second deviation, and the proportions of daylight, cold white light, and complex color light illumination all reach the proportion threshold of all test results, the finished cigarette box to be tested is determined to be qualified.
7. The method for detecting color difference of cigarette boxes according to claim 6, characterized in that: If the current deviation is greater than the first deviation threshold, it is determined that the finished cigarette box to be tested is unqualified.
8. The method for detecting color difference of cigarette boxes according to claim 6, characterized in that: If the current deviation is less than or equal to the second deviation, the finished cigarette box to be tested is determined to be unqualified.
9. The method for detecting color difference of cigarette boxes according to claim 6, characterized in that: If the current deviation is greater than the second deviation, and the test results whose current deviation is less than or equal to the first deviation threshold do not account for the threshold of the proportion of all test results, it is determined that the finished cigarette box to be tested is unqualified.
10. The cigarette box color difference detection method according to claim 6, characterized in that: Through daylight, cold white light, and complex color light illumination, not all of the proportions reach the proportion threshold of all test results, and the finished cigarette boxes to be tested are judged to be unqualified.
Citation Information
Cited By
Surface color difference control system of plastic product
CN120352028A
A surface color difference control system for plastic products
CN120352028B
