mirror of
https://github.com/tcsenpai/qrare.git
synced 2025-06-10 04:57:16 +00:00
Update README.md
This commit is contained in:
parent
6cbdf9a3b2
commit
2767e14fbe
@ -6,6 +6,7 @@ This Python module provides functionality to encode arbitrary binary data into a
|
|||||||
|
|
||||||
- Python 3.x
|
- Python 3.x
|
||||||
- qrcode
|
- qrcode
|
||||||
|
- qrtools
|
||||||
- Pillow (PIL)
|
- Pillow (PIL)
|
||||||
- zxing
|
- zxing
|
||||||
|
|
||||||
@ -46,7 +47,7 @@ Returns:
|
|||||||
|
|
||||||
This function performs the following steps:
|
This function performs the following steps:
|
||||||
1. Iterates through numbered QR code images with the given prefix.
|
1. Iterates through numbered QR code images with the given prefix.
|
||||||
2. Decodes each QR code using the zxing library.
|
2. Decodes each QR code using the zxing library, falling back to qrtools if zxing cannot decode a qrcode.
|
||||||
3. Extracts chunk information and data from each decoded QR code.
|
3. Extracts chunk information and data from each decoded QR code.
|
||||||
4. Reconstructs the original hexadecimal string from the chunks.
|
4. Reconstructs the original hexadecimal string from the chunks.
|
||||||
5. Converts the hexadecimal string back to binary data.
|
5. Converts the hexadecimal string back to binary data.
|
||||||
@ -75,6 +76,7 @@ print("Original and decoded data match:", original_data == decoded_data)
|
|||||||
- The script automatically determines the appropriate QR code version based on the data size.
|
- The script automatically determines the appropriate QR code version based on the data size.
|
||||||
- Error correction level is set to LOW (L) to maximize data capacity.
|
- Error correction level is set to LOW (L) to maximize data capacity.
|
||||||
- The script handles binary data, including non-printable characters.
|
- The script handles binary data, including non-printable characters.
|
||||||
|
- THe script has a fallback method that (until now) allows for a 100% error free decoding.
|
||||||
- QR code images are saved and read from the current working directory.
|
- QR code images are saved and read from the current working directory.
|
||||||
- Ensure you have write permissions in the directory where the script is run.
|
- Ensure you have write permissions in the directory where the script is run.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user