Linked Questions

4
votes
2answers
2k views

Save the bounding box position of an object in a text file

I have a .blend file found here and I'm asking if anyone could assist me to save the positions (x, y, width and height) of the bounding box of the moving object for every frame in the file attached, ...
2
votes
2answers
2k views

Python: Obtaining Object Contour Pixels

I would like to obtain the pixel coordinates of an object's outline in the currently-rendered scene, using the bpy module. I found this, which is related, but I'm still not sure how to do it. Has ...
1
vote
2answers
2k views

How can I get the x,y location of an object at each frame of animation?

How do I get the X/Y locations and the height/width of an object (in pixels) for every frame of animation and is it possible to export it to a text file? I did find something similar to this but didn'...
0
votes
1answer
3k views

how to get 3D vertex bounding box around the object in python [duplicate]

I have a vehicle model, the 3D bounding box of the vehicle model contains the 3D coordinates of each vertex. My question is would it possible to get the 3D bounding box coordinates, which is a 8 ...
1
vote
0answers
1k views

How to draw a 2D bounding box of a 3D object

I'd like to visualize a bounding box of a 3D object in the 2D rendered image like in the example image below. My idea is to use the line draw function presented here but I don't know how to transform ...
2
votes
0answers
734 views

How to get 2d pixel coordinates of multiple objects bounding boxes from rendered image with python in blender 2.8?

I know there're many questions similar to mine, but they are a bit too old and not working with newest version of blender. I found this two, but have no idea how to use them: ...
1
vote
1answer
579 views

2D- Bounding box around human model with sub meshes and armature

Mast is the entire model, It has sub meshes as can been seen from the figure, like eyes, clothes, but belonging to the same human model. I need to get the mesh of all of that together, so as to draw a ...
1
vote
2answers
318 views

How do I calculate how much of a object is covered in a 2D image?

I'm using code from here: Save the 2D bounding box of an object in rendered image to a text file To calculate a bounding box coordinates for an object (say a human) in a rendered image. That works ...
0
votes
1answer
231 views

How to Tell if Object is No Longer in Camera View (bpy)

I'm wondering what's the most efficient way to detect whether or not an object is entirely within the current camera's field of view. For example, if I'd want to allow variations in camera rotation ...
0
votes
0answers
30 views

How to get 2d camera space bounding box for each particle?

Quick overview: I'm working on some computer vision work where I need lots of simulated images where the rocks have been labeled. Using blender I can easily produce the images I need, and I'm now ...
0
votes
0answers
11 views

Extention to save the 2D bounding box of an object in rendered image to a text file

I am stuck with the following code which is already explained here. camera_view_bounds_2d Considering I have 3 objects in my scene. I did the following Deselect all objects Select 1 of 3 Apply ...