OpenCV C++ Example Error

that sample code may be terribly out of date

why don’t you try to specify the complete namespace for those calls?