“…OpenCV is an open source library, composed of a series of C languages such as C++, with interfaces such as python and MATLAB, It mainly includes three aspects: image processing, computer vision and machine learning [6,7] .It contains a wealth of image processing algorithms can complete the image recognition and processing and other tasks, Due to its powerful functions, it is widely used in industrial product testing, traffic monitoring, marine traffic and other fields [8,9] .Digital image processing is a method and technology that removes noise, enhances, restores, segments, extracts features and other processing methods and techniques for images by computers [10] .The image taken by the camera this time contains a lot of noise. The key difficulty in this particle identification is to extract the contour and calculate the average area.…”