CN107179317B - Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer - Google Patents

Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer Download PDF

Info

Publication number
CN107179317B
CN107179317B CN201710260504.0A CN201710260504A CN107179317B CN 107179317 B CN107179317 B CN 107179317B CN 201710260504 A CN201710260504 A CN 201710260504A CN 107179317 B CN107179317 B CN 107179317B
Authority
CN
China
Prior art keywords
threshold value
standard
image
retainer
holder
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
CN201710260504.0A
Other languages
Chinese (zh)
Other versions
CN107179317A (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.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang University
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 Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CN201710260504.0A priority Critical patent/CN107179317B/en
Publication of CN107179317A publication Critical patent/CN107179317A/en
Application granted granted Critical
Publication of CN107179317B publication Critical patent/CN107179317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a self-adaptive method of a holder image threshold value suitable for judging the front and back surfaces of a holder, which is characterized in that the brightness of an end surface recognition LED lamp is not changed when the holder is judged, a self-adaptive threshold value method is adopted, the threshold value of an image shot by a camera is set to change within an allowable range, the change range of the threshold value is defined as a standard threshold value +/-7, the standard threshold value is defined as the most appropriate threshold value of a holder standard part determined during self-learning and is marked as T, the allowable adjustment range of the threshold value is 15 values in total, namely T-7, …, T, … and T +7, when the holder image is judged, the end surface of the holder is shot firstly, the threshold value is removed as T, then the image is judged, the invention adopts the self-adaptive threshold value method, the threshold value of the image shot by the camera is set to change within the allowable range, the adjustment is only needed for the end, the adjustment of 15 brightness levels can be realized, and the image judgment can be realized in the shortest time.

Description

Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer
Technical Field
The invention relates to the technical field of mechanical part detection equipment, in particular to a self-adaptive method for a retainer image threshold value, which is suitable for judging the front side and the back side of a retainer.
Background
The cage partially wraps all or part of the rolling bodies and moves therewith to isolate the rolling bodies, guide them and retain them within the bearing. For cages for devices with high rotational speeds, such as automobile transmissions, the demands on dimensional accuracy are high. If the size precision of the retainer does not reach the standard in the production process, the retainer is arranged on a vehicle, so that transitional abrasion of the retainer is caused, the service life of the ball cage is influenced, or the running safety and the like are caused. The retainer is a metal component with spherical inner and outer surfaces and two flat ends, which is formed by turning, in the existing retainer processing technology, the front and back surfaces of the retainer are generally judged by manual mechanical measurement, and then the retainer can enter processing equipment in the same direction when the next processing procedure is carried out. In the practice of mass production, on one hand, due to the large workload and the high labor intensity, the condition of missed judgment or misjudgment may occur in manual judgment, the difference between the front side and the back side of the cut retainer is not obvious, and if the precision of the measuring tool is not high enough, the front side and the back side of the retainer cannot be accurately judged, that is, the accurate judgment rate of the front side and the back side of each retainer cannot be ensured.
China with the patent application number of CN2015102506173 discloses a device for judging the front and back surfaces of a retainer, the width of a chamfer of a central circular hole of the retainer is shot through a camera, when the central axis of the camera forms an included angle of 45 degrees with the horizontal plane, the chamfer surface of the central circular hole of the retainer is just vertical to the camera, the chamfer width shot by the camera is the actual width, the front and back surfaces of the retainer can be judged according to the comparison between the chamfer width shot at the moment and the standard chamfer width, the judgment efficiency is high, and the problems of large manual judgment error and low judgment efficiency are solved. However, in practical production tests, we have found that the scheme has the following problems:
1) because the front and back sides of the retainer are characterized by the size of the inner chamfer, the chamfer image shooting must be realized by a 45-degree light source to realize image processing; however, the requirement of chamfer shooting on a light source is high, and for some holders with smaller chamfers, the shot image ring is very narrow, so that misjudgment is easy to occur;
2) in the production process and the automatic feeding process of the retainer, a lot of oil stains are placed on the surface of the retainer and at the chamfer of the retainer, so that the captured image is unclear, and the ring image is broken seriously and even so that the image recognition is wrong;
3) the equipment is required to have lower cost when being applied to a production link, the retainer is grabbed and placed below the camera through a mechanical claw formed by the cylinder and the gas claw, and meanwhile, a manipulator can adapt to the retainers with different diameters as much as possible, so that the positioning precision of the retainer is easy to cause low, and the situation that the light source reflection intensity is unstable due to the fact that the angle deflection possibly occurs after the retainer is grabbed, thereby affecting the quality of images;
4) the retainer can cause the circle centers of the outer circle and the inner circle to be not completely overlapped due to the processing reason, the method of only taking one section of the circle for identification cannot be used, and the whole image must be identified; in consideration of the cost factor of the camera, it is impossible to adopt a camera having a high resolution in an actual production process, thereby also causing difficulty in image recognition.
Meanwhile, the whole system has very high requirements on the reliability of image recognition, the situation of misjudgment in the production process is absolutely not allowed, and the number of suspicious products must be reduced, so that the equipment cannot be well adapted to the actual production process. The applicant designs a method for simultaneously shooting pictures of the end face and the chamfer of the retainer and distinguishing the front face and the back face of the retainer by using AND operation, but in an actual test, the purchased LED lamp is found to work in a transverse flow mode, the brightness of light changes when the current changes, the temperature of the LED lamp changes along with the prolonging of the service time of the LED lamp, and the brightness of the LED lamp changes, so that the image changes, therefore, errors are easily generated in the image binarization processing process to cause image feature extraction errors, for example, the width of an image-identified ring is large when the brightness of the LED lamp is strong, other rings are small or the surface of the ring is broken when the brightness of the LED lamp is weak, and the complete whole ring cannot be identified. The conventional method is a method for automatically determining a threshold value through a histogram, but the method automatically identifies the edge of an image in practical use, but the identified edge is not necessarily the actually required edge, so that the edge is determined without a characteristic inherent to a workpiece as a basis and is easily interfered by other pixels of the image.
Disclosure of Invention
The invention aims to solve the problems and provides a holder image threshold value self-adaption method suitable for holder front and back surface discrimination, which can avoid misjudgment, prevent other items from interference and improve the accuracy of holder front and back surface discrimination
The invention realizes the purpose through the following technical scheme: a self-adaptive method for a holder image threshold value suitable for distinguishing the front side and the back side of a holder is characterized in that the front side and the back side of the holder are distinguished by adopting an end face recognition LED lamp for illumination, a camera is used for shooting, the camera is arranged right above the end face recognition LED lamp, and the axial lead of the camera and the axial lead of the end face recognition LED lamp are on the same straight line; the end face recognition LED lamp comprises an annular lamp cover, a ring of annular point light sources arranged inside the lamp cover, a reflecting plate arranged at the bottom of the lamp cover and a filter plate arranged outside the point light sources and fixed on the lamp cover, and the end face recognition LED lamp directly and vertically irradiates the end face of the retainer;
when the holder is judged, the brightness of the end face recognition LED lamp is not changed, an adaptive threshold value method is adopted, the threshold value of an image shot by a camera is set to be changed within an allowable range, the change range of the threshold value is defined as a standard threshold value +/-7, the standard threshold value is defined as a threshold value which is most suitable for determining a holder standard part during self-learning and is marked as T, the allowable adjustment range of the threshold value is 15 values in total, namely T-7, T-6, T-5, T-4, T-3, T-2, T-1, T, T +1, T +2, T +3, T +4, T +5, T +6 and T +7, when the holder image is judged, the end face of the holder is shot firstly, the threshold value is T, then the image is judged, the excircle diameter of the image is recognized, the recognized diameter is compared with the standard excircle diameter recorded by the standard part in the learning process, the following results occur:
a. if the deviation between the recognized excircle diameter and the standard excircle diameter is in a set range, the current threshold value is appropriate, and the subsequent judgment can be carried out;
b. if the recognized excircle diameter is smaller than the standard excircle diameter, the current threshold is set to be T-4, and then secondary photographing and recognition are carried out;
c. if the recognized excircle diameter is larger than the standard excircle diameter, the current threshold value is lower, the current threshold value is adjusted to be T +4, and then secondary photographing and recognition are carried out;
taking a picture for the second time and recognizing the picture according to the two conditions of b and c, comparing the recognized diameter of the second time with the standard excircle diameter recorded by the standard part in the learning process, obtaining the results a, b and c again, and repeating the steps until the deviation between the recognized excircle diameter and the standard excircle diameter is within a set range, so that the current threshold is proper; and if the deviation between the recognized outer circle diameter and the standard outer circle diameter is not in a set range all the time, the image is indicated to have a problem, the judgment is finished, and the retainer is indicated as a suspicious product to be manually processed.
The invention has the beneficial effects that:
1. the invention adopts a self-adaptive threshold value method, sets the threshold value of the image shot by the camera to be changed within an allowable range, and can realize the adjustment of 15 brightness levels by only adjusting the end face of the same retainer at most four times, thereby realizing the image judgment in the shortest time.
2. The method for shooting the self-adaptive threshold value of the picture by the camera is compared with the standard picture, so that the interference of image bright spots caused by the reflection of the surfaces of the workpiece and the tool on the feature recognition is effectively prevented, the requirement of the image recognition on a light source is effectively reduced, the influence of the light scattering on the image quality is reduced, and the misjudgment is effectively prevented.
Detailed Description
The invention will be further illustrated with reference to specific examples:
the invention relates to a self-adaptive method of a holder image threshold value suitable for distinguishing the front side and the back side of a holder, wherein the front side and the back side of the holder are distinguished by adopting an end face recognition LED lamp for illumination and adopting a camera for shooting, the camera is arranged right above the end face recognition LED lamp, and the axial lead of the camera and the axial lead of the end face recognition LED lamp are on the same straight line; the end face recognition LED lamp comprises an annular lamp cover, a ring of annular point light sources arranged inside the lamp cover, a reflecting plate arranged at the bottom of the lamp cover and a filter plate arranged outside the point light sources and fixed on the lamp cover, and the end face recognition LED lamp directly and vertically irradiates the end face of the retainer;
when the holder is judged, the brightness of the end face recognition LED lamp is not changed, an adaptive threshold value method is adopted, the threshold value of an image shot by a camera is set to be changed within an allowable range, the change range of the threshold value is defined as a standard threshold value +/-7, the standard threshold value is defined as a threshold value which is most suitable for determining a holder standard part during self-learning and is marked as T, the allowable adjustment range of the threshold value is 15 values in total, namely T-7, T-6, T-5, T-4, T-3, T-2, T-1, T, T +1, T +2, T +3, T +4, T +5, T +6 and T +7, when the holder image is judged, the end face of the holder is shot firstly, the threshold value is T, then the image is judged, the excircle diameter of the image is recognized, the recognized diameter is compared with the standard excircle diameter recorded by the standard part in the learning process, the following results occur:
a. if the deviation between the recognized excircle diameter and the standard excircle diameter is in a set range, the current threshold value is appropriate, and the subsequent judgment can be carried out;
b. if the recognized excircle diameter is smaller than the standard excircle diameter, the current threshold is set to be T-4, and then secondary photographing and recognition are carried out;
c. if the recognized excircle diameter is larger than the standard excircle diameter, the current threshold value is lower, the current threshold value is adjusted to be T +4, and then secondary photographing and recognition are carried out;
taking a picture for the second time and recognizing the picture according to the two conditions of b and c, comparing the recognized diameter of the second time with the standard excircle diameter recorded by the standard part in the learning process, obtaining the results a, b and c again, and repeating the steps until the deviation between the recognized excircle diameter and the standard excircle diameter is within a set range, so that the current threshold is proper; and if the deviation between the recognized outer circle diameter and the standard outer circle diameter is not in a set range all the time, the image is indicated to have a problem, the judgment is finished, and the retainer is indicated as a suspicious product to be manually processed.
The above embodiments are only preferred embodiments of the present invention, and are not intended to limit the technical solutions of the present invention, so long as the technical solutions can be realized on the basis of the above embodiments without creative efforts, which should be considered to fall within the protection scope of the patent of the present invention.

Claims (1)

1. A self-adaptive method of a retainer image threshold value suitable for judging the front and back of a retainer is characterized in that: the front side and the back side of the retainer are distinguished by adopting the end face recognition LED lamp to provide illumination, the camera is used for shooting, the camera is arranged right above the end face recognition LED lamp, and the axial lead of the camera and the axial lead of the end face recognition LED lamp are on the same straight line; the end face recognition LED lamp comprises an annular lamp cover, a ring of annular point light sources arranged inside the lamp cover, a reflecting plate arranged at the bottom of the lamp cover and a filter plate arranged outside the point light sources and fixed on the lamp cover, and the end face recognition LED lamp directly and vertically irradiates the end face of the retainer;
when the holder is judged, the brightness of the end face recognition LED lamp is not changed, an adaptive threshold value method is adopted, the threshold value of an image shot by a camera is set to be changed within an allowable range, the change range of the threshold value is defined as a standard threshold value +/-7, the standard threshold value is defined as a threshold value which is most suitable for determining a holder standard part during self-learning and is marked as T, the allowable adjustment range of the threshold value is 15 values in total, namely T-7, T-6, T-5, T-4, T-3, T-2, T-1, T, T +1, T +2, T +3, T +4, T +5, T +6 and T +7, when the holder image is judged, the end face of the holder is shot firstly, the threshold value is T, then the image is judged, the excircle diameter of the image is recognized, the recognized diameter is compared with the standard excircle diameter recorded by the standard part in the learning process, the following results occur:
a. if the deviation between the recognized excircle diameter and the standard excircle diameter is in a set range, the current threshold value is appropriate, and the subsequent judgment can be carried out;
b. if the recognized excircle diameter is smaller than the standard excircle diameter, the current threshold is set to be T-4, and then secondary photographing and recognition are carried out;
c. if the recognized excircle diameter is larger than the standard excircle diameter, the current threshold value is lower, the current threshold value is adjusted to be T +4, and then secondary photographing and recognition are carried out;
taking a picture for the second time and recognizing the picture according to the two conditions of b and c, comparing the recognized diameter of the second time with the standard excircle diameter recorded by the standard part in the learning process, obtaining the results a, b and c again, and repeating the steps until the deviation between the recognized excircle diameter and the standard excircle diameter is within a set range, so that the current threshold is proper; and if the deviation between the recognized outer circle diameter and the standard outer circle diameter is not in a set range all the time, the image is indicated to have a problem, the judgment is finished, and the retainer is indicated as a suspicious product to be manually processed.
CN201710260504.0A 2017-04-20 2017-04-20 Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer Active CN107179317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710260504.0A CN107179317B (en) 2017-04-20 2017-04-20 Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710260504.0A CN107179317B (en) 2017-04-20 2017-04-20 Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer

Publications (2)

Publication Number Publication Date
CN107179317A CN107179317A (en) 2017-09-19
CN107179317B true CN107179317B (en) 2020-05-26

Family

ID=59832037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710260504.0A Active CN107179317B (en) 2017-04-20 2017-04-20 Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer

Country Status (1)

Country Link
CN (1) CN107179317B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115655167B (en) * 2022-12-13 2023-06-02 成都华量传感器有限公司 Method for measuring runout of inner diameter, outer diameter, thickness and discontinuous multipoint parts of part

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3695112B2 (en) * 1998-01-08 2005-09-14 松下電器産業株式会社 Electronic component observation apparatus and electronic component observation method
JP4230628B2 (en) * 1999-11-30 2009-02-25 シーシーエス株式会社 Control power supply for lighting equipment
CN103841726B (en) * 2014-03-06 2015-09-09 河南科技大学 The real-time adjusting device of light-source brightness and method of adjustment thereof in pole piece defects detection
CN104897672B (en) * 2015-05-15 2017-08-25 浙江工业大学 A kind of retainer positive and negative discriminating gear
CN105092577B (en) * 2015-05-15 2017-08-01 浙江工业大学 A kind of retainer positive and negative discriminating gear
CN105091765B (en) * 2015-05-15 2017-09-26 浙江工业大学 A kind of method of discrimination of cage retainer positive and negative

Also Published As

Publication number Publication date
CN107179317A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
US9372072B2 (en) Particle measuring device and particle measuring method
US8896844B2 (en) High-speed, 3-D method and system for optically measuring a geometric dimension of manufactured parts
CN105092577B (en) A kind of retainer positive and negative discriminating gear
US20070002315A1 (en) Apparatus and method for inspecting screw portion
US20140063509A1 (en) High-speed method and system for optically measuring a geometric dimension of manufactured parts
KR102066520B1 (en) Epitaxial wafer backside inspection apparatus and epitaxial wafer backside inspection method using the same
CN103389312B (en) Copper pipe detection system
CN107179317B (en) Self-adaptive method for image threshold of retainer suitable for judging front and back surfaces of retainer
SG181170A1 (en) Apparatus for inspecting rotary parts and the method of the inspection
JP2012103017A (en) Dross defect inspection device and dross defect inspection method of molten metal plating steel plate
CN107255452B (en) Double LED light formula retainer front and back sides image-recognizing method
JP6950811B2 (en) Metal plate surface defect detection method and equipment, and galvanized steel sheet manufacturing method
CN109877437B (en) Centering detection device and method for resistance welding gun
CN107064144B (en) LED lamp brightness self-adaptive adjusting method suitable for judging front side and back side of retainer
CN109945842B (en) Method for detecting label missing and analyzing labeling error of end face of bundled round steel
CN107247054B (en) Holder front and back image distinguishing method based on double-color illumination
CN206725456U (en) A kind of retainer positive and negative pattern recognition device
CN103718025A (en) Container mouth portion inspection method and device
CN1906461A (en) Method and device for detecting direction of member having outer periphery formed in vertically asymmetrical shape
JP2009162492A (en) Inspection apparatus
CN107202677B (en) Retainer front and back sides recognition methods based on the illumination of double LED light
Chauhan et al. Effect of illumination techniques on machine vision inspection for automated assembly machines
CN207248761U (en) Utilize the device that retainer positive and negative image recognition is carried out with computing
CN107084986B (en) Utilize the method for carrying out retainer front and back sides image recognition with operation
CN205607873U (en) Machine vision thing quality control tests device

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