The O'Reilly book is very good to get a grasp of OpenCV but it is a bit outdated as it doesn't include the C++ API. You can still run through the examples but you might have to use Google a lot since a lot of function signatures have changed since the book was written. However the book is worth reading since it also introduces and explains a lot of computer vision concepts, as well as providing practical examples on how to use them.