- 07 Mar 2023
- Print
- DarkLight
- PDF
SDK Annotation.Geo deprecation
- Updated On 07 Mar 2023
- Print
- DarkLight
- PDF
The annotation.geo() function for box representation will be revised to return 4 points instead of 2 points, and is due to be updated in SDK future version 1.62.0.
The results of annotation.geo() as of now: [[378.12, 178.51], [682.81, 401.78]]
The results of annotation.geo() after the revision: [[378.12, 178.51], [378.12, 401.78], [682.81, 401.78], [682.81, 178.51]]
To prevent forced update, you can switch to the new geo() function on demand by setting it up in your organization/project settings at your convenience:
Organizational settings (all projects)
Create the relevant settings as follows:
org_settings = org.settings.create(setting_name='4ptBox', setting_value=True, setting_value_type=dl.SettingsValueTypes.BOOLEAN)
To later update them, run the following script:
org.settings.update(setting_name='4ptBox', setting_value=True, setting_value_type=dl.SettingsValueTypes.BOOLEAN, setting_id='62685424a029b9cdd439c4fe')
Project settings (all projects)
Create the relevant settings as follows:
proj_settings = project.settings.create(setting_name='4ptBox', setting_value=True, setting_value_type=dl.SettingsValueTypes.BOOLEAN)
To later update them, run the following script:
project.settings.update(setting_name='4ptBox', setting_value=True, setting_id='627a2482866f3b40fdd0d241')
Notes:
If you’re using geo() function, we recommend adjusting your code in advance to the release of version 1.62.0, and setting up the new updated function in your project/organization settings, at your will.
If you’re not using the geo() function or its results directly, there will be no effect on your code.