What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-08 19:08:04
cv2 rectangle fill color opacity
import cv2 import numpy as np # Load image img = cv2.imread('images/paddington.png') # Initialize black image of same dimensions for drawing the rectangles blk = np.zeros(img.shape, np.uint8) # Draw rectangles cv2.rectangle(blk, (5, 5), (100, 75), (255... Add solution