Skip to content

Commit

Permalink
Create Read and convert image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Siba2000 authored Oct 1, 2020
1 parent 3d41533 commit 14731e4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Read and convert image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import cv2
img =cv2.imread('apple.jpg')
img1=cv2.cvtColor(img,cv2.COLOR_BGR2RGB)
img2=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
img3=cv2.cvtColor(img,cv2.COLOR_BGR2HSV)
cv2.imshow('original_image',img)
cv2.imshow('RGB_image',img)
cv2.imshow('Gray_image',img2)
cv2.imshow('Hsv_image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()

1 comment on commit 14731e4

@Siba2000
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a short code

Please sign in to comment.