gd dmtx - part-cw/lambdanative GitHub Wiki
(gd->dmtx image)
Scan a gd image structure for a data matrix barcode and return it as a string. Returns the empty string if no barcode was found.
Parameter | Description |
---|---|
image | Name of gd image structure |
Example:
>
(let* ((fh (gdFileOpen "test.png" "r"))
(gd (gdImageCreateFromPng fh))
(res (gd->dmtx gd)))
(gdImageDestroy gd)
(gdFileClose fh)
res)
"this is a test"
>