Image2BlobParams C++ and python

You are right difference is here

p = cv.dnn.Image2BlobParams(1/128.0)
p.scalefactor
(0.0078125, 0.0, 0.0, 0.0)