-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] scan QR code from selected region #511
Comments
Code reference: https://launchpad.net/qr-tools |
@cdluminate Your idea is good, I will achieve it. Thanks again. |
I think quirc is better. This library included to OpenCV. |
Flameshot is a screenshot tool. Adding QR grabber to it will look like making knife and flashlight in one tool. IMHO, that's not a good idea. Better to concentrate attention on actual bugs and issues. |
Ubuntu 20.04 can do this by following steps. # install zbar-tools
sudo apt install zbar-tools
# qr-scan script
cat > qr-scan
#!/bin/bash
flameshot gui -r | zbarimg - | sed "s/^QR-Code://g" | xclip -selection clipboard 2>/dev/null
Ctrl+D
# add keyboard shortcut for qr-scan script |
Definitely would love this feature as integrated option in flameshot. |
@martianzhang I had modified your suggestion to be able to analyse any still taken image (which inside xclip) for qr-code:
In my case, I do add it straight to the Klipper (KDE) as action: |
I think |
This is already possible since version 8 if I don't make mistake. You can use https://mehrad.ai/posts/20210702-extracting-payment-info-in-rasterized-invoice/ |
@mmahmoudian Ok, but I don't mean to create an own script which only use flameshot, I mean a section inside flameshot which do a predefined action based on the current made image. For example there could be a button "A" for "Actions" and if you click on it, you can choose between the scripts you entered. It's more handy in my opinion, as to have a shortcut on OS-Layer for each script, which finally use flameshot only internally. |
@xstable there have been active discussions about adding plugin support to Flameshot. If you are interested, I suggest searching them in the issues and discussions and also join our Matrix room to know the most recent discussions over there (#flameshot-org:matrix.org) Btw, you might want to take a look at https://codeberg.org/mehrad/dmenu_shot to see if you can adopt that for your workflow |
A temporary solution for anyone eager for this functionality: If you have
This copies the QR code link decoded from the capture to your clipboard. |
I'm glad to see I'm not the only one who has had this idea, I'm just sorry it took me this long to think of it. I'm also sad that no tools have implemented this yet that I have seen. |
For those on wayland, this seems to work (slight modification to @deron-dev's command):
The scanned QR output will be copied to clipboard, just like the original command. |
It would be better if flameshot can scan QR code from the selected region, and put the decoded text to clipboard.
The text was updated successfully, but these errors were encountered: