fix h36m camera bug
This commit is contained in:
parent
c3dc39c1d3
commit
d5f1e8f81b
@ -65,10 +65,13 @@ def process_camera(xml_path, seq, act, cams):
|
||||
K[1, 1] = f[1]
|
||||
K[0, 2] = c[0]
|
||||
K[1, 2] = c[1]
|
||||
# camera center
|
||||
T = t.reshape(3, 1) / 1000
|
||||
T = -np.dot(rt, T)
|
||||
cameras[cam] = {
|
||||
'K': K,
|
||||
'R': rt,
|
||||
'T': t.reshape(3, 1)/1000,
|
||||
'T': T,
|
||||
'dist': k.reshape(1, 5)
|
||||
}
|
||||
return cameras
|
||||
|
Loading…
Reference in New Issue
Block a user