From eee7c438db60496f484878342a36279be84e607f Mon Sep 17 00:00:00 2001 From: Rhys Date: Wed, 5 Feb 2025 12:52:10 -0500 Subject: [PATCH] Updated Count file --- Count.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Count.py b/Count.py index 5e27a58..a473822 100644 --- a/Count.py +++ b/Count.py @@ -15,8 +15,7 @@ ids=set() pecanCount = 0 avgPecanWeight = 0.0270453125 # lbs refThroughput = 0 # lbs / 15 seconds -avgSampleTime = 0.5 # seconds - +avgSampleTime = 0.0044 # Load the YOLO11 model and set device model = YOLO("yolo11m-pecan.pt") device = 'cuda' @@ -126,7 +125,6 @@ while True: sampleEnd = time.time() # End Sample Timer samplePeriod = sampleEnd - sampleStart - print(samplePeriod) measuredThroughput = (filtered_count * avgPecanWeight) / (samplePeriod) * 15 # lbs / 15 seconds