Semantic-refined spatial pyramid network for crowd counting