mirror of
https://github.com/tcsenpai/qrare.git
synced 2025-07-29 06:01:45 +00:00
corrected lib name
This commit is contained in:
parent
3a01f5a495
commit
563033948f
@ -1,11 +1,11 @@
|
||||
import qraro
|
||||
import qrare
|
||||
|
||||
with open("pika.webp", "rb") as f:
|
||||
data = f.read()
|
||||
|
||||
qraro.bin_to_qr(data, chunk_size=1000, box_size=10, border=4)
|
||||
qrare.bin_to_qr(data, chunk_size=1000, box_size=10, border=4)
|
||||
|
||||
test_file = qraro.qr_to_bin()
|
||||
test_file = qrare.qr_to_bin()
|
||||
|
||||
with open("pika_out.webp", "wb") as f:
|
||||
f.write(test_file)
|
@ -1,9 +1,9 @@
|
||||
import qraro
|
||||
import qrare
|
||||
|
||||
# Example usage
|
||||
original_data = b"This is a binary string \x00\x01\x02 with some non-printable characters."
|
||||
qraro.bin_to_qr(original_data, chunk_size=50)
|
||||
qrare.bin_to_qr(original_data, chunk_size=50)
|
||||
|
||||
decoded_data = qraro.qr_to_bin()
|
||||
decoded_data = qrare.qr_to_bin()
|
||||
print("Decoded data:", decoded_data)
|
||||
print("Original and decoded data match:", original_data == decoded_data)
|
Loading…
x
Reference in New Issue
Block a user