package zbar

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

Type of an image scanner (zbar_image_scanner_t *).

type config = [
  1. | `Enable
  2. | `Add_check
  3. | `Emit_check
  4. | `Ascii
  5. | `Num
  6. | `Min_len
  7. | `Max_len
  8. | `Uncertainty
  9. | `Position
  10. | `X_density
  11. | `Y_density
]

Type of the argument for the function set_config.

val create : unit -> t
val destroy : t -> unit
val set_config : t -> Symbol.symbology -> config -> int -> unit

Wrapper to zbar_image_scanner_set_config. Please consult ZBar documentation.

val enable_cache : t -> bool -> unit

enable_cache s b enables caching in s according to the value of b. When caching is enabled, more computing power is used, but the same symbols observed in subsequent frames are only returned once by scan_image.

val scan_image : t -> Image.t -> Symbol.t list

scan_image s i is the list of symbols found in i.

OCaml

Innovation. Community. Security.