Developing a Resource-Constraint EdgeAI model for Surface Defect Detection