Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pylibdmtx/pylibdmtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def _pixel_data(image):

def decode(image, timeout=None, gap_size=None, shrink=1, shape=None,
deviation=None, threshold=None, min_edge=None, max_edge=None,
corrections=None, max_count=None):
corrections=None, fnc1=None, max_count=None):
"""Decodes datamatrix barcodes in `image`.

Args:
Expand All @@ -243,6 +243,7 @@ def decode(image, timeout=None, gap_size=None, shrink=1, shape=None,
min_edge (int):
max_edge (int):
corrections (int):
fnc1 (int): gs1 seperator
max_count (int): stop after reading this many barcodes. `None` to read
as many as possible.

Expand Down Expand Up @@ -270,7 +271,8 @@ def decode(image, timeout=None, gap_size=None, shrink=1, shape=None,
(DmtxProperty.DmtxPropSquareDevn, deviation),
(DmtxProperty.DmtxPropEdgeThresh, threshold),
(DmtxProperty.DmtxPropEdgeMin, min_edge),
(DmtxProperty.DmtxPropEdgeMax, max_edge)
(DmtxProperty.DmtxPropEdgeMax, max_edge),
(DmtxProperty.DmtxPropFnc1, fnc1)
]

# Set only those properties with a non-None value
Expand Down