Modern Manufacturing Engineering ›› 2019, Vol. 460 ›› Issue (1): 126-131.doi: 10.16731/j.cnki.1671-3133.2019.01.024

Previous Articles     Next Articles

Inspection algorithm of bottle defects based on improved HOG characteristics

Zhao Yan1, Zhu Zemin1, Dong Rong2, Li Bo1   

  1. 1 School of Electronic Science and Engineering,Nanjing University,Nanjing 210046,China;
    2 School of Electronic Information,Nantong University,Nantong 226000,Jiangsu,China
  • Received:2017-09-06 Online:2019-01-20 Published:2019-02-15

Abstract: The traditional bottle defect inspection algorithm distinguishes and locates defects through edge detection and filtering,greatly affected by bottle illumination,and the rough burr area and defect part of the mouth are bright and difficult to distinguish in the image.As a result,the traditional algorithm requires extremely high precision for detecting thresholds.Therefore,a defect inspection algorithm is proposed based on the Histogram of Oriented Gradients (HOG) feature which has four-linear interpolation.This algorithm combines with the uniformity of the image gray value and the brightness mutation characteristic of the defect.Because of the large gray scale contrast between the defect and the background,the gradient direction histogram can be used to calculate the pixel gray value mutations of the bottle ring.During the statistical process,the gradient amplitude is amplified vertically and suppressed horizontally according to the gradient direction,forming a feature vector suitable for the inspection of bottle defects.The bottle defect detection method is combined with the Support Vector Machine (SVM) for two categories judgment.The experimental results show that the algorithm proposed has a higher accuracy compared with the traditional detection method.

Key words: defects detection, histogram of oriented gradients, linear interpolation, feature vector, support vector machine

CLC Number: 

Copyright © Modern Manufacturing Engineering, All Rights Reserved.
Tel: 010-67126028 E-mail: 2645173083@qq.com
Powered by Beijing Magtech Co. Ltd