Comparing deep-learning networks for apple fruit detection to classical hard-coded algorithms