The study describes the automatic algorithm for image analysis based on software Cellprofiler. For the main example of the principal implementation of the analysis process agar culture swabs of Staphylococcus aureus were taken. The proposed algorithms of recognition of microbial elements were verified and showed a significantly higher efficiency compared to the visual method of counting by the laboratory specialist