Open Benjamin-Loison opened 6 months ago
Based on Xiaomi Mi A3 Android 11 following Benjamin-Loison/android/issues/25:
from pyzbar.pyzbar import decode
from PIL import Image
print(decode(Image.open('wifi_qr_code.png'))[0].data.decode('utf-8'))
WIFI:S:Livebox-XXXX;T:WPA;P:PASSWORD;H:false;;
Note that if the PASSWORD
contains :
, then it must be escaped as \:
.
Fairphone 4 LineageOS Android 14 one would be interesting.
Related to the Unix Stack Exchange question 628789.
To scan from a phone.
Please use:
https://github.com/orgs/linuxmint/discussions