Skip to content

Instantly share code, notes, and snippets.

@khalidmeister
Created September 5, 2021 03:28
Show Gist options
  • Save khalidmeister/26eaaf57442eb35213c64479a54cbe6b to your computer and use it in GitHub Desktop.
Save khalidmeister/26eaaf57442eb35213c64479a54cbe6b to your computer and use it in GitHub Desktop.
# The camera matrix
focal_length = 1 * img_w
cam_matrix = np.array([ [focal_length, 0, img_h / 2],
[0, focal_length, img_w / 2],
[0, 0, 1]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment