Almost all modern cameras and even phones have a magical HDR mode, and it produces a truly miraculous result—photos don't contain under- or overexposed areas. HDR (High Dynamic Range), and you can reproduce such a result in OpenCV! This recipe tells you about HDR imaging functions and how to use them properly.
Constructing an HDR image
Getting ready
Before you proceed with this recipe, you need to install the OpenCV version 3.3 (or greater) Python API package.
How to do it
You need to complete the following steps:
- Import the necessary modules:
import cv2...