One-way valve surface quality inspection system based on machine vision

Through image acquisition and analysis of the opening and closing images of the one-way valve, the center and arc segment variances are determined, and combined with the shadow area comparison, the complexity of misalignment determination and abnormal area confirmation in the one-way valve detection is solved, achieving a more accurate and accurate Comprehensive detection results.

CN117808770BActive Publication Date: 2024-10-08BRENNAN IND SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311850860.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2024-10-08
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

The existing one-way valve surface quality inspection system based on machine vision fails to comprehensively analyze the fit area between the one-way valve and the corresponding channel port, making it difficult to determine the misalignment and making it complicated to confirm the abnormal area, which affects the detection efficiency.

Method used

The opening and closing images of the single body are obtained through the image acquisition terminal. The circle center confirmation unit determines the center point of the image. The circle distance analysis unit analyzes the arc segment variance and straight line distance to generate a confirmation signal. The valve surface comparison unit performs shadow area comparison and area confirmation. , improve the accuracy and comprehensiveness of detection.

Benefits of technology

It can easily and efficiently confirm the misalignment of the one-way valve during the closing process, improve the accuracy and comprehensiveness of the detection, and improve the overall quality detection effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117808770B_ABST
    Figure CN117808770B_ABST
Patent Text Reader

Abstract

The present invention discloses a one-way valve surface quality detection system based on machine vision, which relates to the field of valve detection technology, and solves the problem of not analyzing the fitting area between the one-way valve and the corresponding channel opening to determine whether the one-way valve is misaligned. The present invention confirms the image of the single valve in different states, confirms the image center point based on the original single open image, and then confirms the junction surface between the one-way valve and the water flow channel based on the corresponding single closed image, and then generates the center point of the corresponding junction surface based on the contour of the junction area. Based on the numerical difference between the two groups of center points, it can be confirmed whether the one-way valve is misaligned during the closing process. The analysis method is relatively simple, the analysis and determination are more accurate, and the resulting analysis and determination effect is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of valve detection, and in particular to a one-way valve surface quality detection system based on machine vision. Background Art

[0002] Machine vision is a rapidly developing branch of artificial intelligence. Simply put, machine vision is to use machines to replace human eyes for measurement and judgment. The machine vision system uses machine vision products (i.e. image acquisition devices, divided into CMOS and CCD) to convert the captured target into image signals, transmit them to a dedicated image processing system, obtain the morphological information of the captured target, and convert them into digital signals based on pixel distribution, brightness, color and other information; the image system performs various operations on these signals to extract the characteristics of the target, and then controls the action of the equipment on site based on the judgment results.

[0003] The application with patent publication number CN111307820A involves the field of ceramic valve core detection technology, and discloses a method for detecting surface defects of ceramic valve cores based on machine vision, including the following steps: weighing ceramic valve cores of different specifications separately, and weighing them using an automatic weighing and classification system; classifying ceramic valve cores that are seriously less than the standard mass and ceramic valve cores that are seriously greater than the standard mass, eliminating ceramic valve cores with serious missing corners, small spots, damage and broken edges, and also eliminating ceramic valve cores with serious incomplete polishing; using a camera to shoot ceramic valve cores of standard quality, aligning the acquired images, and obtaining images with consistent posture. This method for detecting surface defects of ceramic valve cores based on machine vision can solve the impact of the scale differences of different defects on the surface of ceramic valve cores on the sensitivity of the defect detection system, and reduce the difficulty of defect detection caused by the common image grayscale unevenness in the visual processing process.

[0004] When testing the quality of a one-way valve based on machine vision, it is necessary to determine whether the surface image of the one-way valve has defects based on the surface image display of the one-way valve, so as to determine the overall quality of the one-way valve. However, the original detection method is not comprehensive. First, the fitting area between the one-way valve and the corresponding channel opening is not analyzed to determine whether the one-way valve has misalignment. Second, the method of finding and confirming the standard surface of the corresponding abnormal area is relatively complicated, which is not conducive to the detection progress of subsequent operators. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a one-way valve surface quality detection system based on machine vision, which solves the problem of not analyzing the fitting area between the one-way valve and the corresponding channel opening to determine whether the one-way valve is misaligned.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a one-way valve surface quality detection system based on machine vision, comprising:

[0007] The image acquisition end confirms the single-unit open image and the single-unit closed image of the one-way valve based on machine vision, and transmits the confirmed single-unit open image and single-unit closed image to the assessment center;

[0008] The circle center confirmation unit confirms the circle center of the single-unit opening image and the single-unit closing image, calibrates the confirmed circle center as the corresponding image position, and transmits the calibrated image to the circle distance analysis unit. The specific method is as follows:

[0009] From the determined single-unit opening image, the center point of the entire image is determined, and the determined center point is marked as the center point of the single-unit opening image;

[0010] From the confirmed single closed image, based on the circumferential direction of the single closed image, generate the edge contour circle of the single closed image, and then divide the edge contour circle into N parts to obtain arc segments, where N is a preset value, confirm the arc value between each arc segment, and calibrate it as HD i , where i represents different arc segments, and several groups of radian values ​​HD i Perform variance processing, determine a set of variance values, and confirm whether the variance values ​​meet the following conditions: variance ≥ Y1, where Y1 is a preset value. If so, a closed error signal is generated by a signal generator and displayed directly.

[0011] If the variance is not satisfied: Y1, determine the group of arc values ​​HD with the largest number of occurrences from the N arc segments. i , and mark the corresponding arc segment as the standard segment, and based on the corresponding arc of the standard segment, generate a set of external circles, the arc value of which is consistent with the arc value of the standard segment, and through the external circle, confirm the internal center, and mark the confirmed internal center in the monomer closed image;

[0012] The two sets of images after the circle center is calibrated are transmitted to the circle distance analysis unit;

[0013] The circle distance analysis unit horizontally maps the center point of the single-unit open image to the single-unit closed image, and then confirms whether the straight-line distance between the two points meets the standard based on the internal circle center confirmed in the single-unit closed image, and generates a confirmation signal based on the confirmation result. The specific method is as follows:

[0014] After the center point of the single-unit-on image is horizontally mapped, a set of mapping points is confirmed in the single-unit-off image;

[0015] Then confirm the straight-line distance between the mapping point and the inner center of the closed image of the monomer, calibrate the straight-line distance as JL, and determine whether the straight-line distance JL satisfies: JL ≥ Y2, where Y2 is a preset value. If so, generate a one-way valve misalignment signal through a signal generator;

[0016] If JL≥Y2 is not satisfied, no processing signal is generated, and the confirmed single-body closing image is transmitted to the valve surface comparison unit.

[0017] Preferably, the valve surface comparison unit compares the closed image of the monomer with a preset standard image in the database, and based on the comparison result, locks the shadow area inside the closed image of the monomer, extracts the shadow area, determines the standard area based on the shadow area, and extracts and transmits the standard area to the area confirmation unit; the specific method is:

[0018] Compare the monomer closing image with the standard image, wherein the standard image is a preset image, and the surface image of the standard one-way valve is determined and stored in advance by the operator;

[0019] Based on the specific comparison process, the areas with inconsistent comparison results in the monomer closed image are calibrated to determine the shadow area;

[0020] Four standard directions are proposed, the farthest point of the edge contour of the shadow area in the standard direction is determined, and horizontal line segments interspersed with the corresponding farthest points are constructed. Based on the constructed groups of horizontal line segments, a group of standard areas are confirmed, and the standard areas include the shadow areas. The center points of the standard areas are determined, and the vectors between the center points and the inner centers of the circles of the monomer closed images are determined. The confirmed standard areas in the circular surface are extracted, and the confirmed standard areas and vectors are transmitted to the area confirmation unit.

[0021] Preferably, the area confirmation unit confirms the inner center of the standard image, and then determines the corresponding point extending from the inner center based on the received vector, and then extracts the area to be checked of the corresponding area from the standard image based on the overall area and the corresponding point of the corresponding standard area, and transmits the confirmed standard area and the area to be checked to the external display unit.

[0022] The present invention provides a one-way valve surface quality detection system based on machine vision. Compared with the prior art, it has the following beneficial effects:

[0023] The present invention confirms the image of the single valve in different states, confirms the center point of the image based on the original single open image, and then confirms the junction surface of the one-way valve and the water flow channel based on the corresponding single closed image. Then, based on the contour of the junction area, the center point of the corresponding junction surface is generated. Based on the numerical difference between the two groups of center points, it can be confirmed whether the one-way valve is misaligned during the closing process. The analysis method is relatively simple, the analysis and judgment is more accurate, and the analysis and judgment effect is better.

[0024] Subsequently, when performing valve face comparison, it is first necessary to determine the shadow area of ​​the corresponding valve face, and then generate a rectangle based on the determined shadow area and the four surrounding directions. Based on the generated rectangle, the center point of the rectangle can be determined, and thus the vector between the center point and the corresponding dot can be determined. By using this vector determination method, it is possible to quickly determine the same area in the corresponding standard image and display it in time, which is convenient for external personnel to compare the images, thereby improving the comprehensiveness of the image comparison and improving the overall quality inspection effect of the one-way valve. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the principle framework of the present invention;

[0026] Figure 2 A schematic diagram for determining the standard area of ​​the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] Embodiment 1

[0029] See also Figure 1 , the present application provides a one-way valve surface quality detection system based on machine vision, including an image acquisition end, an assessment center, a database and a display unit, wherein the image acquisition end is electrically connected to an input node of the assessment center, wherein the database is electrically connected to an input node of the assessment center, and the assessment center is electrically connected to an input node of the display unit;

[0030] The assessment center includes a circle center confirmation unit, a circle distance analysis unit, a valve surface comparison unit, a region confirmation unit and a signal generator, wherein the circle center confirmation unit is electrically connected to an input node of the circle distance analysis unit, and the circle distance analysis unit is electrically connected to the signal generator and the input node of the valve surface comparison unit respectively, and the valve surface comparison unit is electrically connected to an input node of the region confirmation unit;

[0031] The image acquisition end confirms the single-unit open image and the single-unit closed image of the one-way valve based on machine vision, and transmits the confirmed single-unit open image and the single-unit closed image to the assessment center, wherein the single-unit open image is a complete surface image of the one-way valve in the open state, and the single-unit closed image is a complete surface image of the one-way valve in the closed state and the corresponding channel port merged state;

[0032] The circle center confirmation unit in the assessment center confirms the circle center of the single-unit opening image and the single-unit closing image, calibrates the confirmed circle center as the corresponding image position, and transmits the calibrated image to the circle distance analysis unit. The specific method of confirming the circle center is as follows:

[0033] From the determined single-body opening image, the center point of the entire image is confirmed, and the confirmed center point is calibrated as the center point of the single-body opening image. Since the entire one-way valve is a circular surface, the corresponding surface is also a circular surface. From the corresponding circular surface, the center point of the circle can be directly determined;

[0034] From the confirmed single closed image, based on the circumferential direction of the single closed image, the edge contour circle of the single closed image is generated, and then the edge contour circle is divided into N parts to obtain arc segments, where N is a preset value, and its specific value is determined by the operator based on experience. The arc value between each arc segment is confirmed and calibrated as HD i , where i represents different arc segments, and several groups of radian values ​​HD i Perform variance processing, determine a set of variance values, and confirm whether the variance values ​​meet the following conditions: variance ≥ Y1, where Y1 is a preset value, and its specific value is determined by the operator based on experience. If it meets the conditions, a closed error signal is generated by a signal generator and displayed directly. If it does not meet the conditions, perform the following steps;

[0035] Determine the set of arc values ​​HD that appear the most times from N arc segments i , and calibrate the corresponding arc segment as the standard segment. Based on the corresponding arc of the standard segment, generate a set of external circumferences, whose arc values ​​are consistent with the arc values ​​of the standard segment. Through the external circumference, confirm the internal center of the circle, and calibrate the confirmed internal center of the circle in the monomer closed image. For example, when there is uneven fitting between the corresponding monomer valve and the corresponding closed pipe or there are some problems with the partial fitting surface, the generated external circumference will be incomplete, and the arc value corresponding to the generated arc segment will have many inconsistencies. Then, the corresponding variance can be determined according to the corresponding arc value, and then according to the size of the variance value, it can be determined whether there is a corresponding problem when the monomer valve is closed;

[0036] Based on the outer circumference confirmed by the arc segment, the corresponding center of the circle can be determined. The reason for determining the centers of the two different states of the single valve is to determine their distance to determine whether the centers of the circular surfaces generated when the single valve is closed and opened are on the same vertical horizontal line. If they are, it means that there is no problem when the single valve is closed. If not, it means that the single valve is misaligned when closed, and adjustment is required.

[0037] The two sets of images after the circle center is calibrated are transmitted to the circle distance analysis unit.

[0038] The circle distance analysis unit horizontally maps the center point of the single-unit open image to the single-unit closed image, and then confirms whether the straight-line distance between the two points meets the standard based on the inner circle center confirmed in the single-unit closed image, and generates a confirmation signal based on the confirmation result. The specific method of analyzing whether the straight-line distance meets the standard is as follows:

[0039] After the center point of the single-unit-on image is horizontally mapped, a set of mapping points is confirmed in the single-unit-off image;

[0040] Then confirm the straight-line distance between the mapping point and the inner center of the monomer closing image, calibrate the straight-line distance as JL, and determine whether the straight-line distance JL satisfies: JL ≥ Y2, where Y2 is a preset value, and its specific value is determined by the operator based on experience. If it satisfies, a one-way valve misalignment signal is generated by the signal generator. If it does not satisfy, no processing signal is generated, and the confirmed monomer closing image is transmitted to the valve surface comparison unit;

[0041] Specifically, confirm the center of the one-way valve before it moves. This center is the center of the one-way valve. After the one-way valve and the corresponding channel are closed, the confirmed center is the center of the closing surface. Both centers are located on the surface of the one-way valve. If the horizontal distance between the two centers is far apart, then the one-way valve will be misaligned with the edge area of ​​the corresponding channel opening during the closing process. Some edge areas have more intersection areas, while some edge areas have fewer intersection areas. In the subsequent use process, it will affect the overall use effect of the entire one-way valve. If the misalignment is serious, it may cause leakage in some areas, resulting in poor use effect of the one-way valve.

[0042] Embodiment 2

[0043] In the specific implementation process, the main difference between this embodiment and the first embodiment is that this embodiment mainly focuses on the comparison processing of the one-way valve surface in a normal state to confirm the abnormal area on the one-way valve surface and mark it as a shadow area;

[0044] The valve surface comparison unit compares the closed image of the monomer with the preset standard image in the database, and based on the comparison result, locks the shadow area inside the closed image of the monomer, extracts the shadow area, and determines the standard area based on the shadow area, and extracts and transmits the standard area to the area confirmation unit, wherein the specific method of locking the standard area is:

[0045] Compare the monomer closing image with the standard image, wherein the standard image is a preset image, and the surface image of the standard one-way valve is determined and stored in advance by the operator;

[0046] Based on the specific comparison process, the area with inconsistent comparison results in the closed image of the monomer is calibrated to determine the shadow area. Since image comparison is a prior art, it will not be described in detail here. Therefore, the area with inconsistent comparison results can be directly determined by image comparison, and the shadow area can be directly locked;

[0047] Combination Figure 2 , propose four standard directions, determine the farthest point where the edge contour of the shadow area is located in the standard direction, and construct horizontal line segments interspersed with the corresponding farthest points. Based on the constructed groups of horizontal line segments, confirm a group of standard areas, where the standard areas include the shadow areas, and determine the center points of the standard areas, determine the vectors between the center points and the inner centers of the circles of the monomer closed images, extract the confirmed standard areas within the circular surface, and transmit the confirmed standard areas and vectors to the area confirmation unit.

[0048] The area confirmation unit confirms the inner center of the standard image, and then determines the corresponding point extending from the inner center based on the received vector, and then extracts the to-be-checked area of ​​the corresponding area from the standard image based on the overall area and the corresponding point of the corresponding standard area, and transmits the confirmed standard area and the to-be-checked area to the display unit for external operators to review and check;

[0049] Specifically, during the image comparison process, there will be areas with abnormal comparison results, such as crack areas or shadow areas, etc. In the corresponding areas, in order to ensure that the area covered is complete enough, and at the same time to be able to select the image of the same area in the standard image, it is necessary to determine the center point of the shadow area and the corresponding vector. According to the confirmed vector, the same comparison area can be selected from the standard image. Based on the corresponding comparison area, it is convenient for the operator to perform subsequent image comparison and determine the comparison result, and the comparison result is more accurate.

[0050] Embodiment 3

[0051] The specific implementation process of this embodiment includes the entire implementation process of the above two groups of embodiments.

[0052] Some of the data in the above formulas are dimensionless and numerically calculated. Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.

[0053] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. The one-way valve surface quality detection system based on machine vision is characterized by: include: The image acquisition end confirms the single-unit open image and the single-unit closed image of the one-way valve based on machine vision, and transmits the confirmed single-unit open image and single-unit closed image to the assessment center, wherein the single-unit open image is a complete surface image of the one-way valve in the open state, and the single-unit closed image is a complete surface image of the one-way valve in the closed state and the corresponding channel port merged state; The circle center confirmation unit confirms the circle center of the single-unit opening image and the single-unit closing image, calibrates the confirmed circle center as the corresponding image position, and transmits the calibrated image to the circle distance analysis unit. The specific method is as follows: From the determined single-unit opening image, the center point of the entire image is determined, and the determined center point is marked as the center point of the single-unit opening image; From the confirmed single closed image, based on the circumferential direction of the single closed image, generate the edge contour circle of the single closed image, and then divide the edge contour circle into N parts to obtain arc segments, where N is a preset value, confirm the arc value between each arc segment, and calibrate it as HD i , where i represents different arc segments, and several groups of radian values ​​HD i Perform variance processing, determine a set of variance values, and confirm whether the variance values ​​satisfy: variance ≥ Y1, where Y1 is the preset value: If it is satisfied, a closed error signal is generated through the signal generator and displayed directly; If not satisfied, determine the set of arc values ​​HD that appear the most times from the N arc segments i , and mark the corresponding arc segment as the standard segment, and based on the corresponding arc of the standard segment, generate a set of external circles, the arc value of which is consistent with the arc value of the standard segment, and through the external circle, confirm the internal center, and mark the confirmed internal center in the monomer closed image; The two sets of images after the circle center is calibrated are transmitted to the circle distance analysis unit; The circle distance analysis unit horizontally maps the center point of the single-unit open image to the single-unit closed image, and then confirms whether the straight-line distance between the two points meets the standard based on the internal circle center confirmed in the single-unit closed image, and generates a confirmation signal based on the confirmation result; the specific method is as follows: After the center point of the single-unit-on image is horizontally mapped, a set of mapping points is confirmed in the single-unit-off image; Then confirm the straight-line distance between the mapping point and the inner center of the closed image of the monomer, calibrate the straight-line distance as JL, and determine whether the straight-line distance JL satisfies: JL ≥ Y2, where Y2 is a preset value. If so, generate a one-way valve misalignment signal through a signal generator; If JL≥Y2 is not satisfied, no processing signal is generated, and the confirmed single-body closing image is transmitted to the valve surface comparison unit.

2. The one-way valve surface quality detection system based on machine vision according to claim 1 is characterized in that: The valve surface comparison unit compares the single-body closing image with the standard image preset in the database, and based on the comparison result, locks the shadow area inside the single-body closing image, extracts the shadow area, determines the standard area based on the shadow area, and extracts the standard area and transmits it to the area confirmation unit.

3. The one-way valve surface quality detection system based on machine vision according to claim 2 is characterized in that: The valve surface comparison unit determines the standard area in the following specific manner: Compare the monomer closing image with the standard image, wherein the standard image is a preset image, and the surface image of the standard one-way valve is determined and stored in advance by the operator; Based on the specific comparison process, the areas with inconsistent comparison results in the monomer closed image are calibrated to determine the shadow area; Four standard directions are proposed, the farthest point of the edge contour of the shadow area in the standard direction is determined, and horizontal line segments interspersed with the corresponding farthest points are constructed. Based on the constructed groups of horizontal line segments, a group of standard areas are confirmed, and the standard areas include the shadow areas. The center points of the standard areas are determined, and the vectors between the center points and the inner centers of the circles of the monomer closed images are determined. The confirmed standard areas in the circular surface are extracted, and the confirmed standard areas and vectors are transmitted to the area confirmation unit.

4. The one-way valve surface quality detection system based on machine vision according to claim 3 is characterized in that: The area confirmation unit confirms the inner center of the standard image, and then determines the corresponding point extending from the inner center based on the received vector, and then extracts the area to be checked of the corresponding area from the standard image based on the overall area and the corresponding point of the corresponding standard area, and transmits the confirmed standard area and the area to be checked to the external display unit.