Source: https://github.com/Dynamsoft/capture-vision-cpp-samples/tree/main/Samples/DriverLicenseScanner