Purpose This study aims to offer an image-based robust edge detection system that can estimate, identify, locate and label surface flaws during manufacturing for real-time surface issue diagnostics. Of great concern, this methodology extrapolates surface defect information from scanning electron microscopy (SEM) images of composite fracture surfaces. This study predicts changes in topological intensity of composite fracture surfaces and display them as real-time surface intensity values for the first time. Design/methodology/approach This work, however, introduces a novel robust edge detection method – based image processing – as it is shown to be effective in locating defects, as measured by SEM images of composite fracture surfaces created using additive manufacturing (AM). SEM images, obtained in this study, are related to previous study considering the fracture surfaces of reinforced thermoset composites created via the AM method. These SEM images are of two types: fracture surface of AM of carbon fiber reinforced thermoset composites and fracture surface of AM of syntactic foam reinforced thermoset composites. Initially, MATLAB environment is used for analyzing the SEM images; the technique used, as well as the validity are explained more in the methodology section. Findings The robust surface defect inspection approach used herein is found to be capable of predicting, identifying, localizing and labeling surface defects during production, allowing for real-time surface issue diagnosis. Further, this work makes it possible to use image processing and analysis of these surfaces to anticipate fluctuations in the topological intensity of the fracture surfaces of composites and represent them as values of surface intensity in real time. Originality/value Rising worldwide company rivalry requires a fast, accurate component failure diagnostic method. To create an efficient feature set, a surface defect inspection system must identify product flaws in real time. Thus, this study proposed an image-based robust edge detection system – based on MATLAB environment – that is capable of estimating, identifying, locating and labeling surface faults during production. This paves the way for an extensive set of high-quality tools for dealing with a wide range of problems associated with digital image processing in composites. As a result, the ability to define methodologies and rapidly prototype prospective solutions typically minimizes the cost and time required to implement a successful system during the design phase of an image processing system.