Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type config = [
| `Enable
| `Add_check
| `Emit_check
| `Ascii
| `Num
| `Min_len
| `Max_len
| `Uncertainty
| `Position
| `X_density
| `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
.