First time here? Check out the FAQ!
answered 2019-05-15 07:33:32 -0600
the pyimagesearch example is outdated, do not use that, but opencv's own python sample
then, it's unclear, why you need the copyMakeBorder() code, but the final input has to be a multiple of 32 for W and H