-
I have the REST API running as a home assistant addon, I did the registration using a fresh phone number there. I'd like to install the Signal Desktop and hook it up with this account. Is it possible? |
Beta Was this translation helpful? Give feedback.
Answered by
shalak
Nov 20, 2024
Replies: 1 comment
-
Found the answer in another chain. Steps I took:
import cv2 as cv
from pyzbar.pyzbar import decode
import argparse
# Set up argument parser
parser = argparse.ArgumentParser(description="Decode QR Code from an image file.")
parser.add_argument("path", type=str, help="Path to the QR code image file.")
args = parser.parse_args()
# Read the image
qrcode_img = args.path
img = cv.imread(qrcode_img)
if img is None:
print(f"Error: Could not read image from path '{qrcode_img}'")
exit(1)
# Decode the QR code
decoded_data = decode(img)
if not decoded_data:
print("No QR code detected in the image.")
exit(1)
# Parse and print the decoded data
url = decoded_data[0].data.decode()
print(f"URL:\n{url}")
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shalak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the answer in another chain.
Steps I took: