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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Open ikuboo opened this issue 2 years ago • 2 comments

python version : Python 3.11.5


UnicodeDecodeError Traceback (most recent call last) Cell In[17], line 6 4 decoder = WatermarkDecoder('bytes', 32) 5 watermark = decoder.decode(bgr, 'dwtDct') ----> 6 print(watermark.decode('utf-8'))

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

image

ikuboo avatar Dec 20 '23 03:12 ikuboo

@ikuboo : Use this watermark = decoder.decode(bgr, 'dwtDctSvd')

chiragsanghvi1 avatar Dec 20 '23 07:12 chiragsanghvi1

dwtDctSvd Same problem happenned to me. "dwtDctSvd" works for me! Thanks for sharing,

d8958101 avatar Mar 06 '24 02:03 d8958101