pixel_to_world
Convert picture pixel coordinates into 3D world points on a chosen plane using camera calibration, so you can measure floor positions and sizes from a photo in Blender.
Instructions
Turn picture pixels into world points. A ray goes from the camera through each pixel and hits the plane z=plane_z
(the floor by default) or plane {"point": [x,y,z], "normal": [x,y,z]}. pixels is a list of [x, y]: x to the
right, y down, from the top left of a picture of image_size [width, height]. It uses the field of view, the sensor
fit, the lens shift and orthographic cameras. A point is null if the ray is parallel to the plane or the plane is
behind the camera. Use it to read sizes and positions off a photo after match_camera (for example the width of
something that stands on the floor). Heights above the plane cannot be read from one view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plane | No | ||
| camera | Yes | ||
| pixels | Yes | ||
| plane_z | No | ||
| image_size | Yes |