switch opencv c interfact