Text this: Automatic optical inspection of microscale defects on curved surfaces