Fix center point computing.

The point was (longitude, latitude) instead of (latitude, longitude).
This commit is contained in:
Sergey Vartanov 2021-11-09 23:44:18 +03:00
parent 221b0bace6
commit b8a5669e80

View file

@ -141,7 +141,7 @@ class BoundaryBox:
def center(self) -> np.ndarray:
"""Return center point of boundary box."""
return np.array(
((self.left + self.right) / 2, (self.top + self.bottom) / 2)
((self.top + self.bottom) / 2, (self.left + self.right) / 2)
)
def get_format(self) -> str: