Ask Your Question
0

how to use setRNG in opencv-python

asked 2017-10-14 22:38:07 -0600

AndrewHK gravatar image

Is there any function like setRNG in opencv-python?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-10-15 00:54:33 -0600

berak gravatar image

there is setRNGSeed()

and it's counterpart in python:

>>> help(cv2.setRNGSeed)
Help on built-in function setRNGSeed:

setRNGSeed(...)
    setRNGSeed(seed) -> None
    .   @brief Sets state of default random number generator.
    .
    .   The function cv::setRNGSeed sets state of default random number generator to custom value.
    .   @Param seed new state for default random number generator
    .   @sa RNG, randu, randn
edit flag offensive delete link more

Comments

What would be the same solution for opencv in python?

mcExchange gravatar imagemcExchange ( 2020-04-07 08:28:26 -0600 )edit

@mcExchange,you did not understand the answer?

berak gravatar imageberak ( 2020-04-07 08:39:42 -0600 )edit

true, answer works, my bad

mcExchange gravatar imagemcExchange ( 2020-04-07 10:49:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-10-14 22:38:07 -0600

Seen: 2,699 times

Last updated: Oct 15 '17