Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometric figure annotator #56

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ae7443e
ZoneAnnotator command-line utility; add ZoneAnnotator into degirum_to…
nklimov23 Aug 30, 2024
0e3d700
fix requirements
nklimov23 Aug 30, 2024
a9595d2
mypy linting fixes
nklimov23 Aug 30, 2024
e7ccabe
fix _zone_annotator_run
nklimov23 Aug 30, 2024
4c25213
generalize zone annotator to geometric shapes
nklimov23 Sep 1, 2024
a880cfe
figure annotator unit tests
nklimov23 Sep 4, 2024
5a9676f
zone_annotator and line_annotator CLI utilities
nklimov23 Sep 4, 2024
c4de1a6
Merge branch 'main' into zone-annotator
nklimov23 Sep 5, 2024
39f630a
argparse bug fix
vlad-nn Sep 5, 2024
1229e97
fixed bug in CLI utilities for figure_annotator
nklimov23 Sep 7, 2024
7d350be
Improved FigureAnnotator GUI
nklimov23 Sep 12, 2024
d299b21
mypy linter fixes
nklimov23 Sep 12, 2024
723c19b
Merge branch 'main' into zone-annotator
nklimov23 Sep 12, 2024
d26fd49
linter fixes
nklimov23 Sep 12, 2024
0f96315
Merge branch 'zone-annotator' of https://github.com/DeGirum/degirum_t…
nklimov23 Sep 12, 2024
d5b6aca
edit
nklimov23 Sep 20, 2024
e3bc919
Merge branch 'main' into zone-annotator
nklimov23 Sep 20, 2024
fe41621
Merge branch 'main' into zone-annotator
nklimov23 Sep 24, 2024
2129575
modified GUI and bug fixes
nklimov23 Sep 26, 2024
a02a31f
Merge branch 'main' into zone-annotator
nklimov23 Sep 27, 2024
14ca74a
Improved GUI and bug fixes
nklimov23 Sep 27, 2024
82e858a
Merge branch 'main' into zone-annotator
nklimov23 Sep 27, 2024
8e36f4a
Improved GUI and bug fixes
nklimov23 Sep 30, 2024
b3c145e
logo file added to release package
nklimov23 Sep 30, 2024
80a052c
Fixing icon path and wheel setup
vlad-nn Oct 1, 2024
05cfe7d
updated icon; GUI modifications
nklimov23 Oct 2, 2024
05268df
color theme as constants
nklimov23 Oct 2, 2024
67d12cb
format
nklimov23 Oct 2, 2024
225d07b
adjust window dimensions and font size
nklimov23 Oct 2, 2024
a7f96e9
Unit tests
nklimov23 Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include requirements.txt
graft degirum_tools/assets
47 changes: 47 additions & 0 deletions degirum_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@

# flake8: noqa

import argparse

from ._version import __version__, __version_info__
from .audio_support import *
from .compound_models import *
from .classification_eval import *
from .detection_eval import *
from .environment import *
from .event_detector import *
from .figure_annotator import *
from .inference_support import *
from .line_count import *
from .math_support import *
Expand All @@ -31,3 +34,47 @@
reload_env as _reload_env,
get_test_mode as _get_test_mode,
)


def _command_entrypoint(arg_str=None):
from .figure_annotator import (
_figure_annotator_args,
_zone_annotator_args,
_line_annotator_args,
)

parser = argparse.ArgumentParser(description="DeGirum tools")

subparsers = parser.add_subparsers(
help="use -h flag to see help on subcommands", required=True
)

# figure_annotator subcommand
subparser = subparsers.add_parser(
"figure_annotator",
description="Launch interactive utility for geometric figure annotation in images",
help="launch interactive utility for geometric figure annotation in images",
)
_figure_annotator_args(subparser)

# zone_annotator subcommand
subparser = subparsers.add_parser(
"zone_annotator",
description="Launch interactive utility for 4-sided zone annotation in images",
help="launch interactive utility for 4-sided zone annotation in images",
)
_zone_annotator_args(subparser)

# line_annotator subcommand
subparser = subparsers.add_parser(
"line_annotator",
description="Launch interactive utility for line annotation in images",
help="launch interactive utility for line annotation in images",
)
_line_annotator_args(subparser)

# parse args
args = parser.parse_args(arg_str.split() if arg_str else None)

# execute subcommand
args.func(args)
Binary file added degirum_tools/assets/logo.ico
Binary file not shown.
Loading