Added sample code from OpenCV's documentation to verify that everything works.