Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find left top width and height on an image using python

import cv2

im = cv2.imread('data/src/lena.jpg')

print(type(im))
# <class 'numpy.ndarray'>

print(im.shape)
print(type(im.shape))
# (225, 400, 3)
# <class 'tuple'>
Source by note.nkmk.me #
 
PREVIOUS NEXT
Tagged: #find #left #top #width #height #image #python
ADD COMMENT
Topic
Name
1+1 =