Convert points to float in import (#1898)

* Convert points to float in import

* update changelog
main
zhiltsov-max 6 years ago committed by GitHub
parent 81b5a554fc
commit cf26ef0363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Cursor position is reset after changing a text field (<https://github.com/opencv/cvat/pull/1874>)
- Hidden points and cuboids can be selected to be groupped (<https://github.com/opencv/cvat/pull/1874>)
- `outside` annotations should not be in exported images (<https://github.com/opencv/cvat/issues/1620>)
- `CVAT for video format` import error with interpolation (<https://github.com/opencv/cvat/issues/1893>)
### Security
-

@ -350,6 +350,7 @@ class TaskData:
_shape['attributes'] = [self._import_attribute(label_id, attrib)
for attrib in _shape['attributes']
if self._get_attribute_id(label_id, attrib.name)]
_shape['points'] = list(map(float, _shape['points']))
return _shape
def _import_track(self, track):
@ -368,6 +369,7 @@ class TaskData:
shape['attributes'] = [self._import_attribute(label_id, attrib)
for attrib in shape['attributes']
if self._get_mutable_attribute_id(label_id, attrib.name)]
shape['points'] = list(map(float, shape['points']))
return _track

Loading…
Cancel
Save