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[1, 1] = f[1]
|
||||||
K[0, 2] = c[0]
|
K[0, 2] = c[0]
|
||||||
K[1, 2] = c[1]
|
K[1, 2] = c[1]
|
||||||
|
# camera center
|
||||||
|
T = t.reshape(3, 1) / 1000
|
||||||
|
T = -np.dot(rt, T)
|
||||||
cameras[cam] = {
|
cameras[cam] = {
|
||||||
'K': K,
|
'K': K,
|
||||||
'R': rt,
|
'R': rt,
|
||||||
'T': t.reshape(3, 1)/1000,
|
'T': T,
|
||||||
'dist': k.reshape(1, 5)
|
'dist': k.reshape(1, 5)
|
||||||
}
|
}
|
||||||
return cameras
|
return cameras
|
||||||
|
Loading…
Reference in New Issue
Block a user