labeltool: implement the LabelMe region-selector tool (entry point shipped without it)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- matplotlib, python
- 领域
- cli, computer-vision
调研方向
Start by checking Dropbox version history for src/machinevisiontoolbox/bin/labeltool.py, then read pyproject.toml and the LabelMeReader implementation in Sources.py. The work is complete when the region-selector tool writes the specified LabelMe JSON, a round-trip test passes through LabelMeReader, and the labeltool console entry point is restored.
由索引模型根据 Issue 内容生成。
描述
Found 2026-10-03 while cleaning up untracked files (#45).
What happened
pyproject.toml has declared the console script labeltool = machinevisiontoolbox.bin.labeltool:main since commit 3735f968 (2026-04, "added new bagtool and ocrtool (placeholder)"), but src/machinevisiontoolbox/bin/labeltool.py was never committed. The published 2.4.0 wheel therefore installs a labeltool command that fails with ModuleNotFoundError. The linked PR removes the entry point so the next release stops shipping a broken command.
Intended tool
A simple image region selector that writes LabelMe-format JSON files (rectangles / polygons over an image, saved so LabelMeReader can read them back). The only file on disk (untracked, last saved 2026-04-03) is an old copy of imtool (view / metadata / pick points) with no labeling code, so it is not the intended tool. The original was not found in git history (all refs), stashes, or elsewhere under ~/code. Check Dropbox version history for labeltool.py — the repo lives in Dropbox and an earlier version may survive there.
Context
LabelMeReader(Sources.py) reads LabelMe JSON (added 2026-04-05, reworked 2026-04-12 to drop thelabelmepackage dependency). There is no writer.- When implemented: matplotlib
RectangleSelector/PolygonSelectorover anImage, write the LabelMe schema (version,shapes[]withlabel,points,shape_type,imagePath,imageHeight,imageWidth), round-trip test againstLabelMeReader, and then restore thelabeltoolentry in[project.scripts].
Related: #45
- 主要语言
- Python
- 星标
- 223
- 派生
- 30
- 平均合并
- 1 小时 4 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
petercorke/machinevision-toolbox-python 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 25/100
petercorke/machinevision-toolbox-python#125 ·
维护者通常 1 天内回复
-
tech-debt
难度 5/5 一周以上 新手友好度 25/100
petercorke/machinevision-toolbox-python#122 ·
维护者通常 1 天内回复
-
tech-debt
难度 5/5 一周以上 新手友好度 25/100
petercorke/machinevision-toolbox-python#119 ·
维护者通常 1 天内回复
-
tech-debt
难度 5/5 一周以上 新手友好度 45/100
petercorke/machinevision-toolbox-python#115 ·
维护者通常 1 天内回复
-
tech-debt
难度 4/5 3-5 天 新手友好度 62/100
petercorke/machinevision-toolbox-python#113 ·
维护者通常 1 天内回复
查看 petercorke/machinevision-toolbox-python 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
-
Harmony OPeNDAP SubSetter (HOSS) Geographic LARC_CLOUD PREFIRE_SAT2_AUX-SAT R01 production
难度 2/5 1-3 小时 新手友好度 68/100
nasa/harmony-autotester#245 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
Deltares/imod-python#1928 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 66/100