下载MIDV500注释并将其转换为COCO实例分段格式

midv500的Python项目详细描述


DownloadsPyPI versionCI

下载MIDV-500数据集并将其转换为COCO实例分段格式

自动下载/解压MIDV-500MIDV-2019数据集,并将注释转换为COCO实例分段格式。在

然后,数据集可以直接用于Yolact、Detectron型模型的训练。在

MIDV-500数据集

MIDV-500由500个视频片段组成,可用于50种不同类型的身份证件,包括17张身份证、14本护照、13张驾照和6份其他不同国家的身份证件,这些证件具有基本的真实性,可以对各种证件分析问题进行广泛的研究。此外,MIDV-2019数据集包含失真和微光图像。在

teaser

你可以在报纸上找到更多细节:

MIDV-500: A Dataset for Identity Documents Analysis and Recognition on Mobile Devices in Video Stream

MIDV-2019: Challenges of the modern mobile-based document OCR

入门

安装

pip install midv500

用法

  • 导入包:
^{pr2}$
  • 下载并解压缩所需的数据集版本:
# set directory for dataset to be downloadeddataset_dir='midv500_data/'# download and unzip the base midv500 datasetdataset_name="midv500"midv500.download_dataset(dataset_dir,dataset_name)# or download and unzip the midv2019 dataset that includes low light imagesdataset_name="midv2019"midv500.download_dataset(dataset_dir,dataset_name)# or download and unzip both midv500 and midv2019 datasetsdataset_name="all"midv500.download_dataset(dataset_dir,dataset_name)
  • 将下载的数据集转换为coco格式:
# set directory for coco annotations to be savedexport_dir='midv500_data/'# set the desired name of the coco file, coco file will be exported as "filename + '_coco.json'"filename='midv500'# convert midv500 annotations to coco formatmidv500.convert_to_coco(dataset_dir,export_dir,filename)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Springs 3.0加载外部属性文件   java princiapal。getName()返回facebook的ID而不是名称   java Eclipse插件,提供了notepad++等变量的列表?   mysql导入excel文件java   java如何在Android中获取类(非活动)的上下文?   java格式化带有时区和返回日期对象的日期字符串   java如何在JSP中国际化引号   java更改JFrame class1、JFrame class2中文本化的值,。。。通过从Jframe class3中的jtable中选择一个项   Java中的复和函数   lambda在Java中有没有一种方法可以将布尔谓词应用于一组对象属性   关于调色板颜色量化算法需要帮助:java安卓   java使用iText创建10000多页PDF   java当用户(ctrl+c)从命令行终止JVM时,是否可以执行代码?   java Tomcat 8 catalina未启动   java使用build将translateable=false添加到字符串资源。Android中的gradle?   java结合了多个@SuppressWarnings注释Eclipse Indigo   java从内部列表中删除项   如何解析java。在安卓中将图像url转换为位图时lang.OutOfMemoryError异常?   javamoxy条件元素输出   java Android Studio线性布局定位不起作用?