Skip to content

Instantly share code, notes, and snippets.

View nvs-abhilash's full-sized avatar

NVS Abhilash nvs-abhilash

View GitHub Profile
nvs-abhilash /
Last active April 2, 2024 15:06
Helper function to resize and rotate contours using OpenCV
import cv2
import numpy as np
def cart2pol(x, y):
theta = np.arctan2(y, x)
rho = np.hypot(x, y)
return theta, rho

Keybase proof

I hereby claim:

  • I am nvs-abhilash on github.
  • I am nvsabhilash ( on keybase.
  • I have a public key ASAgYkiRdcC79oZGxueImuC6X81g_yoOJrJtLiirttZ0cAo

To claim this, I am signing this object: