Skip to content

Commit

Permalink
Merge pull request #600 from marcoffee/expose-eclevel
Browse files Browse the repository at this point in the history
Expose Result::ecLevel method as python property
  • Loading branch information
axxel committed Aug 4, 2023
2 parents 6bd32f4 + 0d50939 commit 81b405b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wrappers/python/zxing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ PYBIND11_MODULE(zxingcpp, m)
.def_property_readonly("symbology_identifier", &Result::symbologyIdentifier,
":return: decoded symbology idendifier\n"
":rtype: str")
.def_property_readonly("ec_level", &Result::ecLevel,
":return: error correction level of the symbol (empty string if not applicable)\n"
":rtype: str")
.def_property_readonly("content_type", &Result::contentType,
":return: content type of symbol\n"
":rtype: zxing.ContentType")
Expand Down

0 comments on commit 81b405b

Please sign in to comment.