```python
**# 图像处理工具包**```python
# 在opencv基础上对一些方法进行了再次加工,使这些方法更加简单易用
import imutils
import cv2
# print(dir(imutils))
image = cv2.imread('image0.jpg')
**# Translation example:**
# translate the image x=25 pixels to the right and y = 75 pixels up
translated = imutils.translate(image,25,-75)
cv2.imshow("image",image)
cv2.imshow("translated",translated)
``
rot = imutils.rotate(image,25)
cv2.imshow("rot",rot)
frame = imutils.resize(image, width=500)
cv2.imshow("resize",frame)