An apparatus for withdrawing a predetermined box from a flow of folded boxes traveling in a plane in a device, such as a box folding and gluing machine, which has conveyors for moving the folded boxes in the plane characterized by a detector for detecting an undesired or damaged box, a deflector mounted for reciprocal movement adjacent a discharge of the conveyor for deflecting the damaged or undesirable box out of the plane of the flow of boxes and a conveyor for conveying the deflected box away from the flow of boxes.
展开▼