DIYer22 / bpycv

Computer vision utils for Blender (generate instance annoatation, depth and 6D pose by one line code)
MIT License
464 stars 58 forks source link

question regarding <add_img_background> #34

Closed shadowwkl closed 2 years ago

shadowwkl commented 2 years ago

Dear author,

Thanks for implementing this function: https://github.com/DIYer22/bpycv/issues/24#issuecomment-989646174

But how should I set this variable as background? Like https://github.com/DIYer22/bpycv/blob/c576e01622d87eb3534f73bf1a5686bd2463de97/example/ycb_demo.py#L51-L52 ?

Thanks!

DIYer22 commented 2 years ago

What's the mean of variable? add_img_background only support img_path.

shadowwkl commented 2 years ago

What's the mean of variable? add_img_background only support img_path.

I pass a jpg image path to the function, and it returns a “bpy.data.objects[‘Plane’]” type data.

plane = add_img_background(img_path)

DIYer22 commented 2 years ago

When call add_img_background(img_path), the img background is added. No need to do anything of the return Plane