Huddersfield have signed striker Daniel Carr from Dulwich Hamlet on a two-year contract for an undisclosed fee.