Merge branch 'metafy-social:master' into master

This commit is contained in:
P Gautam 2022-10-05 11:49:00 +05:30 committed by GitHub
commit 7ee0bf1bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 16 deletions
README.md
scripts
Image_resizer
OpenCV GrayImage

@ -131,6 +131,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
</a> </a>
</td></tr> </td></tr>
<tr> <tr>
<td align="center">
<a href="https://github.com/AFZL210">
<img src="https://avatars.githubusercontent.com/u/79896602?v=4" width="100;" alt="AFZL210"/>
<br />
<sub><b>Mohd Afzal Khan</b></sub>
</a>
</td>
<td align="center"> <td align="center">
<a href="https://github.com/kriptonian1"> <a href="https://github.com/kriptonian1">
<img src="https://avatars.githubusercontent.com/u/74916308?v=4" width="100;" alt="kriptonian1"/> <img src="https://avatars.githubusercontent.com/u/74916308?v=4" width="100;" alt="kriptonian1"/>
@ -165,15 +172,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br /> <br />
<sub><b>Vedant Jolly</b></sub> <sub><b>Vedant Jolly</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/Dishant10"> <a href="https://github.com/Dishant10">
<img src="https://avatars.githubusercontent.com/u/84343829?v=4" width="100;" alt="Dishant10"/> <img src="https://avatars.githubusercontent.com/u/84343829?v=4" width="100;" alt="Dishant10"/>
<br /> <br />
<sub><b>Dishant Nagpal</b></sub> <sub><b>Dishant Nagpal</b></sub>
</a> </a>
</td></tr> </td>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/SiddheshKukade"> <a href="https://github.com/SiddheshKukade">
<img src="https://avatars.githubusercontent.com/u/65951872?v=4" width="100;" alt="SiddheshKukade"/> <img src="https://avatars.githubusercontent.com/u/65951872?v=4" width="100;" alt="SiddheshKukade"/>
@ -188,6 +195,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<sub><b>Aswin Shailajan</b></sub> <sub><b>Aswin Shailajan</b></sub>
</a> </a>
</td> </td>
<td align="center">
<a href="https://github.com/lordvader501">
<img src="https://avatars.githubusercontent.com/u/60027612?v=4" width="100;" alt="lordvader501"/>
<br />
<sub><b>Null</b></sub>
</a>
</td>
<td align="center"> <td align="center">
<a href="https://github.com/noobyysauraj"> <a href="https://github.com/noobyysauraj">
<img src="https://avatars.githubusercontent.com/u/81681419?v=4" width="100;" alt="noobyysauraj"/> <img src="https://avatars.githubusercontent.com/u/81681419?v=4" width="100;" alt="noobyysauraj"/>
@ -201,7 +215,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br /> <br />
<sub><b>Srinjoy Pati</b></sub> <sub><b>Srinjoy Pati</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/accodes21"> <a href="https://github.com/accodes21">
<img src="https://avatars.githubusercontent.com/u/101868279?v=4" width="100;" alt="accodes21"/> <img src="https://avatars.githubusercontent.com/u/101868279?v=4" width="100;" alt="accodes21"/>
@ -215,8 +230,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br /> <br />
<sub><b>Akash Jain</b></sub> <sub><b>Akash Jain</b></sub>
</a> </a>
</td></tr> </td>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/donheshanthaka"> <a href="https://github.com/donheshanthaka">
<img src="https://avatars.githubusercontent.com/u/61963664?v=4" width="100;" alt="donheshanthaka"/> <img src="https://avatars.githubusercontent.com/u/61963664?v=4" width="100;" alt="donheshanthaka"/>
@ -244,7 +258,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br /> <br />
<sub><b>Nafis Adnan Mondal</b></sub> <sub><b>Nafis Adnan Mondal</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/devtayade"> <a href="https://github.com/devtayade">
<img src="https://avatars.githubusercontent.com/u/84332795?v=4" width="100;" alt="devtayade"/> <img src="https://avatars.githubusercontent.com/u/84332795?v=4" width="100;" alt="devtayade"/>
@ -252,14 +267,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<sub><b>Null</b></sub> <sub><b>Null</b></sub>
</a> </a>
</td> </td>
<td align="center">
<a href="https://github.com/lordvader501">
<img src="https://avatars.githubusercontent.com/u/60027612?v=4" width="100;" alt="lordvader501"/>
<br />
<sub><b>Null</b></sub>
</a>
</td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/yashbrid03"> <a href="https://github.com/yashbrid03">
<img src="https://avatars.githubusercontent.com/u/65955929?v=4" width="100;" alt="yashbrid03"/> <img src="https://avatars.githubusercontent.com/u/65955929?v=4" width="100;" alt="yashbrid03"/>
@ -294,7 +301,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br /> <br />
<sub><b>Sameer Sahu</b></sub> <sub><b>Sameer Sahu</b></sub>
</a> </a>
</td> </td></tr>
<tr>
<td align="center"> <td align="center">
<a href="https://github.com/NishantPacharne"> <a href="https://github.com/NishantPacharne">
<img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/> <img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/>

@ -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.

@ -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}')))

@ -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)

@ -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
```