Movatterモバイル変換


[0]ホーム

URL:


CN119063629A - A rubber mold size parameter measurement method and system - Google Patents

A rubber mold size parameter measurement method and system
Download PDF

Info

Publication number
CN119063629A
CN119063629ACN202411562606.4ACN202411562606ACN119063629ACN 119063629 ACN119063629 ACN 119063629ACN 202411562606 ACN202411562606 ACN 202411562606ACN 119063629 ACN119063629 ACN 119063629A
Authority
CN
China
Prior art keywords
rubber mold
image
rubber
image data
contour
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411562606.4A
Other languages
Chinese (zh)
Other versions
CN119063629B (en
Inventor
毕蓬燕
任雪磊
康振霞
马锦秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apta Hengyu Weihai Medical Equipment Co ltd
Original Assignee
Apta Hengyu Weihai Medical Equipment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Apta Hengyu Weihai Medical Equipment Co ltdfiledCriticalApta Hengyu Weihai Medical Equipment Co ltd
Priority to CN202411562606.4ApriorityCriticalpatent/CN119063629B/en
Publication of CN119063629ApublicationCriticalpatent/CN119063629A/en
Application grantedgrantedCritical
Publication of CN119063629BpublicationCriticalpatent/CN119063629B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to the technical field of optical measurement and discloses a method and a system for measuring size parameters of a rubber mold. According to the method, the laser cameras are installed, the rubber mold image data of different batches are collected, the rubber mold image data of different batches in the training data set are processed based on the image processing method, meanwhile, the rubber mold image contours are extracted through the background separation method based on the obtained processed rubber mold image data, the optimal standard size parameters of the rubber mold are determined through the genetic algorithm based on the extracted rubber mold image contours of different batches, the standard size parameter range of the rubber mold is set, and further, the rubber mold size parameters of the current batch are determined through the mode of collecting the rubber mold image data of the current batch in real time and comparing the contours, so that the measurement efficiency of the rubber mold size parameters is improved.

Description

Rubber mold size parameter measurement method and system
Technical Field
The invention relates to the technical field of optical measurement, in particular to a method and a system for measuring size parameters of a rubber mold.
Background
Because rubber is easy to ductility and strong in plasticity, the rubber is widely used in the mould manufacturing direction at present, but because the rubber is poor in thermoplastic effect, the dimensional stability of the rubber mould is insufficient, and the efficiency of modification is low and the effect is poor through manual measurement, so that the actual requirement cannot be met.
According to the prior Chinese application patent CN117739852A, the relative position of the inner surface is determined by continuously moving a laser device, profile information of a first profile of the inner surface and profile information of a second profile of the first surface are measured by the laser device, endpoint coordinates of the profile of the pattern block are determined according to a coordinate array corresponding to the first profile measurement and a coordinate array corresponding to the second profile measurement, and laser cleaning path planning is performed by calculating size information of the pattern block according to the determined endpoint coordinates, but a rough surface existing in the pattern block is omitted, and laser measurement is easy to be interfered with to have a certain limitation.
Disclosure of Invention
(One) solving the technical problems
Aiming at the defects of the prior art, the invention provides the method and the system for measuring the dimension parameters of the rubber mold, which have the advantages of accuracy, high efficiency, real time and the like, and solve the problems that the dimension stability of the rubber mold is insufficient due to poor thermoplastic effect of the rubber, and the efficiency of modification is low and the effect is poor by manual measurement, so that the actual requirements cannot be met.
(II) technical scheme
In order to solve the technical problems that the rubber mold is insufficient in dimensional stability due to poor thermoplastic effect of rubber, and the efficiency of measurement and modification is low and the effect is poor by manual measurement, and the actual requirements cannot be met, the invention provides the following technical scheme:
The embodiment discloses a method for measuring dimension parameters of a rubber mold, which specifically comprises the following steps:
s1, installing a laser camera, collecting image data of rubber molds in different batches, and establishing a training data set;
s2, processing the rubber mold image data of different batches in the training data set based on an image processing method to obtain processed rubber mold image data;
s3, extracting the image contour of the rubber mold by a background separation method based on the obtained processed image data of the rubber mold;
S4, determining optimal standard size parameters of the rubber mold and setting standard size parameter ranges of the rubber mold through a genetic algorithm based on the extracted image outlines of the rubber molds in different batches;
S5, collecting image data of the rubber molds of the current batch in real time, extracting the image contours of the rubber molds of the image data of the rubber molds of the current batch, and determining the size parameters of the rubber molds of the current batch in a contour comparison mode.
According to the invention, the laser cameras are installed, the rubber mold image data of different batches are collected, the rubber mold image data of different batches in the training data set are processed based on the image processing method, meanwhile, the rubber mold image contour is extracted through the background separation method based on the obtained processed rubber mold image data, the optimal standard size parameter of the rubber mold is determined through the genetic algorithm based on the extracted rubber mold image contour of different batches, the standard size parameter range of the rubber mold is set, and the size parameter of the rubber mold of the current batch is determined through the mode of collecting the rubber mold image data of the current batch in real time and comparing the contour, so that the measurement efficiency of the size parameter of the rubber mold is improved.
Preferably, the installing the laser camera, collecting image data of rubber molds of different batches, and establishing a training data set includes the following steps:
Setting the positions of all characteristic points on the rubber mold, and fixing the relative positions of the camera and the rubber mold, so that the characteristic points on the rubber mold are uniformly distributed in the whole camera view;
and in a preset working range of the laser camera, acquiring rubber mold images shot by the laser cameras of different batches according to preset sampling intervals, and establishing a training data set.
According to the invention, the positions of all characteristic points on the rubber mold are set, the relative positions of the camera and the rubber mold are fixed, and meanwhile, the accuracy of rubber mold image acquisition is ensured by acquiring rubber mold images shot by laser cameras of different batches and establishing a training data set.
Preferably, the image processing method is used for processing the rubber mold image data of different batches in the training data set, and the obtained processed rubber mold image data comprises the following steps:
S21, selecting a pixel point in the training data set image data, and setting a rectangular window by taking the pixel point as a center;
S22, calculating average gray values of all pixel points in the set rectangular window through an average filtering algorithm.
Preferably, the calculating the average gray value of all the pixels in the set rectangular window by the mean filtering algorithm includes the following steps:
Setting the size of a rectangular window as n multiplied by n;
the mean filtering algorithm calculation formula is as follows:
Wherein,Representing the selected coordinates asAnd n represents the window size,Representing the coordinates within a window asGray values of (2);
And taking the value calculated by the mean value filtering algorithm of the selected pixel point as the gray value of the pixel point, and carrying out data processing on all the pixel points in the image data of the determined training data set to obtain the processed image data.
According to the invention, the pixel points in the training data set image data are selected, a rectangular window is set by taking the pixel points as the center, and the average gray values of all the pixel points in the set rectangular window are calculated through the average filtering algorithm, so that the effectiveness of the image data is improved.
Preferably, the step of extracting the image profile of the rubber mold by a background separation method based on the obtained processed image data of the rubber mold comprises the steps of:
s31, initializing fuzzy average algorithm parameters;
setting the total pixel point number of the processed image data as N, classifying the processed image data into A class,For the center point of each class,Representing points of interestSum classThe objective function and constraint of the fuzzy mean algorithm are as follows:
The objective function formula:;
Constraint condition type:;
wherein m is a blur index, the blur index is a blur degree in a photographed image,Represent the firstThe center point of the class is defined as the center point of the class,The characteristic points of the acquisition are represented,Representation pointsTo the firstClass center pointJ represents an objective function;
s32, performing iterative clustering operation on similar pixel points to finish separation of an image target and a background.
Preferably, the iterative clustering operation is performed on similar pixel points, and the separation of the image target and the background is completed, which comprises the following steps:
Calculating the distance from the random point in the class to the class center point based on the initially set center point of each class;
continuously adjusting the center point of each class according to the constraint condition, continuously iterating until the center points of all classes are not changed, and stopping iterating;
the classification of the pixel points in the image is completed by searching the minimum value of the objective function corresponding to each characteristic point, so that the separation of the image target and the background is realized;
clustering center based on clustering algorithm updateSum matrixThe following is shown:
;
;
Wherein,A center point representing a kth class; Representation pointsTo the firstClass center pointIs used for the distance of (a),Representation pointsTo the kth class center pointIs a distance of (2);
The pixel types are converged into two types through continuous iterative clustering, the rubber mold image contour is extracted through a mode of setting gray values of the two types of pixel points, and the characteristic points of the rubber mold image contour are recorded.
According to the invention, the pixel points of the processed image data are classified by initializing the fuzzy mean algorithm parameters, iterative clustering operation is carried out on the similar pixel points, the separation of an image target and a background is completed, meanwhile, the image contour of the rubber mold is extracted by respectively setting the gray values of the two types of pixel points, the characteristic points of the image contour of the rubber mold are recorded, and the accuracy of the image contour extraction of the rubber mold is improved.
Preferably, the determining the optimal standard size parameter of the rubber mold and setting the standard size parameter range of the rubber mold by a genetic algorithm based on the extracted image profiles of the rubber mold in different batches comprises the following steps:
s41, setting genetic population scale, iteration times and chromosome coding;
S42, randomly generating initial population;
S43, taking a parameter average algorithm as an fitness function of a genetic algorithm, and calculating the fitness of each individual in the population;
Setting a group of extracted rubber mold image contour feature points represented by each individual;
Setting coordinates of the central points of the extracted rubber mold image contours, calculating the distances from the contour feature points of each extracted rubber mold image to the central points of the extracted rubber mold image contours, and calculating the average value of the distances from the contour feature points of each extracted rubber mold image to the central points of the extracted rubber mold image contours;
The fitness calculation formula of each individual is as follows:
;
Wherein,Indicating fitness of the t-th individual;
s44, selecting excellent individuals from all individuals based on a roulette manner;
the roulette mode selects the excellent individual calculation formula among all the individuals as follows:
Wherein,Representing the probability that the t-th individual is selected,Representing probability, T representing population size;
S45, intersecting selected excellent individuals in a sequential intersecting mode to generate a new population after intersecting;
S46, randomly selecting an individual in the population to carry out edge with set probability to generate a mutated population;
S47, comparing the adaptability difference value between the initial population and the population subjected to the genetic algorithm cross mutation;
When (when)<0, Indicating that the population fitness after mutation is higher than the initial population, and the population is accepted whenNot less than 0, meaning that the population fitness after mutation is lower than that of the initial population, refusing to accept the population;
S48, judging whether the maximum iteration number is reached according to the iteration number of the algorithm, outputting an optimal solution when the maximum iteration number is reached, and continuously executing the step S44 when the maximum iteration number is not reached;
Setting a group of extracted rubber mold image contour feature points represented by the output optimal solution as optimal standard size parameters of the rubber mold;
And setting a rubber mold construction error range, and determining a rubber mold standard size parameter range of each rubber mold image contour feature point based on the optimal standard size parameter of the rubber mold.
According to the invention, the optimal standard size parameters of the rubber mold are continuously and iteratively calculated through genetic algorithm by extracting the image outlines of the rubber molds in different batches, and meanwhile, the standard size parameter range of the rubber mold is set based on the optimal standard size parameters of the rubber mold obtained through calculation, so that the reliability of standard determination of the rubber mold is improved.
Preferably, the step of collecting the image data of the rubber mold of the current batch in real time, extracting the image profile of the rubber mold of the image data of the rubber mold of the current batch, and determining the size parameter of the rubber mold of the current batch by means of profile comparison comprises the following steps:
Definition of the definitionThe optimal standard size parameter of the rubber mold is represented, and the projection image of the optimal standard size parameter of the rubber mold on a two-dimensional plane isSetting a contour image extracted from a projection image of a two-dimensional plane asSetting the contour of the rubber mold image for extracting the image data of the rubber mold of the current batch asBy a similarity functionTo judge the contour imageIs the degree of coincidence of (2);
Wherein,For two contoursAnd (3) withThe area of the overlapping portion is defined by,And (3) withAreas corresponding to the contours respectively; the larger S, the more similar the two regions, when the two regions overlap,;
When (when)When the rubber mold is in the optimal standard size parameter, the current batch of rubber molds are indicated;
When (when)And selecting dissimilar characteristic points, calculating the distance between the dissimilar profile characteristic points and the optimal standard size parameter, and outputting the size parameters of all the profile characteristic points of the current batch of rubber molds.
The invention passes through.
The embodiment also discloses a system for measuring the size parameters of the rubber mold, which comprises an image acquisition module, an image processing module, a contour extraction module, a standard size determination module and a rubber mold size parameter determination module;
the image acquisition module is used for acquiring image data of rubber molds in different batches and transmitting the image data to the image processing module;
the image processing module is used for processing the received rubber mold image data to obtain processed rubber mold image data;
The contour extraction module is used for extracting the contour of the processed rubber mold image data;
the standard size determining module is used for determining standard size parameters of the rubber mold image contour according to the rubber mold image contour of different batches;
the rubber mold size parameter determining module is used for determining real-time rubber mold size parameters according to the contour comparison mode.
(III) beneficial effects
Compared with the prior art, the invention provides a method and a system for measuring the dimension parameters of a rubber mold, which have the following beneficial effects:
1. According to the invention, by installing a laser camera, collecting rubber mold image data of different batches and processing the rubber mold image data of different batches in a training data set based on an image processing method, extracting the rubber mold image contour through a background separation method based on the obtained processed rubber mold image data, determining the optimal standard size parameter of the rubber mold and setting the standard size parameter range of the rubber mold through a genetic algorithm based on the extracted rubber mold image contour of different batches, further determining the size parameter of the rubber mold of the current batch through a mode of collecting the rubber mold image data of the current batch in real time and comparing the contour, and improving the measurement efficiency of the size parameter of the rubber mold.
2. According to the invention, the positions of all characteristic points on the rubber mold are set, the relative positions of the camera and the rubber mold are fixed, and meanwhile, the accuracy of rubber mold image acquisition is ensured by acquiring rubber mold images shot by laser cameras of different batches and establishing a training data set.
3. According to the method, the pixel points in the training data set image data are selected, a rectangular window is set by taking the pixel points as the center, and the average gray values of all the pixel points in the set rectangular window are calculated through the average filtering algorithm, so that the effectiveness of the image data is improved.
4. According to the method, the pixel points of the processed image data are classified by initializing the fuzzy mean algorithm parameters, iterative clustering operation is carried out on the similar pixel points, separation of an image target and a background is completed, meanwhile, the image contour of the rubber mold is extracted by setting gray values of the two types of pixel points respectively, characteristic points of the image contour of the rubber mold are recorded, and the accuracy of extracting the image contour of the rubber mold is improved.
5. According to the invention, the optimal standard size parameters of the rubber mold are continuously and iteratively calculated through genetic algorithm by extracting the image outlines of the rubber molds in different batches, and meanwhile, the standard size parameter range of the rubber mold is set based on the optimal standard size parameters of the rubber mold obtained through calculation, so that the reliability of standard determination of the rubber mold is improved.
6. According to the invention, the rubber mold image data of the current batch are acquired in real time, the rubber mold image contour of the rubber mold image data of the current batch is extracted, and the distances between dissimilar contour feature points and the optimal standard size parameters are calculated in a contour comparison mode, so that the real-time performance of measuring the rubber mold size parameters is improved.
Drawings
Fig. 1 is a schematic structural diagram of a measurement flow of dimension parameters of a rubber mold according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, the embodiment discloses a method for measuring dimension parameters of a rubber mold, which specifically includes the following steps:
s1, installing a laser camera, collecting image data of rubber molds in different batches, and establishing a training data set;
Installing a laser camera, collecting image data of rubber molds of different batches, and establishing a training data set, wherein the method comprises the following steps:
Setting the positions of all characteristic points on the rubber mold, and fixing the relative positions of the camera and the rubber mold, so that the characteristic points on the rubber mold are uniformly distributed in the whole camera view;
In a preset working range of the laser camera, acquiring rubber mold images shot by the laser cameras of different batches according to preset sampling intervals, and establishing a training data set;
s2, processing the rubber mold image data of different batches in the training data set based on an image processing method to obtain processed rubber mold image data;
Processing the rubber mold image data of different batches in the training data set based on an image processing method to obtain processed rubber mold image data, wherein the processing method comprises the following steps of:
S21, selecting a pixel point in the training data set image data, and setting a rectangular window by taking the pixel point as a center;
S22, calculating average gray values of all pixel points in a set rectangular window through an average filtering algorithm;
Setting the size of a rectangular window as n multiplied by n;
the mean filtering algorithm calculation formula is as follows:
Wherein,Representing the selected coordinates asAnd n represents the window size,Representing the coordinates within a window asGray values of (2);
Taking the value calculated by the mean value filtering algorithm of the selected pixel point as the gray value of the pixel point, and carrying out data processing on all the pixel points in the image data of the determined training data set to obtain the processed image data;
s3, extracting the image contour of the rubber mold by a background separation method based on the obtained processed image data of the rubber mold;
Based on the obtained processed rubber mold image data, extracting the contour of the rubber mold image by a background separation method comprises the following steps:
s31, initializing fuzzy average algorithm parameters;
setting the total pixel point number of the processed image data as N, classifying the processed image data into A class,For the center point of each class,Representing points of interestSum classThe objective function and constraint of the fuzzy mean algorithm are as follows:
The objective function formula:;
Constraint condition type:;
wherein m is a blur index, the blur index is a blur degree in a photographed image,Represent the firstThe center point of the class is defined as the center point of the class,The characteristic points of the acquisition are represented,Representation pointsTo the firstClass center pointJ represents an objective function;
S32, performing iterative clustering operation on similar pixel points to finish separation of an image target and a background;
The iterative clustering operation of the similar pixel points comprises the following steps:
Calculating the distance from the random point in the class to the class center point based on the initially set center point of each class;
continuously adjusting the center point of each class according to the constraint condition, continuously iterating until the center points of all classes are not changed, and stopping iterating;
Further, the classification of the pixel points in the image is completed by searching the minimum value of the objective function corresponding to each characteristic point, so that the separation of the image target and the background is realized;
further, clustering center updated based on clustering algorithmSum matrixThe following is shown:
;
;
Wherein,A center point representing a kth class; Representation pointsTo the firstClass center pointIs used for the distance of (a),Representation pointsTo the kth class center pointIs a distance of (2);
further, the pixel types are converged into two types through continuous iterative clustering, the rubber mold image contour is extracted through a mode of setting gray values of the two types of pixel points respectively, and the characteristic points of the rubber mold image contour are recorded;
S4, determining optimal standard size parameters of the rubber mold and setting standard size parameter ranges of the rubber mold through a genetic algorithm based on the extracted image outlines of the rubber molds in different batches;
Based on the extracted image outlines of the rubber molds in different batches, determining the optimal standard size parameters of the rubber molds through a genetic algorithm and setting the standard size parameter ranges of the rubber molds comprises the following steps:
s41, setting genetic population scale, iteration times and chromosome coding;
S42, randomly generating initial population;
S43, taking a parameter average algorithm as an fitness function of a genetic algorithm, and calculating the fitness of each individual in the population;
Setting a group of extracted rubber mold image contour feature points represented by each individual;
Setting coordinates of the central points of the extracted rubber mold image contours, calculating the distances from the contour feature points of each extracted rubber mold image to the central points of the extracted rubber mold image contours, and calculating the average value of the distances from the contour feature points of each extracted rubber mold image to the central points of the extracted rubber mold image contours;
The fitness calculation formula of each individual is as follows:
;
Wherein,Indicating fitness of the t-th individual;
s44, selecting excellent individuals from all individuals based on a roulette manner;
the roulette mode selects the excellent individual calculation formula among all the individuals as follows:
Wherein,Representing the probability that the t-th individual is selected,Representing probability, T representing population size;
S45, intersecting selected excellent individuals in a sequential intersecting mode to generate a new population after intersecting;
S46, randomly selecting an individual in the population to carry out edge with set probability to generate a mutated population;
S47, comparing the adaptability difference value between the initial population and the population subjected to the genetic algorithm cross mutation;
When (when)<0, Indicating that the population fitness after mutation is higher than the initial population, and the population is accepted whenNot less than 0, meaning that the population fitness after mutation is lower than that of the initial population, refusing to accept the population;
S48, judging whether the maximum iteration number is reached according to the iteration number of the algorithm, outputting an optimal solution when the maximum iteration number is reached, and continuously executing the step S44 when the maximum iteration number is not reached;
Setting a group of extracted rubber mold image contour feature points represented by the output optimal solution as optimal standard size parameters of the rubber mold;
Further, setting a rubber mold construction error range, and determining a rubber mold standard size parameter range of each rubber mold image contour feature point based on the optimal standard size parameter of the rubber mold;
s5, collecting image data of the rubber molds of the current batch in real time, extracting the image contours of the rubber molds of the image data of the rubber molds of the current batch, and determining the size parameters of the rubber molds of the current batch in a contour comparison mode;
collecting image data of a rubber mold of a current batch in real time, extracting an image contour of the rubber mold of the image data of the rubber mold of the current batch, and determining the size parameter of the rubber mold of the current batch in a contour comparison mode comprises the following steps:
Definition of the definitionThe optimal standard size parameter of the rubber mold is represented, and the projection image of the optimal standard size parameter of the rubber mold on a two-dimensional plane isSetting a contour image extracted from a projection image of a two-dimensional plane asSetting the contour of the rubber mold image for extracting the image data of the rubber mold of the current batch asBy a similarity functionTo judge the contour imageIs the degree of coincidence of (2);
Wherein,For two contoursAnd (3) withThe area of the overlapping portion is defined by,And (3) withAreas corresponding to the contours respectively; the larger S, the more similar the two regions, when the two regions overlap,;
When (when)When the rubber mold is in the optimal standard size parameter, the current batch of rubber molds are indicated;
When (when)Selecting dissimilar characteristic points, calculating the distance between the dissimilar profile characteristic points and the optimal standard size parameter, and outputting the size parameters of all profile characteristic points of the current batch of rubber molds;
Example 2
The embodiment also discloses a system for measuring the size parameters of the rubber mold, which comprises an image acquisition module, an image processing module, a contour extraction module, a standard size determination module and a rubber mold size parameter determination module;
the image acquisition module is used for acquiring image data of rubber molds in different batches and transmitting the image data to the image processing module;
the image processing module is used for processing the received rubber mold image data to obtain processed rubber mold image data;
The contour extraction module is used for extracting the contour of the processed rubber mold image data;
the standard size determining module is used for determining standard size parameters of the rubber mold image contour according to the rubber mold image contour of different batches;
the rubber mold size parameter determining module is used for determining real-time rubber mold size parameters according to the contour comparison mode.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (9)

Translated fromChinese
1.一种橡胶模具尺寸参数测量方法,其特征在于,包括以下步骤:1. A method for measuring dimensional parameters of a rubber mold, comprising the following steps:S1、安装激光相机,采集不同批次的橡胶模具图像数据,并建立训练数据集;S1. Install a laser camera to collect image data of rubber molds from different batches and establish a training data set;S2、基于图像处理方法对训练数据集中不同批次的橡胶模具图像数据进行处理,得到处理后的橡胶模具图像数据;S2, processing different batches of rubber mold image data in the training data set based on an image processing method to obtain processed rubber mold image data;S3、基于得到的处理后的橡胶模具图像数据,通过背景分离方法,提取橡胶模具图像轮廓;S3, extracting the rubber mold image contour by a background separation method based on the processed rubber mold image data;S4、基于提取的不同批次的橡胶模具图像轮廓,通过遗传算法确定橡胶模具最优标准尺寸参数并设定橡胶模具标准尺寸参数范围;S4, based on the extracted image contours of different batches of rubber molds, determining the optimal standard size parameters of the rubber molds and setting the standard size parameter range of the rubber molds through a genetic algorithm;S5、实时采集当前批次的橡胶模具图像数据,提取当前批次橡胶模具图像数据的橡胶模具图像轮廓,通过轮廓对比的方式确定当前批次橡胶模具尺寸参数。S5. Collect the rubber mold image data of the current batch in real time, extract the rubber mold image contours of the rubber mold image data of the current batch, and determine the size parameters of the rubber molds of the current batch by contour comparison.2.根据权利要求1所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述安装激光相机,采集不同批次的橡胶模具图像数据,并建立训练数据集包括以下步骤:2. A method for measuring size parameters of a rubber mold according to claim 1, characterized in that the step of installing a laser camera, collecting image data of rubber molds of different batches, and establishing a training data set comprises the following steps:设定橡胶模具上所有特征点的位置,并固定相机和橡胶模具的相对位置,使橡胶模具上特征点均匀分布在整个相机视野中;Set the positions of all feature points on the rubber mold and fix the relative positions of the camera and the rubber mold so that the feature points on the rubber mold are evenly distributed in the entire camera field of view;在预设的激光相机工作范围内,根据预设的采样间隔,采集不同批次的激光相机拍摄的橡胶模具图像,并建立训练数据集。Within the preset working range of the laser camera, according to the preset sampling interval, different batches of rubber mold images taken by the laser camera are collected, and a training data set is established.3.根据权利要求1所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述基于图像处理方法对训练数据集中不同批次的橡胶模具图像数据进行处理,得到处理后的橡胶模具图像数据包括以下步骤:3. A method for measuring size parameters of a rubber mold according to claim 1, characterized in that the step of processing the rubber mold image data of different batches in the training data set based on the image processing method to obtain the processed rubber mold image data comprises the following steps:S21、选取训练数据集图像数据中的像素点,并以该像素点为中心设定一个矩形窗口;S21, selecting a pixel point in the image data of the training data set, and setting a rectangular window with the pixel point as the center;S22、通过均值滤波算法计算设定的矩形窗口内所有像素点的平均灰度值。S22. Calculate the average grayscale value of all pixels in the set rectangular window by using a mean filtering algorithm.4.根据权利要求3所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述通过均值滤波算法计算设定的矩形窗口内所有像素点的平均灰度值包括以下步骤:4. A method for measuring size parameters of a rubber mold according to claim 3, characterized in that the step of calculating the average grayscale value of all pixels in a set rectangular window by a mean filter algorithm comprises the following steps:设定矩形窗口大小为n×n;Set the rectangular window size to n×n;均值滤波算法计算公式如下所示:The calculation formula of the mean filter algorithm is as follows: ;其中,表示选取的坐标为的均值滤波后的灰度值,n表示窗口大小,表示窗口内坐标为的灰度值;in, Indicates that the selected coordinates are The gray value after mean filtering, n represents the window size, Indicates that the coordinates in the window are Gray value of将选取像素点通过均值滤波算法计算后的值作为该像素点的灰度值,并对确定训练数据集图像数据中所有的像素点进行数据处理,得到处理后的图像数据。The value of the selected pixel point calculated by the mean filtering algorithm is used as the grayscale value of the pixel point, and data processing is performed on all the pixel points in the image data of the training data set to obtain the processed image data.5.根据权利要求1所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述基于得到的处理后的橡胶模具图像数据,通过背景分离方法,提取橡胶模具图像轮廓包括以下步骤:5. The method for measuring the size parameters of a rubber mold according to claim 1, wherein the extracting the contour of the rubber mold image based on the processed rubber mold image data by a background separation method comprises the following steps:S31、初始化模糊均值算法参数;S31, initializing fuzzy mean algorithm parameters;设定处理后的图像数据的总像素点的个数为N,将其分为A类,为每个类的中心点,表示关于点和类的矩阵,模糊均值算法的目标函数式和约束条件式如下所示:Set the total number of pixels of the processed image data to N and divide it into category A. For each class’s center point, Represents about point and Class The matrix, objective function and constraint condition of the fuzzy mean algorithm are as follows:目标函数式:Objective function: ;约束条件式:Constraints: ;其中,m为模糊指数,模糊指数为拍摄图像中的模糊度,表示第类的中心点,表示采集的特征点,表示点到第类中心点的距离,J表示目标函数;Where m is the blur index, which is the blur degree in the captured image. Indicates The center point of the class, represents the collected feature points, Indicate point To Class center The distance, J represents the objective function;S32、对同类的像素点进行迭代聚类运算,完成图像目标与背景的分离。S32, performing iterative clustering operation on similar pixel points to complete the separation of image target and background.6.根据权利要求5所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述对同类的像素点进行迭代聚类运算,完成图像目标与背景的分离包括以下步骤:6. A method for measuring size parameters of a rubber mold according to claim 5, characterized in that the iterative clustering operation of the same type of pixels to separate the image target from the background comprises the following steps:基于初始设定的每个类的中心点,计算类中随机点到类中心点的距离;Based on the initially set center point of each class, calculate the distance from the random point in the class to the center point of the class;根据约束条件不断调整每个类的中心点,不断迭代,直至所有类中点不再变化,迭代停止;The center point of each class is continuously adjusted according to the constraints, and the iteration is continued until the center points of all classes no longer change and the iteration stops;通过寻找每个特征点对应的目标函数的最小值,完成对图像中像素点的分类,从而实现图像目标与背景的分离;By finding the minimum value of the objective function corresponding to each feature point, the pixel points in the image are classified, thereby achieving the separation of the image target and the background;基于聚类算法更新的聚类中心和矩阵如下所示:Cluster centers updated based on clustering algorithm and matrix As shown below: ; ;其中,表示第k类的中心点;表示点到第类中心点的距离,表示点到第k类中心点的距离;in, represents the center point of the kth class; Indicate point To Class center The distance Indicate point To the center point of the kth class distance;通过不断的迭代聚类,使像素点类型收敛为两类,通过分别设定两类像素点灰度值的方式,提取橡胶模具图像轮廓,并记录橡胶模具图像轮廓特征点。Through continuous iterative clustering, the pixel types are converged into two categories. By setting the grayscale values of the two types of pixels respectively, the rubber mold image contour is extracted and the feature points of the rubber mold image contour are recorded.7.根据权利要求1所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述基于提取的不同批次的橡胶模具图像轮廓,通过遗传算法确定橡胶模具最优标准尺寸参数并设定橡胶模具标准尺寸参数范围包括以下步骤:7. A rubber mold size parameter measurement method according to claim 1, characterized in that the step of determining the optimal standard size parameters of the rubber mold and setting the standard size parameter range of the rubber mold by a genetic algorithm based on the extracted image contours of different batches of rubber molds comprises the following steps:S41、设定遗传的种群规模、迭代次数以及染色体编码;S41, set the genetic population size, number of iterations and chromosome encoding;S42、随机产生初始种群S42, Randomly generate initial population ;S43、将参数平均算法作为遗传算法的适应度函数,并计算种群中各个个体的适应度;S43, using the parameter averaging algorithm as the fitness function of the genetic algorithm, and calculating the fitness of each individual in the population;设定每个个体表示一组提取橡胶模具图像轮廓特征点;Each individual is set to represent a set of extracted contour feature points of the rubber mold image;设定提取橡胶模具图像轮廓中心点坐标,计算每个提取的橡胶模具图像轮廓特征点到提取橡胶模具图像轮廓中心点的距离,并计算每个提取的橡胶模具图像轮廓特征点到提取橡胶模具图像轮廓中心点距离的平均值Set the coordinates of the center point of the extracted rubber mold image contour, calculate the distance from each extracted rubber mold image contour feature point to the center point of the extracted rubber mold image contour, and calculate the average value of the distance from each extracted rubber mold image contour feature point to the center point of the extracted rubber mold image contour ;各个个体的适应度计算公式如下:The fitness calculation formula for each individual is as follows: ;其中,表示第t个个体的适应度;in, represents the fitness of the tth individual;S44、基于轮盘赌的方式选取所有个体中的优良个体;S44, selecting the best individuals from all individuals based on the roulette wheel method;轮盘赌的方式选取所有个体中的优良个体计算公式如下:The calculation formula for selecting the best individuals among all individuals by roulette is as follows: ;其中,表示第t个个体被选择的概率,表示概率,T表示种群规模;in, represents the probability of the tth individual being selected, represents probability, T represents population size;S45、通过顺序交叉的方式对选择的优良个体进行交叉,交叉后产生新种群S45. Cross the selected excellent individuals through sequential crossover to generate a new population ;S46、在种群中随机选择一个个体的以设定的概率进行边缘,产生变异后的种群S46. Randomly select an individual in the population and perform marginalization with a set probability to generate a mutated population ;S47、比较初始种群与经过遗传算法交叉变异后的种群之间的适应度差值S47. Compare the fitness difference between the initial population and the population after genetic algorithm crossover mutation ;<0,表示变异后的种群适应度比初始种群高,接受该种群,当≥0,表示变异后的种群适应度比初始种群低,拒绝接受该种群;when <0, indicating that the fitness of the mutated population is higher than that of the initial population. Accept the population. ≥0, indicating that the fitness of the mutated population is lower than that of the initial population, and the population is rejected;S48、根据算法的迭代次数判断是否到达最大迭代次数,当到达最大次数则输出最优解,当未到达最大迭代次数则继续执行步骤S44;S48, judging whether the maximum number of iterations has been reached according to the number of iterations of the algorithm, outputting the optimal solution when the maximum number of iterations has been reached, and continuing to execute step S44 when the maximum number of iterations has not been reached;设定输出最优解表示的一组提取橡胶模具图像轮廓特征点为橡胶模具最优标准尺寸参数;A set of extracted rubber mold image contour feature points represented by the output optimal solution is set as the optimal standard size parameters of the rubber mold;设定橡胶模具构造误差范围,基于橡胶模具最优标准尺寸参数确定每个橡胶模具图像轮廓特征点的橡胶模具标准尺寸参数范围。The rubber mold construction error range is set, and the rubber mold standard size parameter range of each rubber mold image contour feature point is determined based on the rubber mold optimal standard size parameter.8.根据权利要求1所述的一种橡胶模具尺寸参数测量方法,其特征在于,所述实时采集当前批次的橡胶模具图像数据,提取当前批次橡胶模具图像数据的橡胶模具图像轮廓,通过轮廓对比的方式确定当前批次橡胶模具尺寸参数包括以下步骤:8. A rubber mold size parameter measurement method according to claim 1, characterized in that the real-time acquisition of the current batch of rubber mold image data, the extraction of the rubber mold image contour of the current batch of rubber mold image data, and the determination of the current batch of rubber mold size parameters by contour comparison comprise the following steps:定义表示橡胶模具最优标准尺寸参数,橡胶模具最优标准尺寸参数在二维平面的投影图像为,设定二维平面的投影图像提取所得的轮廓图像为;设定提取当前批次橡胶模具图像数据的橡胶模具图像轮廓为;通过相似度函数来判断轮廓图像的重合程度;definition It represents the optimal standard size parameters of the rubber mold. The projection image of the optimal standard size parameters of the rubber mold on the two-dimensional plane is , the contour image extracted from the projection image of the two-dimensional plane is set to ; Set the rubber mold image contour for extracting the current batch of rubber mold image data to ; Through the similarity function To judge the contour image , degree of overlap; ;其中,为俩轮廓重合部分的面积,分别为对应轮廓的面积;,S越大,俩区域越相似,当俩区域重合时,in, For two outlines and The area of the overlapping part, and are the areas of the corresponding contours respectively; , the larger S is, the more similar the two regions are. When the two regions overlap, ;时,表示当前批次橡胶模具为最优标准尺寸参数;when When , it means that the current batch of rubber molds has the optimal standard size parameters;时,选取不相似的特征点,计算不相似的轮廓特征点与最优标准尺寸参数的距离,并输出当前批次橡胶模具所有轮廓特征点的尺寸参数。when When the dissimilar feature points are selected, the distances between the dissimilar contour feature points and the optimal standard size parameters are calculated, and the size parameters of all contour feature points of the current batch of rubber molds are output.9.一种实现权利要求1-8任一项所述的橡胶模具尺寸参数测量方法的系统,其特征在于,包括:图像采集模块、图像处理模块、轮廓提取模块、标准尺寸确定模块以及橡胶模具尺寸参数确定模块;9. A system for implementing the rubber mold size parameter measurement method according to any one of claims 1 to 8, characterized in that it comprises: an image acquisition module, an image processing module, a contour extraction module, a standard size determination module and a rubber mold size parameter determination module;所述图像采集模块用于采集不同批次的橡胶模具图像数据,并传输至图像处理模块;The image acquisition module is used to collect image data of rubber molds of different batches and transmit them to the image processing module;所述图像处理模块用于对接收到的橡胶模具图像数据进行处理得到处理后的橡胶模具图像数据;The image processing module is used to process the received rubber mold image data to obtain processed rubber mold image data;所述轮廓提取模块用于对处理后的橡胶模具图像数据进行轮廓提取;The contour extraction module is used to extract the contour of the processed rubber mold image data;所述标准尺寸确定模块用于根据不同批次的橡胶模具图像轮廓确定橡胶模具图像轮廓标准尺寸参数;The standard size determination module is used to determine the standard size parameters of the rubber mold image contour according to the rubber mold image contours of different batches;所述橡胶模具尺寸参数确定模块用于根据轮廓对比方式确定实时的橡胶模具尺寸参数。The rubber mold size parameter determination module is used to determine the real-time rubber mold size parameters according to the contour comparison method.
CN202411562606.4A2024-11-052024-11-05Rubber mold size parameter measurement method and systemActiveCN119063629B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202411562606.4ACN119063629B (en)2024-11-052024-11-05Rubber mold size parameter measurement method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202411562606.4ACN119063629B (en)2024-11-052024-11-05Rubber mold size parameter measurement method and system

Publications (2)

Publication NumberPublication Date
CN119063629Atrue CN119063629A (en)2024-12-03
CN119063629B CN119063629B (en)2025-02-11

Family

ID=93635735

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202411562606.4AActiveCN119063629B (en)2024-11-052024-11-05Rubber mold size parameter measurement method and system

Country Status (1)

CountryLink
CN (1)CN119063629B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2002093143A2 (en)*2001-05-172002-11-21Xenogen CorporationMethod and apparatus for determining target depth, brightness and size within a body region
CN102116610A (en)*2010-11-292011-07-06科达斯特恩(常州)汽车塑件系统有限公司Automatic on-line detection method and device for size of automobile parts based on machine vision
US20150015697A1 (en)*2013-03-072015-01-15Blue River Technology, Inc.Method for automatic phenotype measurement and selection
US20170337682A1 (en)*2016-05-182017-11-23Siemens Healthcare GmbhMethod and System for Image Registration Using an Intelligent Artificial Agent
CN112053395A (en)*2020-08-312020-12-08华中科技大学Machine vision-based mushroom shape and size detection method
CN116416296A (en)*2023-03-212023-07-11广西东信数字林业科技有限公司Vehicle-mounted volume measurement method, system, equipment and storage medium
CN116452621A (en)*2023-03-102023-07-18广州市易鸿智能装备有限公司Ideal contour generating algorithm, device and storage medium based on reinforcement learning
CN116934763A (en)*2023-09-192023-10-24阿普塔恒煜(威海)医疗器材有限公司Medical rubber plug defect detection method based on visual characteristics
CN117990001A (en)*2023-12-182024-05-07青岛求是工业技术研究院 Rail section profile measurement method and system
CN118196007A (en)*2024-02-272024-06-14汕尾市恒炜烨科技有限公司Screen size online detection method based on image analysis

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2002093143A2 (en)*2001-05-172002-11-21Xenogen CorporationMethod and apparatus for determining target depth, brightness and size within a body region
CN102116610A (en)*2010-11-292011-07-06科达斯特恩(常州)汽车塑件系统有限公司Automatic on-line detection method and device for size of automobile parts based on machine vision
US20150015697A1 (en)*2013-03-072015-01-15Blue River Technology, Inc.Method for automatic phenotype measurement and selection
US20170337682A1 (en)*2016-05-182017-11-23Siemens Healthcare GmbhMethod and System for Image Registration Using an Intelligent Artificial Agent
CN112053395A (en)*2020-08-312020-12-08华中科技大学Machine vision-based mushroom shape and size detection method
CN116452621A (en)*2023-03-102023-07-18广州市易鸿智能装备有限公司Ideal contour generating algorithm, device and storage medium based on reinforcement learning
CN116416296A (en)*2023-03-212023-07-11广西东信数字林业科技有限公司Vehicle-mounted volume measurement method, system, equipment and storage medium
CN116934763A (en)*2023-09-192023-10-24阿普塔恒煜(威海)医疗器材有限公司Medical rubber plug defect detection method based on visual characteristics
CN117990001A (en)*2023-12-182024-05-07青岛求是工业技术研究院 Rail section profile measurement method and system
CN118196007A (en)*2024-02-272024-06-14汕尾市恒炜烨科技有限公司Screen size online detection method based on image analysis

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩伟聪;鲍光海;: "基于机器视觉的竹材尺寸测量系统设计", 中国测试, no. 07, 31 July 2016 (2016-07-31)*

Also Published As

Publication numberPublication date
CN119063629B (en)2025-02-11

Similar Documents

PublicationPublication DateTitle
CN113393426B (en)Steel rolling plate surface defect detection method
CN115861291B (en)Chip circuit board production defect detection method based on machine vision
CN106846340B (en) A method for extracting light stripe boundary based on non-fixed feature points
CN111652292B (en)Similar object real-time detection method and system based on NCS and MS
CN110866430B (en)License plate recognition method and device
CN107369159B (en)Threshold segmentation method based on multi-factor two-dimensional gray level histogram
CN116092013B (en)Dangerous road condition identification method for intelligent monitoring
CN111009005A (en)Scene classification point cloud rough registration method combining geometric information and photometric information
CN107025657A (en)A kind of vehicle action trail detection method based on video image
CN117710399B (en)Crack contour extraction method in geological survey based on vision
CN116432052B (en)Quality detection method for clamp for new energy automobile die
CN116563739B (en)Highway construction progress detection method based on computer vision
CN110851978B (en)Camera position optimization method based on visibility
CN119850605A (en)Visual detection method and system for welding quality of heat exchanger
CN117237902B (en)Robot character recognition system based on deep learning
CN119151938A (en)Surface defect detection method and detection system based on vision
CN119715569B (en) A safety buckle full appearance visual inspection method and system combining 2.5D imaging and AI
CN120198416A (en) An automatic identification and detection system for geological structure cracks based on deep learning
CN120182505A (en) A method for constructing a three-dimensional model of ruins by integrating SLAM point cloud and image features
CN118691609B (en) A method and device for detecting cracks in highway
CN119168967A (en) A method for detecting cable appearance defects
CN117808809B (en)Visual inspection method and system for wafer surface defects
CN119063629B (en)Rubber mold size parameter measurement method and system
CN105809657A (en)Angular point detection method and device
CN117474916A (en)Image detection method, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp