8 importimutils importcv2 image=cv2.imread('') # translate the image x=25 pixels to the right and y=75 pixels up translated=imutils.translate(image,-75,75) cv2.imshow('original image',image) cv2.imshow('translated',translated) cv2.waitKey(0) 效果 參考:https://github.com/jrosebr1/imut...
www.dbjr.com.cn/article/1788...htm 2025-5-26