Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 2ba06f4

Browse files
author
yash15601
committed
created folder
1 parent 6afb0eb commit 2ba06f4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
##import the module i.e opencv
2+
import cv2
3+
##Reading Images and Finding Image details
4+
5+
img = cv2.imread('rose.jpg') ##imread() is function use to read image which accepts iamge path
6+
7+
##Image details
8+
print("- Number of Pixels: " + str(img.size)) ## .size will show image size
9+
print("- Shape/Dimensions: " + str(img.shape)) ## .shape will show image shape/dimensions
10+
print("- Datatype: " + str(img.dtype)) ##unit8
11+
12+
13+
##Dispaly Image
14+
cv2.imshow("your image", img)
15+
cv2.waitKey(0) ##KeyBoard Event

0 commit comments

Comments
 (0)