Home
last modified time | relevance | path

Searched refs:cam_rots (Results 1 – 1 of 1) sorted by relevance

/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_sensor_fusion.py165 cam_rots = get_cam_rotations(frames, events["facing"], h)
166 if max(abs(cam_rots)) < THRESH_MIN_ROT:
174 offset = get_best_alignment_offset(cam_times, cam_rots, events["gyro"])
179 plot_rotations(cam_rots, gyro_rots)
182 dist = scipy.spatial.distance.correlation(cam_rots, gyro_rots)
188 def get_best_alignment_offset(cam_times, cam_rots, gyro_events): argument
209 dists.append(scipy.spatial.distance.correlation(cam_rots, gyro_rots))
246 def plot_rotations(cam_rots, gyro_rots): argument
256 cam_rots *= scale
258 pylab.plot(range(len(cam_rots)), cam_rots, "r", label="camera")
[all …]