Skip to content

Commit 9f3f59e

Browse files
committed
repair two bugs( pagenumber and detailedResult )
1 parent 866022f commit 9f3f59e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ sudo py -3 setup.py build install
202202
| Bytes | ByteArray |
203203
| AccompanyingTextBytes | ByteArray |
204204
| Deformation | LONG |
205+
| DetailedResult | Dictionary<DetailedResult>|
205206
| SamplingImage | Dictionary<IMResultData> |
206207
| Clarity | LONG |
207208

src/dbr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static PyObject * CreatePyLocalizationResult(LocalizationResult * pResult)
788788

789789
PyObject * pyPageNumber = Py_BuildValue("i", pResult->pageNumber);
790790
PyObject * pyPageNumberKey = Py_BuildValue("s", "PageNumber");
791-
PyDict_SetItem(pyResult, pyBarcodeFormatKey, pyBarcodeFormat);
791+
PyDict_SetItem(pyResult, pyPageNumberKey, pyPageNumber);
792792

793793
if(pResult->regionName != NULL)
794794
{
@@ -927,7 +927,6 @@ static PyObject * CreatePyExtendedResult(ExtendedResult * pResult)
927927
PyDict_SetItem(pyResult, pyAccompanyingTextBytesKey, pyAccompanyingTextBytes);
928928
}
929929

930-
931930
PyObject * pyDeformation = Py_BuildValue("i", pResult->deformation);
932931
PyObject * pyDeformationKey = Py_BuildValue("s", "Deformation");
933932
PyDict_SetItem(pyResult, pyDeformationKey, pyDeformation);

0 commit comments

Comments
 (0)