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

Use dropdown list instead of editbox for box classes #103

Conversation

chingyulin
Copy link
Collaborator

image

My original plan was to put this together with the PR that assigning box labels to point labels but I realise that it's a logically separated functionality, so I split it to this PR so it's easier to review component-by-component.

This PR replace the class edit box to class drop down box to force the user to have a restricted set of options when setting the box classes as well as the point classes. Because of the nature of it, the class definition in config.ini is removed. Ideally, std_object_class should be removed as well but because there is another PR addressing that, it is retained for now.

The label_definition concept is therefore shared across two modes. This also paves the way for the label definition setup idea.

Expected behaviours:

  1. When a new point cloud is loaded, the dropdown list is populated with the definition in the schema/label_definition.json file
  2. When a box is selected, the selected item in the dropdown list will change to the classname of the box
  3. When a new box is created, it will change to the std_object_class

@chingyulin chingyulin marked this pull request as ready for review September 11, 2022 09:12
@chingyulin chingyulin requested a review from ch-sa September 11, 2022 09:12
Copy link
Owner

@ch-sa ch-sa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR.

I think the class definition will change with the pending PR but I would just adapt it, if you are fine with it.

Please see the comments and consider the styling adaptions for the dropdown (not sure what is possible thereof).

labelCloud/control/pcd_manager.py Outdated Show resolved Hide resolved
labelCloud/io/pointclouds/open3d.py Show resolved Hide resolved
labelCloud/io/segmentations/numpy.py Show resolved Hide resolved
labelCloud/model/point_cloud.py Show resolved Hide resolved
labelCloud/view/gui.py Outdated Show resolved Hide resolved
@ch-sa
Copy link
Owner

ch-sa commented Sep 11, 2022

Ah, before I forget. Please squash your commits before you merge. So to make rebasing easier ;)

@chingyulin chingyulin merged commit a465e57 into feature/semantic-segmentation Sep 11, 2022
ch-sa pushed a commit that referenced this pull request Oct 15, 2022
* Use dropdown list instead of editbox for box classes

* not ignore labels/schema

* mypy and black

* change to_open3d_point_cloud, to_point_cloud to staticmethod-s

* remove print

* change stylesheet for QComboVox#current_class_dropdown
ch-sa pushed a commit that referenced this pull request Dec 4, 2022
* Use dropdown list instead of editbox for box classes

* not ignore labels/schema

* mypy and black

* change to_open3d_point_cloud, to_point_cloud to staticmethod-s

* remove print

* change stylesheet for QComboVox#current_class_dropdown
ch-sa pushed a commit that referenced this pull request Dec 4, 2022
* Use dropdown list instead of editbox for box classes

* not ignore labels/schema

* mypy and black

* change to_open3d_point_cloud, to_point_cloud to staticmethod-s

* remove print

* change stylesheet for QComboVox#current_class_dropdown
ch-sa pushed a commit that referenced this pull request Dec 4, 2022
* Use dropdown list instead of editbox for box classes

* not ignore labels/schema

* mypy and black

* change to_open3d_point_cloud, to_point_cloud to staticmethod-s

* remove print

* change stylesheet for QComboVox#current_class_dropdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants