Based on the research of the crack image of surface defect on cam shafts of small diesel engines, and reviewing problems in application of CCD image sensor, the author achieves the image data collecting storage and displaying in the way of digital image processing. The algorithm for crack automatic identification is presented by means of image subtract algorithm and threshold division algorithm. On basis of Visual C++ 6.0 developing environment, the software function of crack identification is realized in C++ and MFC with objected programming method. The characteristic analysis and judgment of crack is resolved, and it achieves the predicted goal. It is a good preparing for implementing the automatic nondestructive testing device for cam shaft.
|