diff --git a/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown b/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown index a07736f88d..80205213a2 100644 --- a/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown +++ b/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown @@ -77,7 +77,7 @@ by the @ref cv::VideoCapture::read or the overloaded \>\> operator: @code{.cpp} Mat frameReference, frameUnderTest; captRefrnc >> frameReference; -captUndTst.open(frameUnderTest); +captUndTst.read(frameUnderTest); @endcode The upper read operations will leave empty the *Mat* objects if no frame could be acquired (either cause the video stream was closed or you got to the end of the video file). We can check this with a