mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
Merge branch 'metafy-social:master' into master
This commit is contained in:
commit
7ee0bf1bca
40
README.md
40
README.md
|
@ -131,6 +131,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
|
|||
</a>
|
||||
</td></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">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Vedant Jolly</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/Dishant10">
|
||||
<img src="https://avatars.githubusercontent.com/u/84343829?v=4" width="100;" alt="Dishant10"/>
|
||||
<br />
|
||||
<sub><b>Dishant Nagpal</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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>
|
||||
</a>
|
||||
</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">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Srinjoy Pati</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Akash Jain</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Nafis Adnan Mondal</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/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>
|
||||
</a>
|
||||
</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">
|
||||
<a href="https://github.com/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 />
|
||||
<sub><b>Sameer Sahu</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/NishantPacharne">
|
||||
<img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/>
|
||||
|
|
21
scripts/Image_resizer/readme.md
Normal file
21
scripts/Image_resizer/readme.md
Normal file
|
@ -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.
|
11
scripts/Image_resizer/resize.py
Normal file
11
scripts/Image_resizer/resize.py
Normal file
|
@ -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}')))
|
13
scripts/OpenCV GrayImage/main.py
Normal file
13
scripts/OpenCV GrayImage/main.py
Normal file
|
@ -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)
|
17
scripts/OpenCV GrayImage/readme.md
Normal file
17
scripts/OpenCV GrayImage/readme.md
Normal file
|
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user