how to print the number of detections in the polygon sv.PolygonZone #364
-
Hi everyone, I would like to print on the terminal the number of detections that I see on the screen automatically (number of objects in the polygon). Using the sv.LineZone object I simply did print("object name" .in_count). Does anyone know what the corresponding attribute is for the sv.PolygonZone class? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Without doing it on purpose I just found what I was looking for: "object name" .current_count |
Beta Was this translation helpful? Give feedback.
Without doing it on purpose I just found what I was looking for: "object name" .current_count
I apologize for the inconvenience and I'll leave the discussion with the answer in case it helps someone else as careless as me... thanks anyway!