Leveraging Computer Vision For Effective Crowd Management In Smart Cities