CN117804353A - Oil seal measurement method and device based on template matching - Google Patents

Oil seal measurement method and device based on template matching Download PDF

Info

Publication number
CN117804353A
CN117804353A CN202311862557.1A CN202311862557A CN117804353A CN 117804353 A CN117804353 A CN 117804353A CN 202311862557 A CN202311862557 A CN 202311862557A CN 117804353 A CN117804353 A CN 117804353A
Authority
CN
China
Prior art keywords
oil seal
measured
template
target
piece
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.)
Pending
Application number
CN202311862557.1A
Other languages
Chinese (zh)
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.)
Ruiyun Qizhi Qingdao Technology Co ltd
Original Assignee
Ruiyun Qizhi Qingdao Technology 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 Ruiyun Qizhi Qingdao Technology Co ltd filed Critical Ruiyun Qizhi Qingdao Technology Co ltd
Priority to CN202311862557.1A priority Critical patent/CN117804353A/en
Publication of CN117804353A publication Critical patent/CN117804353A/en
Pending legal-status Critical Current

Links

Abstract

The application provides an oil seal measurement method and device based on template matching, wherein the method comprises the following steps: acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured; determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve; acquiring a target oil seal template file corresponding to a target engine type; acquiring target template data according to the target oil seal template file; matching the scanning curve with the target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured; determining a target matching interval in which the point to be measured is positioned according to the oil seal range; carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information; and feeding back measurement point information. Therefore, the method and the device can realize the full detection of the engine oil seal, greatly improve the efficiency of oil seal measurement, and are beneficial to avoiding the outflow of defective products caused by manual sampling detection.

Description

Oil seal measurement method and device based on template matching
Technical Field
The application relates to the technical field of data processing, in particular to an oil seal measurement method and device based on template matching.
Background
At present, the existing engine factory adopts a manual measurement method when measuring an engine oil seal part, namely an operator uses a vernier caliper to respectively obtain the heights of a machined surface, a metal surface and a rubber surface relative to the end surface of a crankshaft, and determines whether the flatness, the height difference and the pressing depth meet the requirements or not in a manual comparison mode. Therefore, the existing engine oil seal measuring method has low measuring efficiency and large error, and only can adopt a sampling inspection mode to influence the actual production efficiency.
Disclosure of Invention
An aim of the embodiment of the application is to provide an oil seal measuring method and device based on template matching, which can realize full detection of an engine oil seal, greatly improve oil seal measuring efficiency, and are beneficial to avoiding flaw product outflow caused by manual sampling detection.
The first aspect of the application provides an oil seal measurement method based on template matching, which comprises the following steps:
acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured;
determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
acquiring a target oil seal template file corresponding to the target engine type;
acquiring target template data according to the target oil seal template file;
matching the scanning curve with the target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured;
determining a target matching interval where the point to be measured is located according to the oil seal range;
carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information;
and feeding back the measurement point information.
In the implementation process, the method can preferentially acquire a preconfigured oil seal template curve, information of the to-be-measured piece and a scanning curve of the to-be-measured piece; determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve; then, a target oil seal template file corresponding to the type of the target engine is obtained; acquiring target template data according to the target oil seal template file; then, matching the scanning curve with target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured; determining a target matching interval where the point to be measured is located according to the oil seal range; finally, carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information; and feeds back measurement point information. Therefore, the method can realize the full detection of the engine oil seal, greatly improve the efficiency of oil seal measurement, and is beneficial to avoiding the outflow of defective products caused by manual spot detection.
Further, the obtaining the preconfigured oil seal template curve, the information of the to-be-measured piece and the scanning curve of the to-be-measured piece includes:
determining the types of oil seals at the front and rear sides of the engine;
pre-configuring corresponding oil seal template files for each engine type according to the oil seal type;
determining an oil seal template curve according to the oil seal template file;
and acquiring information of the to-be-measured piece.
Further, the determining the target engine type according to the information of the to-be-measured piece and the oil seal template curve comprises the following steps:
determining a point location curve to be measured according to the information of the piece to be measured;
matching the point location curve to be measured with the oil seal template curve to obtain a similarity calculation value;
determining a target template curve from the oil seal template curves according to the similarity calculated value;
and determining the engine type corresponding to the target template curve as the target engine type corresponding to the piece to be measured.
Further, the determining, according to the oil seal range, a target matching interval in which the point to be measured is located includes:
determining a characteristic interval of a point to be measured according to the scanning curve;
and matching the characteristic interval based on the oil seal range to obtain a target matching interval in which the point to be measured is located.
Further, the performing statistical analysis on the point locations in the target matching interval to obtain measurement point information includes:
acquiring point location information in the target matching interval;
carrying out statistical analysis on the point location information to obtain measurement point information; wherein the measurement point information includes coordinates of the measurement point.
Further, the method further comprises:
determining a first height difference of the machined surface relative to the end surface of the crankshaft, a second height difference of the metal surface relative to the end surface of the crankshaft and a third height difference of the rubber surface relative to the end surface of the crankshaft according to the measurement point information;
calculating whether an oil seal measurement index of the to-be-measured piece meets a preset index requirement or not according to the first height difference, the second height difference and the third height difference;
if yes, outputting prompt information that the oil seal measurement index of the to-be-measured piece meets the requirements.
The second aspect of the present application provides an oil seal measurement device based on template matching, the oil seal measurement device based on template matching includes:
the first acquisition unit is used for acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured;
the first determining unit is used for determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
the second acquisition unit is used for acquiring a target oil seal template file corresponding to the target engine type;
the third acquisition unit is used for acquiring target template data according to the target oil seal template file;
the matching unit is used for matching the scanning curve with the target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured;
the second determining unit is used for determining a target matching interval where the point to be measured is located according to the oil seal range;
the statistical analysis unit is used for carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information;
and the feedback unit is used for feeding back the measurement point information.
Further, the first acquisition unit includes:
a first determination subunit for determining the type of oil seal at the front and rear of the engine;
the configuration subunit is used for pre-configuring corresponding oil seal template files for each engine type according to the oil seal type;
the second determining subunit is used for determining an oil seal template curve according to the oil seal template file;
the first acquisition subunit is used for acquiring information of the to-be-measured piece and a scanning curve of the to-be-measured piece.
Further, the first determination unit includes:
the third determination subunit is used for determining a point location curve to be measured according to the information of the piece to be measured;
the first matching subunit is used for matching the point location curve to be measured with the oil seal template curve to obtain a similarity calculated value;
the third determining subunit is further configured to determine a target template curve from the oil seal template curves according to the similarity calculated value;
the third determining subunit is further configured to determine an engine type corresponding to the target template curve as a target engine type corresponding to the to-be-measured piece.
Further, the second determining unit includes:
a fourth determining subunit, configured to determine a feature interval of a point location to be measured according to the scan curve;
and the second matching subunit is used for matching the characteristic interval based on the oil seal range to obtain a target matching interval where the point to be measured is located.
Further, the statistical analysis unit includes:
the second acquisition subunit is used for acquiring point location information in the target matching interval;
the statistical analysis subunit is used for carrying out statistical analysis on the point location information to obtain measurement point information; wherein the measurement point information includes coordinates of the measurement point.
Further, the oil seal measuring device based on template matching further comprises:
a third determining unit for determining a first height difference of the machined surface relative to the crankshaft end surface, a second height difference of the metal surface relative to the crankshaft end surface, and a third height difference of the rubber surface relative to the crankshaft end surface based on the measurement point information;
the calculating unit is used for calculating whether the oil seal measurement index of the to-be-measured piece meets the preset index requirement according to the first height difference, the second height difference and the third height difference;
the prompting unit is used for outputting prompting information that the oil seal measurement index of the to-be-measured piece meets the requirements when the oil seal measurement index of the to-be-measured piece meets the preset index requirements.
A third aspect of the present application provides an electronic device comprising a memory for storing a computer program and a processor for running the computer program to cause the electronic device to perform the template matching based oil seal measurement method of any one of the first aspects of the present application.
A fourth aspect of the present application provides a computer readable storage medium storing computer program instructions which, when read and executed by a processor, perform the template matching based oil seal measurement method of any one of the first aspects of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an oil seal measurement method based on template matching according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another oil seal measurement method based on template matching according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an oil seal measurement device based on template matching according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of another oil seal measurement device based on template matching according to an embodiment of the present application;
fig. 5 is a schematic diagram of a template of an oil seal interval and a point location interval to be measured according to an embodiment of the present application;
fig. 6 is an exemplary flow chart of an oil seal measurement method based on template matching according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of an oil seal measurement method based on template matching according to the present embodiment. The oil seal measurement method based on template matching comprises the following steps:
s101, acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured.
In this embodiment, the oil seal template curve is a curve representing depth values scanned by a line scan laser in the radial direction of the oil seal. The oil seal template curve is a curve which is obtained by manually measuring according to the qualified oil seal.
In this embodiment, the information of the part to be measured includes engine ESN number, class of mass, and the like.
In this embodiment, the scan curve of the object to be measured is a scan curve obtained by a laser scanner.
S102, determining the type of the target engine corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve.
In this embodiment, the information of the piece to be measured includes a specific class of fine items. Specifically, each large class engine contains a plurality of fine classes, and the type of oil seal corresponding to each fine class engine is determined, and therefore, the type of oil seal can be determined in association therewith.
S103, acquiring a target oil seal template file corresponding to the target engine type.
S104, acquiring target template data according to the target oil seal template file.
And S105, matching the scanning curve with the target template data according to preset interval constraint to obtain the oil seal range of the piece to be measured.
In this embodiment, the feature matching algorithm and interval constraint are used to complete this, that is, a position similar to the reference template is found in a certain interval (a priori knowledge, because the hardware system determines that the position of the feature point cannot have a wide range of variation) on the scan curve, and this position is considered as the reference point position represented by the reference template.
In this embodiment, feature matching is performed on a scan curve of a piece to be measured by using an oil seal template, so as to find a series of reference points, namely, an oil seal range of the piece to be measured, and according to the reference points, it is determined which section of the scan curve is used for measurement, namely, a target matching section can be determined according to the oil seal range.
S106, determining a target matching interval where the point to be measured is located according to the oil seal range.
In this embodiment, the target matching interval is the curve range determined according to the reference point and used for measurement.
And S107, carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information.
In this embodiment, the measurement data can be obtained according to a predefined measurement rule by using the curve section range and the reference point on the matching.
Specifically, for each engine oil seal, which reference points on the curve are needed to measure which values are fully determined by the process design. The position of these reference points on the scan curve varies due to workpiece mounting errors, as well as positional errors and sensor distance errors, etc. But the curve shape characteristic of the position of the reference point of each oil seal is determined.
In this embodiment, the shape feature of the reference point (i.e. the template curve) is mainly used to find the absolute position of the reference point on the scan curve. Then, the dimensions in the x, y, and z directions can be measured by using the coordinate information (data outputted from the laser scanner) of the position.
S108, feeding back measurement point information.
In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, which is not limited in this embodiment.
In this embodiment, the execution body of the method may be an intelligent device such as a smart phone or a tablet computer, which is not limited in this embodiment.
Therefore, by implementing the oil seal measurement method based on template matching described in the embodiment, the efficiency of oil seal measurement can be greatly improved by adopting a statistical analysis method and a template matching algorithm, so that the full inspection of the engine oil seal is realized, and further, the defect product outflow caused by manual spot inspection is avoided; meanwhile, the measurement accuracy and stability can be improved, so that the oil seal interval and the point location interval of each piece to be measured can be accurately measured, and the subsequent judgment can be conveniently carried out.
Example 2
Referring to fig. 2, fig. 2 is a flow chart of an oil seal measurement method based on template matching according to the present embodiment. The oil seal measurement method based on template matching comprises the following steps:
s201, determining the type of oil seals at the front and rear sides of the engine.
In this embodiment, the method may preferentially determine the types of oil seals in front of and behind the engine, and the determination mode may be an image recognition mode or an information entry mode. It can be seen that the purpose of this step is to obtain the oil seal type and apply it in the subsequent step, instead of proposing a new type determination. Therefore, this determination method is not excessively limited in the present embodiment.
In this embodiment, the oil seal type is a felt type, a metal type, or a special metal type.
S202, pre-configuring corresponding oil seal template files for each engine type according to the oil seal type.
In this embodiment, the oil seal template file is preset, and only needs to be configured correspondingly at this time.
S203, determining an oil seal template curve according to the oil seal template file.
S204, acquiring information of the to-be-measured piece and a scanning curve of the to-be-measured piece.
In this embodiment, the measurement information may include one or more of an engine model number, a part number, a measurement surface, a measurement point location, an original data path, and a configuration file.
S205, determining a point location curve to be measured according to the information of the piece to be measured.
In this embodiment, the method may determine a point location curve to be measured in a measurement process of the measurement element based on the measurement element information. The term "to be measured" in the point-to-be-measured curve is used to refer to the waiting for measurement (i.e. waiting for implementation of step S206) in the method, but not to the process that the measuring element obtains the point-to-be-measured curve through measurement.
S206, matching the point location curve to be measured with the oil seal template curve to obtain a similarity calculation value.
S207, determining a target template curve from the oil seal template curves according to the similarity calculation value.
S208, determining the engine type corresponding to the target template curve as the target engine type corresponding to the to-be-measured piece.
For example, the measurement information may include: the engine type is 1-1, the detection surface is the front, and the point position is the point position No. 1. At this time, the method may obtain a point location curve corresponding to the engine, match the point location curve with the three model template curves to obtain similarity calculation values of the three template curves, and select a category corresponding to a value with the greatest similarity as the category of the engine (so as to determine that the engine type is 1-1 through the point location curve).
In this embodiment, the method for calculating the similarity may be: the line scanning camera data of the to-be-measured piece and the set oil seal template data are used as inputs, and then a correlation coefficient matrix is returned, wherein the matrix contains correlation information between the line scanning camera data and the set oil seal template data.
S209, acquiring a target oil seal template file corresponding to the target engine type.
In this embodiment, for each engine type, the method is configured with an oil seal template file of the corresponding type.
S210, acquiring target template data according to the target oil seal template file.
S211, matching the scanning curve with the target template data according to preset interval constraint to obtain the oil seal range of the piece to be measured.
In the embodiment, the method matches the data of the piece to be measured with the template data in the corresponding type, and the matching algorithm adopts a method for calculating a correlation coefficient matrix in numpy to output the most similar matching interval, so as to determine the oil seal range.
S212, determining a characteristic interval of the point to be measured according to the scanning curve.
And S213, matching the characteristic interval based on the oil seal range to obtain a target matching interval in which the point to be measured is located.
In this embodiment, the method may match the characteristic interval of the point to be measured in the obtained oil seal interval, so as to obtain the characteristic interval in which the point to be measured is located. The matching algorithm adopts a sliding window method, slides on the data to be measured through template data, outputs a similarity value of each interval, and selects the matching interval with the largest similarity as the matching interval of the measured data for subsequent operation.
S214, point location information in the target matching interval is obtained.
S215, carrying out statistical analysis on the spot information to obtain measurement spot information; wherein the measurement point information includes coordinates of the measurement point.
In this embodiment, the method may find the interval in which the point to be measured is located according to the information of the head and tail points of the interval and the algorithm configuration file corresponding to each model, and obtain the coordinates of the corresponding measurement point by counting the numerical values in the interval.
In this embodiment, the method may perform template matching on the oil seal interval and the to-be-measured point location interval (please refer to the schematic diagram of the templates of the oil seal interval and the to-be-measured point location interval shown in fig. 5, specifically, fig. 5 shows two rectangular frames, where the outer rectangular frame is the oil seal interval template and the inner rectangular frame is the to-be-measured point location interval template).
S216, feeding back measurement point information.
S217, determining a first height difference of the machined surface relative to the end surface of the crankshaft, a second height difference of the metal surface relative to the end surface of the crankshaft and a third height difference of the rubber surface relative to the end surface of the crankshaft according to the measurement point information.
S218, calculating whether an oil seal measurement index of the to-be-measured piece meets a preset index requirement according to the first height difference, the second height difference and the third height difference, and if so, executing a step S219; if not, the process is ended.
In the embodiment, the method can also determine whether the flatness, the height difference and the pressing depth of the measurement index of the engine oil seal meet the requirements by outputting the height difference of the machined surface, the metal surface and the rubber surface relative to the end surface of the crankshaft and through a certain operation rule.
S219, outputting prompt information that the oil seal measurement index of the piece to be measured meets the requirements.
For example, referring to fig. 6, fig. 6 shows an exemplary flow chart of an oil seal measurement method based on template matching.
In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, which is not limited in this embodiment.
In this embodiment, the execution body of the method may be an intelligent device such as a smart phone or a tablet computer, which is not limited in this embodiment.
Therefore, by implementing the oil seal measurement method based on template matching described in the embodiment, the efficiency of oil seal measurement can be greatly improved by adopting a statistical analysis method and a template matching algorithm, so that the full inspection of the engine oil seal is realized, and further, the defect product outflow caused by manual spot inspection is avoided; meanwhile, the measurement accuracy and stability can be improved, so that the oil seal interval and the point location interval of each piece to be measured can be accurately measured, and the subsequent judgment can be conveniently carried out.
Example 3
Referring to fig. 3, fig. 3 is a schematic structural diagram of an oil seal measurement device based on template matching according to the present embodiment. As shown in fig. 3, the oil seal measuring device based on template matching includes:
a first obtaining unit 310, configured to obtain a preconfigured oil seal template curve, information of a piece to be measured, and a scanning curve of the piece to be measured;
a first determining unit 320, configured to determine a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
a second acquiring unit 330 for acquiring a target oil seal template file corresponding to a target engine type;
a third obtaining unit 340, configured to obtain target template data according to the target oil seal template file;
the matching unit 350 is configured to match the scan curve with the target template data according to a preset interval constraint, so as to obtain an oil seal range of the to-be-measured piece;
a second determining unit 360, configured to determine a target matching interval where the point to be measured is located according to the oil seal range;
the statistical analysis unit 370 is configured to perform statistical analysis on the points in the target matching interval to obtain measurement point information;
and a feedback unit 380 for feeding back the measurement point information.
In this embodiment, the explanation of the oil seal measurement device based on template matching may refer to the description in embodiment 1 or embodiment 2, and the description is not repeated in this embodiment.
Therefore, by implementing the oil seal measuring device based on template matching described in the embodiment, the efficiency of oil seal measurement can be greatly improved by adopting a statistical analysis method and a template matching algorithm, so that the full inspection of the engine oil seal is realized, and further, the defect product outflow caused by manual spot inspection is avoided; meanwhile, the measurement accuracy and stability can be improved, so that the oil seal interval and the point location interval of each piece to be measured can be accurately measured, and the subsequent judgment can be conveniently carried out.
Example 4
Referring to fig. 4, fig. 4 is a schematic structural diagram of an oil seal measurement device based on template matching according to the present embodiment. As shown in fig. 4, the oil seal measuring device based on template matching includes:
a first obtaining unit 310, configured to obtain a preconfigured oil seal template curve, information of a piece to be measured, and a scanning curve of the piece to be measured;
a first determining unit 320, configured to determine a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
a second acquiring unit 330 for acquiring a target oil seal template file corresponding to a target engine type;
a third obtaining unit 340, configured to obtain target template data according to the target oil seal template file;
the matching unit 350 is configured to match the scan curve with the target template data according to a preset interval constraint, so as to obtain an oil seal range of the to-be-measured piece;
a second determining unit 360, configured to determine a target matching interval where the point to be measured is located according to the oil seal range;
the statistical analysis unit 370 is configured to perform statistical analysis on the points in the target matching interval to obtain measurement point information;
and a feedback unit 380 for feeding back the measurement point information.
In this embodiment, the matching unit 350 may match the data of the to-be-measured piece with the template data in the corresponding type, and the matching algorithm uses a method of calculating a correlation coefficient matrix in numpy to output the most similar matching interval, so as to determine the oil seal range.
As an alternative embodiment, the first acquisition unit 310 includes:
a first determination subunit 311 for determining the type of oil seal at the front and rear of the engine;
a configuration subunit 312, configured to pre-configure a corresponding oil seal template file for each engine type according to the oil seal type;
a second determining subunit 313, configured to determine an oil seal template curve according to the oil seal template file;
the first obtaining subunit 314 is configured to obtain information of the to-be-measured piece and a scan curve of the to-be-measured piece.
In the present embodiment, the first acquisition unit 310 may determine the type of oil seal at the front and rear of the engine through the first determination subunit 311. The first determining subunit 311 may identify and determine the oil seal types of the front and rear sides of the engine through an image identification mode or an information input mode. Wherein the oil seal type is felt type, metal type or special metal type.
In this embodiment, the first obtaining unit 310 may configure the preset oil seal template file into the oil seal measurement device based on template matching through the configuration subunit 312, and further select, through the second determining subunit 313, an oil seal template curve matched with the oil seal template file from the matching relation library based on the oil seal template file.
In this embodiment, the first obtaining subunit 314 may obtain measurement information including an engine model number, a workpiece number, a measurement surface, a measurement point location, an original data path, and a configuration file.
As an alternative embodiment, the first determining unit 320 includes:
a third determining subunit 321, configured to determine a point location curve to be measured according to the information of the piece to be measured;
the first matching subunit 322 is configured to match the point location curve to be measured with the oil seal template curve to obtain a similarity calculation value;
the third determining subunit 321 is further configured to determine a target template curve from the oil seal template curves according to the similarity calculation value;
the third determining subunit 321 is further configured to determine the engine type corresponding to the target template curve as the target engine type corresponding to the part to be measured.
In this embodiment, the first determining unit 320 may determine the point location curve to be measured in the measuring process of the measuring element based on the measuring element information. The "to-be-measured" in the point-to-be-measured curve is used to refer to the process of waiting for measurement in the method, rather than to refer to the process that the measuring piece obtains the point-to-be-measured curve through measurement.
As an alternative embodiment, the second determining unit 360 includes:
a fourth determining subunit 361, configured to determine a characteristic interval of the point to be measured according to the scan curve;
the second matching subunit 362 is configured to match the feature interval based on the oil seal range, and obtain a target matching interval where the point to be measured is located.
In this embodiment, the second determining unit 360 may match the characteristic interval of the point to be measured in the obtained oil seal interval, so as to obtain the characteristic interval where the point to be measured is located. The matching algorithm adopts a sliding window method, slides on the data to be measured through template data, outputs a similarity value of each interval, and selects the matching interval with the largest similarity as the matching interval of the measured data for subsequent operation.
As an alternative embodiment, the statistical analysis unit 370 includes:
a second obtaining subunit 371, configured to obtain point location information in the target matching interval;
a statistical analysis subunit 372, configured to perform statistical analysis on the point location information to obtain measurement point information; wherein the measurement point information includes coordinates of the measurement point.
In this embodiment, the statistical analysis unit 370 may find the interval in which the point to be measured is located according to the head and tail point information of the interval and the algorithm configuration file corresponding to each model, and obtain the coordinates of the corresponding measurement point by counting the numerical values in the interval.
As an alternative embodiment, the oil seal measuring device based on template matching further includes:
a third determining unit 390 for determining a first height difference of the machined surface with respect to the crankshaft end surface, a second height difference of the metal surface with respect to the crankshaft end surface, and a third height difference of the rubber surface with respect to the crankshaft end surface based on the measurement point information;
a calculating unit 400, configured to calculate whether an oil seal measurement index of the to-be-measured object meets a preset index requirement according to the first height difference, the second height difference, and the third height difference;
the prompting unit 410 is configured to output a prompting message that the oil seal measurement index of the to-be-measured piece meets a requirement when the oil seal measurement index of the to-be-measured piece meets a preset index requirement.
In this embodiment, the explanation of the oil seal measurement device based on template matching may refer to the description in embodiment 1 or embodiment 2, and the description is not repeated in this embodiment.
Therefore, by implementing the oil seal measuring device based on template matching described in the embodiment, the efficiency of oil seal measurement can be greatly improved by adopting a statistical analysis method and a template matching algorithm, so that the full inspection of the engine oil seal is realized, and further, the defect product outflow caused by manual spot inspection is avoided; meanwhile, the measurement accuracy and stability can be improved, so that the oil seal interval and the point location interval of each piece to be measured can be accurately measured, and the subsequent judgment can be conveniently carried out.
An embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to execute the computer program to cause the electronic device to execute the oil seal measurement method based on template matching in embodiment 1 or embodiment 2 of the present application.
Embodiments of the present application provide a computer readable storage medium storing computer program instructions that, when read and executed by a processor, perform the oil seal measurement method based on template matching in embodiment 1 or embodiment 2 of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. The oil seal measurement method based on template matching is characterized by comprising the following steps of:
acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured;
determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
acquiring a target oil seal template file corresponding to the target engine type;
acquiring target template data according to the target oil seal template file;
matching the scanning curve with the target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured;
determining a target matching interval where the point to be measured is located according to the oil seal range;
carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information;
and feeding back the measurement point information.
2. The method for oil seal measurement based on template matching according to claim 1, wherein the obtaining a pre-configured oil seal template curve, information of a piece to be measured, and a scan curve of the piece to be measured includes:
determining the types of oil seals at the front and rear sides of the engine;
pre-configuring corresponding oil seal template files for each engine type according to the oil seal type;
determining an oil seal template curve according to the oil seal template file;
and acquiring information of the to-be-measured piece and a scanning curve of the to-be-measured piece.
3. The oil seal measurement method based on template matching according to claim 2, wherein the determining the target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve includes:
determining a point location curve to be measured according to the information of the piece to be measured;
matching the point location curve to be measured with the oil seal template curve to obtain a similarity calculation value;
determining a target template curve from the oil seal template curves according to the similarity calculated value;
and determining the engine type corresponding to the target template curve as the target engine type corresponding to the piece to be measured.
4. The oil seal measurement method based on template matching according to claim 1, wherein the determining, according to the oil seal range, a target matching interval in which a point to be measured is located includes:
determining a characteristic interval of a point to be measured according to the scanning curve;
and matching the characteristic interval based on the oil seal range to obtain a target matching interval in which the point to be measured is located.
5. The oil seal measurement method based on template matching according to claim 1, wherein the performing statistical analysis on the points in the target matching interval to obtain measurement point information includes:
acquiring point location information in the target matching interval;
carrying out statistical analysis on the point location information to obtain measurement point information; wherein the measurement point information includes coordinates of the measurement point.
6. The template matching-based oil seal measurement method according to claim 1, further comprising:
determining a first height difference of the machined surface relative to the end surface of the crankshaft, a second height difference of the metal surface relative to the end surface of the crankshaft and a third height difference of the rubber surface relative to the end surface of the crankshaft according to the measurement point information;
calculating whether an oil seal measurement index of the to-be-measured piece meets a preset index requirement or not according to the first height difference, the second height difference and the third height difference;
if yes, outputting prompt information that the oil seal measurement index of the to-be-measured piece meets the requirements.
7. An oil seal measuring device based on template matching, which is characterized by comprising:
the first acquisition unit is used for acquiring a preconfigured oil seal template curve, information of a piece to be measured of the piece to be measured and a scanning curve of the piece to be measured;
the first determining unit is used for determining a target engine type corresponding to the to-be-measured piece according to the to-be-measured piece information and the oil seal template curve;
the second acquisition unit is used for acquiring a target oil seal template file corresponding to the target engine type;
the third acquisition unit is used for acquiring target template data according to the target oil seal template file;
the matching unit is used for matching the scanning curve with the target template data according to preset interval constraint to obtain an oil seal range of the piece to be measured;
the second determining unit is used for determining a target matching interval where the point to be measured is located according to the oil seal range;
the statistical analysis unit is used for carrying out statistical analysis on the point positions in the target matching interval to obtain measurement point information;
and the feedback unit is used for feeding back the measurement point information.
8. The template matching-based oil seal measurement device according to claim 7, wherein the first acquisition unit includes:
a first determination subunit for determining the type of oil seal at the front and rear of the engine;
the configuration subunit is used for pre-configuring corresponding oil seal template files for each engine type according to the oil seal type;
the second determining subunit is used for determining an oil seal template curve according to the oil seal template file;
the first acquisition subunit is used for acquiring information of the to-be-measured piece and a scanning curve of the to-be-measured piece.
9. An electronic device comprising a memory for storing a computer program and a processor that runs the computer program to cause the electronic device to perform the template matching-based oil seal measurement method of any one of claims 1 to 6.
10. A readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the template matching based oil seal measurement method of any one of claims 1 to 6.
CN202311862557.1A 2023-12-29 2023-12-29 Oil seal measurement method and device based on template matching Pending CN117804353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311862557.1A CN117804353A (en) 2023-12-29 2023-12-29 Oil seal measurement method and device based on template matching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311862557.1A CN117804353A (en) 2023-12-29 2023-12-29 Oil seal measurement method and device based on template matching

Publications (1)

Publication Number Publication Date
CN117804353A true CN117804353A (en) 2024-04-02

Family

ID=90423170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311862557.1A Pending CN117804353A (en) 2023-12-29 2023-12-29 Oil seal measurement method and device based on template matching

Country Status (1)

Country Link
CN (1) CN117804353A (en)

Similar Documents

Publication Publication Date Title
TWI748242B (en) Method and system for scanning wafer
CN102168945B (en) System and method for image measurement
CN112508846A (en) Defect detection method and device, electronic equipment and storage medium
Lalehpour et al. Adaptive data reduction with neighbourhood search approach in coordinate measurement of planar surfaces
WO2021017000A1 (en) Method and apparatus for acquiring meter reading, and memory, processor and terminal
CN112001880B (en) Method and device for detecting characteristic parameters of planar member
CN112381765A (en) Equipment detection method, device, equipment and storage medium based on artificial intelligence
CN110780276A (en) Tray identification method and system based on laser radar and electronic equipment
Mahboubkhah et al. An investigation on measurement accuracy of digitizing methods in turbine blade reverse engineering
Lauridsen et al. Reading circular analogue gauges using digital image processing
JP2003216931A (en) Specific pattern recognizing method, specific pattern recognizing program, specific pattern recognizing program storage medium and specific pattern recognizing device
CN117804353A (en) Oil seal measurement method and device based on template matching
CN109238198B (en) Method for obtaining maximum processing error of curved surface parts processed in batch
CN116255930A (en) Cross section extraction and measurement method and system based on point cloud slice
CN112950598B (en) Flaw detection method, device, equipment and storage medium for workpiece
CN114998329A (en) Precise stamping quality analysis system for radio frequency shielding case of electronic communication equipment
CN116311299A (en) Method, device and system for identifying structured data of table
CN115756486A (en) Data interface analysis method and device
CN114757922A (en) Meter reading method and device applied to pointer type pressure gauge
US20200240767A1 (en) Coordinate measurement validation
CN110021027B (en) Edge cutting point calculation method based on binocular vision
CN114092542A (en) Bolt measuring method and system based on two-dimensional vision
JP5222314B2 (en) Surface measurement method and apparatus
CN111046878A (en) Data processing method and device, computer storage medium and computer
CN112419398A (en) Rectangular workpiece dimension measuring method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination