Menu

#79 What about a "zbar-screen" script/command?

next_release
open
nobody
5
2013-05-07
2013-05-07
Dr. Trigon
No

Hello All!

First I have to tahnks you VERY MUCH for the great software you have written. I am using it in a python wikipedia bot that runs on commons in order to recognize any barcodes visible in images there.

While working with your software from command line I missed one tool; "zbarscreen" (in analogy to "zbarcam" and "zbarimg"). And I recognized that this can be implemented straight forward and simple like:

### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
#!/bin/bash
# Read barcodes from Desktop by screenshot
# Dependencies: zbar-tools, scrot, zenity

# take screenshot
scrot ~/screenshot.png

# perform barcode recognition and output the result
zbarimg ~/screenshot.png 2>&1 | zenity --text-info --title "ZBar from screenshot" --width 600 --height 300

# clean up
rm ~/screenshot.png
### ### ### ### ### ### ### ### ### ### ### ### ### ### ###

as you can see not more than 3 commands are needed along with the 2 additional dependencies "scrot" and "zenity".

Furthermore I have written a "link.desktop" file in order to enable the tool to be present e.g. on ubuntu unity's leftbar and available from there with 1 click.

So what do you think about including this script into "zbar-tools" as well? Or at least into the wiki in order to have this documented?

Thanks and Greetings
DrTrigon

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB