blind-watermark icon indicating copy to clipboard operation
blind-watermark copied to clipboard

Code cannot run

Open Wang-Qinyu opened this issue 3 years ago • 0 comments

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

Wang-Qinyu avatar Dec 17 '20 12:12 Wang-Qinyu