opencv畫直線,矩形

opencv 畫直線要畫一條線,你只需要告訴函數這條線的起點和終點。我們下面會畫一條從左上方到右下角的藍色線段。 import numpy as np import cv2 # Create a black image img = np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with thickness of 5 px
相關文章
相關標籤/搜索