# 100 -> 200 x # 100 -> 300 y import cv2 img = cv2.imread('image0.jpg', 1) imgInfo = img.shape dst = img[100:200, 100:300] cv2.imshow('image', dst) cv2.waitKey(0)
# 100 -> 200 x # 100 -> 300 y import cv2 img = cv2.imread('image0.jpg', 1) imgInfo = img.shape dst = img[100:200, 100:300] cv2.imshow('image', dst) cv2.waitKey(0)
通过将图片转为data url的base64格式编码,实现直接预览图片
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M