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