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

Commit 0f4827d

Browse files
authored
Merge pull request #176 from ryuk156/BASIC_OPENCV_1
Basic open cv
2 parents 2f5727f + 8fa022f commit 0f4827d

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
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
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
26.4 KB
Loading

0 commit comments

Comments
 (0)