CN112712506A - Visual detection method based on image processing - Google Patents

Visual detection method based on image processing Download PDF

Info

Publication number
CN112712506A
CN112712506A CN202011625823.5A CN202011625823A CN112712506A CN 112712506 A CN112712506 A CN 112712506A CN 202011625823 A CN202011625823 A CN 202011625823A CN 112712506 A CN112712506 A CN 112712506A
Authority
CN
China
Prior art keywords
image
workpiece
processing
detection
polyurethane
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.)
Withdrawn
Application number
CN202011625823.5A
Other languages
Chinese (zh)
Inventor
韩少春
陈世江
陈进淼
端小敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Chuangdu Information Technology Co ltd
Original Assignee
Changzhou Chuangdu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Chuangdu Information Technology Co ltd filed Critical Changzhou Chuangdu Information Technology Co ltd
Priority to CN202011625823.5A priority Critical patent/CN112712506A/en
Publication of CN112712506A publication Critical patent/CN112712506A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10016Video; Image sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The invention provides a visual detection method based on image processing, which comprises the following steps: step S1: collecting an original image of a workpiece; step S2: carrying out longitudinal and transverse mean filtering on the original image to obtain a background image; step S3: the original image and the background image are offset to obtain a differential image; step S4: processing the differential image by utilizing a directional filter group to determine suspected points and corresponding suspected directions; step S5: performing airspace accumulation processing in the mapping area by using the suspected points and the suspected directions to obtain an enhanced scratch detection image; step S6: judging whether the product has defects, if so, stopping the detection, and if not, entering the step S7; step S7: turning over the workpiece; step S8: step S1 is repeated until the detection of all the faces is completed. Compared with the prior art, the visual detection method based on image processing provided by the invention automatically turns over the workpiece by arranging the turning component, and is time-saving and labor-saving in the detection process.

Description

Visual detection method based on image processing
Technical Field
The invention relates to the technical field of detection and testing, in particular to a visual detection method based on image processing.
Background
With the development of the automation industry, the requirements on the quality of products are higher and higher, so that the detection of the contour quality of the products is more and more important; at present, the outline quality detection in the automation industry is mainly based on manual detection and contact detection, and the two detection modes have defects respectively; the human eyes are easy to fatigue and easy to misjudge and miss judge when the human eyes work under a high light source for a long time through manual detection; moreover, the subjective judgment standards are different due to different recognition degrees and understanding degrees of each person on the standards; the detection workload is large, the repeatability is high, and the damage to human eyes is serious; the contact detection is mainly measured by instruments such as a measuring instrument joint arm, a three-coordinate instrument and the like, firstly, the instruments cannot accurately measure products with irregular anisotropy, and secondly, the contact measurement mode is point-by-point measurement, and the measurement speed is low.
Chinese patent publication No.: CN106546185A discloses a contour quality detection method based on machine vision detection, which overcomes the drawbacks of the traditional manual detection and contact detection, and accelerates the test speed and test efficiency through non-contact vision detection, but still needs manual intervention when detecting multiple planes of a workpiece, and turns over the workpiece to complete the detection of other planes, which is time-consuming and labor-consuming.
Disclosure of Invention
In view of this, the invention provides a visual detection method based on image processing, and aims to solve the technical problem that time and labor are wasted when a workpiece is manually turned during multi-angle detection in the prior art.
A visual inspection method based on image processing, comprising:
step S1: acquiring an original image of a workpiece through a camera;
step S2: carrying out longitudinal mean filtering and transverse mean filtering on the original image to obtain a background image;
step S3: the original image and the background image are offset to obtain a differential image;
step S4: processing pixels to be analyzed in the differential image by utilizing a directional filter group, and determining suspected points and corresponding suspected directions;
step S5: performing airspace accumulation processing in a mapping area of the directional filter bank by using the suspected point and the suspected direction to obtain an enhanced scratch detection image;
step S6: judging whether the product has defects according to the scratch detection image, if so, stopping the detection and giving an alarm, and if not, entering the step S7;
step S7: overturning the workpiece through an overturning device;
step S8: step S1 is repeated until the detection of all the faces is completed.
Further, in step S7, the flipping unit includes a flange, a ring gear, a servo motor, and a clamping mechanism;
the gear ring is fixed on one side of the flange plate and is arranged concentrically with the flange plate;
a gear meshed with the gear ring is arranged on an output shaft of the servo motor, and the servo motor is used for driving the flange plate to rotate;
the clamping mechanism is used for clamping a workpiece.
Further, the clamping mechanism comprises a polyurethane bottom plate, a side limiting unit and an upper pressing unit;
the polyurethane bottom plate is used for bearing a workpiece;
the upper pressing unit is arranged above and used for pressing the workpiece on the polyurethane bottom plate;
the side limiting units are arranged on two sides and used for limiting the workpiece.
Further, the upper pressing unit comprises a lifter and a polyurethane pressing block;
the lifter is arranged vertically downwards;
the polyurethane pressing block is arranged at the telescopic end of the lifter.
Further, the side limiting unit comprises a threaded rod, a nut, a spring and a polyurethane rib;
the threaded rod penetrates through the side wall;
the nut is arranged on one side of the side wall, which is far away from the workpiece;
the polyurethane flange is fixed on one side of the threaded rod, which is close to the workpiece;
the spring is arranged on the threaded rod in a penetrating mode and is arranged on one side, close to the workpiece, of the side wall.
Further, the spring is a high-strength spring.
Compared with the prior art, the visual detection method based on image processing has the advantages that the workpiece is automatically turned over by arranging the turning component, and time and labor are saved in the detection process.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a visual inspection method based on image processing according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a turning device according to an embodiment of the present invention;
FIG. 3 is an enlarged view of a clamping mechanism provided in an embodiment of the present invention;
fig. 4 is an enlarged view of a pressing unit provided in an embodiment of the present invention;
FIG. 5 is an enlarged view of a side limiting unit provided by an embodiment of the present invention;
reference numerals: 1. a turning device; 11. a flange plate; 12. a ring gear; 13. a servo motor; 14. a clamping mechanism; 141. a polyurethane backplane; 142. a side limit unit; 1421. a threaded rod; 1422. a nut; 1423. A spring; 1424. a polyurethane rib; 143. a pressing unit; 1431. an elevator; 1432. and (4) pressing the polyurethane into blocks.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1 to 5, it can be seen that the visual inspection method based on image processing according to the embodiment of the present invention specifically includes the following steps:
step S1: acquiring an original image of a workpiece through a camera;
step S2: carrying out longitudinal mean filtering and transverse mean filtering on the original image to obtain a background image;
step S3: the original image and the background image are offset to obtain a differential image;
step S4: processing pixels to be analyzed in the differential image by utilizing a directional filter group, and determining suspected points and corresponding suspected directions;
step S5: performing airspace accumulation processing in a mapping area of the directional filter bank by using the suspected point and the suspected direction to obtain an enhanced scratch detection image;
step S6: judging whether the product has defects according to the scratch detection image, if so, stopping the detection and giving an alarm, and if not, entering the step S7;
step S7: overturning the workpiece through an overturning device 1;
step S8: step S1 is repeated until the detection of all the faces is completed.
Compared with the prior art, the visual detection method based on image processing has the advantages that the workpiece is automatically turned over by arranging the turning assembly, time and labor are saved in the detection process, and the detection is comprehensive.
In the step S7, the turnover device 1 includes a flange plate 11, a ring gear 12, a servo motor 13, and a clamping mechanism 14; the gear ring 12 is fixed on one side of the flange plate 11 and is arranged concentrically with the flange plate 11; a gear meshed with the gear ring 12 is arranged on an output shaft of the servo motor 13, and the servo motor 13 is used for driving the flange plate 11 to rotate; the clamping mechanism 14 is used for clamping a workpiece. It will be appreciated that the flange 11 may be secured by a mount during the implementation.
In this embodiment, the clamping mechanism 14 includes a polyurethane base plate 141, a side limiting unit 142, and an upper pressing unit 143, wherein the polyurethane base plate 141 is used for bearing a workpiece; the pressing unit 143 is disposed above to press the workpiece against the urethane base plate 141; the side limiting units 142 are disposed at both sides for limiting the workpiece.
In this embodiment, the pressing unit 143 includes a lifter 1431, a polyurethane pressing block 1432; elevator 1431 is disposed vertically downward; instead of a pneumatic cylinder, a polyurethane press block 1432 is provided at the telescoping end of the elevator 1431.
In this embodiment, the side limiting unit 142 includes a threaded rod 1421, a nut 1422, a spring 1423, and a polyurethane rib 1424; threaded rod 1421 passes through the sidewall; nut 1422 is disposed on the side of the sidewall away from the workpiece; a polyurethane rib 1424 is fixed on one side of the threaded rod 1421 close to the workpiece; the spring 1423 is disposed on the threaded rod 1421 and on one side of the sidewall close to the workpiece, so that the polyurethane rib 1424 applies pressure to the workpiece all the time, it can be understood that the side limiting unit 142 only plays a role of auxiliary fixing, and the specific fixing is realized by the upper pressing unit 143.
The clamping mechanism 14 is convenient to mount and dismount while fixing the workpiece.
Spring 1423 is a high tensile spring as a preferred embodiment.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A visual inspection method based on image processing is characterized by comprising the following steps:
step S1: acquiring an original image of a workpiece through a camera;
step S2: carrying out longitudinal mean filtering and transverse mean filtering on the original image to obtain a background image;
step S3: the original image and the background image are offset to obtain a differential image;
step S4: processing pixels to be analyzed in the differential image by utilizing a directional filter group, and determining suspected points and corresponding suspected directions;
step S5: performing airspace accumulation processing in a mapping area of the directional filter bank by using the suspected point and the suspected direction to obtain an enhanced scratch detection image;
step S6: judging whether the product has defects according to the scratch detection image, if so, stopping the detection and giving an alarm, and if not, entering the step S7;
step S7: overturning the workpiece through an overturning device (1);
step S8: step S1 is repeated until the detection of all the faces is completed.
2. The image-processing-based visual inspection method according to claim 1, wherein in step S7, the flipping unit (1) comprises a flange (11), a ring gear (12), a servo motor (13), a clamping mechanism (14);
the gear ring (12) is fixed on one side of the flange plate (11) and is arranged concentrically with the flange plate (11);
a gear meshed with the gear ring (12) is arranged on an output shaft of the servo motor (13), and the servo motor (13) is used for driving the flange plate (11) to rotate;
the clamping mechanism (14) is used for clamping a workpiece.
3. The image processing-based visual inspection method according to claim 2, wherein the clamping mechanism (14) comprises a polyurethane base plate (141), a side limiting unit (142), and an up-pressing unit (143);
the polyurethane bottom plate (141) is used for bearing a workpiece;
the pressing unit (143) is arranged above and used for pressing the workpiece on the polyurethane bottom plate (141);
the side limiting units (142) are arranged on two sides and used for limiting the workpiece.
4. The image-processing-based visual inspection method according to claim 3, wherein the pressing unit (143) includes a lifter (1431), a polyurethane press block (1432);
the elevator (1431) is arranged vertically downwards;
the polyurethane compact (1432) is disposed at a telescoping end of the elevator (1431).
5. The image processing-based visual inspection method of claim 3, wherein the side limiting unit (142) comprises a threaded rod (1421), a nut (1422), a spring (1423), a polyurethane rib (1424);
the threaded rod (1421) passes through the side wall;
the nut (1422) is arranged on one side of the side wall far away from the workpiece;
the polyurethane rib (1424) is fixed on one side of the threaded rod (1421) close to the workpiece;
the spring (1423) is arranged on the threaded rod (1421) in a penetrating mode and is arranged on one side, close to the workpiece, of the side wall.
6. The image-processing-based visual inspection method of claim 5, wherein the spring (1423) is a high-tensile spring.
CN202011625823.5A 2020-12-30 2020-12-30 Visual detection method based on image processing Withdrawn CN112712506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011625823.5A CN112712506A (en) 2020-12-30 2020-12-30 Visual detection method based on image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011625823.5A CN112712506A (en) 2020-12-30 2020-12-30 Visual detection method based on image processing

Publications (1)

Publication Number Publication Date
CN112712506A true CN112712506A (en) 2021-04-27

Family

ID=75547655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011625823.5A Withdrawn CN112712506A (en) 2020-12-30 2020-12-30 Visual detection method based on image processing

Country Status (1)

Country Link
CN (1) CN112712506A (en)

Similar Documents

Publication Publication Date Title
CN107607549A (en) Glass defect detection device
WO2022236917A1 (en) Surface property inspection apparatus and inspection method
CN112881403A (en) Hot rolling strip steel surface defect detection device
CN112712506A (en) Visual detection method based on image processing
CN109187169A (en) A kind of automatic checkout equipment of car blinds
TW201710671A (en) 360-degree nut side flaw detection device capable of performing detection of the nut for each side at the same time
CN208921540U (en) A kind of automatic checkout equipment of sunshade
KR100296002B1 (en) Apparatus and method for measuring powdering and plating exfoliation of plated steel plate
CN110930359A (en) Method and system for detecting automobile shifting fork
CN205909802U (en) Check out test set of spare part
CN214503321U (en) High-precision bearing roller surface defect measuring device
CN108627134A (en) Even the space of the large and small head bore axis multi-section X-direction and Y-direction of component of rod category changes averaging method
CN108692691A (en) The method for measuring connecting rod class part's machining errors
CN108663009A (en) The even parallelism error measurement method of the assigned direction relative datum element axis of component of rod category
JPH01193606A (en) Method and apparatus for detecting deficiency at joint of elastic sheet
JPH0349833A (en) Automatic positioning of electric discharging device and work accuracy measuring device
CN207741726U (en) A kind of external diameter measuring device
CN216717335U (en) Taper detection device with inner cone sealing surface
CN220625182U (en) Size detection device for precise workpiece
CN218995222U (en) Thermal imaging device applied to steel industry
CN108917542A (en) The pin member of connecting rod class part's machining errors detection
CN216523529U (en) Automatic detect utensil of examining of vehicle vent-pipe
CN217179526U (en) Detection device for cylindrical thimble hanging table
CN221859514U (en) Glass detection device
CN213689350U (en) Pipe measuring and defect detecting equipment

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210427