COVID-19胸部X光数据集
包含6500张胸片X光图像,具有像素级肺部分割,517例COVID-19病例,用于肺炎检测和分割研究。

基本信息
资源简介
COVID-19胸部X光数据集
【数据集背景】
本数据集源站标题为《v7labs/covid-19-xray-dataset》。源站首次发布:2020-06-17。
【数据内容】
源站原始描述:12000+ manually drawn pixel-level lung segmentations, with and without covid # COVID-19 xray dataset BROWSE & DOWNLOAD THE DATASET ON V7 DARWIN HERE or run the following command from Darwin-py to download the latest version This dataset contains 6500 images of AP/PA chest x-rays with pixel-level polygonal lung segmentations. There are 517 cases of COVID-19 amongst these. Use the command below to download only images presenting COVID-19. **WARNING:** This dataset is not intended for use in clinic…
【主题与分类】
主题标签:chest-x-ray、computer-vision、covid-19、deep-learning、medical-image-dataset、pneumonia、x-ray、x-ray-images。
【适用方向】
影像类数据可用于医学图像分析模型(检测、分割、分类)的训练与评测,也可用于标注质量与成像参数相关性的研究。
【获取与许可】
源站页面:https://github.com/v7labs/covid-19-xray-dataset
【使用注意】
· 源站最后修改于 2021-07-02,引用时请注意版本时效。
下载信息
注册下载
需要注册 Kaggle 账号并登录后下载,适合需要跟踪下载记录和使用 API 的用户。
暂未开放公开下载
无需注册即可直接获取公开样本或文档,适合快速预览和评估数据集质量。
免登录有偿下载
公开数据集受托下载与技术交付服务。
提供高速下载与技术交付服务(收技术服务费,非数据销售)
暂未开放当前数据集主要来源为 Kaggle 公开托管,完整影像包建议通过原始链接或 Kaggle API 获取。
使用方式
数据集获取
git clone https://github.com/v7labs/covid-19-xray-dataset.git
curl -L -o repo.zip https://github.com/v7labs/covid-19-xray-dataset/archive/refs/heads/master.zip
unzip repo.zip
源站 README 摘录(使用方式)
COVID-19 xray dataset
BROWSE & DOWNLOAD THE DATASET ON V7 DARWIN HERE
or run the following command from Darwin-py to download the latest version
pip install darwin-py
darwin dataset pull v7-labs/covid-19-chest-x-ray-dataset:all-images
This dataset contains 6500 images of AP/PA chest x-rays with pixel-level polygonal lung segmentations. There are 517 cases of COVID-19 amongst these.
Use the command below to download only images presenting COVID-19.
darwin dataset pull v7-labs/covid-19-chest-x-ray-dataset:covid-only
WARNING: This dataset is not intended for use in clinical diagnostics.
Each image contains:
- Two “Lung” segmentation masks (rendered as polygons, including the posterior region behind the heart).
- A tag for the type of pneumonia (viral, bacterial, fungal, healthy/none)
- If the patient has COVID-19, additional tags stating age, sex, temperature, location, intubation status, ICU admission, and patient outcome.
Lung annotations are polygons following pixel-level boundaries. These can be exported asCOCO,VOC, orDarwin JSONformats. Each annotation file contains a URL to the original full resolution image, as well as a reduced size thumbnail.

LUNG SEGMENTATION NOTES: Lung segmentations in this dataset include most of the heart, revealing lung opacities behind the heart which may be relevant for assessing the severity of viral pneumonia. Uniformly shaped lungs also de-couples the shape and content within the left lung from the size of the heart.
The lower-most part of the lungs is defined by the extent of the diaphragm, where visible. If the back of the lungs is clearly visible through the diaphragm it is also included up until the lower-most visible part of the lungs.

Lung segmentations were performed by human annotators using Auto-Annotate, adjusted, and reviewed by humans.
Other important notes:
- Image resolutions, sources, and orientations vary across the dataset, with the largest image being 5600x4700 and smallest being 156x156. You may sort images by dimensions on [Darwin](https://darwin
数据加载示例(图像类)
from PIL import Image
import glob, os
files = (glob.glob(os.path.join(path, "**", "*.png"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.jpg"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.tif"), recursive=True))
print("图像文件数:", len(files))
img = Image.open(files[0]); print("尺寸/模式:", img.size, img.mode)
# torchvision Dataset 方式:
# from torchvision import datasets
# ds = datasets.ImageFolder(path) # 要求 子目录=类别
目录组织与标注格式以源站说明和下载后实际文件为准。
数据缺失?
依托陕西、四川两大基地,我们与超过十家三甲医院建立直接合作关系,覆盖合规授权、采集治理、专业标注、数据交付的全流程,为AI医疗团队提供即拿即用的高质量临床数据。
⚡️ 需要数据支持或标注服务?立即联系我们获取专业方案。




