Standardize default region points (#17715)
This commit is contained in:
parent
3e48829cd6
commit
1b74f142a1
3 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# Configuration for Ultralytics Solutions
|
||||
|
||||
# Object counting settings
|
||||
region: # Object counting, queue or speed estimation region points. Default region points are [(20, 400), (1080, 404), (1080, 360), (20, 360)]
|
||||
region: # Object counting, queue or speed estimation region points. Default region points are [(20, 400), (1080, 400), (1080, 360), (20, 360)]
|
||||
show_in: True # Flag to display objects moving *into* the defined region
|
||||
show_out: True # Flag to display objects moving *out of* the defined region
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue