Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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) 
Comment

PREVIOUS NEXT
Code Example
Python :: pandas change last row 
Python :: set axis title matplotlib 
Python :: tk table python 
Python :: python virtual environment 
Python :: python convert png to jpg 
Python :: purge command discord.py 
Python :: convert mp3 to wav python 
Python :: python pyodbc install 
Python :: flask boiler plate 
Python :: python os if file exists 
Python :: how to get frequency of each elements in a python list 
Python :: check if a list contains an item from another list python 
Python :: return maximum of three values in python 
Python :: python function to print random number 
Python :: pyyaml install 
Python :: pandas select rows with values in a list 
Python :: open choose files from file explorer python 
Python :: distance euc of two arrays python 
Python :: how to send whatsapp message with python 
Python :: reverse dictionary python 
Python :: grid in pygame 
Python :: python get current number of threads 
Python :: sum of all nan values pandas 
Python :: tkinter canvas remove border 
Python :: python append in specific position 
Python :: django python base 64 encode 
Python :: bgr to gray opencv 
Python :: ImportError: No module named django.core.wsgi 
Python :: PRINT VS RETURN IN PYTHON 
Python :: panda dataframe to list 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =