Ask Your Question

blobFromImage scale parameter

asked 2019-06-20 09:16:59 -0500

Daraen gravatar image


I would like to know what exatly does the "scale" parameter. I searched with Google before posting this, but I didn't find a great explanation.

Someone can explain me?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-06-20 09:25:22 -0500

berak gravatar image

it is a scale factor for pixel values.

e.g. some networks want their input in [0..1] range, so a factor of 1.0/255 is applied to bgr images in [0..255].

edit flag offensive delete link more


Oh yes, that's clear! Thank you!

Daraen gravatar imageDaraen ( 2019-06-20 09:42:19 -0500 )edit

Question Tools

1 follower


Asked: 2019-06-20 09:16:59 -0500

Seen: 290 times

Last updated: Jun 20 '19