Documentation ¶
Index ¶
- Constants
- func ZbarFourcc(a, b, c, d byte) uint32
- type Image
- type ImageScanner
- type Symbol
- func (obj *Symbol) Create(symbol *C.zbar_symbol_t)
- func (obj *Symbol) Each(handler func(*SymbolInfo))
- func (obj *Symbol) EachData(handler func(string))
- func (obj *Symbol) GetData() string
- func (obj *Symbol) GetDataLength() int
- func (obj *Symbol) GetInfo() *SymbolInfo
- func (obj *Symbol) GetLocSize() int
- func (obj *Symbol) GetLocX(index int) int
- func (obj *Symbol) GetLocY(index int) int
- func (obj *Symbol) GetQuality() int
- func (obj *Symbol) GetType() C.zbar_symbol_type_t
- func (obj *Symbol) Next() *Symbol
- type SymbolInfo
Constants ¶
View Source
const ( ZBAR_NONE = C.ZBAR_NONE ZBAR_PARTIAL = C.ZBAR_PARTIAL ZBAR_EAN8 = C.ZBAR_EAN8 ZBAR_UPCE = C.ZBAR_UPCE ZBAR_ISBN10 = C.ZBAR_ISBN10 ZBAR_UPCA = C.ZBAR_UPCA ZBAR_EAN13 = C.ZBAR_EAN13 ZBAR_ISBN13 = C.ZBAR_ISBN13 ZBAR_I25 = C.ZBAR_I25 ZBAR_CODE39 = C.ZBAR_CODE39 ZBAR_PDF417 = C.ZBAR_PDF417 ZBAR_QRCODE = C.ZBAR_QRCODE ZBAR_CODE128 = C.ZBAR_CODE128 ZBAR_SYMBOL = C.ZBAR_SYMBOL ZBAR_ADDON2 = C.ZBAR_ADDON2 ZBAR_ADDON5 = C.ZBAR_ADDON5 ZBAR_ADDON = C.ZBAR_ADDON )
see zbar_symbol_type_t
View Source
const ( ZBAR_CFG_ENABLE = C.ZBAR_CFG_ENABLE ZBAR_CFG_ADD_CHECK = C.ZBAR_CFG_ADD_CHECK ZBAR_CFG_EMIT_CHECK = C.ZBAR_CFG_EMIT_CHECK ZBAR_CFG_ASCII = C.ZBAR_CFG_ASCII ZBAR_CFG_NUM = C.ZBAR_CFG_NUM ZBAR_CFG_MIN_LEN = C.ZBAR_CFG_MIN_LEN ZBAR_CFG_MAX_LEN = C.ZBAR_CFG_MAX_LEN ZBAR_CFG_POSITION = C.ZBAR_CFG_POSITION ZBAR_CFG_X_DENSITY = C.ZBAR_CFG_X_DENSITY ZBAR_CFG_Y_DENSITY = C.ZBAR_CFG_Y_DENSITY )
see zbar_config_t
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
* zbar.h
- zbar_image_t
type ImageScanner ¶
type ImageScanner struct {
// contains filtered or unexported fields
}
* zbar.h
- zbar_image_scanner_t
func ImageScannerCreate ¶
func ImageScannerCreate() (obj *ImageScanner)
*
- create gozbar ImageScanner
func (*ImageScanner) Create ¶
func (obj *ImageScanner) Create()
* zbar.h
- see zbar_image_scanner_create
func (*ImageScanner) ParseConfig ¶
func (obj *ImageScanner) ParseConfig(config string) bool
*copy from zlib.h
- parse configuration string using zbar_parse_config()
- and apply to image scanner using zbar_image_scanner_set_config().
- @returns 0 for success, non-0 for failure
- @see zbar_parse_config()
- @see zbar_image_scanner_set_config()
- @since 0.4
func (*ImageScanner) ScanImage ¶
func (obj *ImageScanner) ScanImage(image *C.zbar_image_t) int
*
- scan image
func (*ImageScanner) SetConfig ¶
func (obj *ImageScanner) SetConfig(symbology C.zbar_symbol_type_t, config C.zbar_config_t, value int) bool
*copy from zlib.h
- parse a configuration string of the form "[symbology.]config[=value]".
- the config must match one of the recognized names.
- the symbology, if present, must match one of the recognized names.
- if symbology is unspecified, it will be set to 0.
- if value is unspecified it will be set to 1.
- @returns 0 if the config is parsed successfully, 1 otherwise
type Symbol ¶
type Symbol struct {
// contains filtered or unexported fields
}
* zbar.h
- zbar_symbol_t
func (*Symbol) Create ¶
func (obj *Symbol) Create(symbol *C.zbar_symbol_t)
* zbar.h
- see zbar_symbol_create
func (*Symbol) Each ¶
func (obj *Symbol) Each(handler func(*SymbolInfo))
*
- foreach by current symbol
func (*Symbol) GetType ¶
func (obj *Symbol) GetType() C.zbar_symbol_type_t
*
- see zbar_symbol_get_loc_type
Click to show internal directories.
Click to hide internal directories.