Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 17, 2021 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/c55b20184bd61019bed741fce3304be7 to your computer and use it in GitHub Desktop.
Save amankharwal/c55b20184bd61019bed741fce3304be7 to your computer and use it in GitHub Desktop.
scaling = 80
#Change Width and Height
width = int(img.shape[1] * scaling / 100)
height = int(img.shape[0] * scaling / 100)
dim = (width,height)
resized = cv2.resize(img,dim,interpolation = cv2.INTER_AREA)
viewImage(resized, "Resized Image")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment