测试文档检测速度
This commit is contained in:
10
det_test.py
Normal file
10
det_test.py
Normal 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}")
|
||||||
Reference in New Issue
Block a user