ZBar

Documentation for ZBar.

ZBar.decodeimgMethod
decodeimg(file::AbstractString; check::Bool=false)

Decode a barcode image file using zbarimg.

source
ZBar.decodesingleMethod
decodesingle(file::AbstractString)

Decode a barcode image file using zbarimg with only one QR-Code.

source
ZBar.executeMethod
execute(cmd::Cmd)

Run a Cmd object, returning the stdout & stderr contents plus the exit code.

Ref: https://discourse.julialang.org/t/collecting-all-output-from-shell-commands/15592

zbarimg

Type

execute(`setenv(`/home/runner/.julia/artifacts/ae0ec45fea87ed0c66d1c51f18e96ffa0deedb2c/bin/zbarimg`,["DOCUMENTER_KEY=LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlHNUFJQkFBS0NBWUVBdkhpelhBa2xKRXlRV21DZnpGMVVOdkxhVHNkMkMvNlV5OVF4UFZXbXJXZm9QQkVLCmtmZmRMdHdTcS91V29ZRjJuZ2ZZdjRXSm45YjRuSzZrVkRrRjY0RDIwWURnN21TbVo2cjZUdmQwTVA4T2Q1d0IKT0Z1THhXSWQ2bVJab2JKc0tzNnowcWRBMkU2VlhSaTN0T3E2VkxoZ2xNRUtITFpCZCtnM0dnUVNNcXYrMHVLSgpRZThyYURaMnI1Qk9kYmVoMVNCdE5lSEZUckRoUzV4dllBL01CQnN0ZXRab2t0OFFkVWVnUFk1SnluRW5VdERsCk1ZLzdvVjQ2ZU5tTFVvTWx4MlR2SFNWK285VjhyTUR6ZmpOZ3BWcU1VenFnR0oyUktiNy83YjNucE1uclpYNnAKUVoydjN5bXdCM0wyUlh6aklSaE5uK2pWQ1E0S3A3TmpETXNBSlBPVEVVd3N5dnNWMkVIKzNTM0gxZmZzRXJaQQpQMG94Wnp1SC9WVE5sZ1hlUFZhRGJveUY4V05BZzFJVEw5dzNhYnNndXJKOWQzNitTNUp1VG1mazJaanpZcFdGCnJhSlpJVGpzM1lWZ0FPZlFXUTJpMTJMYXJhTlYzZFVxbllRaldvQ1M3cUYrQjlHeEdlSGp2RnNwdld3MytpZWYKZ2V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VlNDY1NoNUs3cGVLOHdLQndHcmZPaE4yNlZVZwpFLzJra2tHU2g0TjJIWjRjYzByZXFvYUhhRnA3WXNxOVBlNVJoK1VCRXZPZ3BTT2F6VnV0cWpxZHZraXhVaWVrCnJlaGVzODJIbnUxU3lmZEhKQ2lxVURoRVBSbjczamFMdVJQSmpJYTJVeGNrcmlpNG9ZYTg4TlFVWFZZa2JxcFgKRFovN2hqQ0k3TGk2RlJaRVMxWDJkdVBTVldhazR5TnBoYVl4ZHJtdS9TanFmK3RiVHVFeWxlOE5FSUQ3dm5hcwoyQUNCb1JVcEQ0ZHFpVDU4Q2V4a25nMWdZSDlNRWFSZmFpano3ME5MTDFEd2JIVkRVa1VrMWc9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=", "PATH=/home/runner/.julia/artifacts/8793267ae1f4b96f626caa27147aa0218389c30d/bin:/home/runner/.julia/artifacts/d22cde7583df1d5f71160a8e4676955a66a91f33/bin:/home/runner/.julia/artifacts/4883a6685d86b068da934537a444a6d170d71730/bin:/home/runner/.julia/artifacts/2582efc1374eed686290104aa1fd2bb6326005cf/bin:/home/runner/.julia/artifacts/ae0ec45fea87ed0c66d1c51f18e96ffa0deedb2c/bin:/opt/hostedtoolcache/julia/1.8.5/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", "DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1", "GITHUB_RUN_NUMBER=25", "GITHUB_REF_NAME=v0.1.1", "RUNNER_ARCH=X64", "PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG", "LD_LIBRARY_PATH=/opt/hostedtoolcache/julia/1.8.5/x64/bin/../lib/julia:/home/runner/.julia/artifacts/ddfc455343aff48d27c1b39d7fcb07e0d9242b50/lib:/home/runner/.julia/artifacts/8793267ae1f4b96f626caa27147aa0218389c30d/lib:/home/runner/.julia/artifacts/694cae97bb3cbf8f1f73f2ecabd891602ccf1751/lib:/home/runner/.julia/artifacts/d22cde7583df1d5f71160a8e4676955a66a91f33/lib:/home/runner/.julia/artifacts/b610fc4e040c9a46c250ea4792cc64098003578a/lib:/home/runner/.julia/artifacts/4883a6685d86b068da934537a444a6d170d71730/lib:/home/runner/.julia/artifacts/2582efc1374eed686290104aa1fd2bb6326005cf/lib:/home/runner/.julia/artifacts/e63503984ff7722ba80209eddd5621acca0d2d5e/lib:/home/runner/.julia/artifacts/ae0ec45fea87ed0c66d1c51f18e96ffa0deedb2c/lib:/opt/hostedtoolcache/julia/1.8.5/x64/bin/../lib/julia:/opt/hostedtoolcache/julia/1.8.5/x64/bin/../lib", "ACCEPT_EULA=Y", "ANT_HOME=/usr/share/ant", "RUNNER_USER=runner", "LEIN_HOME=/usr/local/lib/lein", "GITHUB_REPOSITORY_ID=591544373", "GITHUB_ACTOR=RexWzh", "GITHUB_WORKFLOW_REF=RexWzh/ZBar.jl/.github/workflows/CI.yml@refs/tags/v0.1.1", "ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653", "SYSTEMD_EXEC_PID=665", "USER=runner", "CONDA=/usr/share/miniconda", "VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg", "GITHUB_REF_PROTECTED=false", "GITHUB_SHA=0270d56f55ab3a026bdcd7db23699adba2247ae2", "JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64", "GITHUB_API_URL=https://api.github.com", "GITHUB_ACTIONS=true", "GITHUB_RUN_ATTEMPT=1", "ANDROID_SDK_ROOT=/usr/local/lib/android/sdk", "SWIFT_PATH=/usr/share/swift/usr/bin", "GOROOT_1_17_X64=/opt/hostedtoolcache/go/1.17.13/x64", "GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_e9e54b04-76f6-4fb0-8ec4-71a955e2ea42", "JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64", "GITHUB_ACTION_PATH=/home/runner/work/_actions/julia-actions/julia-docdeploy/v1", "RUNNER_PERFLOG=/home/runner/perflog", "RUNNER_NAME=GitHub Actions 2", "EDGEWEBDRIVER=/usr/local/share/edge_driver", "GITHUB_RUN_ID=4162541654", "GHCUP_INSTALL_BASE_PREFIX=/usr/local", "ImageOS=ubuntu22", "NVM_DIR=/home/runner/.nvm", "GITHUB_HEAD_REF=", "GITHUB_RETENTION_DAYS=90", "GITHUB_SERVER_URL=https://github.com", "GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_e9e54b04-76f6-4fb0-8ec4-71a955e2ea42", "GITHUB_JOB=docs", "DEBIAN_FRONTEND=noninteractive", "RUNNER_TRACKING_ID=github_055cbf2c-ebff-4332-8481-047d20640a63", "RUNNER_TOOL_CACHE=/opt/hostedtoolcache", "HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650", "AZURE_EXTENSION_DIR=/opt/az/azcliextensions", "HOMEBREW_NO_AUTO_UPDATE=1", "CHROMEWEBDRIVER=/usr/local/share/chrome_driver", "GITHUB_ACTION_REPOSITORY=", "GITHUB_WORKFLOW=CI", "GITHUB_ACTION=__julia-actions_julia-docdeploy", "HOME=/home/runner", "JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64", "GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json", "GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_e9e54b04-76f6-4fb0-8ec4-71a955e2ea42", "SGX_AESM_ADDR=1", "GITHUB_REF=refs/tags/v0.1.1", "GITHUB_REPOSITORY=RexWzh/ZBar.jl", "INVOCATION_ID=fa72ebb2fa2646298bfcbdbe4dc286e5", "ImageVersion=20230206.1", "ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653", "LANG=C.UTF-8", "GITHUB_GRAPHQL_URL=https://api.github.com/graphql", "SHLVL=1", "DOTNET_MULTILEVEL_LOOKUP=0", "XDG_RUNTIME_DIR=/run/user/1001", "RUNNER_WORKSPACE=/home/runner/work/ZBar.jl", "GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_e9e54b04-76f6-4fb0-8ec4-71a955e2ea42", "GITHUB_BASE_REF=", "_=/opt/hostedtoolcache/julia/1.8.5/x64/bin/julia", "GRADLE_HOME=/usr/share/gradle-7.6", "GITHUB_ACTION_REF=", "DEPLOYMENT_BASEPATH=/opt/runner", "PIPX_HOME=/opt/pipx", "GITHUB_REPOSITORY_OWNER_ID=62223937", "GITHUB_ACTOR_ID=62223937", "ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653", "GOROOT_1_18_X64=/opt/hostedtoolcache/go/1.18.10/x64", "PWD=/home/runner/work/ZBar.jl/ZBar.jl", "GITHUB_WORKSPACE=/home/runner/work/ZBar.jl/ZBar.jl", "GRAALVM_11_ROOT=/usr/local/graalvm/graalvm-ce-java11-22.3.1", "GITHUB_WORKFLOW_SHA=0270d56f55ab3a026bdcd7db23699adba2247ae2", "OPENBLAS_NUM_THREADS=1", "XDG_CONFIG_HOME=/home/runner/.config", "ANDROID_HOME=/usr/local/lib/android/sdk", "CHROME_BIN=/usr/bin/google-chrome", "CI=true", "POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22", "GECKOWEBDRIVER=/usr/local/share/gecko_driver", "GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_e9e54b04-76f6-4fb0-8ec4-71a955e2ea42", "RUNNER_OS=Linux", "STATS_RDCL=true", "GITHUB_TOKEN=ghs_x9Tzu6VM73WmvDB4HTmPkw4Zj2zK8J2huxEH", "GITHUB_REF_TYPE=tag", "JOURNAL_STREAM=8:17441", "LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.10.0-standalone.jar", "JULIA_LOAD_PATH=/home/runner/work/ZBar.jl/ZBar.jl/docs/Project.toml:/home/runner/.julia/environments/v1.8/Project.toml:/opt/hostedtoolcache/julia/1.8.5/x64/share/julia/stdlib/v1.8", "BOOTSTRAP_HASKELL_NONINTERACTIVE=1", "PIPX_BIN_DIR=/opt/pipx_bin", "SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar", "JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64", "GITHUB_TRIGGERING_ACTOR=RexWzh", "RUNNER_TEMP=/home/runner/work/_temp", "GITHUB_REPOSITORY_OWNER=RexWzh", "GOROOT_1_19_X64=/opt/hostedtoolcache/go/1.19.5/x64", "GITHUB_EVENT_NAME=push", "DOTNET_NOLOGO=1", "ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653", "AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache"]) [options] <image>...`)

to get the output of zbarimg.


usage: zbarimg [options] <image>...

scan and decode bar codes from one or more image files

options: -h, –help display this help text –version display version information and exit -q, –quiet minimal output, only print decoded symbol data -v, –verbose increase debug output level –verbose=N set specific debug output level –nodbus disable dbus message -d, –display enable display of following images to the screen -D, –nodisplay disable display of following images (default) –xml, –noxml enable/disable XML output format –raw output decoded symbol data without symbology prefix -S<CONFIG>[=<VALUE>], –set <CONFIG>[=<VALUE>] set decoder/scanner <CONFIG> to <VALUE> (or 1)

source