Text this: Deep-learning based IC die identification and die surface defect inspection