Views
No views yet
docs layout detection
_ ____ _ _
/ \ _ __ _ _| _ \ ___ ___| | __ _ _ _ ___ _ _| |_
/ _ \ | '_ \| | | | | | |/ _ \ / __| | / _` | | | |/ _ \| | | | __|
/ ___ \| | | | |_| | |_| | (_) | (__| |__| (_| | |_| | (_) | |_| | |_
/_/ \_\_| |_|\__, |____/ \___/ \___|_____\__,_|\__, |\___/ \__,_|\__|
|___/ |___/

1{0: 'header',
2 1: 'title',
3 2: 'text',
4 3: 'table',
5 4: 'figure',
6 5: 'formula',
7 6: 'footer',
8 7: 'pagenum'}1Class Images Instances Box(P R)
2 all 5500 52274 0.921 0.897
3header 1461 2337 0.92 0.878
4 title 2308 5473 0.896 0.893
5 text 4149 34156 0.937 0.927
6 table 1476 1913 0.946 0.958
7figure 1842 3343 0.94 0.94
8formula 735 1506 0.881 0.876
9footer 745 1157 0.909 0.781
10pagenum 2164 2389 0.938 0.919
111from pathlib import Path
2from ultralytics import YOLO
3
4modelfile = Path(model_dir).joinpath('anydoclayout-yolo11s-imgsz1280.pt')
5model = YOLO(modelfile)
6res = model.predict('your img file', imgsz = 1280)
7