import cv2 as cv # 开始计时 start = cv.getTickCount() # 读入一张图片 img = cv.imread('baby.png') # 停止计时 end = cv.getTickCount() # 单位:s print((end - start) / cv.getTickFrequency(),' seconds')