
A Unified Toolkit for Deep Learning Based Document Image Analysis
Repo Layout-Parser/layout-parser, read from GitHub 12 h ago. Layout-Parser has not joined Take My Repo.
Full Changelog: v0.3.3...v0.3.4
inplace to True in sorting function by @yusanshi in #104Full Changelog: v0.3.2...v0.3.3
We are excited to release LayoutParser v0.3.0, with a lot of exciting updates and functional improvements.
layoutparser library, and makes it easier for implementing customized layout models in the future. #54 #67AutoModel and improved model configuration parsing makes it easier load and use the layout detection models. #69
model = lp.AutoLayoutModel("lp://efficientdet/PubLayNet").layoutparser and the needed dependencies (see instructions). #65 #68layoutparser supports directly loading PDF files into as layout objects: #71
import layoutparser as lp pdf_layout, pdf_images = lp.load_pdf("path/to/pdf", load_images=True) lp.draw_box(pdf_images[0], pdf_layout[0])
import layout parser as lp page_layout = lp.load_pdf("tests/fixtures/io/example.pdf")[0] pdf_lines = lp.simple_line_detection(page_layout)
json and csv , see #6union and intersect operations, see #20 and the detailed explanationWhen loading Layout Parser official models, Detectron2LayoutModel can automatically detect the label_map, . For example,
model = lp.Detectron2LayoutModel("lp://HJDataset/faster_rcnn_R_50_FPN_3x/config") model.label_map # {1: 'Page Frame', ... }
Detectron2LayoutModel now supports the enforce_cpu flag that enforces using cpu even when CUDA devices are available.
For visualization.draw_box, it now supports a show_element_type flag that shows the bbox category name on the top left corner of the layout objects.