Deep Learning Powered Smart Camera For Complex In-Line Inspection Challenges