---
name: Screen Unmarked Images
slug: screen-unmarked-images
category: Automation
description: "Screen Unmarked Images finds images in a folder that do not have matching .xml annotation files and moves them to a \"未标注图片\" subfolder. Use it when cleaning image datasets or filtering unannotated files."
github: "https://github.com/CoderWanFeng/python-office/tree/develop/skills/ruiming/screen_unmarked_image"
language: Python
stars: 1339
forks: 301
install: "npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/ruiming/screen_unmarked_image ~/.claude/skills/screen_unmarked_image"
installs_to: ~/.claude/skills/screen_unmarked_image
source_path: skills/ruiming/screen_unmarked_image/SKILL.md
collection_size: 50
category_size: 1523
collection_url: "https://dirskills.com/collections/CoderWanFeng/python-office"
added: 2026-08-12T04:43:10.744Z
last_synced: 2026-08-12T04:43:10.744Z
canonical_url: "https://dirskills.com/skills/screen-unmarked-images"
---

# Screen Unmarked Images

Screen Unmarked Images finds images in a folder that do not have matching .xml annotation files and moves them to a "未标注图片" subfolder. Use it when cleaning image datasets or filtering unannotated files.

**Install:**

```bash
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/ruiming/screen_unmarked_image ~/.claude/skills/screen_unmarked_image
```

## README

# screen_unmarked_image Skill

> 筛选未标注的图像

## 功能描述

在指定目录下，筛选出没有对应标注文件（如 .xml）的图片，并将其移动到 `未标注图片` 子目录中。

## 所属分类

`office/skills/ruiming/screen_unmarked_image/`

## 调用方式

```python
from skills.ruiming import screen_unmarked_image

screen_unmarked_image(dir_path='./dataset')
```

## 参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 |
|------|------|------|--------|------|
| `dir_path` | str | 是 | - | 图片及标注文件的存放路径 |
| `image_name_extension` | str | 否 | `'.jpg'` | 图片文件的后缀 |
| `marked_file_name_extension` | str | 否 | `'.xml'` | 标注文件的后缀 |

## 返回值

`None`（结果直接打印输出）

## 使用示例

```python
from skills.ruiming import screen_unmarked_image
screen_unmarked_image(dir_path='./my_dataset')
```

## 原始函数

`office.api.testApi.ruiming.screen_unmarked_image`
