blind-watermark
blind-watermark copied to clipboard
Code cannot run
This program will throw the following error
File "encode.py", line 39, in encode
x, y = range( height / 2 ), range(width)
TypeError: 'float' object cannot be interpreted as an integer
Then I Modify this line to
x, y = range( height / 2 ), range(width)
however, it throws a new error as follow:
File "C:\ProgramData\Anaconda3\lib\random.py", line 278, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment