diff --git a/Image-Processing/Basic_OpenCV.py b/Image-Processing/Basic_OpenCV.py new file mode 100644 index 00000000..fc073323 --- /dev/null +++ b/Image-Processing/Basic_OpenCV.py @@ -0,0 +1,16 @@ + +##import the module i.e opencv +import cv2 +##Reading Images and Finding Image details + +img = cv2.imread('rose.jpg') ##imread() is function use to read image which accepts iamge path + +##Image details +print("- Number of Pixels: " + str(img.size)) ## .size will show image size +print("- Shape/Dimensions: " + str(img.shape)) ## .shape will show image shape/dimensions +print("- Datatype: " + str(img.dtype)) ##unit8 + + +##Dispaly Image +cv2.imshow("your image", img) +cv2.waitKey(0) ##KeyBoard Event diff --git a/Image-Processing/README.md b/Image-Processing/README.md index e69de29b..82a2e3b3 100644 --- a/Image-Processing/README.md +++ b/Image-Processing/README.md @@ -0,0 +1,21 @@ +# Image Processing + +Image Processing is most commonly termed as 'Digital Image Processing' and the domain in which it is frequently used is 'Computer Vision'. +Don't be confused - we are going to talk about both of these terms and how they connect. +Both Image Processing algorithms and Computer Vision (CV) algorithms take an image as input; however, in image processing, +the output is also an image, whereas in computer vision the output can be some features/information about the image. + +## OpenCV + +![](https://logodix.com/logo/1989939.png) + +## Installation + +### Windows + + $ pip install opencv-python +### MacOS + $ brew install opencv3 --with-contrib --with-python3 +### Linux + $ sudo apt-get install libopencv-dev python-opencv + diff --git a/Image-Processing/rose.jpg b/Image-Processing/rose.jpg new file mode 100644 index 00000000..d03798ec Binary files /dev/null and b/Image-Processing/rose.jpg differ