Machine vision-based luggage zipper quality detection method and system
Through machine vision technology, the motion trajectory of the luggage zipper is obtained, the broken points are identified in segments, the detection parameters are configured, and the image is collected and the recognition quality is solved. The detection results in the existing technology are not consistent with the actual use, and the detection stickers are improved Combination and reliability.
Patent Information
- Application Number
- CN202411215999.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the quality inspection results of the luggage zippers do not match the losses during actual use, and the reliability of the inspection results is poor.
Using machine vision-based zipper quality detection method and system, the zipper motion trajectory is obtained, and the track segment identification device is called to segment the broken point, analyze the degree of damage, configure the detection parameter set, and use the camera module to collect the zipper surface. and quality identification to obtain test results.
The degree of fit between quality inspection results and actual use conditions is improved, and the reliability of inspection results is enhanced.
Smart Images

Figure CN118883572A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of luggage zippers, and in particular to a luggage zipper quality detection method and system based on machine vision. Background Art
[0002] With the rapid development of the luggage industry, the requirements for luggage quality are also constantly increasing, and the quality of luggage zippers has a very important impact on the quality of luggage. At present, the quality inspection of luggage zippers only considers the quality of the zippers when they are not in use, ignoring the fact that the force direction and movement direction of the zippers change with the changes in luggage demand during actual use, resulting in a large gap between the zipper quality inspection results and the quality during actual use. Summary of the invention
[0003] The present application provides a luggage zipper quality inspection method and system based on machine vision, which is used to solve the technical problems in the prior art that the luggage zipper quality inspection results have a low degree of fit with the actual use loss and the reliability of the inspection results is poor.
[0004] In view of the above problems, the present application provides a luggage zipper quality inspection method and system based on machine vision.
[0005] In a first aspect of the present application, a luggage zipper quality detection method based on machine vision is provided, wherein the method is applied to a luggage zipper quality detection system, the luggage zipper quality detection system is communicatively connected with a parameter configuration module and a camera module, and the method comprises:
[0006] Acquire basic information of a target luggage zipper to obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory;
[0007] Invoking the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damaged points, and obtaining K zipper segmented motion trajectories and K damage degrees;
[0008] Analyze the K zipper segment motion trajectories and K damage degrees using the parameter configuration module, and configure K detection parameter sets;
[0009] Based on the K detection parameter sets, the target bag zippers are respectively tested, and the camera module is used to collect images of the surfaces of the tested bag zippers to obtain a set of zipper surface images;
[0010] The quality of the zipper surface image set is identified to obtain the quality detection result of the zipper of the target bag.
[0011] The second aspect of the present application provides a bag zipper quality inspection system based on machine vision, the system comprising:
[0012] A basic information set obtaining unit, used to obtain basic information of a target luggage zipper, and obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory;
[0013] A damage degree obtaining unit is used to call the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damage points, and obtain K zipper segmented motion trajectories and K damage degrees;
[0014] A detection parameter set configuration unit, configured to use the parameter configuration module to analyze the K zipper segment motion trajectories and the K damage degrees, and configure K detection parameter sets;
[0015] A surface image set obtaining unit, configured to perform detection tests on the target luggage zippers based on the K detection parameter sets, respectively, and use a camera module to collect images of the surfaces of the luggage zippers after the tests to obtain a zipper surface image set;
[0016] The quality inspection result obtaining unit is used to perform quality identification on the zipper surface image set to obtain the target bag zipper quality inspection result.
[0017] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0018] The present application obtains the basic information of the target luggage zipper to obtain the target zipper basic information set, wherein the target zipper basic information set includes the zipper motion trajectory, and then calls the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damaged points, and obtain K zipper segmented motion trajectories and K damage degrees, and then uses the parameter configuration module to analyze the K zipper segmented motion trajectories and K damage degrees, configure K detection parameter sets, and then perform detection tests on the target luggage zipper based on the K detection parameter sets, and use the camera module to collect images of the surface of the luggage zipper after the test to obtain a zipper surface image set, and obtain the target luggage zipper quality detection results by performing quality identification on the zipper surface image set. The technical effect of combining the actual loss of the luggage zipper during use, splitting the zipper motion path, and configuring different detection parameters, thereby improving the degree of fit between the quality detection results and actual use, is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram of the process of detecting the quality of luggage zippers based on machine vision provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of the structure of a luggage zipper quality inspection system based on machine vision provided in an embodiment of the present application.
[0022] Explanation of the reference numerals: basic information set obtaining unit 11 , damage degree obtaining unit 12 , detection parameter set configuration unit 13 , surface image set obtaining unit 14 , quality detection result obtaining unit 15 . DETAILED DESCRIPTION
[0023] The present application provides a luggage zipper quality inspection method and system based on machine vision, which is used to solve the technical problems in the prior art that the luggage zipper quality inspection results have a low degree of fit with the actual use loss and the reliability of the inspection results is poor.
[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] It should be noted that the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or inherent to these processes, methods, products or devices.
[0026] Embodiment 1
[0027] like Figure 1 As shown, the present application provides a luggage zipper quality detection method based on machine vision, wherein the method is applied to a luggage zipper quality detection system, the luggage zipper quality detection system is communicatively connected with a parameter configuration module and a camera module, and the method includes:
[0028] S100: Acquire basic information of a target luggage zipper, and obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory;
[0029] In a possible embodiment, the target luggage zipper is any zipper that needs to be inspected for zipper quality. The type of the target luggage zipper is closely related to the type of luggage. When the luggage is a cloth bag, the zipper motion trajectory of the luggage zipper is a straight line; when the luggage is a suitcase, the zipper motion trajectory of the luggage zipper is composed of several straight lines and several arcs. The different zipper motion trajectories have a greater impact on the force direction of the zipper, and the trajectory segments that are prone to wear during use are also different. By collecting the basic information of the target luggage zipper, the luggage type to which the target luggage zipper is applied is determined, and the target zipper basic information set is determined according to the luggage type, wherein the target zipper basic information set includes the zipper motion trajectory. Among them, the zipper motion trajectory is the slider moving path of the target luggage zipper. By obtaining the zipper motion trajectory, the technical effect of providing basic data support for subsequent trajectory segmentation is achieved.
[0030] S200: calling the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damaged points, and obtaining K zipper segmented motion trajectories and K damage degrees;
[0031] Further, calling the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damaged points, and obtaining K zipper segmented motion trajectories and K damage degrees, step S200 of the embodiment of the present application further includes:
[0032] Extracting cloud damage data from the zipper motion trajectory using a trajectory segmentation recognition device to obtain a cloud damage data set, wherein the cloud damage data set includes a plurality of damage point position sets, and each damage point position has a reference grayscale value;
[0033] Based on the zipper motion trajectory, the plurality of damaged point position sets are overlapped to construct a damaged overlap scatter plot, wherein the damaged overlap scatter plot has a plurality of scattered points, and each scattered point has a scattered point gray value;
[0034] The damaged overlapping scatter diagram is segmented according to the grayscale values of the scatter points to obtain K zipper segmented motion trajectories.
[0035] In one possible embodiment, the parameter configuration module is used to intelligently configure the parameters for quality inspection of luggage zippers, including a trajectory segmentation recognition device. The trajectory segmentation recognition device is a functional device for segmenting the zipper motion trajectory according to the damage conditions of different trajectory positions reflected in the cloud damage data. The zipper motion trajectory is segmented by the trajectory segmentation recognition device to obtain K zipper segmented motion trajectories and K damage degrees. The K damage degrees are used to describe the degree to which zippers in different zipper segmented motion trajectories are prone to damage. The greater the damage degree, the more likely the zipper at the corresponding zipper segmented motion trajectory will have problems during use. Therefore, when configuring the detection parameters later, more stringent quality inspection parameters need to be used. The K damage degrees correspond one-to-one to the K zipper segmented motion trajectories.
[0036] In a possible embodiment, the zipper motion trajectory is used as an index, and the trajectory segmentation identification device is used to extract damage data in the cloud database to obtain the cloud damage data set. The cloud database is used to store data of recorded data of zipper damage at different positions. The cloud damage data set is used to describe the zipper damage under the zipper motion trajectory, including a plurality of damage point position sets, wherein each damage point position has a reference grayscale value. The reference grayscale value is a standard grayscale value for marking the trajectory position where the zipper is damaged after the zipper is damaged at the trajectory pre-set by a person skilled in the art.
[0037] In one embodiment, the plurality of damaged point position sets are overlapped based on the zipper motion trajectory, that is, a plurality of scattered points are generated at the positions of the plurality of damaged points in the plurality of damaged point position sets in the zipper motion trajectory, and the reference grayscale value at each damaged point position is used as the scattered grayscale value of the scattered point. If, during superposition, a plurality of damaged points belonging to the plurality of damaged point position sets appear at the same trajectory position, the reference grayscale values of the plurality of damaged points are superimposed as the scattered grayscale value of the scattered point. Thus, the larger the scattered grayscale value, the more zipper damage occurs at the trajectory position of the scattered point, and the more likely it is to be damaged.
[0038] Then, according to the size of the scattered point grayscale value, the zipper motion trajectory corresponding to the damaged overlapping scatter plot is segmented, and the trajectory position area with a relatively uniform distribution of scattered point grayscale values is used as a zipper segmented motion trajectory, thereby obtaining the K zipper segmented motion trajectories. This achieves the technical effect of paving the way for configuring different detection parameter sets for different zipper segmented motion trajectories according to the actual degree of damage of the zipper during use.
[0039] Furthermore, based on the zipper motion trajectory, the plurality of damaged point position sets are overlapped to construct a damaged overlap scatter plot. Step S200 of the embodiment of the present application further includes:
[0040] Extracting first cloud damage data from the cloud damage data set, and extracting a first damage point location set in the first cloud damage data;
[0041] According to the damaged point positions in the first damaged point position set, scatter points are set at corresponding positions in the zipper motion trajectory to obtain a plurality of first scatter points;
[0042] The plurality of first scattered points are identified by grayscale values corresponding to the plurality of damaged point positions in the first damaged point position set, so as to obtain an initial damaged overlapping scatter point diagram.
[0043] Furthermore, step S200 of the embodiment of the present application further includes:
[0044] extracting second cloud damage data from the cloud damage data set again, and extracting a second damage point location set in the second cloud damage data;
[0045] In the initial damage overlap scatter diagram, scatter points are marked according to the second damage point position set, and it is determined whether there is an overlap position of damage points. If so, the reference grayscale values corresponding to the overlapping multiple damage points are superimposed, and the superimposed grayscale value obtained after superposition is used as the scatter point grayscale value of the scatter point at the overlap position of the damage points, so as to obtain a stage damage overlap scatter diagram;
[0046] After multiple scattered point markings, all damaged point positions in the cloud damaged data set are marked, and a damaged overlapping scattered point map is obtained.
[0047] In a possible embodiment, first cloud damage data is extracted from the cloud damage data set, and then a first damage point position set in the first cloud damage data is extracted. According to the damage point positions in the first damage point position set, scatter points are set at corresponding positions in the zipper motion trajectory to obtain a plurality of first scatter points. The plurality of first scatter points have corresponding reference grayscale values. The reference grayscale values corresponding to the plurality of damage point positions in the first damage point position set are used to identify the grayscale values of the plurality of first scatter points to obtain an initial damage overlapping scatter plot. The initial damage overlapping scatter plot is the damage conditions at different estimated locations on the zipper motion trajectory reflected by the first cloud damage data.
[0048] Then, the second cloud damage data is extracted from the cloud damage data set again, and the second damage point position set in the second cloud damage data is extracted. Based on the initial damage overlap scatter plot, according to the damage point position in the second damage point position set, scatter point identification is performed at the corresponding position of the initial damage overlap scatter plot, and it is determined whether there is a damage point overlap position, that is, whether the damage point position in the second damage point position set overlaps with the scatter point in the initial damage overlap scatter plot. If so, the reference grayscale values corresponding to the overlapping multiple damage points are superimposed, and the superimposed grayscale value obtained after superposition is used as the scatter point grayscale value of the scatter point at the damage point overlap position, and a stage damage overlap scatter plot is obtained. Based on the same principle, multiple scatter point identifications are performed until all the damage point positions in the cloud damage data set are identified, and a damage overlap scatter plot is obtained. Wherein, the damage overlap scatter plot has multiple scatter points, and each scatter point has a scatter point grayscale value.
[0049] Furthermore, the damaged overlapping scatter diagram is segmented according to the grayscale values of the scatter points to obtain K zipper segmented motion trajectories. Step S200 of the embodiment of the present application further includes:
[0050] Calculating multiple grayscale gradient values of multiple scattered points along the motion direction of the zipper motion trajectory according to the grayscale values of the scattered points;
[0051] Performing fluctuation variance analysis on the multiple grayscale gradient values, and determining the size of the analysis window according to the fluctuation variance analysis result;
[0052] The damaged overlapping scatter diagram is divided into a plurality of track intervals according to the size of the analysis window, and grayscale gradient maximum value analysis is performed on the plurality of track intervals, and scatter points corresponding to a plurality of grayscale gradient maximum values are respectively used as a plurality of initial segmentation points.
[0053] Furthermore, step S200 of the embodiment of the present application further includes:
[0054] Obtaining an initial segmentation point sequence according to the order of the multiple initial segmentation points in the zipper motion trajectory;
[0055] Sequentially performing difference calculation on the grayscale gradient values corresponding to two adjacent initial segmentation points in the initial segmentation point sequence, and judging whether the difference calculation result satisfies the preset grayscale gradient difference value, and if not, taking the initial segmentation point located in front as the first segmentation point;
[0056] If yes, the initial segmentation point located in the front is eliminated, and the initial segmentation point located in the back is retained to continue to calculate the grayscale gradient difference with the next initial segmentation point to obtain multiple segmentation points;
[0057] Segmenting the zipper motion trajectory using the multiple segmentation points to obtain K zipper segmented motion trajectories;
[0058] The mean of the grayscale values of multiple scattered points in the K zipper segmented motion trajectories is calculated to obtain K damage degrees.
[0059] In a possible embodiment, in order to segment the zipper motion trajectory, multiple grayscale gradient values of multiple scattered points are calculated along the motion direction of the zipper motion trajectory based on the size of the scattered point grayscale values. Optionally, the grayscale gradient value of the previous scattered point is obtained by performing a difference calculation between the scattered point grayscale value of the previous scattered point and the scattered point grayscale value of the next adjacent scattered point, and then comparing the calculated result with the distance between the two scattered points. If the grayscale gradient value is positive, it indicates that the scattered point grayscale value of the previous scattered point is greater than the scattered point grayscale value of the next adjacent scattered point.
[0060] The multiple grayscale gradient values reflect the increase or decrease of the degree of zipper damage in the zipper motion trajectory. The variance of the multiple grayscale gradient values is calculated to obtain the fluctuation variance analysis result. Among them, the larger the fluctuation variance analysis result, the greater the difference in the degree of zipper damage that is likely to occur in the zipper motion trajectory, which is greater than the preset variance. At this time, the analysis window is set to be smaller, which can be 1 / 20 of the zipper motion trajectory; if the fluctuation variance analysis result is smaller, less than or equal to the preset variance pre-set by a technician in this field, it indicates that the difference in the degree of zipper damage that is likely to occur in the zipper motion trajectory is not large. At this time, the analysis window is set to be larger, which can be 1 / 50 of the zipper motion trajectory.
[0061] Furthermore, the damage overlapping scatter plot is divided into multiple trajectory intervals according to the size of the analysis window, and the grayscale gradient maximum values of the multiple trajectory intervals are extracted respectively. The grayscale gradient maximum value indicates the point where the degree of damage changes fastest, and the scatter points corresponding to the multiple grayscale gradient maximum values are respectively used as multiple initial segmentation points.
[0062] Then, according to the order of the multiple initial segmentation points in the zipper motion trajectory, an initial segmentation point sequence is obtained, and the grayscale gradient values corresponding to two adjacent initial segmentation points in the initial segmentation point sequence are calculated in turn to determine whether the difference calculation result meets the preset grayscale gradient difference (set by technical personnel in this field). If not, it indicates that the grayscale gradient changes of the two trajectory intervals corresponding to the two adjacent initial segmentation points are inconsistent and need to be analyzed separately. In this case, the initial segmentation point in front is used as the first segmentation point.
[0063] If yes, it means that the grayscale gradient changes of the two trajectory intervals corresponding to the two adjacent initial segmentation points are within the allowable range, and the corresponding two trajectory intervals can be merged, then the initial segmentation point located in the front is eliminated, and the initial segmentation point located in the back is retained to continue to calculate the grayscale gradient difference with the next initial segmentation point to obtain multiple segmentation points. The zipper motion trajectory is segmented using the multiple segmentation points to obtain K zipper segmented motion trajectories, achieving the goal of segmenting the zipper motion trajectory according to the degree of damage of the zipper in actual use.
[0064] Then, the mean values of the grayscale values of multiple scattered points in the K zipper segmented motion trajectories are calculated respectively, the average zipper damage degree of each zipper segmented motion trajectory is determined, and K damage degrees are obtained.
[0065] S300: Analyze the K zipper segment motion trajectories and K damage degrees using the parameter configuration module, and configure K detection parameter sets;
[0066] S400: performing detection tests on the target bag zippers based on the K detection parameter sets respectively, and using the camera module to collect images of the surfaces of the bag zippers after the tests to obtain a zipper surface image set;
[0067] In an embodiment of the present application, the parameter configuration module is used to identify the K zipper segment motion trajectories and K damage degrees to obtain corresponding K detection parameter sets. The detection parameter set includes parameters such as test tension, test speed, test path, and test times. Optionally, by obtaining multiple sample zipper segment motion trajectories, multiple sample damage degrees, and multiple sample detection parameter sets as training data, the training data is divided into n groups, and the n groups of training data are sequentially supervised for training on a convolutional neural network-based framework, and the network parameters are updated according to the output results of the previous set of training data until the model output converges, and the parameter configuration module that has been trained is obtained.
[0068] Optionally, the K detection parameter sets are used to respectively perform detection tests on different zipper segment motion trajectories of the target luggage zipper, and a camera module is used to capture images of the surface of the luggage zipper after the test to obtain the zipper surface image set. The camera module can be a CCD camera, an infrared camera, or other device. The zipper surface image set reflects the surface state of the luggage zipper after the test. By obtaining the zipper surface image set, a technical effect of providing data support for the subsequent determination of the quality of the target luggage zipper is achieved.
[0069] S500: Performing quality identification on the zipper surface image set to obtain a target bag zipper quality detection result.
[0070] Furthermore, the quality of the zipper surface image set is identified to obtain the target bag zipper quality detection result. Step S500 of the embodiment of the present application further includes:
[0071] Acquire multiple sample zipper surface image sets and multiple sample zipper quality inspection results as basic training data;
[0072] Using the basic training data to perform unsupervised learning to obtain a quality identification module;
[0073] The quality identification module performs quality identification on the input zipper surface image set to obtain the target bag zipper quality detection result.
[0074] In a possible embodiment, the quality condition reflected by the zipper surface image is identified by using a machine learning method to improve the efficiency and accuracy of obtaining the quality inspection result. The target bag zipper quality inspection result reflects the quality condition of the target bag zipper under the test considering the actual usage condition.
[0075] Optionally, multiple sample zipper surface image sets and multiple sample zipper quality test results are obtained as basic training data, and a convolutional neural network model is constructed to perform unsupervised learning on the mapping relationship between the zipper surface image set and the zipper quality test results, until the trained convolutional neural network model output reaches convergence, and a trained quality identification module is obtained. The quality identification module is used to perform intelligent quality identification on the zipper surface image set. Then, the zipper surface image set is input into the quality identification module for quality identification, and the target luggage zipper quality test result is obtained.
[0076] In summary, the embodiments of the present application have at least the following technical effects:
[0077] This application obtains the basic information of the target luggage zipper, obtains the target zipper basic information set, segments the zipper motion trajectory into damaged points, obtains K zipper segmented motion trajectories and K damage degrees, and achieves the goal of reliably analyzing the damage of the target luggage zipper during actual use, and then uses the parameter configuration module to analyze the K zipper segmented motion trajectories and K damage degrees, configures K detection parameter sets, and then performs detection tests on the target luggage zipper based on the K detection parameter sets, respectively, to achieve the goal of segmented detection of the zipper motion trajectory according to actual use, and then uses the camera module to capture images of the surface of the luggage zipper after the test, obtains the zipper surface image set, and obtains the target luggage zipper quality detection result by performing quality identification on the zipper surface image set. The technical effect of combining the actual loss of the luggage zipper during use, splitting the zipper motion path, and configuring different detection parameters, thereby improving the degree of fit between the quality detection result and the actual use is achieved.
[0078] Embodiment 2
[0079] Based on the same inventive concept as the bag zipper quality inspection method based on machine vision in the aforementioned embodiment, Figure 2 As shown, the present application provides a bag zipper quality inspection system based on machine vision, and the system and method embodiments in the present application are based on the same inventive concept. The system includes:
[0080] A basic information set obtaining unit 11 is used to obtain basic information of a target luggage zipper, and obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory;
[0081] A damage degree obtaining unit 12 is used to call the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damage points, and obtain K zipper segment motion trajectories and K damage degrees;
[0082] A detection parameter set configuration unit 13, configured to use the parameter configuration module to analyze the K zipper segment motion trajectories and the K damage degrees, and configure K detection parameter sets;
[0083] The surface image set obtaining unit 14 is used to perform detection tests on the target bag zippers based on the K detection parameter sets, and use a camera module to collect images of the surfaces of the bag zippers after the tests to obtain a zipper surface image set;
[0084] The quality detection result obtaining unit 15 is used to perform quality identification on the zipper surface image set to obtain the target bag zipper quality detection result.
[0085] Furthermore, the damage degree obtaining unit 12 is used to perform the following steps:
[0086] Extracting cloud damage data from the zipper motion trajectory using a trajectory segmentation recognition device to obtain a cloud damage data set, wherein the cloud damage data set includes a plurality of damage point position sets, and each damage point position has a reference grayscale value;
[0087] Based on the zipper motion trajectory, the plurality of damaged point position sets are overlapped to construct a damaged overlap scatter plot, wherein the damaged overlap scatter plot has a plurality of scattered points, and each scattered point has a scattered point gray value;
[0088] The damaged overlapping scatter diagram is segmented according to the grayscale values of the scatter points to obtain K zipper segmented motion trajectories.
[0089] Furthermore, the damage degree obtaining unit 12 is used to perform the following steps:
[0090] Extracting first cloud damage data from the cloud damage data set, and extracting a first damage point location set in the first cloud damage data;
[0091] According to the damaged point positions in the first damaged point position set, scatter points are set at corresponding positions in the zipper motion trajectory to obtain a plurality of first scatter points;
[0092] The plurality of first scattered points are identified by grayscale values corresponding to the plurality of damaged point positions in the first damaged point position set, so as to obtain an initial damaged overlapping scatter point diagram.
[0093] Furthermore, the damage degree obtaining unit 12 is used to perform the following steps:
[0094] extracting second cloud damage data from the cloud damage data set again, and extracting a second damage point location set in the second cloud damage data;
[0095] In the initial damage overlap scatter diagram, scatter points are marked according to the second damage point position set, and it is determined whether there is an overlap position of damage points. If so, the reference grayscale values corresponding to the overlapping multiple damage points are superimposed, and the superimposed grayscale value obtained after superposition is used as the scatter point grayscale value of the scatter point at the overlap position of the damage points, so as to obtain a stage damage overlap scatter diagram;
[0096] After multiple scattered point markings, all damaged point positions in the cloud damaged data set are marked, and a damaged overlapping scattered point map is obtained.
[0097] Furthermore, the damage degree obtaining unit 12 is used to perform the following steps:
[0098] Calculating multiple grayscale gradient values of multiple scattered points along the motion direction of the zipper motion trajectory according to the grayscale values of the scattered points;
[0099] Performing fluctuation variance analysis on the multiple grayscale gradient values, and determining the size of the analysis window according to the fluctuation variance analysis result;
[0100] The damaged overlapping scatter diagram is divided into a plurality of track intervals according to the size of the analysis window, and grayscale gradient maximum value analysis is performed on the plurality of track intervals, and scatter points corresponding to a plurality of grayscale gradient maximum values are respectively used as a plurality of initial segmentation points.
[0101] Furthermore, the damage degree obtaining unit 12 is used to perform the following steps:
[0102] Obtaining an initial segmentation point sequence according to the order of the multiple initial segmentation points in the zipper motion trajectory;
[0103] Sequentially performing difference calculation on the grayscale gradient values corresponding to two adjacent initial segmentation points in the initial segmentation point sequence, and judging whether the difference calculation result satisfies the preset grayscale gradient difference value, and if not, taking the initial segmentation point located in front as the first segmentation point;
[0104] If yes, the initial segmentation point located in the front is eliminated, and the initial segmentation point located in the back is retained to continue to calculate the grayscale gradient difference with the next initial segmentation point to obtain multiple segmentation points;
[0105] Segmenting the zipper motion trajectory using the multiple segmentation points to obtain K zipper segmented motion trajectories;
[0106] The mean of the grayscale values of multiple scattered points in the K zipper segmented motion trajectories is calculated to obtain K damage degrees.
[0107] Furthermore, the quality detection result obtaining unit 15 is used to perform the following steps:
[0108] Acquire multiple sample zipper surface image sets and multiple sample zipper quality inspection results as basic training data;
[0109] Using the basic training data to perform unsupervised learning to obtain a quality identification module;
[0110] The quality identification module performs quality identification on the input zipper surface image set to obtain the target bag zipper quality detection result.
[0111] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0112] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0113] This specification and the drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A luggage zipper quality inspection method based on machine vision, characterized in that: The method is applied to a luggage zipper quality detection system, wherein the luggage zipper quality detection system is communicatively connected with a parameter configuration module and a camera module, and the method comprises: Acquire basic information of a target luggage zipper to obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory; Invoking the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damaged points, and obtaining K zipper segmented motion trajectories and K damage degrees; Analyze the K zipper segment motion trajectories and K damage degrees using the parameter configuration module, and configure K detection parameter sets; Based on the K detection parameter sets, the target bag zippers are respectively tested, and the camera module is used to collect images of the surfaces of the tested bag zippers to obtain a set of zipper surface images; The quality of the zipper surface image set is identified to obtain the quality detection result of the zipper of the target bag.
2. The method according to claim 1, characterized in that The trajectory segmentation identification device in the parameter configuration module is called to segment the zipper motion trajectory into damaged points to obtain K zipper segmented motion trajectories and K damage degrees. The method includes: Extracting cloud damage data from the zipper motion trajectory using a trajectory segmentation recognition device to obtain a cloud damage data set, wherein the cloud damage data set includes a plurality of damage point position sets, and each damage point position has a reference grayscale value; Based on the zipper motion trajectory, the plurality of damaged point position sets are overlapped to construct a damaged overlap scatter plot, wherein the damaged overlap scatter plot has a plurality of scattered points, and each scattered point has a scattered point gray value; The damaged overlapping scatter diagram is segmented according to the grayscale values of the scatter points to obtain K zipper segmented motion trajectories.
3. The method according to claim 2, characterized in that Based on the zipper motion trajectory, the plurality of damage point position sets are overlapped to construct a damage overlap scatter plot, the method comprising: Extracting first cloud damage data from the cloud damage data set, and extracting a first damage point location set in the first cloud damage data; According to the damaged point positions in the first damaged point position set, scatter points are set at corresponding positions in the zipper motion trajectory to obtain a plurality of first scatter points; The plurality of first scattered points are marked with grayscale values using the reference grayscale values corresponding to the plurality of damaged point positions in the first damaged point position set to obtain an initial damaged overlapping scatter point diagram.
4. The method according to claim 3, characterized in that The method comprises: extracting second cloud damage data from the cloud damage data set again, and extracting a second damage point location set in the second cloud damage data; In the initial damage overlap scatter diagram, scatter points are marked according to the second damage point position set, and it is determined whether there is an overlap position of damage points. If so, the reference grayscale values corresponding to the overlapping multiple damage points are superimposed, and the superimposed grayscale value obtained after superposition is used as the scatter point grayscale value of the scatter point at the overlap position of the damage points, so as to obtain a stage damage overlap scatter diagram; After multiple scattered point markings, all damaged point positions in the cloud damaged data set are marked, and a damaged overlapping scattered point map is obtained.
5. The method according to claim 2, characterized in that The damaged overlapping scatter diagram is segmented according to the grayscale values of the scatter points to obtain K zipper segmented motion trajectories. The method includes: Calculating multiple grayscale gradient values of multiple scattered points along the motion direction of the zipper motion trajectory according to the grayscale values of the scattered points; Performing fluctuation variance analysis on the multiple grayscale gradient values, and determining the size of the analysis window according to the fluctuation variance analysis result; The damaged overlapping scatter diagram is divided into a plurality of track intervals according to the size of the analysis window, and grayscale gradient maximum value analysis is performed on the plurality of track intervals, and scatter points corresponding to a plurality of grayscale gradient maximum values are respectively used as a plurality of initial segmentation points.
6. The method according to claim 5, characterized in that The method comprises: Obtaining an initial segmentation point sequence according to the order of the multiple initial segmentation points in the zipper motion trajectory; Sequentially performing difference calculation on the grayscale gradient values corresponding to two adjacent initial segmentation points in the initial segmentation point sequence, and judging whether the difference calculation result satisfies the preset grayscale gradient difference value, and if not, taking the initial segmentation point located in front as the first segmentation point; If yes, the initial segmentation point located in the front is eliminated, and the initial segmentation point located in the back is retained to continue to calculate the grayscale gradient difference with the next initial segmentation point to obtain multiple segmentation points; Segmenting the zipper motion trajectory using the multiple segmentation points to obtain K zipper segmented motion trajectories; The mean of the grayscale values of multiple scattered points in the K zipper segmented motion trajectories is calculated to obtain K damage degrees.
7. The method according to claim 1, characterized in that Performing quality recognition on the zipper surface image set to obtain a target bag zipper quality detection result, the method comprising: Acquire multiple sample zipper surface image sets and multiple sample zipper quality inspection results as basic training data; Using the basic training data to perform unsupervised learning to obtain a quality identification module; The quality identification module performs quality identification on the input zipper surface image set to obtain the target bag zipper quality detection result.
8. The luggage zipper quality inspection system based on machine vision is characterized by: The system comprises: A basic information set obtaining unit, used to obtain basic information of a target luggage zipper, and obtain a target zipper basic information set, wherein the target zipper basic information set includes a zipper motion trajectory; A damage degree obtaining unit is used to call the trajectory segmentation identification device in the parameter configuration module to segment the zipper motion trajectory into damage points, and obtain K zipper segmented motion trajectories and K damage degrees; A detection parameter set configuration unit, configured to use the parameter configuration module to analyze the K zipper segment motion trajectories and the K damage degrees, and configure K detection parameter sets; A surface image set obtaining unit, configured to perform detection tests on the target luggage zippers based on the K detection parameter sets, respectively, and use a camera module to collect images of the surfaces of the luggage zippers after the tests to obtain a zipper surface image set; The quality inspection result obtaining unit is used to perform quality identification on the zipper surface image set to obtain the target bag zipper quality inspection result.
