Closed bmabir17 closed 3 years ago
@bmabir17 There's something wrong with your template. The returned points will be correct if you delete the part:RegionDefinition
"RegionDefinition": {
"BarcodeFormatIds": [
"BF_ALL"
],
"BarcodeFormatIds_2": [
"BF2_POSTALCODE",
"BF2_DOTCODE"
],
"Bottom": 100,
"ExpectedBarcodesCount": 0,
"FormatSpecificationNameArray": null,
"Left": 0,
"MeasuredByPercentage": 1,
"Name": "default",
"Right": 100,
"Top": 0
},
@yushulx Thank you so much. It works properly now :smile:
Hi @bmabir17, you set the scan region and the value of Top/Left/Right/Bottom is measured by percentage in the settings.json file, so the unit of the result points is also in percentage, not in pixel. If you would like to get the result points in pixel, you will need to change the value of ResultCoordinateType to "RCT_PIXEL" in the settings.json file.
@claire-chan Thank you for your solution. I think its far more accurate solution for this problem and have implemented it.
I am trying to visualize the results of the scanned bar/QR Codes with opencv. But the
localization_result.localization_points
returned is not giving the correct position of the Codes in the image. Below is the output that i am getting. The result is always found on the top right corner of the image. Can anyone please explain how the result points data can be configured properly?Below is my python visualization code
And this is the settings.json file that i am using