This repository was archived by the owner on Nov 30, 2022. It is now read-only.
File tree 3 files changed +36
-0
lines changed
Image-Processing/Basic_OpenCV
3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ # Image Processing
2
+
3
+ Image Processing is most commonly termed as 'Digital Image Processing' and the domain in which it is frequently used is 'Computer Vision'.
4
+ Don't be confused - we are going to talk about both of these terms and how they connect.
5
+ Both Image Processing algorithms and Computer Vision (CV) algorithms take an image as input; however, in image processing,
6
+ the output is also an image, whereas in computer vision the output can be some features/information about the image.
7
+
8
+ ## OpenCV
9
+
10
+ ![ ] ( https://logodix.com/logo/1989939.png )
11
+
12
+ ## Installation
13
+
14
+ ### Windows
15
+
16
+ $ pip install opencv-python
17
+ ### MacOS
18
+ $ brew install opencv3 --with-contrib --with-python3
19
+ ### Linux
20
+ $ sudo apt-get install libopencv-dev python-opencv
21
+
You can’t perform that action at this time.
0 commit comments