Carbides are critical to many different properties in a steel. In this paper, the quantification of a carbide powder extracted from a stainless steel analyzed with profile refinement of X-ray powder diffraction patterns, is compared to a novel technique for automated electron diffraction pattern collection with a transmission electron microscope. The automated analysis has the advantage of collecting patterns from individual particles, hence avoiding issues such as overlapping reflections in powder diffractograms. Electron diffraction patterns with satisfactory quality are selected through a deep convoluted neural network and matched to a library of pre-calculated diffraction patterns, corresponding to a set of selected carbide crystal structures. The quantitative results from the automated particle analysis are in good agreement with the phases identified by powder profile refinement.