Updated Count file
This commit is contained in:
parent
2a8d2afd5a
commit
eee7c438db
4
Count.py
4
Count.py
|
@ -15,8 +15,7 @@ ids=set()
|
||||||
pecanCount = 0
|
pecanCount = 0
|
||||||
avgPecanWeight = 0.0270453125 # lbs
|
avgPecanWeight = 0.0270453125 # lbs
|
||||||
refThroughput = 0 # lbs / 15 seconds
|
refThroughput = 0 # lbs / 15 seconds
|
||||||
avgSampleTime = 0.5 # seconds
|
avgSampleTime = 0.0044
|
||||||
|
|
||||||
# Load the YOLO11 model and set device
|
# Load the YOLO11 model and set device
|
||||||
model = YOLO("yolo11m-pecan.pt")
|
model = YOLO("yolo11m-pecan.pt")
|
||||||
device = 'cuda'
|
device = 'cuda'
|
||||||
|
@ -126,7 +125,6 @@ while True:
|
||||||
sampleEnd = time.time() # End Sample Timer
|
sampleEnd = time.time() # End Sample Timer
|
||||||
|
|
||||||
samplePeriod = sampleEnd - sampleStart
|
samplePeriod = sampleEnd - sampleStart
|
||||||
print(samplePeriod)
|
|
||||||
|
|
||||||
measuredThroughput = (filtered_count * avgPecanWeight) / (samplePeriod) * 15 # lbs / 15 seconds
|
measuredThroughput = (filtered_count * avgPecanWeight) / (samplePeriod) * 15 # lbs / 15 seconds
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue