You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
349 B
Python
12 lines
349 B
Python
5 years ago
|
import detect
|
||
|
import timeit
|
||
|
calibration_width = 0.75
|
||
|
image = "img7.jpg"
|
||
|
images = ("img.jpg", "img2.jpg", "img3.jpg", "img4.jpg", "img5.jpg", "img6.jpg", "img7.jpg", "img8.jpg")
|
||
|
show = False
|
||
|
def go():
|
||
|
#for file in images:
|
||
|
detect.detect(calibration_width, "img7.jpg", show)
|
||
|
|
||
|
elapsed_time = timeit.timeit(go, number=100)/100
|
||
|
print(elapsed_time)
|