截取图片中车道线部分
img=cv2.imread('./jietu.JPG')
print(img.shape)
cropped = img[100:187, 0:323] # 裁剪坐标为[y0:y1, x0:x1]
cv2.imshow('img',cropped)
cv2.waitKey(0)
cv2.destroyAllWindows()
笔记:像素坐标:左上角为(0,0)右下角为(187, 323)
img[100:187, 0:323] 裁剪坐标为[y0:y1, x0:x1]