blenderproc.python.modules.camera.SuncgCameraSampler module¶
-
class
blenderproc.python.modules.camera.SuncgCameraSampler.
SuncgCameraSampler
(config)[source]¶ Bases:
blenderproc.python.modules.camera.CameraSampler.CameraSampler
Samples valid camera poses inside suncg rooms.
Works as the standard camera sampler, except the following differences: - Always sets the x and y coordinate of the camera location to a value uniformly sampled inside a rooms bounding box - The configured z coordinate of the configured camera location is used as relative to the floor - All sampled camera locations need to lie straight above the room’s floor to be valid
See parent class CameraSampler for more details.
-
_on_new_pose_added
(cam2world_matrix, frame)[source]¶ Inserts keyframe for room id corresponding to new camera poses.
Parameters: - cam2world_matrix (
Matrix
) – The new camera pose. - frame (
int
) – The frame containing the new pose.
- cam2world_matrix (
-