The dual energy X-ray foreign object detection machine adopts dual energy detection technology, which has higher sensitivity and detection rate compared to traditional single energy detection; It can distinguish the material differences between the tested product and foreign impurities, effectively solve problems such as low-density foreign objects, complex and uneven material composition, and material stacking, achieve higher detection accuracy, and provide efficient foreign object detection solutions for bulk products such as pet food and freeze-dried snacks in the pet industry. It can be configured with type selection and mold detection functions.