Nodes/ComfyUI-AusBoss/Photo Camera πŸ†Ž
ComfyUI Node

Photo Camera πŸ†Ž

Works out the camera your photo was taken with, so a 3D model of the person lines up with the photo. Wire in the photo, the person's mask and the photo's field of view (Get FoV from MoGe measures it). Send crop_fov to Pixal3D Conditioning, camera_info to the 3D viewer, and the strip numbers to where the photo is laid on the 360. The viewer then opens on your photo's own view, with the 360 behind it lined up.

By ausbossΒ·Created 4 months agoΒ·Updated about 5 hours agoΒ· 163
Photo Camera πŸ†Ž
  • image
  • mask
  • crop_fov
  • camera_info
  • strip_width
  • strip_x
  • strip_y
β—„fov55.0β–Ί
β—„pad_factor1.10β–Ί
β—„canvas_width2048β–Ί
CategoryπŸ†Ž AusBoss/Utility

Inputs (5)

NameTypeDefaultDescription
imageIMAGEYour photo, the same one Crop to Mask cuts the person from.
maskMASKThe person, white on black: the same mask Crop to Mask uses.
fovFLOAT55.01–170How wide the photo is, in degrees across. Wire Get FoV from MoGe here; 55 suits most phone photos.
pad_factorFLOAT1.101–2The margin Crop to Mask adds around the person. Keep the two the same.
canvas_widthINT20488–16384Width of the 360 canvas the photo is laid on.

Outputs (5)

NameTypeDescription
crop_fovFLOATThe crop's field of view, for Pixal3D Conditioning.
camera_infoLOAD3D_CAMERAYour photo's camera, for the 3D viewer's camera_info: it opens on the photo's own view.
strip_widthINTHow wide the photo is on the 360 canvas, in pixels.
strip_xINTWhere the photo's left edge goes on the 360 canvas.
strip_yINTWhere the photo's top edge goes on the 360 canvas.