Ream paper packaging quality control method and device, electronic equipment and medium
By automatically obtaining and analyzing the copy paper packaging images, extracting defect characteristics and controlling the removal device, the problem of reliance on manual sampling inspection of copy paper packaging quality inspection is solved, the detection efficiency and accuracy are improved, and the defective products are avoided from flowing into the next process.
Patent Information
- Application Number
- CN202411071733.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-20
AI Technical Summary
The quality inspection of copy paper packaging relies on manual random inspections, and comprehensive inspection cannot be achieved, resulting in the flow of defective products into the next process and affecting product quality.
By acquiring the copy paper packaging images, the defect features in the image are extracted, and the removal device is controlled to remove the unqualified packaging sequence based on these features, and automatic quality inspection is achieved.
It improves detection efficiency, reduces manual intervention and errors, ensures the accuracy and consistency of packaging quality, and avoids the flow of defective products into the next production line.
Smart Images

Figure CN119168942A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of copy paper packaging detection, and in particular to a ream paper packaging quality control method, device, electronic equipment and medium. Background Art
[0002] At present, the quality inspection of copy paper ream packaging mainly relies on manual sampling. However, due to the high speed and high degree of automation of the ream machine production line (160R / min), each ream machine packs about 9,000 reams of copy paper per hour. Manual inspection of packaging quality cannot achieve a comprehensive inspection and cannot completely guarantee that the product quality is defect-free. This may cause defective products to flow into the next process, resulting in quality risks in the copy paper ream packaging effect. Summary of the invention
[0003] According to one aspect of the present disclosure, there is provided a method for controlling ream packaging quality, comprising:
[0004] Obtaining a ream packaging image;
[0005] Extracting ream paper packaging defect features contained in the ream paper packaging image;
[0006] Based on the ream paper packaging sequence corresponding to the ream paper packaging defect characteristics, the ream paper packaging rejection device is controlled to reject the ream paper corresponding to the ream paper packaging sequence.
[0007] According to another aspect of the present disclosure, there is provided a ream packaging quality control device, comprising:
[0008] An acquisition module, the acquisition module is used to acquire a ream paper packaging image;
[0009] An extraction module, the extraction module is used to extract ream paper packaging defect features contained in the ream paper packaging image;
[0010] A control module is used to control the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence based on the ream paper packaging sequence corresponding to the ream paper packaging defect characteristics.
[0011] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0012] processor; and,
[0013] A memory for storing programs;
[0014] The program includes instructions, and when the instructions are executed by the processor, the processor executes the method provided according to the exemplary embodiment of the present disclosure.
[0015] According to another aspect of the present disclosure, a computer program product is provided. The computer program includes a computer program. When the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method provided according to the exemplary embodiments of the present disclosure.
[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the method provided according to the exemplary embodiments of the present disclosure.
[0017] In one or more technical solutions provided in the embodiments of the present disclosure, by acquiring a ream paper packaging image and extracting the ream paper packaging defect features contained in the ream paper packaging image, and finally based on the ream paper packaging sequence corresponding to the ream paper packaging defect features, controlling the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence, the quality inspection on the ream paper packaging production line no longer relies on manual quality inspection, and only needs to acquire the ream paper packaging image, identify the ream paper packaging image, extract the ream paper packaging defect features, and then the ream paper packaging on the production line can be quality inspected in real time, and defective products can be rejected, thereby improving the inspection efficiency of the ream paper packaging, reducing manual intervention, and avoiding manual errors. Based on this, the ream paper packaging quality control method provided in the embodiments of the present disclosure can also customize the ream paper packaging defect features according to needs, and adjust the inspection parameters according to order requirements or packaging material styles, so that the application scope of the ream paper packaging quality control method disclosed in the present disclosure is wider. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0019] Figure 1 A schematic diagram showing an example system provided by an exemplary embodiment of the present disclosure in which various methods described herein may be implemented;
[0020] Figure 2 A schematic flow chart showing a ream packaging quality control method according to an exemplary embodiment of the present disclosure;
[0021] Figure 3 A schematic flow chart showing a method for extracting ream paper packaging defect features contained in a ream paper packaging image according to an exemplary embodiment of the present disclosure;
[0022] Figure 4 A schematic flow chart showing a method for training a classification model according to an exemplary embodiment of the present disclosure is shown;
[0023] Figure 5A schematic flow chart showing a method for controlling a ream paper packaging rejection device to reject reams corresponding to a ream paper packaging sequence according to an exemplary embodiment of the present disclosure is shown;
[0024] Figure 6 A schematic block diagram of functional modules of a ream packaging quality control device according to an exemplary embodiment of the present disclosure is shown;
[0025] Figure 7 A schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown;
[0026] Figure 8 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0028] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0029] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0030] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". The names of the messages or information exchanged between the multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] During the process of copy paper ream (hereinafter referred to as ream) packaging equipment packaging copy paper, due to equipment instability or improper equipment parameter settings, copy paper ream packaging defects may occur. At present, the quality inspection of copy paper ream packaging is mainly carried out through manual sampling. Employees need to regularly take samples for inspection on the production line and always pay attention to the packaging of copy paper reams.
[0032] However, the inventors found that relying solely on the naked eye observation of employees is prone to visual fatigue, thus affecting the test results. Moreover, the test relies on personal subjective judgment, and it is difficult to form a unified measurement standard for quality control, and the test effect cannot be guaranteed. At the same time, due to the high speed of the equipment, the use of random inspections means that employees cannot find existing quality problems in time and cannot inspect every ream of paper packaging, so that defective products may flow into the next process, affecting the quality of the product. Moreover, the test results cannot be statistically analyzed in a timely manner, and there is a lack of data to support subsequent management policies.
[0033] In order to overcome the above-mentioned problems, an exemplary embodiment of the present disclosure provides a ream paper packaging quality control method, which obtains a ream paper packaging image and extracts the ream paper packaging defect features contained in the ream paper packaging image to determine whether there are defects in the ream paper packaging, and controls the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence according to the ream paper packaging defect features, so as to reduce manual intervention, improve the accuracy and efficiency of ream paper packaging detection, and prevent defective products from flowing into the next production line.
[0034] Figure 1 Schematic diagram of an example system in which various methods described herein may be implemented provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the system 100 of the exemplary embodiment of the present disclosure may include: a photoelectric sensor 110, a first image acquisition device 120, a second image acquisition device 130, a visual controller 140, a signal converter 150, a relay 160, a ream packaging rejection device 170 and a data storage system 180. It should be understood that the image acquisition device here can be a camera, an industrial camera, etc., which is not limited here.
[0035] like Figure 1As shown, the above-mentioned photoelectric sensor 110 may include a first photoelectric sensor and a second photoelectric sensor, and the first photoelectric sensor and the second photoelectric sensor may communicate with the visual controller 140 through a communication network. Among them, one photoelectric sensor is used to detect the position information of the ream of paper to be acquired, and send the ream position information to the visual controller 140, and the visual controller 140 controls the first image acquisition device 120 and the second image acquisition device 130 to acquire the ream packaging image according to the position information of the ream of paper. The second photoelectric sensor is used to detect the position information of the ream of paper corresponding to the defect feature of the ream image, and send the position information of the ream of paper to the visual controller 140, and the visual controller 140 controls the ream packaging rejection device 170 to reject the ream of paper according to the position information of the ream of paper. It should be understood that the communication network involved in the exemplary embodiment of the present disclosure may be a wired communication network or a wireless communication network. The wired communication network may be a communication network based on power line carrier technology, and the wireless communication network may be a local wireless network or a wide area wireless network. The local wireless network may be a WIFI wireless network, a Zigbee wireless network, a mobile communication network, a satellite communication network, etc.
[0036] like Figure 1 As shown, the first image acquisition device 120 and the second image acquisition device 130 can communicate with the visual controller 140 through a communication network to acquire ream paper packaging images, and send the ream paper packaging images to the visual controller 140, which then extracts ream paper packaging defect features from the ream paper packaging images.
[0037] like Figure 1 As shown, the signal converter 150 can communicate with the first photoelectric sensor, the second photoelectric sensor and the vision controller 140 respectively through the communication network, and the relay 160 can communicate with the ream paper packaging rejection device 170 through the communication network, and is used for sending the ream paper position information corresponding to the ream paper image defect feature to the signal converter 150 for conversion after the second photoelectric sensor detects the ream paper position information corresponding to the ream paper image defect feature. The signal converter 150 sends the converted signal to the vision controller 140, and the vision controller 140 receives the conversion signal and sends a ream paper packaging rejection signal to the signal converter 150 according to the conversion signal. After the signal converter 150 converts the ream paper packaging rejection signal, the conversion signal is sent to the relay 160, and the relay 160 controls the rejection of the ream paper corresponding to the ream paper image defect feature.
[0038] like Figure 1 As shown, the data storage system 180 can store a database of ream packaging images, and the database can be on the vision controller 140 or on other network servers. The data storage system 180 can be separate from the vision controller 140 or integrated in the vision controller 140.
[0039] The ream paper packaging quality control method of the exemplary embodiment of the present disclosure can be applied to a server or a chip in the server. The ream paper packaging quality control method of the exemplary embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0040] Figure 2 FIG. 1 is a schematic flow chart showing a ream packaging quality control method according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the ream paper packaging quality control method includes:
[0041] Step 210: Acquire a ream paper packaging image. It should be understood that the ream paper packaging image here can be acquired by an image acquisition device. The ream paper packaging image may include two corresponding packaging surfaces of the ream paper packaging, that is, the two surfaces of the ream paper packaging that need to be glued.
[0042] Step 220: Extract the ream packaging defect features contained in the ream packaging image. It should be understood that the ream packaging defect features here may include shallow features and deep features of the ream packaging image. For example, the ream packaging defect features may include shallow features of the ream packaging image, such as: color, texture, folding shape and other features of the ream packaging image; the ream packaging defect features may include deep features of the ream packaging image, such as: text content features of the ream packaging image (LOGO or text features on the packaging paper).
[0043] In practical applications, the ream paper packaging image may be a preprocessed ream paper packaging image, and the ream paper packaging defect features contained in the ream paper packaging image are obtained by performing feature extraction on the preprocessed ream paper packaging image.
[0044] The ream packaging image preprocessing of the exemplary embodiment of the present disclosure may include at least one of the following image preprocessing methods:
[0045] The first method is to perform binarization on the ream paper packaging image. For example, the ream paper packaging image can be binarized using a threshold method, where the grayscale value of the pixel on the ream paper packaging image is compared with the threshold, and the pixel with a value greater than the threshold is regarded as completely white, and the pixel with a value less than the threshold is regarded as completely black, so that the entire ream paper packaging image presents an obvious black and white effect.
[0046] The second method is to remove noise from the ream paper packaging image. For example, the ream paper packaging image can be removed by a filter-based method, a model-based method, or a learning-based method. The ream paper packaging image can be input into the DnCNN neural network model for denoising to obtain a noisy image, and then the ream paper packaging image after noise removal can be obtained based on residual learning.
[0047] Step 230: Based on the ream packaging sequence corresponding to the ream packaging defect characteristics, control the ream packaging rejection device to reject the reams corresponding to the ream packaging sequence. It should be understood that the ream packaging rejection device here can be the original ream packaging rejection device on the ream packaging equipment. When the ream packaging equipment does not include the ream packaging rejection device, the ream packaging rejection device can be installed at a suitable position of the ream packaging equipment to facilitate the rejection of unqualified reams.
[0048] In practical applications, the above-mentioned ream paper packaging rejection device can be installed at the rear of the second photoelectric sensor of the ream packaging machine production line, so that after the second sensor detects the position information of the ream paper with unqualified packaging, the position information of the unqualified ream paper with unqualified packaging is sent to the signal converter, and after conversion by the signal converter, it is sent to the visual controller, and the visual controller controls the ream paper packaging rejection device to reject the unqualified ream paper with unqualified packaging.
[0049] As can be seen from the above, by acquiring the ream paper packaging image and extracting the ream paper packaging defect features contained in the ream paper packaging image, and finally based on the ream paper packaging sequence corresponding to the ream paper packaging defect features, controlling the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence, the quality inspection on the ream paper packaging production line no longer relies on manual quality inspection. It is only necessary to acquire the ream paper packaging image, identify the ream paper packaging image, extract the ream paper packaging defect features, and perform quality inspection on the ream paper packaging on the production line in real time, and reject defective products, thereby improving the inspection efficiency of ream paper packaging, reducing manual intervention, and avoiding manual errors. Based on this, the ream paper packaging quality control method provided in the embodiment of the present disclosure can also customize the ream paper packaging defect features according to needs, and adjust the inspection parameters according to order requirements or packaging material styles, so that the application scope of the ream paper packaging quality control method disclosed in the present disclosure is wider.
[0050] As a possible implementation, Figure 3 FIG. 1 is a schematic flow chart showing a method for extracting defect features of ream paper packaging contained in a ream paper packaging image according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the ream paper packaging defect features contained in the ream paper packaging image extracted above include:
[0051] Step 310: Determine the ream packaging position information based on the ream packaging image. Exemplarily, the ream packaging image can be preprocessed, and then the preprocessed ream packaging image can be input into a trained target detection model for position detection, thereby determining the position information of the ream packaging in the ream packaging image. For example, the target detection model can be a Yolov5 target detection model, which has a very high detection efficiency in the field of target detection and a relatively good detection effect. And forward reasoning is performed in the Yolov5 target detection model based on the preprocessed ream packaging image data, and the Yolov5 target detection model outputs the ream packaging position information contained in the ream packaging image based on the preprocessed ream packaging image data. It should be understood that the ream packaging detection model here can also be an SSD target detection algorithm or an R-CenterNet target detection algorithm, etc. The image preprocessing method is consistent with the preprocessing method mentioned above, and will not be repeated here.
[0052] Step 320: Extracting ream packaging defect features from the ream packaging image based on the ream packaging position information. Exemplarily, the ream packaging position information and the ream packaging image may be input into a ream packaging extraction module, and the ream packaging defect features may be extracted from the ream packaging image based on the ream packaging position information.
[0053] As a possible implementation manner, the ream paper packaging defect features contained in the ream paper packaging image of the exemplary embodiment of the present disclosure may be determined by an image feature extraction algorithm, or may be determined by a trained classification model.
[0054] For example, when the ream paper packaging defect features contained in the ream paper packaging image are determined by an image feature extraction algorithm, multiple shallow reference features of the ream paper packaging image (for example, the angle of the folding corner of the packaging paper) can be extracted by using a SIFT feature extraction algorithm, a HOG feature extraction algorithm, an ORB feature extraction algorithm, and a HAAR feature extraction algorithm, etc., and multiple deep reference features of the ream paper packaging image (such as missing logos or uneven angles on the packaging paper) can be extracted by using optical character recognition methods and natural language methods.
[0055] Specifically, when using an image feature extraction algorithm to extract ream paper packaging defect features contained in a ream paper packaging image, the ream paper packaging quality features of the ream paper packaging image can be first extracted by the feature extraction algorithm. After obtaining the ream paper packaging quality features, the difference between the ream paper packaging quality features and the ream paper packaging reference features can be determined. If the difference between the ream paper packaging quality features and the ream paper packaging reference features meets the preset difference, the ream paper packaging corresponding to the ream paper packaging quality features is considered to be qualified; otherwise, the ream paper packaging quality features are considered to be ream paper packaging defect features, and the ream paper packaging corresponding to the ream paper packaging defect features is unqualified and should be rejected using a ream paper packaging rejection device.
[0056] For another example, when the ream paper packaging defect features contained in the ream paper packaging image are determined by a trained classification model, multiple defect features of the ream paper packaging image can be extracted through a trained visual geometry group (Visual Geometry Group, VGG) network, a trained deep residual neural network (Deep residual network, ResNet) or a trained convolutional neural network (Convolutional Neural Networks, CNN) network.
[0057] In some alternatives, Figure 4 FIG. 1 is a schematic flow chart showing a method for training a classification model according to an exemplary embodiment of the present disclosure. Figure 4 As shown, the training method of the above classification model includes:
[0058] Step 410: Acquire labeled ream paper packaging image samples, the labeled ream paper packaging image samples including a plurality of labeled ream paper packaging defect images. It should be understood that the ream paper packaging image here can be the same ream paper packaging image as the ream paper packaging image to be tested, or can be a ream paper packaging image different from the ream paper packaging image to be tested.
[0059] In order to increase the diversity of samples and improve the accuracy of the classification model, the defect types and image attribute characteristics of the above-mentioned multiple labeled ream paper packaging defect images are different. It should be understood that the defect types of the multiple labeled ream paper packaging defect images here can be set according to actual needs. For example, the defect type can be external glue leakage or poor pin insertion. The image attribute characteristics of the multiple labeled ream paper packaging defect images can be different in image brightness, contrast or saturation.
[0060] In practical applications, more than 1,000 images of unqualified ream paper packaging can be manually found in the ream paper packaging image database, classified, and multiple defects in each image can be identified to obtain labeled ream paper packaging image samples.
[0061] Step 420: training a classification model based on labeled ream packaging image samples to obtain a trained classification model.
[0062] In practical applications, multiple labeled ream packaging image samples can be input into the initial classification model to obtain multiple ream packaging defect initial reference features, and then the loss of the initial classification model is determined based on the difference between the ream packaging defect initial reference features corresponding to the multiple labeled ream packaging defect images and the true labels. If the loss of the initial classification model meets the iteration condition, the model parameters of the initial classification model are updated based on the ream packaging defect reference features corresponding to the multiple labeled ream packaging defect images and the true labels. If the loss of the initial classification model does not meet the iteration condition, the initial classification model is determined to be a trained classification model.
[0063] As a possible implementation, Figure 5 A schematic flow chart of a method for controlling a ream paper packaging rejection device to reject ream paper corresponding to a ream paper packaging sequence according to an exemplary embodiment of the present disclosure is shown. Figure 5 As shown, the above-mentioned control of the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence based on the ream paper packaging defect characteristics includes:
[0064] Step 510: Determine a ream paper packaging image corresponding to the ream paper packaging defect feature.
[0065] Step 520: Determine the ream paper packaging sequence corresponding to the ream paper packaging image based on the image sequence feature of the ream paper packaging image. It should be understood that the image sequence feature here can be determined according to the order of the ream paper packaging images acquired by the first image acquisition device and the second image acquisition device. The ream paper packaging image acquired by the first image acquisition device can be stored in the data storage system.
[0066] Step 530: Control the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence. Exemplarily, when the ream paper packaging sequence corresponding to the ream paper packaging image is determined, and the second photoelectric sensor detects the position information of the ream paper corresponding to the ream paper packaging sequence, the second photoelectric sensor can send the position information to the visual controller, and the visual controller controls the ream paper packaging to reject the ream paper corresponding to the ream paper packaging sequence, so as to ensure that the quality of the ream paper packaging entering the subsequent production line is qualified.
[0067] As a possible implementation, the ream paper packaging quality control method further includes: updating the number of defective ream paper packages based on the ream paper packaging image corresponding to the ream paper packaging defect feature. Exemplarily, the number of defective ream paper packages can be updated according to the ream paper packaging image corresponding to the ream paper packaging defect feature, and the number of defective ream paper packages can be stored in a data storage system. At the same time, the ream paper packaging image that has passed the inspection can be saved in the data storage system to facilitate the determination of the defective product rate.
[0068] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that, in order to implement the above functions, the server includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0069] The embodiments of the present disclosure may divide the server into functional units according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0070] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a ream paper packaging quality control device, which may be a server or a chip applied to a server. Figure 6 FIG. 1 shows a schematic block diagram of functional modules of a ream packaging quality control device according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the ream packaging quality control device 600 comprises:
[0071] An acquisition module 610, the acquisition module 610 is used to acquire a ream packaging image;
[0072] An extraction module 620, the extraction module 620 is used to extract ream paper packaging defect features contained in the ream paper packaging image;
[0073] The control module 630 is used to control the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence based on the ream paper packaging sequence corresponding to the ream paper packaging defect characteristics.
[0074] As a possible implementation, the ream paper packaging quality control device 600 further includes a determination module 640, and the determination module 640 is used to determine the ream paper packaging position information based on the ream paper packaging image;
[0075] The extraction module 620 is further configured to extract the ream paper packaging defect features from the ream paper packaging image based on the ream paper packaging position information.
[0076] As a possible implementation manner, the above-mentioned ream packaging defect features are determined by a trained classification model.
[0077] In some optional methods, the above-mentioned acquisition module 610 is also used to obtain labeled ream paper packaging image samples, and the labeled ream paper packaging image samples include multiple labeled ream paper packaging defect images; train a classification model based on the labeled ream paper packaging image samples to obtain the trained classification model.
[0078] In some optional embodiments, the defect types and image attribute characteristics of the plurality of labeled ream packaging defect images are different.
[0079] As a possible implementation, the determination module 640 is further used to determine the ream paper packaging image corresponding to the ream paper packaging defect feature; and determine the ream paper packaging sequence corresponding to the ream paper packaging image based on the image sequence features of the ream paper packaging image.
[0080] The control module 630 is further configured to control the ream packaging rejecting device to reject the reams of paper corresponding to the ream packaging sequence.
[0081] As a possible implementation manner, the above-mentioned ream paper packaging quality control device 600 also includes an updating module 650, and the updating module 650 is used to update the number of defective ream paper packaging based on the ream paper packaging image corresponding to the ream paper packaging defect feature.
[0082] Figure 7 Schematic block diagram of a chip according to an exemplary embodiment of the present disclosure is shown. Figure 7 As shown, the chip 700 includes one or more (including two) processors 701 and a communication interface 702. The communication interface 702 can support the server to perform the data sending and receiving steps in the above image processing method, and the processor 701 can support the server to perform the data processing steps in the above image processing method.
[0083] Optional, such as Figure 7 As shown, the chip 700 also includes a memory 703, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).
[0084] In some embodiments, Figure 7As shown, the processor 701 performs corresponding operations by calling the operation instructions stored in the memory (the operation instructions may be stored in the operating system). The processor 701 controls the processing operations of any one of the terminal devices, and the processor may also be called a central processing unit (CPU). The memory 703 may include a read-only memory and a random access memory, and provides instructions and data to the processor 701. A portion of the memory 703 may also include NVRAM. For example, in an application, the memory, the communication interface, and the memory are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Figure 7 Various buses are labeled as bus system 704 .
[0085] The method disclosed in the above-mentioned embodiment of the present disclosure can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware.
[0086] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0087] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.
[0088] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.
[0089] refer to Figure 8 , a block diagram of an electronic device 800 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, 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, 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 disclosure described and / or required herein.
[0090] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0091] A plurality of components in the electronic device 800 are connected to the I / O interface 805, including: an input unit 806, an output unit 807, a storage unit 808, and a communication unit 809. The input unit 806 may be any type of device capable of inputting information to the electronic device 800, and the input unit 806 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 807 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 808 may include, but is not limited to, a disk, an optical disk. The communication unit 809 allows the electronic device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0092] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above. For example, in some embodiments, the method of the exemplary embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. In some embodiments, the computing unit 801 may be configured to perform the method of the exemplary embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).
[0093] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code 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.
[0094] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. 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.
[0095] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0096] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0097] The systems and techniques described herein may be implemented in a computing system that includes back-end 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 front-end 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 back-end components, middleware components, or front-end 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), and the Internet.
[0098] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0099] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD).
[0100] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for controlling the quality of ream packaging, characterized in that: include: Obtaining a ream packaging image; Extracting ream paper packaging defect features contained in the ream paper packaging image; Based on the ream paper packaging sequence corresponding to the ream paper packaging defect characteristics, the ream paper packaging rejection device is controlled to reject the ream paper corresponding to the ream paper packaging sequence.
2. The method for controlling the quality of ream packaging according to claim 1, characterized in that: The step of extracting the ream paper packaging defect features contained in the ream paper packaging image comprises: determining ream paper packaging position information based on the ream paper packaging image; The ream paper packaging defect feature is extracted from the ream paper packaging image based on the ream paper packaging position information.
3. The ream packaging quality control method according to claim 1, characterized in that: The ream packaging defect features are determined by a trained classification model.
4. The method for controlling the quality of ream packaging according to claim 3, characterized in that: The training method of the classification model includes: Acquire labeled ream paper packaging image samples, wherein the labeled ream paper packaging image samples include a plurality of labeled ream paper packaging defect images; A classification model is trained based on the labeled ream packaging image samples to obtain the trained classification model.
5. The method for controlling the quality of ream packaging according to claim 4, characterized in that: The defect types and image attribute characteristics of the plurality of labeled ream packaging defect images are different.
6. The ream packaging quality control method according to claim 1, characterized in that: The controlling the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence based on the ream paper packaging defect characteristics comprises: Determine the ream paper packaging image corresponding to the ream paper packaging defect feature; determining a ream paper packaging sequence corresponding to the ream paper packaging image based on image sequence features of the ream paper packaging image; The ream paper packaging rejecting device is controlled to reject the ream paper corresponding to the ream paper packaging sequence.
7. The method for controlling the quality of ream packaging according to claim 1, characterized in that: The method further comprises: Based on the ream paper packaging image corresponding to the ream paper packaging defect feature, the number of defective ream paper packaging is updated.
8. A ream packaging quality control device, characterized in that: include: An acquisition module, the acquisition module is used to acquire a ream paper packaging image; An extraction module, the extraction module is used to extract ream paper packaging defect features contained in the ream paper packaging image; A control module is used to control the ream paper packaging rejection device to reject the ream paper corresponding to the ream paper packaging sequence based on the ream paper packaging sequence corresponding to the ream paper packaging defect characteristics.
9. An electronic device, characterized in that: include: processor; as well as, Memory for storing programs; The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program comprises a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to any one of claims 1-7.
11. A non-transitory computer-readable storage medium, characterized in that The non-transitory computer-readable storage medium stores computer instructions for causing the computer to execute the method according to any one of claims 1-7.
Citation Information
Patent Citations
Cigarette packet appearance quality detection device and method, and cigarette packet packaging machine
CN112977974A
Cited By
Paper coating defect classification method and system based on infrared image recognition
CN121051704A
Paper coating defect classification method and system based on infrared image recognition
CN121051704B
