fix error in run_detect

video
Cole Deck 5 years ago
parent cbda6a6cab
commit 4cd3bfc514

@ -1,9 +1,7 @@
#!/usr/bin/python #!/usr/bin/python
import detect import detect
import sort
import timeit import timeit
import cv2 import cv2
import control_motor
import socket import socket
import time import time
@ -28,8 +26,8 @@ def go():
break break
if valid: if valid:
print("Found " + itema) print("Found " + itema)
selectedBin = sort.sort(itema) #selectedBin = sort.sort(itema)
control_motor.goToBin(selectedBin) #control_motor.goToBin(selectedBin)
if not video: if not video:
elapsed_time = timeit.timeit(go, number=1)/1 elapsed_time = timeit.timeit(go, number=1)/1

Loading…
Cancel
Save