1 | initial version |
I've also been facing the same issue, try doing this (it solved the issue for me):
img = np.ones((512,512,3)) #img is the background image which appears when you run the program
For getting a black background you can use the np.zeros() function
img = np.zeros((512,512,3))
And if you want any other color then try filling the matrix with your choice of numbers corresponding to RGB values of your choice as this is (512 X 512 X 3) matrix.