Skip to content

Commit 36c1c4f

Browse files
authored
Merge pull request #5 from dynamsoft-dbr/Python-DBR7.2.2-Zoro
Python dbr7.2.2 zoro
2 parents 9c67900 + 9f3f59e commit 36c1c4f

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
@@ -155,6 +155,7 @@ pip install dbr
155155
| Bytes | ByteArray |
156156
| AccompanyingTextBytes | ByteArray |
157157
| Deformation | LONG |
158+
| DetailedResult | Dictionary<DetailedResult>|
158159
| SamplingImage | Dictionary<IMResultData> |
159160
| Clarity | LONG |
160161

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)