How can I build a binary image with random sequence of 80% 1s and 20% 0s? : <p>I want to implement an algorithm for generating a binary image having random sequence of 80% 1s and 20% 0s in it with python-opencv.</p>
