CN114719791B - Flatness measuring method of motor closed slot punching sheet based on image processing - Google Patents

Flatness measuring method of motor closed slot punching sheet based on image processing Download PDF

Info

Publication number
CN114719791B
CN114719791B CN202210288125.3A CN202210288125A CN114719791B CN 114719791 B CN114719791 B CN 114719791B CN 202210288125 A CN202210288125 A CN 202210288125A CN 114719791 B CN114719791 B CN 114719791B
Authority
CN
China
Prior art keywords
punching sheet
error value
flatness
closed slot
preset
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.)
Active
Application number
CN202210288125.3A
Other languages
Chinese (zh)
Other versions
CN114719791A (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.)
Jiangsu Dazhong Electric Motor Co ltd
Original Assignee
Jiangsu Dazhong Electric Motor 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 Jiangsu Dazhong Electric Motor Co ltd filed Critical Jiangsu Dazhong Electric Motor Co ltd
Priority to CN202210288125.3A priority Critical patent/CN114719791B/en
Publication of CN114719791A publication Critical patent/CN114719791A/en
Application granted granted Critical
Publication of CN114719791B publication Critical patent/CN114719791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/30Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0014Image feed-back for automatic industrial control, e.g. robot with camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/0006Industrial image inspection using a design-rule based approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30136Metal

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Robotics (AREA)
  • Geometry (AREA)
  • Manufacture Of Motors, Generators (AREA)

Abstract

The invention provides a flatness measuring method of a motor closed slot punching sheet based on image processing, which ensures the manufacturing precision of the motor punching sheet, effectively reduces the vibration and noise of a motor and provides the performance of the motor. The content comprises the following steps: receiving a motor closed slot punching sheet manufactured by a punching machine to obtain a first flatness error value and a second flatness error value corresponding to the motor closed slot punching sheet; positioning an upper groove and a lower cage of the motor closed slot punching sheet, determining the position of a separator between the upper groove and the lower cage, and randomly selecting a plurality of separators with preset quantity in the motor closed slot punching sheet as separators to be detected; detecting a plurality of to-be-detected separation sheets through infrared distance measuring sensors respectively to obtain a plurality of detection distance information, and comparing the plurality of detection distance information with a preset standard value to obtain a detection error value; if the detection error value is larger than the first flatness error value and smaller than or equal to the second flatness error value, carrying out flattening treatment on the motor closed slot punching sheet according to a first mark; and if the detection error value is greater than the second flatness error value, recycling the motor closed slot punching sheet according to a second mark.

Description

Flatness measuring method of motor closed slot punching sheet based on image processing
Technical Field
The invention relates to the technical field of image data processing and measurement, in particular to a flatness measuring method of a motor closed slot punching sheet based on image processing.
Background
Compared with an open slot punching sheet, the motor closed slot punching sheet has the advantage of reducing torque pulsation. And after the motor is manufactured according to the motor closed slot punching sheet, the vibration and the noise can be effectively reduced, so that the motor closed slot punching sheet has certain advantages in certain scenes in the current motor manufacturing process.
In the process of manufacturing the motor closed slot punching sheet, a stamping die needs to be preset, and then the pre-manufactured reference die sheet is stamped through the stamping die to obtain the motor closed slot punching sheet. The manufacturing process precision of the motor closed slot punching sheet has great influence on the using effect of the motor after the motor is processed and formed.
In the stamping process, the situation that the motor closed slot punching sheet is bent and uneven at a certain position may occur, so that further processing is required, but in the current actual processing process, intelligent identification cannot be performed on the motor closed slot punching sheet, and subsequent processing is performed according to an identification result.
Disclosure of Invention
The embodiment of the invention provides a flatness measuring method of a motor closed slot punching sheet based on image processing, which can identify the motor closed slot punching sheet according to an artificial intelligence mode, and carry out different marking and processing according to bending and unevenness when the motor closed slot punching sheet is bent and uneven at a certain position, so that each motor closed slot punching sheet obtained based on the method can be delivered from a factory to meet the requirements of corresponding products.
In a first aspect of the embodiments of the present invention, a method for measuring flatness of a motor closed slot punching sheet based on image processing is provided, including:
receiving a motor closed slot punching sheet manufactured by a punching machine, acquiring punching sheet size data corresponding to the motor closed slot punching sheet based on image processing, and acquiring a first flatness error value and a second flatness error value corresponding to the motor closed slot punching sheet according to the punching sheet size data;
positioning an upper groove and a lower cage of the motor closed slot punching sheet, determining the position of a separation sheet between the upper groove and the lower cage, and randomly selecting a plurality of separation sheets with a preset number in the motor closed slot punching sheet as separation sheets to be detected;
detecting a plurality of to-be-detected separation sheets through infrared distance measuring sensors respectively to obtain a plurality of detection distance information, and comparing the plurality of detection distance information with a preset standard value to obtain a detection error value;
if the detection error value is larger than the first flatness error value and smaller than or equal to a second flatness error value, carrying out first marking processing on the motor closed slot punching sheet, and carrying out flattening processing on the motor closed slot punching sheet according to the first marking;
and if the detection error value is greater than the second flatness error value, carrying out second marking processing on the motor closing slot punching sheet, and carrying out recovery processing on the motor closing slot punching sheet according to the second marking.
Optionally, in a possible implementation manner of the first aspect, in the step of receiving a motor closure groove punching sheet manufactured by a punching machine, obtaining punching sheet size data corresponding to the motor closure groove punching sheet based on image processing, and obtaining a first flatness error value and a second flatness error value corresponding to the motor closure groove punching sheet according to the punching sheet size data, the step specifically includes:
after receiving motor closing slot punching sheets manufactured by a punching machine, acquiring current punching sheet image data of the motor closing slot punching sheets, and comparing the current punching sheet image data with preset punching sheet image data to obtain punching sheet size data corresponding to the motor closing slot punching sheets;
acquiring a first preliminary flatness error value and a second preliminary flatness error value which are preset correspondingly to the punching sheet size data;
and receiving configuration precision information and configuration material attribute information configured by a user, and processing the first preliminary flatness error value and the second preliminary flatness error value according to the configuration precision information and the configuration material attribute information to obtain a corresponding first flatness error value and a corresponding second flatness error value.
Optionally, in a possible implementation manner of the first aspect, after receiving a motor closure groove punching sheet manufactured by a punching machine, acquiring current punching sheet image data of the motor closure groove punching sheet, and comparing the current punching sheet image data with preset punching sheet image data to obtain punching sheet size data corresponding to the motor closure groove punching sheet, the step specifically includes:
extracting the number of pixel points of the current punched sheet image data in a punched sheet pixel interval to obtain a current punched sheet pixel number value, and obtaining a current punched sheet pixel ratio according to the current punched sheet pixel number value;
extracting the number of pixel points of the preset punching sheet image data in a punching sheet pixel interval to obtain a preset punching sheet pixel number value, and obtaining a preset punching sheet pixel ratio according to the preset punching sheet pixel number value;
comparing the current punching sheet pixel ratio with the preset punching sheet pixel ratio of each preset punching sheet image data to obtain preset punching sheet image data and punching sheet size data corresponding to the previous punching sheet image data, wherein each preset punching sheet image data has punching sheet size data corresponding to the preset punching sheet image data.
Optionally, in a possible implementation manner of the first aspect, the step of comparing the current punching pixel duty ratio with a preset punching pixel duty ratio of each preset punching image data to obtain preset punching image data and punching size data corresponding to the previous punching image data, where each preset punching image data has punching size data corresponding to the preset punching image data specifically includes:
calculating the pixel proportion of the current punching sheet and the pixel proportion of the preset punching sheet through the following formulas,
Figure BDA0003560639140000031
wherein z is1Is the current pixel ratio of the punching sheet, p1For the current pixel weight value, l1For the current pixel count value of the punching sheet, /)2The total number of pixel points, z, in the image data of the current punching sheet2For presetting the pixel ratio of the punching sheet, r1To preset the pixel weight value, r1For presetting the pixel number value, r, of the punching sheet2The total number of pixel points in the image data of the preset punching sheet is set;
the method comprises the steps of obtaining a first difference value of the current punching sheet pixel ratio and each preset punching sheet pixel ratio, and selecting the preset punching sheet pixel ratio with the first difference value smaller than the preset difference value and corresponding preset punching sheet image data and punching sheet size data.
Optionally, in a possible implementation manner of the first aspect, in the step of receiving configuration precision information and configuration material attribute information configured by a user, and processing the first preliminary flatness error value and the second preliminary flatness error value according to the configuration precision information and the configuration material attribute information to obtain a corresponding first flatness error value and a corresponding second flatness error value, the method specifically includes:
comparing the configuration precision information with preset precision information to obtain a precision deviation coefficient;
comparing the configured material attribute information with preset material attribute information to obtain an attribute deviation coefficient;
and processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision deviation coefficient and the attribute deviation coefficient to obtain a corresponding first flatness error value and a corresponding second flatness error value.
Optionally, in a possible implementation manner of the first aspect, in the step of processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision offset coefficient and the attribute offset coefficient to obtain a corresponding first flatness error value and a corresponding second flatness error value, the step specifically includes:
the first flatness error value and the second flatness error value are obtained by the following formulas,
Figure BDA0003560639140000032
wherein p is1Is a first flatness error value, kjIs a precision bias value, j1To configure the precision information, j2To preset precision information, kmIs an attribute weight bias value, m1To configure material property information, m2In order to preset the material property information,
Figure BDA0003560639140000041
is a first error weight value, u1Is the first preliminary flatness error value and is,
Figure BDA0003560639140000042
is a second error weight value, u2Is the second preliminary flatness error value.
Optionally, in a possible implementation manner of the first aspect, in the step of positioning an upper slot and a lower cage of the motor closed slot punching sheet, determining a position of a separator between the upper slot and the lower cage, and randomly selecting a plurality of separators of a preset number in the motor closed slot punching sheet as separators to be measured, the step specifically includes:
acquiring current punching sheet image data of the motor closed slot punching sheet, and extracting a target area in the current punching sheet image data, wherein the target area is a shape area formed by an upper slot and a lower cage;
positioning an upper groove and a lower cage in a target area, and taking a metal part between the upper groove and the lower cage as a separation sheet;
calculating the quantity to be measured according to the received configuration precision information and the configuration material attribute information, and randomly selecting a plurality of spacers of the quantity to be measured as the spacers to be measured;
the number to be measured is calculated by the following formula,
Figure BDA0003560639140000043
wherein s is2To the quantity to be measured, kjIs a precision bias value, j1To configure the precision information, j2To preset precision information, kmIs an attribute weight bias value, m1To configure material property information, m2For presetting material property information, ksIs a number weight value, s1Is a preset number.
Optionally, in a possible implementation manner of the first aspect, in the step of obtaining a plurality of detection distance information by respectively detecting a plurality of to-be-detected separation sheets through an infrared distance measuring sensor, and comparing the plurality of detection distance information with a preset standard value to obtain a detection error value, the method specifically includes:
controlling at least one infrared distance measuring sensor to respectively detect a plurality of separators to be detected to obtain a plurality of detection distance information;
and obtaining average distance information, maximum distance information and minimum distance information according to the plurality of detection distance information, and respectively comparing the average distance information, the maximum distance information and the minimum distance information with preset standard values to obtain an average detection error value, a positive detection error value and a negative detection error value.
Optionally, in a possible implementation manner of the first aspect, if the detection error value is greater than the first flatness error value and less than or equal to the second flatness error value, performing a first marking process on the motor closure slot punching sheet, and performing a flattening process on the motor closure slot punching sheet according to the first marking specifically includes:
if the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value, comparing the average detection error value with a first flatness error value and a second flatness error value;
and if the detection error value is greater than the first flatness error value and less than or equal to a second flatness error value, performing first marking on the motor closed slot punching sheet.
Optionally, in a possible implementation manner of the first aspect, if the detection error value is greater than the second flatness error value, performing a second marking process on the motor closure slot punching sheet, and performing a recycling process on the motor closure slot punching sheet according to the second marking specifically includes:
if any one or more of the positive detection error value and the negative detection error value is larger than the maximum error value, carrying out second marking processing on the motor closed slot punching sheet;
if the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value;
comparing the average detection error value with a first flatness error value and a second flatness error value, and if the detection error value is greater than the second flatness error value, performing second marking on the motor closed slot punching sheet.
The invention provides a flatness measuring method of a motor closed slot punching sheet based on image processing. The flatness of the motor closed slot punching sheet can be collected after a punching machine finishes manufacturing the motor closed slot punching sheet, when the flatness is collected, the flatness of the position of a separating sheet which is easy to generate flatness deviation in the motor closed slot punching sheet can be collected, the flatness of the whole motor closed slot punching sheet is reflected through the flatness of the position, the flatness of the motor closed slot punching sheet can be rapidly detected in a multi-point sampling mode, and the motor closed slot punching sheet has the advantages of being low in data processing speed and high in information collection speed when the flatness is detected, so that the delivery efficiency of the motor closed slot punching sheet is improved. The motor closed slot punching sheet can be classified into qualified motor closed slot punching sheets, leveled and recycled by 3 grades according to the difference of the flatness of the motor closed slot punching sheets, so that the motor closed slot punching sheets qualified after the leveling treatment can be screened, and the motor closed slot punching sheets are prevented from being recycled as waste products.
According to the technical scheme provided by the invention, when the first flatness error value and the second flatness error value of each motor closed slot punching sheet are obtained, the precision requirement of the motor closed slot punching sheet and the material condition of the motor closed slot punching sheet are comprehensively considered, so that the motor closed slot punching sheets with different precisions can be obtained according to different use scenes, the precision detection of the motor closed slot punching sheets with multiple sizes, multiple precisions and multiple materials is further realized, and the customized generation and processing of the precision of the flatness are realized. In addition, when the quantity to be measured is determined, the precision requirement of the motor closed slot punching sheet and the material condition of the motor closed slot punching sheet are also comprehensively considered, so that the data processing quantity of upper computers such as a PLC (programmable logic controller) and the like can be determined according to various dimensional information of the motor closed slot punching sheet, the delivery rate of the motor closed slot punching sheet is dynamically adjusted, and the delivery rate of the motor closed slot punching sheet is positively correlated with the quality requirement.
According to the technical scheme provided by the invention, when judging whether the motor closed slot punching sheet meets the corresponding requirements, the average distance information, the maximum distance information and the minimum distance information can be obtained, so that the motor closed slot punching sheet can be determined whether to meet the corresponding requirements according to the unevenness of each separating sheet, and also can be determined whether to meet the corresponding requirements by comprehensively considering the unevenness of all the separating sheets, so that the motor closed slot punching sheet meets the corresponding requirements in a detection scene of a plurality of uneven integer values.
Drawings
FIG. 1 is a flow chart of a first embodiment of a flatness measuring method of a motor closed slot punching sheet based on image processing;
FIG. 2 is a flowchart of a second embodiment of a flatness measuring method for a motor closed slot punching sheet based on image processing;
FIG. 3 is a flowchart of a third embodiment of a flatness measuring method for a motor closed slot punching sheet based on image processing;
FIG. 4 is a schematic structural diagram of a motor closed slot punching sheet;
fig. 5 is a schematic structural view of an upper slot, a lower cage and a separating sheet in a motor closed slot punching sheet.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that A, B, C all comprise, "comprises A, B or C" means that one of three A, B, C is comprised, "comprises A, B and/or C" means that any 1 or any 2 or 3 of three A, B, C are comprised.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" can be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on context.
The technical means of the present invention will be described in detail with reference to specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
As shown in fig. 1, in the casting process of the motor closed slot punching sheet, firstly, the motor closed slot punching sheet is punched by a punching machine, then, the error detection is performed on the closed slot punching sheet, and if the error detection meets the standard requirement, the product is delivered. And if the error detection does not meet the standard requirement but can be subjected to flattening treatment and then leaves the factory, carrying out flattening treatment and then leaves the factory. And if the error detection does not meet the standard requirement and the product can not be delivered after the leveling treatment, carrying out recovery treatment.
The flatness measuring method of the motor closed slot punching sheet provided by the invention can effectively measure the flatness of the motor, so that the error of the manufactured motor in the manufacturing and using processes is smaller, each structure of the motor is ensured to be in a balanced state, unreliable factors in the use of the motor are reduced, and the manufactured motor is more stable, efficient and energy-saving in the using process.
The invention provides a flatness measuring method of a motor closed slot punching sheet based on image processing, which comprises the following steps of:
step S110, receiving a motor closed slot punching sheet manufactured by a punching machine, obtaining punching sheet size data corresponding to the motor closed slot punching sheet based on image processing, and obtaining a first flatness error value and a second flatness error value corresponding to the motor closed slot punching sheet according to the punching sheet size data. According to the technical scheme provided by the invention, the motor closed slot punching sheet manufactured by the punching machine can be received, and then the punching sheet size data corresponding to the motor closed slot punching sheet manufactured at present can be obtained. Generally, different sizes of the motor closure slot punching sheets will have different error values, the larger the size of the motor closure slot punching sheet, the greater will be the first and second flatness error values of the motor closure slot punching sheet.
The flatness of the motor closed slot punching sheet can be referred through the first flatness error value and the second flatness error value, and whether the received motor closed slot punching sheet meets corresponding requirements or not is obtained.
In a possible implementation manner of the technical solution provided by the present invention, as shown in fig. 3, step S110 specifically includes:
step S1101, after receiving the motor closing slot punching sheet manufactured by the punching machine, acquiring current punching sheet image data of the motor closing slot punching sheet, and comparing the current punching sheet image data with preset punching sheet image data to obtain punching sheet size data corresponding to the motor closing slot punching sheet. According to the technical scheme provided by the invention, the current punching sheet image data of the motor closed slot punching sheet can be acquired according to the image acquisition device, the image acquisition device can be a camera, when the motor closed slot punching sheet is detected, the motor closed slot punching sheet can be conveyed to the platform to be detected through the conveyor belt, and the image acquisition device is fixedly arranged at the upper part of the platform to be detected. And the image acquisition device can be used for acquiring the image of each motor closed slot punching sheet.
The invention can preset a plurality of preset punching sheet image data, wherein the preset punching sheet image data can be the closed slot punching sheet images collected under the same height of the image collecting device. Generally, when one punching machine is used for manufacturing the motor closed slot punching sheet, the dies are relatively fixed, so that the invention can meet the requirement of comparing the current punching sheet image data with the preset punching sheet image data only by acquiring and setting a plurality of preset punching sheet image data. And the administrator can configure corresponding punching size data for each preset punching image data according to the situation.
In general, the current punching image data and the preset punching image data of the same model are corresponding in the image display, so the invention can obtain the corresponding punching size data according to the corresponding relation between the current punching image data and the preset punching image data. And realizing automatic data identification of machine vision.
Step S1102, obtaining a first preliminary flatness error value and a second preliminary flatness error value that are set in advance in correspondence to the sheet size data. According to the technical scheme provided by the invention, a first preliminary flatness error value and a second preliminary flatness error value are set for each punching size data, the preliminary error values are the first preliminary flatness error value and the second preliminary flatness error value corresponding to preset precision information and preset material attribute information, the preset precision information can be general precision, higher precision and the like, and the preset material attribute information can be iron attribute, copper attribute, steel attribute and the like. Generally, the machine vision recognition size is accurate, and since metals of the same color may belong to different metal materials, for example, motor closed slot punching sheets of different steel properties may have the same color, the properties cannot be determined from the image. The present invention requires setting a first preliminary flatness error value and a second preliminary flatness error value.
Step S1103, receiving configuration precision information and configuration material attribute information configured by a user, and processing the first preliminary flatness error value and the second preliminary flatness error value according to the configuration precision information and the configuration material attribute information to obtain a corresponding first flatness error value and a corresponding second flatness error value. According to the technical scheme provided by the invention, the configuration precision information and the configuration material attribute information configured by a user can be received, so that the user can input the corresponding configuration precision information and the configuration material attribute information according to the actual condition of the produced motor closed slot punching sheet.
In the actual manufacturing process of the motor closed slot punching sheet, different use accuracies can be determined according to different use scenes, for example, in a civil scene, the accuracy requirement on the motor closed slot punching sheet is low, and the configuration accuracy information configured by a user at the moment can be low. For example, in a military scenario, the requirement on the accuracy of the motor closed slot punching sheet is high, and the configuration accuracy information configured by the user at this time may be high.
It should be noted that the configuration precision information may be one, for example, precision information with general precision may be quantized to 5, precision information with higher precision may be quantized to 7, and so on. The precision information for different levels can be quantified as different values.
It should be noted that the configuration material attribute information may be a quantized value, for example, the configuration material attribute information of an iron material may be 3, the configuration material attribute information of a copper material may be 4, and the configuration material attribute information may be adjusted according to the hardness of different materials. The material having the lower hardness is more likely to cause unevenness in the pressing process.
In a possible embodiment of the technical solution provided by the present invention, step S1101 specifically includes:
and extracting the number of pixel points of the current punching piece image data in a punching piece pixel interval to obtain a current punching piece pixel number value, and obtaining the current punching piece pixel ratio according to the current punching piece pixel number value. According to the technical scheme provided by the invention, a punching sheet pixel interval can be preset, generally speaking, a platform to be detected can be black, the punching sheet pixel interval can be specifically set according to motor closed slot punching sheets of different models, and the color of the motor closed slot punching sheet is higher than that of black, so that the pixel interval can be 10-256, 20-256 and the like, and can be adjusted and set according to actual scenes. Where 10, 20 and 256 are to be understood as mean values of the RGB values after the R value + B value + G value.
According to the invention, in the current punching sheet image data, the object corresponding to the pixel point in the punching sheet pixel interval is the motor closing slot punching sheet, and the current punching sheet pixel proportion can reflect the relative area of the current motor closing slot punching sheet. For example, the area of the current punched sheet image data is 0.1 square meter, at this time, the pixel proportion of the current punched sheet is 60 percent, and at this time, the area of the motor closed slot punched sheet can be understood as 0.06 square meter.
And extracting the number of pixel points of the preset punching sheet image data in a punching sheet pixel interval to obtain a preset punching sheet pixel number value, and obtaining a preset punching sheet pixel ratio according to the preset punching sheet pixel number value. The invention can obtain the pixel proportion of the preset punching sheet, and the pixel proportion of the preset punching sheet is the relative area of the preset motor closed slot punching sheet. For example, the area of the image data of the preset punched sheet is 0.1 square meter, the pixel proportion of the preset punched sheet is 40 percent, and the area of the motor closed slot punched sheet can be understood as 0.04 square meter.
Comparing the current punching sheet pixel ratio with the preset punching sheet pixel ratio of each preset punching sheet image data to obtain preset punching sheet image data and punching sheet size data corresponding to the previous punching sheet image data, wherein each preset punching sheet image data has punching sheet size data corresponding to the preset punching sheet image data. And if the current punching sheet pixel proportion corresponds to one preset punching sheet pixel proportion, the current punching sheet image data is considered to correspond to the motor closing slot punching sheet in the preset punching sheet image data at the moment, and punching sheet size data corresponding to the motor closing slot punching sheet to be detected is obtained.
In a possible implementation manner, the technical scheme provided by the present invention specifically includes, in the step of comparing the current punching pixel ratio with the preset punching pixel ratio of each preset punching image data to obtain the preset punching image data and the punching size data corresponding to the previous punching image data, where each preset punching image data has the punching size data corresponding thereto:
calculating the pixel proportion of the current punching sheet and the pixel proportion of the preset punching sheet through the following formulas,
Figure BDA0003560639140000111
wherein z is1Is the current pixel ratio of the punching sheet, p1For the current pixel weight value, l1For the current pixel count value of the punching sheet, /)2The total number of pixel points, z, in the image data of the current punching sheet2For presetting the pixel ratio of the punching sheet, r1To preset the pixel weight value, r1For presetting the pixel number value, r, of the punching sheet2The total number of pixel points in the image data of the preset punching sheet is set. By passing
Figure BDA0003560639140000112
The pixel proportion of the current punching sheet can be obtained, and the weight value p of the current pixel is used1Can account for the current pixel of the punching sheet
Figure BDA0003560639140000113
And performing correction processing. By passing
Figure BDA0003560639140000114
The pixel ratio of the preset punching sheet can be obtained, and the weight value p of the preset pixel is used2The pixel proportion of the preset punching sheet can be increased
Figure BDA0003560639140000115
And performing correction processing.
The method comprises the steps of obtaining a first difference value of the current punching sheet pixel ratio and each preset punching sheet pixel ratio, and selecting the preset punching sheet pixel ratio with the first difference value smaller than the preset difference value and corresponding preset punching sheet image data and punching sheet size data. According to the technical scheme provided by the invention, the current punching sheet pixel ratio and the preset punching sheet pixel ratio are compared to obtain a plurality of first difference values. And when the first difference is smaller than the preset difference, considering that the first difference is smaller than the preset punching sheet image data of the preset difference, wherein the corresponding type of the motor closing slot punching sheet is the type of the current motor closing slot punching sheet to be detected. The invention will determine the corresponding sheet size data at this time.
In a possible embodiment, according to the technical solution provided by the present invention, step S1103 specifically includes:
and comparing the configuration precision information with preset precision information to obtain a precision deviation coefficient. The technical scheme provided by the invention can obtain different precision deviation coefficients according to different configuration precision information, if the configuration precision information is higher, the first flatness error value and the second flatness error value have a tendency of being reduced, namely, the higher the precision requirement is, the smaller the corresponding first flatness error value at the moment is.
And comparing the configured material attribute information with preset material attribute information to obtain an attribute deviation coefficient. According to the technical scheme provided by the invention, different attribute offset coefficients can be obtained according to different attribute information of the configuration material, if the attribute information of the configuration material is higher, the first flatness error value and the second flatness error value have a tendency of being reduced, namely, the higher the precision requirement is, the smaller the corresponding first flatness error value at the moment is. The greater the hardness of the material of the motor closed slot punching sheet is, the greater the quantitative value of the attribute information of the corresponding configuration material is. The greater the hardness, the less the relative ductility of the motor closed slot punching sheet, so the first flatness error value and the second flatness error value will decrease at this time.
It will be appreciated that precision information is inversely proportional to the first and second flatness error values, and that material property information is inversely proportional to the first and second flatness error values.
And processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision deviation coefficient and the attribute deviation coefficient to obtain a corresponding first flatness error value and a corresponding second flatness error value. After obtaining the precision offset coefficient and the attribute offset coefficient corresponding to the motor closure slot punching sheet to be measured, the method processes the first preliminary flatness error value and the second preliminary flatness error value to obtain a first flatness error value and a second flatness error value corresponding to the first flatness error value and the second flatness error value, and the first flatness error value and the second flatness error value are more suitable for measuring and calculating the error of the motor closure slot punching sheet to be measured.
In a possible implementation manner, the step of processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision offset coefficient and the attribute offset coefficient to obtain a corresponding first flatness error value and a corresponding second flatness error value specifically includes:
the first flatness error value and the second flatness error value are obtained by the following formulas,
Figure BDA0003560639140000121
wherein p is1Is a first flatness error value, kjIs a precision bias value, j1To configure the precision information, j2To preset precision information, kmIs an attribute weight bias value, m1To configure material property information, m2In order to preset the material property information,
Figure BDA0003560639140000122
is a first error weight value, u1Is the first preliminary flatness error value and is,
Figure BDA0003560639140000123
is a second error weight value, u2Is the second preliminary flatness error value.
By passing
Figure BDA0003560639140000124
The precision deviation coefficient can be obtained by
Figure BDA0003560639140000125
Attribute shift coefficients may be obtained, and the present invention will be describedCoefficient of precision offset
Figure BDA0003560639140000126
And attribute offset coefficient
Figure BDA0003560639140000127
After addition, the first preliminary flatness error value u is compared1And a second preliminary flatness error value u2Performing offset processing, and finally passing the first error weight value
Figure BDA0003560639140000128
And a second error weight value
Figure BDA0003560639140000129
Weighting to obtain a first flatness error value p1And a second flatness error value p2. Through the mode, the invention can obtain proper error parameters, so that the produced motor closed slot punching sheet meets the corresponding requirements.
And S120, positioning an upper groove and a lower cage of the motor closed slot punching sheet, determining the position of a separator between the upper groove and the lower cage, and randomly selecting a plurality of separators with preset number in the motor closed slot punching sheet as to-be-detected separators. Fig. 4 is a schematic structural diagram of a motor closed slot punching sheet in the prior art. As shown in fig. 5, the upper slot 2 and the lower cage 3 of the motor closed slot punching sheet in fig. 4 are in shapes, and the connecting part between the upper slot 2 and the lower cage 1 is a separating sheet 3. The motor closure slot punch, the upper slot 2, the lower cage 1, and the separator 3 in fig. 4 and 5 are merely examples and are not limited to the shape of the motor closure slot punch made in this application. In an actual application scenario, in the manufacturing process of the motor closed slot punching sheet, the area of the separating sheet is small, the cut length of the separating sheet is relatively long, and the pressure on the separating sheet is relatively large during punching, so that the position of the separating sheet can be determined, and if the separating sheet is not uneven, the situation that the other positions of the motor closed slot punching sheet are not uneven can be avoided with a high probability. However, in the actual manufacturing process of the motor closed slot punching sheet, the upper slots and the lower cages are uniformly distributed in an array, so that the number of the upper slots, the lower cages and the separating sheets is large, in order to improve the production efficiency of the motor closed slot punching sheet, a plurality of separating sheets with preset number can be randomly selected as separating sheets to be detected, and the detection of the integral flatness of the motor closed slot punching sheet is realized through the plurality of separating sheets to be detected. In an actual use scene, in some special scenes, all the spacers can be selected as the spacers to be tested, and in such a case, more information needs to be acquired and processed, so that the delivery efficiency of the motor closed slot punching sheet is reduced, but the quality of the delivery product of the motor closed slot punching sheet can be improved.
In a possible implementation manner of the technical solution provided by the present invention, step S120 specifically includes:
acquiring current punching sheet image data of the motor closed slot punching sheet, and extracting a target area in the current punching sheet image data, wherein the target area is a shape area formed by an upper slot and a lower cage. According to the technical scheme provided by the invention, after the current punching image data is obtained, the target area of the current punching image data can be identified based on opencv, and then the target area is positioned to the shape area formed by the upper groove and the lower cage.
And positioning the upper groove and the lower cage in the target area, and taking a metal part between the upper groove and the lower cage as a separation sheet. Because the shapes of the upper groove and the lower cage are different, after the upper groove and the lower cage are positioned in a shape area formed by the upper groove and the lower cage, the upper groove and the lower cage are positioned, and a metal part between the upper groove and the lower cage is used as a separating sheet. When the positioning training is carried out, the shapes of the target area, the upper groove, the lower cage and the separating sheet can be input in advance, so that the target area, the upper groove, the lower cage and the separating sheet can be quickly positioned according to an image processing mode. Different motor closed slot punching sheets can correspond to target areas, upper slots, lower cages and separating sheets in different shapes.
And calculating the quantity to be measured according to the received configuration precision information and the configuration material attribute information, and randomly selecting a plurality of separating sheets with the quantity to be measured as the separating sheets to be measured. According to the technical scheme provided by the invention, the quantity to be measured can be calculated according to the configuration precision information and the configuration material attribute information, generally speaking, if the configuration precision information is higher, the quantity to be measured is more, and therefore, the configuration precision information is in direct proportion to the quantity to be measured. The greater the hardness of the configuration material attribute information, the less likely it is to be bent at this time, so that the flatness thereof is relatively better, so that the hardness of the configuration material attribute information is inversely proportional to the amount to be measured.
The number to be measured is calculated by the following formula,
Figure BDA0003560639140000131
wherein s is2To the quantity to be measured, kjIs a precision bias value, j1To configure the precision information, j2To preset precision information, kmIs an attribute weight bias value, m1To configure material property information, m2For presetting material property information, ksIs a number weight value, s1Is a preset number. The technical scheme provided by the invention is that
Figure BDA0003560639140000132
A value corrected for the preset amount according to the precision can be obtained by
Figure BDA0003560639140000133
The numerical value of correcting the preset quantity according to the material attribute can be obtained, so that the technical scheme provided by the invention comprehensively considers multiple dimensions when calculating the quantity to be measured, and further obtains the appropriate quantity to be measured.
Generally speaking, the higher the precision requirement is, the smaller the corresponding first flatness error value and second flatness error value are, the more the number to be measured is calculated, and the accuracy of the motor closed slot punching sheet can be detected by the method. The higher the hardness corresponding to the material attribute information is, the greater the ductility is, so that the first flatness error value and the second flatness error value corresponding to the first flatness error value and the second flatness error value are relatively smaller, the higher the hardness corresponding to the material attribute information is, the stronger the stability is, and the unevenness is not easy to generate, so that the number to be measured can be reduced. Therefore, the invention integrates a plurality of dimensions to determine the final first flatness error value, the second flatness error value and the number to be measured.
Step S130, detecting the plurality of to-be-detected separation sheets through the infrared distance measuring sensors to obtain a plurality of detection distance information, and comparing the plurality of detection distance information with a preset standard value to obtain a detection error value. According to the technical scheme provided by the invention, after a plurality of to-be-detected separation sheets are determined, the detection distance information can be obtained by detecting through the infrared distance measuring sensor. Because the motor closed slot punching sheet is horizontally arranged, in an ideal state, the detection distance information output by all the infrared distance measuring sensors is the same, but certain errors occur in the actual manufacturing process, so that the detection error value is obtained by comparing a plurality of pieces of detection distance information with a preset standard value.
When the to-be-detected separating sheet is detected by the infrared distance measuring sensors, various embodiments are possible, for example, a plurality of infrared distance measuring sensors are fixedly arranged on the upper portion of the to-be-detected platform where the to-be-detected separating sheet is located, or a plurality of movable infrared distance measuring sensors are arranged on the upper portion of the to-be-detected platform, and the number and arrangement manner of the infrared distance measuring sensors are not limited.
In a possible embodiment of the technical solution provided by the present invention, step S130 specifically includes:
and controlling at least one infrared distance measuring sensor to respectively detect a plurality of separators to be detected to obtain a plurality of detection distance information.
And obtaining average distance information, maximum distance information and minimum distance information according to the plurality of detection distance information, and respectively comparing the average distance information, the maximum distance information and the minimum distance information with preset standard values to obtain an average detection error value, a positive detection error value and a negative detection error value. After obtaining the plurality of detection distance information, the invention calculates and compares the plurality of detection distance information to obtain average distance information, maximum distance information and minimum distance information. Then, the average detection error value, the positive detection error value and the negative detection error value can obtain the maximum value of downward concavity, the maximum value of upward convexity and the average detection error value in all the to-be-detected separation sheets.
And step S140, if the detection error value is greater than the first flatness error value and less than or equal to the second flatness error value, performing first marking on the motor closed slot punching sheet, and performing flattening processing on the motor closed slot punching sheet according to the first marking. In the case of step S140, the flatness of the motor closed slot punching sheet has a certain problem, and the sheet can be shipped after being processed again, so that the motor closed slot punching sheet is subjected to a first marking process, the first marking process may be manual marking or laser marking, the processing mode of the first marking process is not limited in the present invention, and when the motor closed slot punching sheet is processed again, a corresponding flattening device may be selected for punching.
In a possible implementation manner of the technical solution provided by the present invention, step S140 specifically includes:
and if the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value, comparing the average detection error value with the first flatness error value and the second flatness error value. The absolute values of the positive detection error value and the negative detection error value are compared, and after the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value, the situation that the to-be-detected separating sheet with the concave or the overlarge convex is not formed is proved.
And if the detection error value is greater than the first flatness error value and less than or equal to a second flatness error value, performing first marking on the motor closed slot punching sheet. When the detection error value is larger than the first flatness error value and smaller than or equal to the second flatness error value, the motor closed slot punching sheet is subjected to first marking processing, and the average unevenness and the unevenness of all the to-be-detected separating sheets are considered to be adjustable at the moment. Further processing is performed at this time.
When the detection error value is less than or equal to the first flatness error value, the unevenness of the motor closing slot is proved to be appropriate and acceptable, and the motor closing slot can be subjected to factory processing.
And S150, if the detection error value is greater than the second flatness error value, performing second marking processing on the motor closed slot punching sheet, and performing recovery processing on the motor closed slot punching sheet according to the second marking. In the case of step S150, at this time, the flatness of the motor closed slot punching sheet has a problem that the motor closed slot punching sheet cannot be shipped out by way of reprocessing, so that the motor closed slot punching sheet is subjected to a second marking process, where the second marking process may be manual marking or laser branding, and the processing manner of the second marking process is not limited in the present invention, and at this time, the motor closed slot punching sheet needs to be recycled as a waste product.
In a possible implementation manner of the technical solution provided by the present invention, step S150 specifically includes:
and if any one or more of the positive detection error value and the negative detection error value is larger than the maximum error value, performing second marking processing on the motor closed slot punching sheet. At the moment, the to-be-detected separating sheet with larger recess or bulge cannot be leveled, so that the motor closed slot punching sheet is directly subjected to second marking treatment.
If the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value.
Comparing the average detection error value with a first flatness error value and a second flatness error value, and if the detection error value is greater than the second flatness error value, performing second marking on the motor closed slot punching sheet. At this time, although the separator to be measured does not have larger depressions or bulges, the average error values of a plurality of separators to be measured are added, and the leveling processing cannot be performed at this time, so that the second marking processing is directly performed on the motor closed slot punching sheet at this time.
The storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the storage medium may reside as discrete components in a communication device. The storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tapes, floppy disks, optical data storage devices, and the like.
The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the embodiment of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A flatness measuring method of a motor closed slot punching sheet based on image processing is characterized by comprising the following steps:
receiving a motor closed slot punching sheet manufactured by a punching machine, acquiring punching sheet size data corresponding to the motor closed slot punching sheet based on image processing, and acquiring a first flatness error value and a second flatness error value corresponding to the motor closed slot punching sheet according to the punching sheet size data;
positioning an upper groove and a lower cage of the motor closed slot punching sheet, determining the position of a separator between the upper groove and the lower cage, and randomly selecting a plurality of separators with preset quantity in the motor closed slot punching sheet as separators to be detected;
respectively detecting a plurality of to-be-detected separation sheets through an infrared distance measuring sensor to obtain a plurality of detection distance information, and comparing the plurality of detection distance information with a preset standard value to obtain a detection error value;
if the detection error value is larger than the first flatness error value and smaller than or equal to a second flatness error value, carrying out first marking processing on the motor closed slot punching sheet, and carrying out flattening processing on the motor closed slot punching sheet according to the first marking;
and if the detection error value is greater than the second flatness error value, carrying out second marking processing on the motor closing slot punching sheet, and carrying out recovery processing on the motor closing slot punching sheet according to the second marking.
2. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 1,
the method specifically comprises the steps of receiving motor closed slot punching sheets manufactured by a punching machine, obtaining punching sheet size data corresponding to the motor closed slot punching sheets based on image processing, and obtaining a first flatness error value and a second flatness error value corresponding to the motor closed slot punching sheets according to the punching sheet size data:
after receiving a motor closed slot punching sheet manufactured by a punching machine, acquiring current punching sheet image data of the motor closed slot punching sheet, and comparing the current punching sheet image data with preset punching sheet image data to obtain punching sheet size data corresponding to the motor closed slot punching sheet;
acquiring a first preliminary flatness error value and a second preliminary flatness error value which are preset correspondingly to the punching sheet size data;
and receiving configuration precision information and configuration material attribute information configured by a user, and processing the first preliminary flatness error value and the second preliminary flatness error value according to the configuration precision information and the configuration material attribute information to obtain a corresponding first flatness error value and a corresponding second flatness error value.
3. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 2,
after receiving the motor closing slot punching sheet manufactured by the punching machine, acquiring current punching sheet image data of the motor closing slot punching sheet, and comparing the current punching sheet image data with preset punching sheet image data to obtain punching sheet size data corresponding to the motor closing slot punching sheet, wherein the steps specifically comprise:
extracting the number of pixel points of the current punched sheet image data in a punched sheet pixel interval to obtain a current punched sheet pixel number value, and obtaining a current punched sheet pixel ratio according to the current punched sheet pixel number value;
extracting the number of pixel points of the preset punching sheet image data in a punching sheet pixel interval to obtain a preset punching sheet pixel number value, and obtaining a preset punching sheet pixel ratio according to the preset punching sheet pixel number value;
comparing the current punching sheet pixel ratio with the preset punching sheet pixel ratio of each preset punching sheet image data to obtain preset punching sheet image data and punching sheet size data corresponding to the previous punching sheet image data, wherein each preset punching sheet image data has punching sheet size data corresponding to the preset punching sheet image data.
4. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 3,
the method specifically comprises the following steps of comparing the current punching pixel ratio with the preset punching pixel ratio of each preset punching image data to obtain preset punching image data and punching size data corresponding to the previous punching image data, wherein each preset punching image data has punching size data corresponding to the preset punching image data:
calculating the pixel proportion of the current stamped piece and the pixel proportion of the preset stamped piece through the following formula,
Figure FDA0003560639130000021
wherein z is1Is the current pixel ratio of the punching sheet, p1Is the current pixel weight value, l1For the current pixel count value of the punching sheet, /)2The total number of pixel points, z, in the image data of the current punching sheet2For presetting the pixel ratio of the punching sheet, r1To preset the pixel weight value, r1For presetting the pixel number value, r, of the punching sheet2Setting the total number of pixel points in the image data of the preset punching sheet;
the method comprises the steps of obtaining a first difference value of the current punching sheet pixel ratio and each preset punching sheet pixel ratio, and selecting the preset punching sheet pixel ratio with the first difference value smaller than the preset difference value and corresponding preset punching sheet image data and punching sheet size data.
5. The method for measuring the flatness of an image processing-based motor closed slot punching sheet according to claim 4,
in the step of receiving configuration precision information and configuration material attribute information configured by a user, and processing the first preliminary flatness error value and the second preliminary flatness error value according to the configuration precision information and the configuration material attribute information to obtain a corresponding first flatness error value and a corresponding second flatness error value, the method specifically includes:
comparing the configuration precision information with preset precision information to obtain a precision deviation coefficient;
comparing the configured material attribute information with preset material attribute information to obtain an attribute deviation coefficient;
and processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision deviation coefficient and the attribute deviation coefficient to obtain a corresponding first flatness error value and a corresponding second flatness error value.
6. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 5,
in the step of processing the first preliminary flatness error value and the second preliminary flatness error value according to the precision offset coefficient and the attribute offset coefficient to obtain a corresponding first flatness error value and a second flatness error value, the method specifically includes:
the first flatness error value and the second flatness error value are obtained by the following formulas,
Figure FDA0003560639130000031
wherein p is1Is a first flatness error value, kjIs a precision bias value, j1To configure the precision information, j2To preset precision information, kmIs an attribute weight bias value, m1To configure material property information, m2In order to preset the material property information,
Figure FDA0003560639130000032
is a firstAn error weight value u1Is the first preliminary flatness error value and is,
Figure FDA0003560639130000033
is a second error weight value, u2Is the second preliminary flatness error value.
7. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 2,
the method specifically comprises the steps of positioning an upper groove and a lower cage of the motor closed slot punching sheet, determining the position of a separator between the upper groove and the lower cage, and randomly selecting a plurality of separators with preset quantity in the motor closed slot punching sheet as separators to be detected:
acquiring current punching sheet image data of the motor closed slot punching sheet, and extracting a target area in the current punching sheet image data, wherein the target area is a shape area formed by an upper slot and a lower cage;
positioning an upper groove and a lower cage in a target area, and taking a metal part between the upper groove and the lower cage as a separation sheet;
calculating the quantity to be measured according to the received configuration precision information and the configuration material attribute information, and randomly selecting a plurality of spacers of the quantity to be measured as the spacers to be measured;
the number to be measured is calculated by the following formula,
Figure FDA0003560639130000034
wherein s is2To the quantity to be measured, kjIs a precision bias value, j1To configure the precision information, j2For presetting precision information, kmIs an attribute weight bias value, m1To configure material property information, m2For presetting material property information, ksIs a number weight value, s1Is a preset number.
8. The flatness measuring method of an image processing based motor closed slot punching sheet according to claim 7,
in detecting a plurality of spacers that await measuring respectively through infrared distance measuring sensor and obtaining a plurality of detection distance information, comparing a plurality of detection distance information and default standard value and obtaining the step of detection error value, specifically include:
controlling at least one infrared distance measuring sensor to respectively detect a plurality of separators to be detected to obtain a plurality of detection distance information;
and obtaining average distance information, maximum distance information and minimum distance information according to the plurality of detection distance information, and respectively comparing the average distance information, the maximum distance information and the minimum distance information with preset standard values to obtain an average detection error value, a positive detection error value and a negative detection error value.
9. The method for measuring the flatness of a motor closed slot punching sheet based on image processing as claimed in claim 8,
if the detection error value is greater than the first flatness error value and less than or equal to a second flatness error value, performing first marking on the motor closed slot punching sheet, and performing flattening processing on the motor closed slot punching sheet according to the first marking specifically includes:
if the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value, comparing the average detection error value with the first flatness error value and the second flatness error value;
and if the average detection error value is larger than the first flatness error value and smaller than or equal to a second flatness error value, carrying out first marking processing on the motor closed slot punching sheet.
10. The method for measuring the flatness of an image-processing-based motor closed slot punching sheet according to claim 8,
if the detection error value is greater than the second flatness error value, performing second marking processing on the motor closed slot punching sheet, and performing recovery processing on the motor closed slot punching sheet according to the second marking, specifically comprising:
if any one or more of the positive detection error value and the negative detection error value is larger than the maximum error value, carrying out second marking processing on the motor closed slot punching sheet;
if the absolute values of the positive detection error value and the negative detection error value are respectively smaller than the maximum error value;
comparing the average detection error value with a first flatness error value and a second flatness error value, and if the detection error value is greater than the second flatness error value, performing second marking on the motor closed slot punching sheet.
CN202210288125.3A 2022-03-23 2022-03-23 Flatness measuring method of motor closed slot punching sheet based on image processing Active CN114719791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210288125.3A CN114719791B (en) 2022-03-23 2022-03-23 Flatness measuring method of motor closed slot punching sheet based on image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210288125.3A CN114719791B (en) 2022-03-23 2022-03-23 Flatness measuring method of motor closed slot punching sheet based on image processing

Publications (2)

Publication Number Publication Date
CN114719791A CN114719791A (en) 2022-07-08
CN114719791B true CN114719791B (en) 2022-11-01

Family

ID=82240490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210288125.3A Active CN114719791B (en) 2022-03-23 2022-03-23 Flatness measuring method of motor closed slot punching sheet based on image processing

Country Status (1)

Country Link
CN (1) CN114719791B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2725512A1 (en) * 1994-10-07 1996-04-12 Lorraine Laminage Moving surface of device to be laminated flatness evaluating device esp. metal bands
CN101634541A (en) * 2009-07-27 2010-01-27 永济新时速电机电器有限责任公司 Detection method of armature stamping trough position degree
CN106382889A (en) * 2016-11-17 2017-02-08 江苏天宏机械工业有限公司 Wheel hub type identification and detection system
CN106787554A (en) * 2017-02-24 2017-05-31 徐州大元电机有限公司 A kind of high efficiency composition cage bar motor rotor and preparation method thereof
CN107643466A (en) * 2017-09-15 2018-01-30 中达电通股份有限公司 Capacitor test system and method
CN108183584A (en) * 2018-03-06 2018-06-19 邹伟 A kind of screening technique of stator punching
CN110189322A (en) * 2019-06-04 2019-08-30 广州视源电子科技股份有限公司 Measurement method of planeness, device, equipment, storage medium and system
CN111590746A (en) * 2019-02-20 2020-08-28 中铁建设集团建筑发展有限公司 Detection method and system in production process of concrete prefabricated part
CN111651622A (en) * 2020-05-29 2020-09-11 云南昆船设计研究院有限公司 Three-dimensional imaging-based automatic classification system and method for building aluminum templates
CN113743473A (en) * 2021-08-06 2021-12-03 成都飞机工业(集团)有限责任公司 Intelligent identification and detection method for automatic spraying process of complex parts
CN114140511A (en) * 2021-11-29 2022-03-04 深圳市商汤科技有限公司 Method and device for estimating dimension specification of object, electronic device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2725512A1 (en) * 1994-10-07 1996-04-12 Lorraine Laminage Moving surface of device to be laminated flatness evaluating device esp. metal bands
CN101634541A (en) * 2009-07-27 2010-01-27 永济新时速电机电器有限责任公司 Detection method of armature stamping trough position degree
CN106382889A (en) * 2016-11-17 2017-02-08 江苏天宏机械工业有限公司 Wheel hub type identification and detection system
CN106787554A (en) * 2017-02-24 2017-05-31 徐州大元电机有限公司 A kind of high efficiency composition cage bar motor rotor and preparation method thereof
CN107643466A (en) * 2017-09-15 2018-01-30 中达电通股份有限公司 Capacitor test system and method
CN108183584A (en) * 2018-03-06 2018-06-19 邹伟 A kind of screening technique of stator punching
CN111590746A (en) * 2019-02-20 2020-08-28 中铁建设集团建筑发展有限公司 Detection method and system in production process of concrete prefabricated part
CN110189322A (en) * 2019-06-04 2019-08-30 广州视源电子科技股份有限公司 Measurement method of planeness, device, equipment, storage medium and system
CN111651622A (en) * 2020-05-29 2020-09-11 云南昆船设计研究院有限公司 Three-dimensional imaging-based automatic classification system and method for building aluminum templates
CN113743473A (en) * 2021-08-06 2021-12-03 成都飞机工业(集团)有限责任公司 Intelligent identification and detection method for automatic spraying process of complex parts
CN114140511A (en) * 2021-11-29 2022-03-04 深圳市商汤科技有限公司 Method and device for estimating dimension specification of object, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电机冲片智能视觉动态在线识别系统的开发;朱晓军;《电机技术》;20210425;全文 *

Also Published As

Publication number Publication date
CN114719791A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN116205919B (en) Hardware part production quality detection method and system based on artificial intelligence
CN106886216B (en) Robot automatic tracking method and system based on RGBD face detection
CN111639629B (en) Pig weight measurement method and device based on image processing and storage medium
CN108009522B (en) Road detection method, device and terminal
CN113763350B (en) Glue line detection method and device, glue line detection equipment and storage medium
CN116735612B (en) Welding defect detection method for precise electronic components
CN109635799B (en) Method for recognizing number of character wheel of gas meter
CN116703911B (en) LED lamp production quality detecting system
CN107871137A (en) A kind of material matching process based on image recognition
CN115797361B (en) Aluminum template surface defect detection method
CN114581446B (en) Battery core abnormity detection method and system of laminated battery
CN110874572B (en) Information detection method and device and storage medium
CN110349070B (en) Short video watermark detection method
CN115018835A (en) Automobile starter gear detection method
CN117593193B (en) Sheet metal image enhancement method and system based on machine learning
CN114719791B (en) Flatness measuring method of motor closed slot punching sheet based on image processing
CN112465910B (en) Target shooting distance obtaining method and device, storage medium and electronic equipment
CN111814776B (en) Image processing method, device, server and storage medium
CN116573366B (en) Belt deviation detection method, system, equipment and storage medium based on vision
CN111161291A (en) Contour detection method based on target depth of field information
CN115222652A (en) Method for identifying, counting and centering end faces of bundled steel bars and memory thereof
JP2010097341A (en) Image processor for detecting image as object of detection from input image
CN109272540B (en) SFR automatic extraction and analysis method of image of graphic card
CN113705672A (en) Threshold value selection method, system and device for image target detection and storage medium
CN108734703B (en) Polished tile printing pattern detection method, system and device based on machine vision

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A flatness measurement method for motor closed slot punching based on image processing

Effective date of registration: 20231129

Granted publication date: 20221101

Pledgee: Jingjiang Branch of Bank of China Ltd.

Pledgor: JIANGSU DAZHONG ELECTRIC MOTOR Co.,Ltd.

Registration number: Y2023980067626

PE01 Entry into force of the registration of the contract for pledge of patent right