opencv class updating