Standardize default region points (#17715)

This commit is contained in:
Junyang Kong 2024-11-22 19:17:51 +08:00 committed by GitHub
parent 3e48829cd6
commit 1b74f142a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@ class BaseSolution:
def initialize_region(self):
"""Initialize the counting region and line segment based on configuration settings."""
if self.region is None:
self.region = [(20, 400), (1080, 404), (1080, 360), (20, 360)]
self.region = [(20, 400), (1080, 400), (1080, 360), (20, 360)]
self.r_s = (
self.Polygon(self.region) if len(self.region) >= 3 else self.LineString(self.region)
) # region or line