Enhancing Casting Quality with CNN-Based Defect Detection Systems