implementing accumulation using opencv