首页 文章 精选 留言 我的

精选列表

搜索[AI意图识别],共10000篇文章
优秀的个人博客,低调大师

PP-Structure版面分析、表格识别使用指南

版面分析 版面分析指的是对图片形式的文档进行区域划分,定位其中的关键区域,如文字、标题、表格、图片等。 在上图中,最上面有图片区域,中间是标题和表格区域,下面是文字区域。 命令行使用 paddleocr --image_dir=ppstructure/docs/table/1.png --type=structure --table=false --ocr=false Python代码使用 import os import cv2 from paddleocr import PPStructure,save_structure_res if __name__ == '__main__': table_engine = PPStructure(table=False, ocr=False, show_log=True) save_folder = './output' img_path = 'ppstructure/docs/table/1.png' img = cv2.imread(img_path) result = table_engine(img) save_structure_res(result, save_folder, os.path.basename(img_path).split('.')[0]) for line in result: img = line.pop('img') print(line) while True: cv2.imshow('img', img) key = cv2.waitKey() if key & 0xFF == ord('q'): break cv2.destroyAllWindows() 运行结果 {'type': 'text', 'bbox': [11, 729, 407, 847], 'res': '', 'img_idx': 0} {'type': 'text', 'bbox': [442, 754, 837, 847], 'res': '', 'img_idx': 0} {'type': 'title', 'bbox': [443, 705, 559, 719], 'res': '', 'img_idx': 0} {'type': 'figure', 'bbox': [10, 1, 841, 294], 'res': '', 'img_idx': 0} {'type': 'figure_caption', 'bbox': [70, 317, 707, 357], 'res': '', 'img_idx': 0} {'type': 'figure_caption', 'bbox': [160, 317, 797, 335], 'res': '', 'img_idx': 0} {'type': 'table', 'bbox': [453, 359, 822, 664], 'res': '', 'img_idx': 0} {'type': 'table', 'bbox': [12, 360, 410, 716], 'res': '', 'img_idx': 0} {'type': 'table_caption', 'bbox': [494, 343, 785, 356], 'res': '', 'img_idx': 0} {'type': 'table_caption', 'bbox': [69, 318, 706, 357], 'res': '', 'img_idx': 0} 'text', 'bbox': [11, 729, 407, 847] 'text', 'bbox': [442, 754, 837, 847] 'title', 'bbox': [443, 705, 559, 719] 'figure', 'bbox': [10, 1, 841, 294] 'figure_caption', 'bbox': [70, 317, 707, 357] 'figure_caption', 'bbox': [160, 317, 797, 335] 'table', 'bbox': [453, 359, 822, 664] 'table', 'bbox': [12, 360, 410, 716] 'table_caption', 'bbox': [494, 343, 785, 356] 'table_caption', 'bbox': [69, 318, 706, 357] 从运行的结果来看,它是将原始图像拆成了图像、图像标题、表格、表格标题、文字和文字标题六个分类。 模型训练 下载PaddleDection框架代码 PaddleDetection: PaddleDetection的目的是为工业界和学术界提供丰富、易用的目标检测模型 (gitee.com) 下载,解压,进入PaddleDection主目录,安装需要的Python库 pip install -r .\requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple cocotools安装错误的话可以使用如下命令安装 git clone https://github.com/pdollar/coco.git cd coco/PythonAPI python setup.py build_ext --inplace python setup.py build_ext install

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册