modified example1.cpp to open camera instead of file