Commit bda3fb49 authored by Ivan Tyagov's avatar Ivan Tyagov

Disable as calling .mean on ever growing list is a performance killer.

parent f381446b
......@@ -188,9 +188,9 @@ async def main():
now = time.time() * 1000
diff = (now-before)
processing_time_list.append(diff)
if len(processing_time_list) > 100:
# print some stats
print("Processing time: mean= %.2f ms, stdev=%.2f, countours = %d" %(statistics.mean(processing_time_list), statistics.stdev(processing_time_list), len(contours)))
#if len(processing_time_list) > 100:
# # print some stats
# print("Processing time: mean= %.2f ms, stdev=%.2f, countours = %d" %(statistics.mean(processing_time_list), statistics.stdev(processing_time_list), len(contours)))
contour_detected = False
for cnt in contours:
area = cv2.contourArea(cnt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment