测试文档检测速度

This commit is contained in:
2024-08-28 12:39:42 +08:00
parent d0f3f783ce
commit 155a2d3d28

10
det_test.py Normal file
View File

@@ -0,0 +1,10 @@
import time
from paddle_detection import detector
from util import image_util
if __name__ == '__main__':
image = image_util.read("paddle_detection/docs/images/000000014439.jpg")
start = time.time()
images = detector.get_book_areas(image)
print(f"耗时:{time.time() - start}")