## zbar zbar — Detect bar codes in the video streams |

## Synopsis

    struct              GstZBar;

## Object Hierarchy

      GObject
       +----GstObject
             +----GstElement
                   +----GstBaseTransform
                         +----GstVideoFilter
                               +----GstZBar

## Properties

      "message"                  gboolean              : Read / Write
      "cache"                    gboolean              : Read / Write

## Description

Detect bar codes in the video streams and send them as element messages to the GstBus if ."message" property is `TRUE`.

The element generate messages named `"barcode"`. The structure containes these fields:

- GstClockTime `"timestamp"`: the timestamp of the buffer that triggered the message.

- gchar* `"type"`: the symbol type.

- gchar* `"symbol"`: the deteted bar code data.

- gint `"quality"`: an unscaled, relative quantity: larger values are better than smaller values.

### Example launch lines

    1
    gst-launch -m v4l2src ! ffmpegcolorspace ! zbar ! ffmpegcolorspace ! xvimagesink

This pipeline will detect barcodes and send them as messages.

    1
    gst-launch -m v4l2src ! tee name=t ! queue ! ffmpegcolorspace ! zbar ! fakesink t. ! queue ! xvimagesink

Same as above, but running the filter on a branch to keep the display in color

## Synopsis

### Element Information

plugin | zbar
author | Stefan Kost <ensonic@users.sf.net>
class | Filter/Analyzer/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw-yuv, format=(fourcc){ Y800, I420, YV12, NV12, NV21, Y41B, Y42B }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/x-raw-yuv, format=(fourcc){ Y800, I420, YV12, NV12, NV21, Y41B, Y42B }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

## Details

### struct GstZBar

    struct GstZBar;

Opaque data structure.

## Property Details

### The `"message"` property

      "message"                  gboolean              : Read / Write

Post a barcode message for each detected code.

Default value: TRUE

### The `"cache"` property

      "cache"                    gboolean              : Read / Write

Enable or disable the inter-image result cache.

Default value: FALSE