realtime shape detection opecv