Add camera parameters

master
CptCaptain 3 years ago
parent 42599ee465
commit 56f2aa7d5d
  1. 5
      data/create_syn_data.py

@ -233,9 +233,10 @@ if __name__=='__main__':
objs = get_objs(shapenet_root, obj_classes)
# camera parameters
imsize = (480, 640)
imsize = (488, 648)
imsizes = [(imsize[0]//(2**s), imsize[1]//(2**s)) for s in range(4)]
K = np.array([[567.6, 0, 324.7], [0, 570.2, 250.1], [0 ,0, 1]], dtype=np.float32)
# K = np.array([[567.6, 0, 324.7], [0, 570.2, 250.1], [0 ,0, 1]], dtype=np.float32)
K = np.array([[1929.5936336276382, 0, 113.66561071478046], [0, 1911.2517985448746, 473.70108079885887], [0 ,0, 1]], dtype=np.float32)
focal_lengths = [K[0,0]/(2**s) for s in range(4)]
baseline=0.075
blend_im = 0.6

Loading…
Cancel
Save