added opencv example and passed to cpp with help from other example