First version of ground detection from ground template