tancik / StegaStamp

Invisible Hyperlinks in Physical Photographs
http://www.matthewtancik.com/stegastamp
MIT License
675 stars 191 forks source link

BCH initialization error #64

Closed ruirui937 closed 1 month ago

ruirui937 commented 1 month ago

Thank you to the author for introducing us to this remarkable research. I would like to understand the basis for the settings ‘BCH_POLYNOMIAL = 137’ and ‘BCH_BITS = 5’. However, when I execute 'bch = bchlib. BCH(BCH_POLYNOMIAL, BCH_BITS)' under the settings, I encounter the following error: 'RuntimeError: unable to initialize bch, invalid parameters?'. Could advice be provided on how to resolve this issue?