diff --git a/README.md b/README.md index 7c6f6ef..6b042ff 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 + + + AFZL210 +
+ Mohd Afzal Khan +
+ kriptonian1 @@ -165,15 +172,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Vedant Jolly
- + + Dishant10
Dishant Nagpal
- - + SiddheshKukade @@ -188,6 +195,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 Aswin Shailajan + + + lordvader501 +
+ Null +
+ noobyysauraj @@ -201,7 +215,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Srinjoy Pati
- + + accodes21 @@ -215,8 +230,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Akash Jain
- - + donheshanthaka @@ -244,7 +258,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Nafis Adnan Mondal
- + + devtayade @@ -252,14 +267,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 Null - - - lordvader501 -
- Null -
- - yashbrid03 @@ -294,7 +301,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Sameer Sahu
- + + NishantPacharne diff --git a/scripts/Image_resizer/readme.md b/scripts/Image_resizer/readme.md new file mode 100644 index 0000000..b9d6920 --- /dev/null +++ b/scripts/Image_resizer/readme.md @@ -0,0 +1,21 @@ +# IMAGE RESIZER +### Resize image to partiular dimensions. + +This python code takes image that needs to be resised and it uses Pillow module to resize the image by given dimensions entered by user and saves the resized image. + +#### Requirements: +* Install Pillow module. +* run `pip install pillow` + +### Usage +* Clone the repo +* open the `Image-resizer` folder +* copy the image that you want to resize to this folder +* open cmd in `image-resizer` folder +##### for windows +* run `python resize.py` +##### for linux +* run `python3 resize.py` +* after that type the name of the image file in images folder (ex: img.jpg, pic.png...) +* enter the dimensions in the format(eg 1024x720 , 600x300...) +* now your resized image is saved in folder. diff --git a/scripts/Image_resizer/resize.py b/scripts/Image_resizer/resize.py new file mode 100644 index 0000000..16b38a4 --- /dev/null +++ b/scripts/Image_resizer/resize.py @@ -0,0 +1,11 @@ +from PIL import Image as img +import os + +file_name = input("Enter anpe of file: ") +name , ext = file_name.split('.') +pic = img.open((os.path.join(os.path.dirname(os.path.abspath(__file__)),file_name))) + +ht, wt= input("Enter dimenstions(eg: 1024x720): ").split('x') +dim = int(ht), int(wt) +img_resize = pic.resize(dim) +img_resize.save((os.path.join(os.path.dirname(os.path.abspath(__file__)),f'{name}_resized.{ext}'))) \ No newline at end of file diff --git a/scripts/OpenCV GrayImage/main.py b/scripts/OpenCV GrayImage/main.py new file mode 100644 index 0000000..7ee97e3 --- /dev/null +++ b/scripts/OpenCV GrayImage/main.py @@ -0,0 +1,13 @@ +import cv2 + +cap = cv2.VideoCapture(0) + +while True: + success, img = cap.read() + + blurImage = cv.GaussianBlur(img,(5,5),0) + grayImg = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) + cv2.imshow("Grayimage", grayImg) + cv2.imshow("Blur", blurImage) + cv2.imshow("image",img) + cv2.waitKey(10) diff --git a/scripts/OpenCV GrayImage/readme.md b/scripts/OpenCV GrayImage/readme.md new file mode 100644 index 0000000..01facf9 --- /dev/null +++ b/scripts/OpenCV GrayImage/readme.md @@ -0,0 +1,17 @@ + +## Run Locally + +Clone the project + +Install dependencies + +```bash + pip install opencv-python +``` + +Run the main.py file + +```bash + python main.py +``` +