Automating microscopic image analysis post-photolithography with machine learning