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

Get annotated objects in map #265

Open
HLCaptain opened this issue Apr 23, 2024 · 0 comments
Open

Get annotated objects in map #265

HLCaptain opened this issue Apr 23, 2024 · 0 comments

Comments

@HLCaptain
Copy link

HLCaptain commented Apr 23, 2024

I have a problem, where I would like to get annotated object information (like position, scale, etc.), usually used for object recognition with camera with bng.camera.get_annotations() and bng.camera.get_annotation_classes(annotations) via CameraApi.

My first idea was to filter static objects and return their respective fields, like positions, etc. which worked quite well:

static_objects = bng.scenario.find_objects_class('TSStatic') # Or use `scenario.find_static_objects()`
for obj in static_objects:
    print(obj.opts['annotation'])

The problem with this, is that I cannot get foliage and NATURE annotated objects. I did find, that the NATURE annotation applies with a material in the world editor and foliage are not static objects.

Is there a way to get all annotated objects in a map, which are shown by the object recognition camera API without taking images?

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

No branches or pull requests

1 participant