CNC oscillating knife cutting machine with spindle and CCD camera