-
Notifications
You must be signed in to change notification settings - Fork 63
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
Support Author-namedspaced Thumbnails and Revamp building_map_generator #132
Support Author-namedspaced Thumbnails and Revamp building_map_generator #132
Conversation
With argparse and pit_crew!
In order to ensure that pit_crew is accessible!
Also make it less fragile by allowing expansion of the home shortcut "~"
``` | ||
|
||
Similarly, the folder `images/white/` will have been populated when the script finishes. | ||
|
||
The contours of the models are then extracted from the green-screened images using OpenCV to generate a transparency mask, used for cropping the white-background images, so that it stays centered and is as small as possible. This can be done by calling, | ||
|
||
```bash | ||
./scripts/crop.py -m test/model_list.yaml -g images/green -w images/white -o images/cropped | ||
./scripts/crop.py test/model_list.yaml images/cropped -g images/green -w images/white |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the -o
argument is still required in the source code, were you intending to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all the renovation! The generation pipeline works really well, and the thumbnail generation is doing great too :D
Minor comment regarding the instructions of crop.py
after testing
Oh, whoops! Output dir should be optional, I'll update the readme accordingly. |
Output for doesn't look to be required in the source code eh :O Only in building_map_generator, but not copy.py? |
Yep! When you have |
Or do you mean the model.yaml? |
Clarification: I missed that in the README when I was editing it, 8dc9a5f fixes it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
👍 I can't merge it due to no write access though haha |
Unify
building_map_generator
building_map_generators
into a single one and implementsargparse
command line argument handling.gazebo
generator will callpit_crew
to obtain missing models automatically when generating .world files.Support Author-namespaced Thumbnails
output_dir
forcrop.py
has been set by default to the~/.traffic_editor/assets/thumbnails/images/cropped/
directory, for parity with the automatic clone on build oftraffic_editor
oftraffic_editor_assets
Notes
A new package dependency for
traffic_editor
has been added. Specifically forbuilding_map_tools
, in order to ensure thattraffic_editor
has access to thepit_crew
dependency.Request for test: I can't test the
traffic_editor
thumbnail generation pipeline due to having a different version of OpenCV (4.0.0), could someone test it out?