You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem
I am currently using layout-parser to detect the blocks of a scanned book papers and trying to take each block separately from the page and do some processing over them.
Checklist
To Reproduce
importlayoutparseraslpimportcv2image=cv2.imread("/content/image_0.jpg")
# Convert the image from BGR (cv2 default loading style) to RGBimage=image[..., ::-1]
model=lp.Detectron2LayoutModel((lp://PrimaLayout/mask_rcnn_R_50_FPN_3x/config),
extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8],
label_map={1:"TextRegion", 2:"ImageRegion", 3:"TableRegion", 4:"MathsRegion", 5:"SeparatorRegion", 6:"OtherRegion"})
# Detect the layout of the input imagelayout=model.detect(image)
# Show the detected layout of the input imagelp.draw_box(image, layout, box_width=3)
The problem
I am currently using layout-parser to detect the blocks of a scanned book papers and trying to take each block separately from the page and do some processing over them.
Checklist
To Reproduce
Environment
Screenshots
1- Overlapping
2- Missing
I know it may not the right place to release that issue, but I think you may have an idea about that problem
The text was updated successfully, but these errors were encountered: