Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv2 crop image

import cv2
img = cv2.imread("lenna.png")
crop_img = img[y:y+h, x:x+w]
cv2.imshow("cropped", crop_img)
cv2.waitKey(0)		
Comment

PREVIOUS NEXT
Code Example
Python :: datetime has no attribute now 
Python :: change specific column name pandas 
Python :: replace all spacec column with underscore in pandas 
Python :: code how pandas save csv file 
Python :: print traceback python 
Python :: python click on screen 
Python :: extended euclidean python 
Python :: auto datetime in django models 
Python :: for every file in the folder do python 
Python :: save plot as pdf python 
Python :: python reload file if changed 
Python :: df iterrows pandas 
Python :: python run server 
Python :: python remove last character from string 
Python :: index to datetime pandas 
Python :: how calculate time in python 
Python :: pandas columns to int64 with nan 
Python :: remove extension from filename python 
Python :: django reset database 
Python :: change column order dataframe python 
Python :: drop multiple columns pandas 
Python :: PANDAS BIGGER PLOTS 
Python :: import csv file using pandas 
Python :: falsy python 
Python :: password generator python 
Python :: permanent redirect django 
Python :: numpy read image 
Python :: pretty print pandas dataframe 
Python :: draw a line pygame 
Python :: desktop background change with python 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =