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

Basic open cv #98

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Image-Processing/Basic_OpenCV.py
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions Image-Processing/README.md
Original file line number Diff line number Diff line change
@@ -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

Binary file added Image-Processing/rose.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.