Starting Out In OpenCV

The sample programs that come with OpenCV help you to get a feel for the speed and power of the library. In Windows they're installed as executables and will work straight away (see below for what each one is/does), and in linux they are usually readily compiled. There is a script (build_all.sh) in case they don't work, and it's only if you're unlucky that linux will give you any trouble (missing libraries, errors, warnings, etc.)
They are located wherever OpenCV was extracted to, under /samples/c/, along with some in python (samples/python/) if you prefer van Rossum's approach. I haven't tried using OpenCV in python myself, but seeing as it's interpreted I doubt you'll have as much trouble (if any) getting them to work.

If you're using the C versions in linux, have a go at making the samples and see what happens. Simply cd to the folder and type:

      sh ./build_all.sh

If you get errors then you'll need to put in a couple of extra lines first. Remember to substitute your directory in place of /home/opencv/, just like on the installation page.

      export PKG_CONFIG_PATH="/home/opencv/lib/pkgconfig"
      export LD_LIBRARY_PATH="/home/opencv/lib"
      sh ./build_all.sh

With any luck they'll start working straight away. If they don't then I recommend you consult the wiki.

This is what they do - starred items require a camera: