The code is a part of OpenCV and is distributed under Apache 2 license. See https://www.apache.org/licenses/LICENSE-2.0 Copyright (C) 2020 by Archit Rungta.