Answers for "draw filled in box cv2"

1

cv2 draw box

import cv2 
path = r'C:UsersRajnishDesktopgeeksforgeeksgeeks.png'
image = cv2.imread(path, 0)
# represents the top left corner of rectangle
start_point = (100, 50)
# represents the bottom right corner of rectangle
end_point = (125, 80)
color = (0, 0, 0)
linethickness = -1
image = cv2.rectangle(image, start_point, end_point, color, linethickness)
cv2.imshow('Image', image)
Posted by: Guest on April-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language