updated new opencv codes