Updated Count file

This commit is contained in:
Rhys 2025-02-05 12:52:10 -05:00
parent 2a8d2afd5a
commit eee7c438db
1 changed files with 1 additions and 3 deletions

View File

@ -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