I installed "zbar" program, for gentoo it is in "bircoph" overlay.
If you don't want to watch image from camera, you should uncomment "--nodisplay" parameter.
As soon as recognized text appears in console, you should press Ctrl-C, and it will be in clipboard.
I transferred the source of qrcode from phone to notebook using this method, for example.
I will change scripts to not using Google (offline). UPD: Done