Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

labeltool: implement the LabelMe region-selector tool (entry point shipped without it)

Ouverte
#117 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
30/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
matplotlib, python
Domaine
cli, computer-vision

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

tech-debt

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 the labelme package dependency). There is no writer.
  • When implemented: matplotlib RectangleSelector / PolygonSelector over an Image, write the LabelMe schema (version, shapes[] with label, points, shape_type, imagePath, imageHeight, imageWidth), round-trip test against LabelMeReader, and then restore the labeltool entry in [project.scripts].

Related: #45

Langage dominant
Python
Étoiles
223
Forks
30
Merge moyen
1 h 4 min
PR mergées (30 j)
9

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de petercorke/machinevision-toolbox-python

Toutes les issues de petercorke/machinevision-toolbox-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.