Skip to content

Instantly share code, notes, and snippets.

@thorikawa
Last active January 1, 2016 22:59
Show Gist options
  • Select an option

  • Save thorikawa/8213383 to your computer and use it in GitHub Desktop.

Select an option

Save thorikawa/8213383 to your computer and use it in GitHub Desktop.
Google Glass's Camera Parameter
Horizontal FoV: 54.8
Vertical FoV: 42.5
>>> math.tan(math.radians(27.4))
0.5183507658105608
>>> math.tan(math.radians(21.25))
0.3888787318529897
focal_x
>>> 640 * 0.5 * (1.0/math.tan(math.radians(27.4)) )
617.3425817160823
focal_y
>>> 360 * 0.5 * (1.0/math.tan(math.radians(21.25)) )
462.8692321184758
another result:
I/OCVSample::CalibrationResult(14102): Loaded camera matrix: [357.658935546875, 0, 319.5;
I/OCVSample::CalibrationResult(14102): 0, 357.658935546875, 179.5;
I/OCVSample::CalibrationResult(14102): 0, 0, 1]
I/OCVSample::CalibrationResult(14102): Loaded distortion coefficients: [0.03136849403381348; -0.5553826689720154; 0; 0; 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment