🌏
Global Engineering Publisher
Serving Researchers Since 2012
IJERT-MRP IJERT-MRP

Face Vendor Error Detection in Bearing using Image Processing

DOI : 10.17577/IJERTV14IS120103
Download Full-Text PDF Cite this Publication

Text Only Version

 

Face Vendor Error Detection in Bearing using Image Processing

Satishkumar I.Damor

M.E. Student(Instrumentation & Control),

L. D. College of Engineering, Ahmedabad,Gujarat,India.

Lalit S.Patel

Assistant Professor Department Of Instrumentation & Control

L .D. College Of Engineering,

Ahmedabad,Gujatar,India

‌Abstract – Bearing quality plays a critical role in the performance and reliability of mechanical systems. Traditional manual inspection methods are often slow, subjective, and prone to errors, especially for small or intricate bearing surfaces. This study presents an automated bearing quality inspection system developed using Python, Tkinter, and OpenCV. The system allows users to upload bearing images through a graphical interface, and it evaluates the images using image- processing techniques, including grayscale conversion, edge detection, contour analysis, circle detection, and texture analysis. The system also checks for blurriness, brightness, and saturation to ensure valid and clear input images. Based on these analyses, the system provides immediate feedback indicating whether the bearing is acceptable or has surface defects. This approach reduces human error, speeds up inspection, and lays the foundation for future enhancements, such as integration with deep learning models for advanced defect detection. The proposed system is a practical tool for real-time industrial bearing inspection, improving reliability and efficiency in mechanical systems.

Keywords: Bearing inspection, image processing, computer vision, Tkinter GUI, edge detection, contour analysis, circular feature detection, automated quality control

  1. INTRODUCTION

    In modern industrial and manufacturing systems, the quality and reliability of mechanical components play a crucial role in operational efficiency and safety. Bearings, being one of the most critical components in machinery, are particularly susceptible to surface defects that may arise during manufacturing, handling, or usage. Early detection of such defects is essential to prevent machinery breakdowns, reduce maintenance costs, and enhance the lifespan of equipment.

    With the increasing demand for automation and precision in quality control, traditional inspection methods are becoming inadequate. Manual inspections are slow, labor-intensive, and prone to human error, especially for small, intricate, or metallic components like bearings. In contrast, image

    processing and computer vision techniques offer fast, accurate, and repeatable solutions. These methods, when combined with modern GUI-based systems, enable real-time analysis and immediate feedback, which is particularly valuable in industrial environments (Wu, G., Yan, T., Yang, G., Chai, H., & Cao, 2022).

    This study focuses on the development of an automated bearing face error detection system that integrates image processing techniques with a user-friendly interface, aiming to improve inspection accuracy, reliability, and efficiency.

    1. ‌Background

      Bearings are fundamental components in mechanical and industrial systems, ensuring smooth rotational motion, reducing friction, and supporting loads in machines. Any surface defect on bearing faces, such as scratches, dents, pitting, or uneven wear, can significantly degrade performance, lead to early failure, and increase maintenance costs. Such defects not only reduce machine efficiency but may also cause safety hazards in critical applications (Alhams, A., Abdelhadi, A., Badri, Y., Sassi, S., & Renno, 2024).

      Traditional inspection methods largely rely on human visual assessment, which is often slow, subjective, and error-prone, particularly when dealing with miniature bearings or complex geometries. Moreover, manual inspection may fail to detect subtle defects, which could escalate into serious failures over time.

      The advancement of image processing techniques now allows for the automation of bearing inspection. By using methods such as grayscale conversion, edge detection, contour analysis, and feature extraction, defects can be identified more reliably. Additionally, deep learning approaches including convolutional neural networks (CNNs), attention-based networks, and hybrid modelsenable detection of subtle anomalies with high accuracy. These automated techniques provide consistent, real-time quality control, reduce human

      intervention, and support predictive maintenance strategies, thereby improving overall industrial efficiency and reliability(Hakim, M., Omran, A. A. B., Ahmed, A. N., Al- Waily, M., & Abdellatif, 2023) .

    2. Problem Statement

      Despite these technological advancements, detecting face errors on bearing surfaces remains challenging. Factors such as reflective metallic surfaces, variable lighting conditions, small defect size, and limited availability of labeled datasets can compromise the accuracy of traditional and automated detection methods. These challenges make it difficult to maintain consistent and reliable quality control in industrial inspection environments (Islam, 2023).

      To address these issues, modern inspection systems integrate image enhancement, computer vision, and hybrid feature extraction techniques. Furthermore, insights from biometric face recognition methods, such as attention mechanisms and localized feature detection, can be adapted to industrial applications to improve precise localization and classification of surface defects (Alsaif, K. M., Albeshri, A. A., Khemakhem, M. A., & Eassa, 2024). This approach ensures that even minor anomalies are accurately detected, enhancing the overall reliability of bearing inspection processes.

    3. Objectives

      The primary goal of this study is to develop a robust, automated bearing quality inspection system using image processing techniques. The objectives are:

      1. Automated Inspection System:

        Design a GUI-based application that allows users to upload bearing images and automatically evaluate their quality.

      2. Real-Time Image Analysis:

        Use computer vision techniques such as grayscale conversion, edge detection, contour analysis, and circular feature detection to identify surface defects.

      3. Robustness to Image Quality:

        Ensure accurate detection by checking for blurriness, brightness, texture, and saturation.

      4. Immediate Feedback:

        Provide clear results (e.g., Bearing OK or Damage Detected) along with the uploaded image for quick decision-making.

      5. Future Scalability:

      Enable the system to integrate advanced methods or additional defect types in the future.

  2. ‌LITERATURE REVIEW

    ‌Zhang et al. (2024) applied image information fusion and a Vision Transformer transfer learning model for bearing fault diagnosis. Their method combines features from multiple imaging modalities and leverages pretrained transformer networks to capture spatial and contextual details of surface defects. This approach highlights the power of transfer learning in improving model performance even with limited labeled datasets, making it directly applicable for precise face surface error detection in bearings.

    ‌Dutta et al. (2024) introduced GearFaultNet, a deep network for early gearbox fault detection, which is conceptually related to bearing defect analysis. Their mdel extracted multi-scale features and used residual learning for improved detection performance under varying conditions. Though focused on gears, their deep learning framework demonstrates how end- to-end models can identify subtle mechanical faults from image data, suggesting that similar architectures could enhance bearing face error detection accuracy.

    ‌Garcia et al. (2025) conducted an NLP-assisted review on predictive maintenance in industrial systems, highlighting the integration of signal processing, image analysis, and hybrid modeling. They emphasized that combining image-based methods with vibration or sensor data improves system reliability. Their findings support the use of multimodal monitoring for early fault identification, showing that image processing can play a key role in comprehensive bearing inspection and maintenance systems.

    Aghdaie et al. (2023) proposed an attention-augmented neural network for face morph detection in biometric systems. Although their domain differs, the methods focus on localized attention is highly relevant for detecting minute bearing surface defects. Attention mechanisms enable the model to focus on defect-prone regions, improving precision in identifying small cracks or scratches. This concept can significantly enhance the sensitivity of image-based bearing inspection systems.

    ‌Ren et al. (2022) explored big data and deep learning integration within productservice systems to support predictive maintenance and improve product reliability. Their study highlighted how data-driven lifecycle management reduces maintenance costs and supports early defect detection. Applying this framework to bearings implies that combining

    image data with operational records can optimize defect prediction and support sustainable maintenance strategies.

  3. ‌METHODOLOGY
      1. ‌System Overview

        The proposed system is a GUI-based automated bearing quality inspection tool developed using Python, Tkinter, OpenCV, and PIL. It allows users to upload images of bearings, which are then analyzed using image-processing techniques to detect surface defects and ensure quality. The system is designed to be user-friendly, real-time, and robust against variations in image quality.

      2. ‌Image Input and Validation
        1. Image Upload:

          Users can select an image file using a file dialog interface provided by Tkinter. Supported formats include .jpg, .jpeg, .png, .bmp, and .tiff.

        2. Bearing Image Verification:

          Before analysis, the system validates whether the uploaded image is likely

          a bearing image. This is achieved using:

          • Color Analysis: Bearings are metallic and have low saturation. Images with high color saturation are rejected.
          • Brightness and Texture Checks: Grayscale conversion is performed, and mean brightness and texture variance (via Laplacian) are computed to ensure image clarity.
          • Edge and Circle Detection: Canny edge detection and Hough Circle Transform are used to confirm circular features typical of bearings. Images failing these checks are labeled Not a Bearing Image.
        3. ‌Image Processing and Defect Detection

          Once an image passes validation, the system analyzes it for surface defects:

          1. Grayscale Conversion:

            The uploaded image is converted to grayscale to simplify processing and emphasize structural details.

          2. Focus Assessment:

            The system calculates the variance of the Laplacian

            to check for image blurriness. Images with low focus if if fm < 50 are rejected with a Image Too Blurry message.

          3. Edge Detection:

            The grayscale image is blurred using a Gaussian filter to reduce noise, then processed using Canny edge detection to identify edges and contours.

          4. Contour Analysis:

            Detected edges are analyzed for contours. Contours with areas in a certain range are considered potential defect indicators. A high number of such contours triggers a Bearing NOT OK (Damage Detected) message.

          5. Circular Feature Verification:

            The system confirms that the detected features are consistent with bearing circular shapes. This ensures that the analysis focuses only on valid bearing surfaces.

          6. System Overview: The system is built around a user-friendly GUI (Tkinter) allowing users to upload bearing images.
          7. Image Input and Validation: Before core analysis, the system ensures the image is valid and depicts a bearing. This involves: a) Color Analysis (rejecting images with high saturation, as bearings are metallic and low-saturation); b) Brightness and Texture Checks (using grayscale conversion, mean brightness, and Laplacian texture variance); and

            c) Circular Feature Detection (using Canny Edge Detection and Hough Circle Transform to confirm the presence of typical circular bearing features. Images failing this are rejected as ‘Not a Bearing Image’).

            Image Processing and Defect Detection (Core Analysis):

          8. Edge Detection Method: Applies Gaussian blur for noise reduction, followed= by Canny Edge Detection to accurately map out edges.
          9. Contour Analysis For Bearings: Examines the detected edges for contours within a specifi c area range (805000 pixels). A high count of such contours is interpreted as surface defects (e.g., scratches, dents, rust), resulting in a ‘Bearing NOT OK (Damage Detected)’ classification.
          • Circular Feature Verification: Ensures that the analysis focuses solely on the detected circular bearing shapes.
          • Result Display: The final result (‘Bearing OK,’ ‘Damage Detected,’ or invalid input messages) is displayed immediately on the Tkinter GUI alongside the original image, providing real-time feedback
          Upload Bearing Image
          Verify Bearing Image

           

      3. Result Display
        • The Tkinter GUI displays the uploaded image alongside the inspection result, providing immediate visual feedback.
        • Results include:
          • Bearing OK for defect-free surfaces.
          • Damage Detected for detected surface anomalies.
          • Image Too Blurry or Not a Bearing Image for invalid inputs.
      4. ‌System Features and Advantages
    • Automated Analysis: Minimizes human error and reduces inspection time.
    • Real-Time Feedback: Users can get immediate results without manual calculations.
    • Robustness: Handles variations in brightness, blurriness, and minor texture changes.
    • Scalability: The system can be extended to integrate deep learning models for more advanced defect detection in future versions.

      Is It a Bearing

      es

      Analyze bearing

      Damage Detected?

      es

      No

      Not a Bearing image

      No

      Bearing OK

    • Classification Module: Seprates bearings into OK (Good bearings) NOT OK (Defective/Not Good Bearing)
    • Reat-Time Processing:Capable of detecting errors within seconds.Suitable for industrial assembly lines.
    • Database Management:Stores images,detected results,timestamps,and vendor details.
    • High Accuracy:Image processing provides consistent and accurate defect detection compared to manual inspection.
    • Non-Destructive Testing(NDT):Bearing is inspected without any physical contact or damage.
    • Automation Compatibility:Can be integrated with automated conveyor systems or robotic arms.
    • Documentation Suppor:Automatically generates inspection reports for quality audits.
    • Enhanced Quality Control:Ensures standardized inspection for all bearings coming from different vendors.

    Bearing NOT OK

    Figure 3.1. Workflow Diagram Of Methodology

  4. RESULTS AND

    DISCUSSION

    The experimental analysis was performed on a dataset comprising multiple bearing images representing both defect- free (Bearing OK) and damaged (Bearing NOT OK) categories. Each image was processed through a sequence of computer vision operations, including grayscale conversion, brightness and texture evaluation, edge detection, and circular feature extraction. The outcomes confirm the effectiveness of the proposed image-processing-based system in detecting vendor-induced errors and surface-level defects in metallic bearings.

    1. ‌Detection Accuracy and Visual Inspection

      The proposed algorithm efficiently identified metallic bearings based on their low color saturation (metallic property) and distinct circular geometry, detected using the Hough Circle Transform technique.Defect-free bearings exhibited smooth textures, uniform brightness, and intact circular symmetry, whereas defective bearings showed irregular surface patterns, corrosion marks, scratches, and broken edges.

      • Figure 14 depict defect-free bearings where the circular boundary is clear and the surface remains uniform.

        Fig 1. OK Bearing

        Fig.2 OK Bearing

        Fig.3 OK Bearing

        Fig 4. OK Bearing

        The system successfully classified these samples as Bearing OK.

      • These samples were classified as Bearing NOT OK.

        Fig 5. NOT OK Bearing

        Satishkumar.I.Damor

        M. E. Student(Instrumentation & Control),

        L. D. College Of Engineering, Ahmedabad,Gujarat,India.

        Gmail Id:satishdamor92@gmail.com

        Lalit.S.Patel Assistant Professor

        Department Of

        Instrumentation & Control

        L .D. College Of

        Engineering,

        Ahmedabad,Gujata

        r,India.

        Fig 8. NOT Ok Bearing

        • Figure 58 illustrate damaged bearings that display rust, cracks, and structural deformation.

        These samples were classified as Bearing NOT OK.

        These visual outcomes confirm that the system can reliably distinguish between healthy and defective bearings based on visual characteristics derived from image features.

    2. ‌Quantitative Observations

      Fig 6. NOT OK Bearing

      Fig 7. NOT OK Bearing

      A quantitative evaluation was conducted using four parameters: mean brightness, texture variance, edge density, and damage score. The extracted numerical features clearly differentiated the two bearing categories.

      • Defective Bearing.
      • Non-Defective Bearing.

      Defect-free bearings maintained moderate brightness and smoother texture variance, with fewer contour irregularities.

      Conversely, defective bearings showed a significant drop in brightness, high texture variance due to surface irregularities, and higher damage scores reflecting edge breaks or rust patches.

      These values validate the threshold-based detection logic implemented in the proposed

    3. ‌Performance Discussion

      The system performed consistently across different sample images captured under uniform lighting conditions. The classification accuracy remained high, particularly for images with minimal glare and proper focus.

      The algorithm effectively detected defects such as: Surface rust and oxidation marks

      • Fine scratches and circular edge deformation
      • Pitting and uneven metal texture
      • Defect-free bearings maintained moderate brightness and smoother texture variance, with fewer contour irregularities.

        Conversely, defective bearings showed a significant drop in brightness, high texture variance due to surface irregularities, and higher damage scores reflecting edge breaks or rust patches.

        These values validate the threshold-based detection logic implemented in the proposed system.

      • The proposed approach offers a non-invasive, cost- efficient, and real-time solution for bearing inspection
  5. CONCLUSION

    The study successfully demonstrates the development of an automated bearing face error detection system using classical image processing techniques. By integrating Python, Tkinter, Tensorflow Keras,Threading,OpenCV, and PIL, a user- friendly GUI-based tool was designed to evaluate bearing images in real-time, effectively identifying surface defects such as scratches, dents, rust, and uneven textures. The proposed system validated image inputs through checks for blurriness, brightness, saturation, and circular feature verification, ensuring only high-quality images were analyzed.

    Experimental results showed that defect-free bearings were accurately classified as Bearing OK, while bearings exhibiting surface irregularities were reliably detected as

    9

    Parameter Bearing OK Bearing NOT OK
    Mean Brightness 60235 240260
    Texture Variance <70 >120
    Edge Density 0.050.40 0.400.55
    Damage Score <11 >10

     

    ‌through an interactive GUI interface.

    ‌However, performance degradation was observed in cases where lighting variations, oil reflections, or image blurriness affected texture and edge detection accuracy. To improve robustness, future work could incorporate illumination normalization, adaptive thresholding, and automatic focus checks during image capture.

    4.4. Research Impliations

    This study demonstrates that classical computer vision techniques can effectively serve as a foundation for automated industrial quality control, even without advanced deep learning architectures.

    By enhancing preprocessing and feature extraction methods, the proposed framework can be integrated into vendor-level inspection systems for automated quality assurance.

    Such systems can minimize manual errors, accelerate defect detection, and ensure consistent product quality in bearing manufacturing and supply chains

    Bearing NOT OK. Quantitative observations, including mean brightness, texture variance, edge density, and damage scores, further confirmed the robustness of the detection methodology. The system demonstrated high consistency and accuracy under controlled lighting and proper image focus conditions, highlighting its practical applicability in industrial settings.

    While the current implementation provides a cost-effective and efficient solution for real-time bearing inspection, challenges such as lighting variations, reflections, and extreme image blurriness were identified as potential limitations. Future improvements, including adaptive thresholding, illumination normalization, and integration with advanced deep learning models, can enhance defect detction capabilities and further minimize human intervention.

    While the current implementation provides a cost-effective and efficient solution for real-time bearing inspection, challenges such as lighting variations, reflections, and extreme image blurriness were identified as potential limitations. Future improvements, including adaptive thresholding, illumination normalization, and integration with advanced deep learning models, can enhance defect detection capabilities and further minimize human intervention.

    In conclusion, the proposed image-processing-based system offers a reliable, scalable, and efficient framework for automated quality control in bearing manufacturing. It not only reduces inspection time and human errors but also provides a foundation for future enhancements toward more sophisticated and

    intelligent industrial inspection systems.

  6. ACKNOWLEDGEMENT

    I am extremely thankful to my guide,my

    friends ,faculty members,my institution for their continous support ,valuable guidance for this research.

    1. Dutta, P., Podder, K. K., Sumon, M. S. I., Chowdhury,

      M. E., Khandakar, A., Al-Emadi, N., … & Muyeen, S. M. (2024). GearFaultNet: Novel network for automatic and early detection of gearbox faults. IEEE Access, 12, 188755-188765.

    2. Garcia, J., Rios-Colque, L., Peña, A., & Rojas, L.(2025). Condition monitoring and predictive maintenance in industrial equipment: An nlp-assisted review of signal processing, hybrid

      models, and implementation challenges. Applied Sciences, 15(10), 5465.

    3. Aghdaie, P., Soleymani, S., Nasrabadi, N. M., & Dawson,

      J. (2023). Attention augmented face morph detection. IEEE Access, 11, 24281-24298.

    4. Ren, S., Zhang, Y., Sakao, T., Liu, Y., & Cai, R. (2022). An advanced operation mode with product-service system using lifecycle big data and deep learning. International Journal of Precision Engineering and Manufacturing-Green Technology, 9(1), 287-303.
    5. Zhang, Z., Li, J., Cai, C., Ren, J., & Xue, Y. (2024). Bearing Fault Diagnosis Based on Image Information Fusion and Vision Transformer Transfer Learning Model. Applied Sciences, 14(7), 2706. https:// doi.org/10.3390/app14072706
  7. REFERENCES
  8. Hakim, M., Omran, A. A. B., Ahmed, A. N., Al-Waily, M., & Abdellatif,

    A. (2023). A systematic review of rolling bearing fault diagnoses based on

    deep learning and transfer learning: Taxonomy, overview, application, open challenges, weaknesses and recommendations. Ain Shams Engineering

    Journal, 14(4), 101945.

  9. Wu, G., Yan, T., Yang, G., Chai, H., & Cao, C. (2022). A Review on Rolling Bearing Fault Signal Detection Methods Based on Different Sensors.

    Sensors, 22(21), 8330. https://doi.org/10.3390/s22218330

  10. Alhams, A., Abdelhadi, A., Badri, Y., Sassi, S., & Renno, J. (2024). Enhanced bearing fault diagnosis through trees ensemble method and feature

importance analysis. Journal of Vibration Engineering & Technologies, 12(Suppl 1), 109-125.

[4 ]Islam, M. T. (2023). A Quantitative Assessment Of Secure Neural Network Architectures For Fault Detection In Industrial Control Systems. Review of Applied Science and Technology, 2(04), 01-24.

11

[5 ]Alsaif, K. M., Albeshri, A. A., Khemakhem, M. A., & Eassa, F. E. (2024). Multimodal large language model-based fault detection and diagnosis in context of industry 4.0. Electronics, 13(24), 4912.