updated opencv interface