Upscaling video
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Upscaling video
In this tutorial you will learn how to use the 'dnn_superres' interface to upscale video via pre-trained neural networks.
When building OpenCV, run the following command to build all the contrib module:
cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules/Or only build the dnn_superres module:
cmake -D OPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules/dnn_superresOr make sure you check the dnn_superres module in the GUI version of CMake: cmake-gui.