supervisely 6.73.237__py3-none-any.whl → 6.73.238__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of supervisely might be problematic. Click here for more details.

@@ -876,10 +876,9 @@ class Rectangle(Geometry):
876
876
  data = deepcopy(data) # Avoid modifying the original data
877
877
  height, width = image_size[:2]
878
878
 
879
- top = data[POINTS][EXTERIOR][0][1]
880
- left = data[POINTS][EXTERIOR][0][0]
881
- bottom = data[POINTS][EXTERIOR][1][1]
882
- right = data[POINTS][EXTERIOR][1][0]
879
+ exterior = data[POINTS][EXTERIOR]
880
+ [top, bottom] = sorted([exterior[0][1], exterior[1][1]])
881
+ [left, right] = sorted([exterior[0][0], exterior[1][0]])
883
882
 
884
883
  top, left, bottom, right = cls._round_subpixel_coordinates(top, left, bottom, right)
885
884
  right = max(left, right - 1)
@@ -904,10 +903,10 @@ class Rectangle(Geometry):
904
903
  :rtype: :class:`dict`
905
904
  """
906
905
  data = deepcopy(data) # Avoid modifying the original data
907
- top = data[POINTS][EXTERIOR][0][1]
908
- left = data[POINTS][EXTERIOR][0][0]
909
- bottom = data[POINTS][EXTERIOR][1][1]
910
- right = data[POINTS][EXTERIOR][1][0]
906
+
907
+ exterior = data[POINTS][EXTERIOR]
908
+ [top, bottom] = sorted([exterior[0][1], exterior[1][1]])
909
+ [left, right] = sorted([exterior[0][0], exterior[1][0]])
911
910
 
912
911
  right = max(left, right + 1)
913
912
  bottom = max(top, bottom + 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.237
3
+ Version: 6.73.238
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -669,7 +669,7 @@ supervisely/geometry/point_location.py,sha256=vLu5pWdtAi-WVQUKgFO7skigTaR-mtWR0t
669
669
  supervisely/geometry/pointcloud.py,sha256=cc4P_UNLGx5dWah3caRJytW7_mAi8UnYsJOa20mUy8s,1472
670
670
  supervisely/geometry/polygon.py,sha256=cAgCR8ccdGtieJTnmDnupPALMEwerHIqMWx7k3OCzVQ,11594
671
671
  supervisely/geometry/polyline.py,sha256=LjjD-YGVDw1TQ84_IOHqnq43JFuSnsGdGMx404olYDs,8258
672
- supervisely/geometry/rectangle.py,sha256=Zca_ADWieRYiowj1Ztsb_XXkoIeBo82aajNj58kcHZk,33760
672
+ supervisely/geometry/rectangle.py,sha256=f-Y6AnVYbMXXaAOLREyjqVJeb-l_tevQQHy9kiMKHhI,33749
673
673
  supervisely/geometry/sliding_windows.py,sha256=VWtE3DS9AaIlS0ch0PY6wwtWU89J82icDRZ-F0LFrjM,1700
674
674
  supervisely/geometry/sliding_windows_fuzzy.py,sha256=InvJlH6MEW55DM1IdoMHP2MLFLieTDZfHrZZEINLQOc,3626
675
675
  supervisely/geometry/validation.py,sha256=G5vjtiXTCaTQvWegPIBiNw8pN_GiY86OUSRSsccdyLU,2139
@@ -997,9 +997,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
997
997
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
998
998
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
999
999
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1000
- supervisely-6.73.237.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1001
- supervisely-6.73.237.dist-info/METADATA,sha256=irWoZLS-SE5T_D_g2d6eiZcANw9CGa0r2OH7R8CvoSQ,33157
1002
- supervisely-6.73.237.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1003
- supervisely-6.73.237.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1004
- supervisely-6.73.237.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1005
- supervisely-6.73.237.dist-info/RECORD,,
1000
+ supervisely-6.73.238.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1001
+ supervisely-6.73.238.dist-info/METADATA,sha256=j1-Fhh_Bn7kB7RBO05jQFsdygCHuK041cngXQYcClig,33157
1002
+ supervisely-6.73.238.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1003
+ supervisely-6.73.238.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1004
+ supervisely-6.73.238.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1005
+ supervisely-6.73.238.dist-info/RECORD,,