Answers for "Drwaing function explae for open cv"

0

python opencv draw rectangle

image = cv2.imread(path) 

start_point = (5, 5) 
end_point = (220, 220) 
  
# Blue color in BGR 
color = (255, 0, 0) 
  
# Line thickness of 2 px 
thickness = 2
  
# Using cv2.rectangle() method 
# Draw a rectangle with blue line borders of thickness of 2 px 
image = cv2.rectangle(image, start_point, end_point, color, thickness)
Posted by: Guest on July-22-2020
0

open cv draw

cv2.circle(img, center, radius, color[, thickness[, lineType[, shift]]])
Posted by: Guest on July-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language