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

Where to add code for synthetic defects renderings #1041

Open
marian-beszedes opened this issue Jan 12, 2024 · 1 comment
Open

Where to add code for synthetic defects renderings #1041

marian-beszedes opened this issue Jan 12, 2024 · 1 comment
Labels
first answer provided question Question, not yet a bug ;)

Comments

@marian-beszedes
Copy link

Describe the issue

I want to add support for synthetic defects generation on synthetic rendered data. My defects are texture based and I know exactly where are they located on texture of 3d objetcs. I can calculate where are these defects located and if they are visible in terms of bounding boxes on rendered 2d images (using Blender python API). Now I want render these defective objects and store in coco format their bounding boxes and defect type.

Texture with synthetic defects:
Screenshot from 2024-01-09 09-27-31

Rendered image with bounding boxes for visible defects:
Screenshot from 2024-01-12 15-31-58

The question is: Where is the best place to write the code which calculates the position of defects in rendered images?

Minimal code example

No response

Files required to run the code

No response

Expected behavior

I would say that there should be DefectBoxMapRenderer.py in blenderproc/python/modules/renderer/ which could generate 2d images with colorboxes, each for one defect. This could be than processed with bproc.writer.write_coco_annotations. Am I right ?

BlenderProc version

2.5.0

@marian-beszedes marian-beszedes added the question Question, not yet a bug ;) label Jan 12, 2024
@cornerfarmer
Copy link
Member

Hey @marian-beszedes,

sorry I dont fully understand your question. Why do you need to place your code inside the blenderproc folder? You could also just place your custom renderer next to your other own code (e.g. your main.py script).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants