Ask Your Question

Revision history [back]

I'm starting with just few things in your code:

  • First of all, argv is useless
  • The filename are suppose to be string, ie: "C:\opencv243..."
  • Are you not suppose to use "C:\opencv243..." instead of "C:\opencv243..." on windows?
  • I suppose the bip is coming from C:\att because \a in cout produce a bip, try C:\att...
  • I think your program stop quickly by catch(cv::Exception& e) because you cannot open the file.

Try to fix it, the rest of the code seems correct.