-
Notifications
You must be signed in to change notification settings - Fork 438
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
Camera to ignore world & extracting image pixel coordinates. #1036
Comments
Hey @Varatharajan-Raja, regarding 1: You can use regarding 2: I have added a few more helper functions in #1045. The function |
Thank you @cornerfarmer . I added "no_background" : True in the function which checks for obstacle as suggested. 1st of all I see that the function only takes "no_background" along with obstacle distance of min/max values given to it. I'm unsure why it cannot be only 'no_background'. However, I set 1.0 m min proximity for obstacles along with 'no_background' to skip thoses frames. For this, I see that not even one frame was registered to render. This was the code and its error.
Error: Python: Traceback (most recent call last): Next for,
Error Traceback: Exception has occurred: KeyError (note: full exception trace is shown but execution is paused at: ) |
Hey @Varatharajan-Raja, thanks for the hint regarding the regarding the fact that no camera poses are marked as valid: this might be caused by a bug I fixed in #1045. Could you try to apply the fix this bvh_tree fix: https://github.com/DLR-RM/BlenderProc/pull/1045/files#diff-86c0fcf5b7503bc5d0aa08d93b78a9f794597a2984785da24f051e9d094f1b74 and check if that solves your problem? If not, could you post your full code and check whether there really are camera poses sampled which have no background in there? |
@cornerfarmer No valid camera poses even after applying the fix to bvh_tree in MeshObjectUtility.py |
|
Hey @cornerfarmer,
Thanks. I'm closing this issue and the associated issue #1051 |
Describe the issue
Thank you for the wonderful tool. @cornerfarmer
bproc.sampler.upper_region()
Could you please help me how I can restrict camera from capturing the world background?Thanks.
Minimal code example
No response
Files required to run the code
No response
Expected behavior
None
BlenderProc version
v2.6.1
The text was updated successfully, but these errors were encountered: